public sealed class RestoreConfig.Types.TransformationRule : IMessage<RestoreConfig.Types.TransformationRule>, IEquatable<RestoreConfig.Types.TransformationRule>, IDeepCloneable<RestoreConfig.Types.TransformationRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup for GKE v1 API class RestoreConfig.Types.TransformationRule.
A transformation rule to be applied against Kubernetes resources as they
are selected for restoration from a Backup. A rule contains both filtering
logic (which resources are subject to transform) and transformation logic.
public RepeatedField<RestoreConfig.Types.TransformationRuleAction> FieldActions { get; }
Required. A list of transformation rule actions to take against candidate
resources. Actions are executed in order defined - this order matters, as
they could potentially interfere with each other and the first operation
could affect the outcome of the second operation.
public RestoreConfig.Types.ResourceFilter ResourceFilter { get; set; }
Optional. This field is used to specify a set of fields that should be
used to determine which resources in backup should be acted upon by the
supplied transformation rule actions, and this will ensure that only
specific resources are affected by transformation rule actions.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRestoreConfig.Types.TransformationRule\u003c/code\u003e class in the Backup for GKE v1 API is designed to define rules for transforming Kubernetes resources during restoration from a backup.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows users to filter which resources are subject to transformation and specify the actions to be taken on those resources, with actions executed in a predefined order.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransformationRule\u003c/code\u003e class can be described using a user-specified string, and actions to be taken on affected fields can be defined by \u003ccode\u003eFieldActions\u003c/code\u003e, in addition to allowing for specific filtering of resources to affect via \u003ccode\u003eResourceFilter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestoreConfig.Types.TransformationRule\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and can be instantiated with a default constructor, or by providing another \u003ccode\u003eTransformationRule\u003c/code\u003e object as parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation for \u003ccode\u003eRestoreConfig.Types.TransformationRule\u003c/code\u003e is available across multiple versions, with the most recent version being 2.6.0 and can be located via the provided URLs.\u003c/p\u003e\n"]]],[],null,["# Backup for GKE v1 API - Class RestoreConfig.Types.TransformationRule (2.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.7.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.6.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.5.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.4.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.3.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.2.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.1.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.0.0/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/1.0.0-beta01/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule) \n\n public sealed class RestoreConfig.Types.TransformationRule : IMessage\u003cRestoreConfig.Types.TransformationRule\u003e, IEquatable\u003cRestoreConfig.Types.TransformationRule\u003e, IDeepCloneable\u003cRestoreConfig.Types.TransformationRule\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup for GKE v1 API class RestoreConfig.Types.TransformationRule.\n\nA transformation rule to be applied against Kubernetes resources as they\nare selected for restoration from a Backup. A rule contains both filtering\nlogic (which resources are subject to transform) and transformation logic. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RestoreConfig.Types.TransformationRule \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RestoreConfig](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig.Types)[TransformationRule](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreConfig](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig.Types)[TransformationRule](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreConfig](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig.Types)[TransformationRule](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig.Types.TransformationRule), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeBackup.V1](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeBackup.V1.dll\n\nConstructors\n------------\n\n### TransformationRule()\n\n public TransformationRule()\n\n### TransformationRule(TransformationRule)\n\n public TransformationRule(RestoreConfig.Types.TransformationRule other)\n\nProperties\n----------\n\n### Description\n\n public string Description { get; set; }\n\nOptional. The description is a user specified string description of the\ntransformation rule.\n\n### FieldActions\n\n public RepeatedField\u003cRestoreConfig.Types.TransformationRuleAction\u003e FieldActions { get; }\n\nRequired. A list of transformation rule actions to take against candidate\nresources. Actions are executed in order defined - this order matters, as\nthey could potentially interfere with each other and the first operation\ncould affect the outcome of the second operation.\n\n### ResourceFilter\n\n public RestoreConfig.Types.ResourceFilter ResourceFilter { get; set; }\n\nOptional. This field is used to specify a set of fields that should be\nused to determine which resources in backup should be acted upon by the\nsupplied transformation rule actions, and this will ensure that only\nspecific resources are affected by transformation rule actions."]]