Skip to content

Commit

Permalink
feat: Add stable cutback duration configuration to the k8s gateway se…
Browse files Browse the repository at this point in the history
…rvice mesh deployment strategy. This allows configuring the amount of time to migrate traffic back to the original Service in the stable phase

feat: Updated logging protos with new fields
docs: Fixed a number of comments

PiperOrigin-RevId: 596610888

Source-Link: googleapis/googleapis@6f69d9a

Source-Link: googleapis/googleapis-gen@e2a9e76
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGVwbG95LlYxLy5Pd2xCb3QueWFtbCIsImgiOiJlMmE5ZTc2ZWY4MThmZjRiODJiMzNhMGZiMDA1OTM2ZmJiZTMwZDQ5In0=
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Jan 9, 2024
1 parent c6fb071 commit 86ff329
Show file tree
Hide file tree
Showing 8 changed files with 1,553 additions and 1,091 deletions.
1,923 changes: 987 additions & 936 deletions apis/Google.Cloud.Deploy.V1/Google.Cloud.Deploy.V1/CloudDeploy.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1583,8 +1583,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `DeliveryPipeline` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -1605,8 +1605,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `DeliveryPipeline` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -1627,8 +1627,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `DeliveryPipeline` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down Expand Up @@ -2413,8 +2413,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// Target resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -2435,8 +2435,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// Target resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -2457,8 +2457,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// Target resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down Expand Up @@ -2890,7 +2890,7 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// </summary>
/// <param name="parent">
/// Required. The parent collection in which the `CustomTargetType` should be
/// created in. Format should be
/// created. Format should be
/// `projects/{project_id}/locations/{location_name}`.
/// </param>
/// <param name="customTargetType">
Expand All @@ -2914,7 +2914,7 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// </summary>
/// <param name="parent">
/// Required. The parent collection in which the `CustomTargetType` should be
/// created in. Format should be
/// created. Format should be
/// `projects/{project_id}/locations/{location_name}`.
/// </param>
/// <param name="customTargetType">
Expand All @@ -2938,7 +2938,7 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// </summary>
/// <param name="parent">
/// Required. The parent collection in which the `CustomTargetType` should be
/// created in. Format should be
/// created. Format should be
/// `projects/{project_id}/locations/{location_name}`.
/// </param>
/// <param name="customTargetType">
Expand All @@ -2957,7 +2957,7 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// </summary>
/// <param name="parent">
/// Required. The parent collection in which the `CustomTargetType` should be
/// created in. Format should be
/// created. Format should be
/// `projects/{project_id}/locations/{location_name}`.
/// </param>
/// <param name="customTargetType">
Expand All @@ -2981,7 +2981,7 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// </summary>
/// <param name="parent">
/// Required. The parent collection in which the `CustomTargetType` should be
/// created in. Format should be
/// created. Format should be
/// `projects/{project_id}/locations/{location_name}`.
/// </param>
/// <param name="customTargetType">
Expand All @@ -3005,7 +3005,7 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// </summary>
/// <param name="parent">
/// Required. The parent collection in which the `CustomTargetType` should be
/// created in. Format should be
/// created. Format should be
/// `projects/{project_id}/locations/{location_name}`.
/// </param>
/// <param name="customTargetType">
Expand Down Expand Up @@ -3083,8 +3083,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `CustomTargetType` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -3105,8 +3105,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `CustomTargetType` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -3127,8 +3127,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `CustomTargetType` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down Expand Up @@ -5568,8 +5568,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `Automation` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -5590,8 +5590,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `Automation` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -5612,8 +5612,8 @@ internal static CloudDeployClient Create(grpccore::CallInvoker callInvoker, Clou
/// Required. Field mask is used to specify the fields to be overwritten in the
/// `Automation` resource by the update.
/// The fields specified in the update_mask are relative to the resource, not
/// the full request. A field will be overwritten if it is in the mask. If the
/// user does not provide a mask then all fields will be overwritten.
/// the full request. A field will be overwritten if it's in the mask. If the
/// user doesn't provide a mask then all fields are overwritten.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ public static partial class DeliverypipelineNotificationPayloadReflection {
string.Concat(
"CkJnb29nbGUvY2xvdWQvZGVwbG95L3YxL2RlbGl2ZXJ5cGlwZWxpbmVfbm90",
"aWZpY2F0aW9uX3BheWxvYWQucHJvdG8SFmdvb2dsZS5jbG91ZC5kZXBsb3ku",
"djEaJmdvb2dsZS9jbG91ZC9kZXBsb3kvdjEvbG9nX2VudW1zLnByb3RvInsK",
"IURlbGl2ZXJ5UGlwZWxpbmVOb3RpZmljYXRpb25FdmVudBIPCgdtZXNzYWdl",
"GAEgASgJEhkKEWRlbGl2ZXJ5X3BpcGVsaW5lGAIgASgJEioKBHR5cGUYAyAB",
"KA4yHC5nb29nbGUuY2xvdWQuZGVwbG95LnYxLlR5cGVCfAoaY29tLmdvb2ds",
"ZS5jbG91ZC5kZXBsb3kudjFCKERlbGl2ZXJ5UGlwZWxpbmVOb3RpZmljYXRp",
"b25QYXlsb2FkUHJvdG9QAVoyY2xvdWQuZ29vZ2xlLmNvbS9nby9kZXBsb3kv",
"YXBpdjEvZGVwbG95cGI7ZGVwbG95cGJiBnByb3RvMw=="));
"djEaJmdvb2dsZS9jbG91ZC9kZXBsb3kvdjEvbG9nX2VudW1zLnByb3RvIpEB",
"CiFEZWxpdmVyeVBpcGVsaW5lTm90aWZpY2F0aW9uRXZlbnQSDwoHbWVzc2Fn",
"ZRgBIAEoCRIUCgxwaXBlbGluZV91aWQYBCABKAkSGQoRZGVsaXZlcnlfcGlw",
"ZWxpbmUYAiABKAkSKgoEdHlwZRgDIAEoDjIcLmdvb2dsZS5jbG91ZC5kZXBs",
"b3kudjEuVHlwZUJ8Chpjb20uZ29vZ2xlLmNsb3VkLmRlcGxveS52MUIoRGVs",
"aXZlcnlQaXBlbGluZU5vdGlmaWNhdGlvblBheWxvYWRQcm90b1ABWjJjbG91",
"ZC5nb29nbGUuY29tL2dvL2RlcGxveS9hcGl2MS9kZXBsb3lwYjtkZXBsb3lw",
"YmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Cloud.Deploy.V1.LogEnumsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Deploy.V1.DeliveryPipelineNotificationEvent), global::Google.Cloud.Deploy.V1.DeliveryPipelineNotificationEvent.Parser, new[]{ "Message", "DeliveryPipeline", "Type" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Deploy.V1.DeliveryPipelineNotificationEvent), global::Google.Cloud.Deploy.V1.DeliveryPipelineNotificationEvent.Parser, new[]{ "Message", "PipelineUid", "DeliveryPipeline", "Type" }, null, null, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -83,6 +84,7 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeliveryPipelineNotificationEvent(DeliveryPipelineNotificationEvent other) : this() {
message_ = other.message_;
pipelineUid_ = other.pipelineUid_;
deliveryPipeline_ = other.deliveryPipeline_;
type_ = other.type_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Expand All @@ -109,6 +111,21 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
}
}

