public sealed class CustomCanaryDeployment.Types.PhaseConfig : IMessage<CustomCanaryDeployment.Types.PhaseConfig>, IEquatable<CustomCanaryDeployment.Types.PhaseConfig>, IDeepCloneable<CustomCanaryDeployment.Types.PhaseConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Deploy v1 API class CustomCanaryDeployment.Types.PhaseConfig.
PhaseConfig represents the configuration for a phase in the custom
canary deployment.
Required. The ID to assign to the Rollout phase.
This value must consist of lower-case letters, numbers, and hyphens,
start with a letter and end with a letter or a number, and have a max
length of 63 characters. In other words, it must match the following
regex: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.
Optional. Skaffold profiles to use when rendering the manifest for this
phase. These are in addition to the profiles list specified in the
DeliveryPipeline stage.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eCustomCanaryDeployment.Types.PhaseConfig\u003c/code\u003e class within the Google Cloud Deploy v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePhaseConfig\u003c/code\u003e class represents the configuration details for a specific phase in a custom canary deployment, offering functionalities like setting the percentage of deployment, assigning a rollout ID, and configuring pre and post-deployment jobs.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API are available, from version 1.0.0 up to the latest version 3.4.0, with links provided for each.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePhaseConfig\u003c/code\u003e class properties include \u003ccode\u003ePercentage\u003c/code\u003e for deployment percentage, \u003ccode\u003ePhaseId\u003c/code\u003e for the rollout phase ID, \u003ccode\u003ePredeploy\u003c/code\u003e and \u003ccode\u003ePostdeploy\u003c/code\u003e for job configurations, \u003ccode\u003eProfiles\u003c/code\u003e for Skaffold profile usage, and \u003ccode\u003eVerify\u003c/code\u003e to enable post-deployment verification.\u003c/p\u003e\n"],["\u003cp\u003eIt is built upon and implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and has links to the members and descriptions of \u003ccode\u003eobject\u003c/code\u003e that it inherits from.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Deploy v1 API - Class CustomCanaryDeployment.Types.PhaseConfig (3.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.5.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.4.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.3.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.2.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.1.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/3.0.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.19.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.19.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.18.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.17.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.16.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.15.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.14.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.13.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.12.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.11.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.10.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.9.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.8.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.7.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.6.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.5.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.4.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.3.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.2.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.1.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/2.0.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.1.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Deploy.V1/1.0.0/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig) \n\n public sealed class CustomCanaryDeployment.Types.PhaseConfig : IMessage\u003cCustomCanaryDeployment.Types.PhaseConfig\u003e, IEquatable\u003cCustomCanaryDeployment.Types.PhaseConfig\u003e, IDeepCloneable\u003cCustomCanaryDeployment.Types.PhaseConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Deploy v1 API class CustomCanaryDeployment.Types.PhaseConfig.\n\nPhaseConfig represents the configuration for a phase in the custom\ncanary deployment. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CustomCanaryDeployment.Types.PhaseConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CustomCanaryDeployment](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment)[Types](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types)[PhaseConfig](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomCanaryDeployment](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment)[Types](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types)[PhaseConfig](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CustomCanaryDeployment](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment)[Types](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types)[PhaseConfig](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.CustomCanaryDeployment.Types.PhaseConfig), [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.Deploy.V1](/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Deploy.V1.dll\n\nConstructors\n------------\n\n### PhaseConfig()\n\n public PhaseConfig()\n\n### PhaseConfig(PhaseConfig)\n\n public PhaseConfig(CustomCanaryDeployment.Types.PhaseConfig other)\n\nProperties\n----------\n\n### Percentage\n\n public int Percentage { get; set; }\n\nRequired. Percentage deployment for the phase.\n\n### PhaseId\n\n public string PhaseId { get; set; }\n\nRequired. The ID to assign to the `Rollout` phase.\nThis value must consist of lower-case letters, numbers, and hyphens,\nstart with a letter and end with a letter or a number, and have a max\nlength of 63 characters. In other words, it must match the following\nregex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.\n\n### Postdeploy\n\n public Postdeploy Postdeploy { get; set; }\n\nOptional. Configuration for the postdeploy job of this phase. If this is\nnot configured, there will be no postdeploy job for this phase.\n\n### Predeploy\n\n public Predeploy Predeploy { get; set; }\n\nOptional. Configuration for the predeploy job of this phase. If this is\nnot configured, there will be no predeploy job for this phase.\n\n### Profiles\n\n public RepeatedField\u003cstring\u003e Profiles { get; }\n\nOptional. Skaffold profiles to use when rendering the manifest for this\nphase. These are in addition to the profiles list specified in the\n`DeliveryPipeline` stage.\n\n### Verify\n\n public bool Verify { get; set; }\n\nOptional. Whether to run verify tests after the deployment via `skaffold\nverify`."]]