Skip to content

Commit

Permalink
feat: Adding support for encryption_key_revocation_action and encrypt…
Browse files Browse the repository at this point in the history
…ion_key_shutdown_duration for RevisionTemplate and ExecutionTemplate

docs: Documentation improvements, including clarification that v1 labels/annotations are rejected in v2 API

PiperOrigin-RevId: 503293343

Source-Link: googleapis/googleapis@e3d3d63

Source-Link: googleapis/googleapis-gen@f401f99
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUnVuLlYyLy5Pd2xCb3QueWFtbCIsImgiOiJmNDAxZjk5ZGQwZTJiZmU3ZmJlNmIxOTBkMzM4MWJhNjQ4ZjIxMjI3In0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Jan 20, 2023
1 parent 5889030 commit 1ba9bc3
Show file tree
Hide file tree
Showing 12 changed files with 641 additions and 308 deletions.
23 changes: 14 additions & 9 deletions apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Condition.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static ConditionReflection() {
string.Concat(
"CiNnb29nbGUvY2xvdWQvcnVuL3YyL2NvbmRpdGlvbi5wcm90bxITZ29vZ2xl",
"LmNsb3VkLnJ1bi52MhofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90",
"byLkCwoJQ29uZGl0aW9uEgwKBHR5cGUYASABKAkSMwoFc3RhdGUYAiABKA4y",
"byL/CwoJQ29uZGl0aW9uEgwKBHR5cGUYASABKAkSMwoFc3RhdGUYAiABKA4y",
"JC5nb29nbGUuY2xvdWQucnVuLnYyLkNvbmRpdGlvbi5TdGF0ZRIPCgdtZXNz",
"YWdlGAMgASgJEjgKFGxhc3RfdHJhbnNpdGlvbl90aW1lGAQgASgLMhouZ29v",
"Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBI5CghzZXZlcml0eRgFIAEoDjInLmdv",
Expand All @@ -49,20 +49,20 @@ static ConditionReflection() {
"RVJNSVNTSU9OX0RFTklFRBAKEh8KG0VOQ1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sSGQoVTUlOX0lOU1RBTkNFU19XQVJN",
"SU5HEAwifgoPRXhlY3V0aW9uUmVhc29uEh4KGkVYRUNVVElPTl9SRUFTT05f",
"VU5ERUZJTkVEEAASJAogSk9CX1NUQVRVU19TRVJWSUNFX1BPTExJTkdfRVJS",
"T1IQARIWChJOT05fWkVST19FWElUX0NPREUQAhINCglDQU5DRUxMRUQQA0IJ",
"CgdyZWFzb25zQmMKF2NvbS5nb29nbGUuY2xvdWQucnVuLnYyQg5Db25kaXRp",
"b25Qcm90b1ABWjZnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh",
"cGlzL2Nsb3VkL3J1bi92MjtydW5iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
Expand Down Expand Up @@ -778,6 +778,11 @@ public enum RevisionReason {
/// manually scaled service with 0 instance count
/// </summary>
[pbr::OriginalName("HEALTH_CHECK_SKIPPED")] HealthCheckSkipped = 11,
/// <summary>
/// A revision with min_instance_count > 0 was created and is waiting for
/// enough instances to begin a traffic migration.
/// </summary>
[pbr::OriginalName("MIN_INSTANCES_WARMING")] MinInstancesWarming = 12,
}

/// <summary>
Expand Down
211 changes: 167 additions & 44 deletions apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Execution.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public ExecutionTemplate Clone() {
private readonly pbc::MapField<string, string> labels_ = new pbc::MapField<string, string>();
/// <summary>
/// KRM-style labels for the resource.
///
/// &lt;p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
/// `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
/// namespaces, and they will be rejected. All system labels in v1 now have a
/// corresponding field in v2 ExecutionTemplate.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand All @@ -121,6 +126,11 @@ public ExecutionTemplate Clone() {
private readonly pbc::MapField<string, string> annotations_ = new pbc::MapField<string, string>();
/// <summary>
/// KRM-style annotations for the resource.
///
/// &lt;p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
/// `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
/// namespaces, and they will be rejected. All system annotations in v1 now
/// have a corresponding field in v2 ExecutionTemplate.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -172,7 +182,8 @@ public int TaskCount {
public const int TemplateFieldNumber = 5;
private global::Google.Cloud.Run.V2.TaskTemplate template_;
/// <summary>
/// Required. Describes the task(s) that will be created when executing an execution.
/// Required. Describes the task(s) that will be created when executing an
/// execution.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down
Loading

0 comments on commit 1ba9bc3

Please sign in to comment.