/// <summary>Field number for the "pipeline_uid" field.</summary>
public const int PipelineUidFieldNumber = 4;
private string pipelineUid_ = "";
/// <summary>
/// Unique identifier of the `DeliveryPipeline`.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PipelineUid {
get { return pipelineUid_; }
set {
pipelineUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

/// <summary>Field number for the "delivery_pipeline" field.</summary>
public const int DeliveryPipelineFieldNumber = 2;
private string deliveryPipeline_ = "";
Expand Down Expand Up @@ -155,6 +172,7 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
return true;
}
if (Message != other.Message) return false;
if (PipelineUid != other.PipelineUid) return false;
if (DeliveryPipeline != other.DeliveryPipeline) return false;
if (Type != other.Type) return false;
return Equals(_unknownFields, other._unknownFields);
Expand All @@ -165,6 +183,7 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
public override int GetHashCode() {
int hash = 1;
if (Message.Length != 0) hash ^= Message.GetHashCode();
if (PipelineUid.Length != 0) hash ^= PipelineUid.GetHashCode();
if (DeliveryPipeline.Length != 0) hash ^= DeliveryPipeline.GetHashCode();
if (Type != global::Google.Cloud.Deploy.V1.Type.Unspecified) hash ^= Type.GetHashCode();
if (_unknownFields != null) {
Expand Down Expand Up @@ -197,6 +216,10 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
output.WriteRawTag(24);
output.WriteEnum((int) Type);
}
if (PipelineUid.Length != 0) {
output.WriteRawTag(34);
output.WriteString(PipelineUid);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -219,6 +242,10 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
output.WriteRawTag(24);
output.WriteEnum((int) Type);
}
if (PipelineUid.Length != 0) {
output.WriteRawTag(34);
output.WriteString(PipelineUid);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -232,6 +259,9 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
if (Message.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
}
if (PipelineUid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PipelineUid);
}
if (DeliveryPipeline.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DeliveryPipeline);
}
Expand All @@ -253,6 +283,9 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
if (other.Message.Length != 0) {
Message = other.Message;
}
if (other.PipelineUid.Length != 0) {
PipelineUid = other.PipelineUid;
}
if (other.DeliveryPipeline.Length != 0) {
DeliveryPipeline = other.DeliveryPipeline;
}
Expand Down Expand Up @@ -286,6 +319,10 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
Type = (global::Google.Cloud.Deploy.V1.Type) input.ReadEnum();
break;
}
case 34: {
PipelineUid = input.ReadString();
break;
}
}
}
#endif
Expand Down Expand Up @@ -313,6 +350,10 @@ public sealed partial class DeliveryPipelineNotificationEvent : pb::IMessage<Del
Type = (global::Google.Cloud.Deploy.V1.Type) input.ReadEnum();
break;
}
case 34: {
PipelineUid = input.ReadString();
break;
}
}
}
}
Expand Down
Loading

0 comments on commit 86ff329

Please sign in to comment.