Skip to content

Commit

Permalink
feat: added support for optionally disabling built-in GKE metrics
Browse files Browse the repository at this point in the history
feat: added tag bindings support for Attached Clusters
docs: updated comments of existing fields

PiperOrigin-RevId: 708397945

Source-Link: googleapis/googleapis@09b3c83

Source-Link: googleapis/googleapis-gen@822c2ac
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuR2tlTXVsdGlDbG91ZC5WMS8uT3dsQm90LnlhbWwiLCJoIjoiODIyYzJhY2FmN2FmMDdkZmJiN2Y4NmNlMmUyZTBmMmU3NDRiNzJlNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Dec 21, 2024
1 parent b5594d6 commit 3170840
Show file tree
Hide file tree
Showing 4 changed files with 381 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@ internal static AttachedClustersClient Create(grpccore::CallInvoker callInvoker,
/// * `proxy_config.kubernetes_secret.name`.
/// * `proxy_config.kubernetes_secret.namespace`.
/// * `security_posture_config.vulnerability_mode`
/// * `monitoring_config.cloud_monitoring_config.enabled`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand Down Expand Up @@ -872,6 +873,7 @@ internal static AttachedClustersClient Create(grpccore::CallInvoker callInvoker,
/// * `proxy_config.kubernetes_secret.name`.
/// * `proxy_config.kubernetes_secret.namespace`.
/// * `security_posture_config.vulnerability_mode`
/// * `monitoring_config.cloud_monitoring_config.enabled`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down Expand Up @@ -908,6 +910,7 @@ internal static AttachedClustersClient Create(grpccore::CallInvoker callInvoker,
/// * `proxy_config.kubernetes_secret.name`.
/// * `proxy_config.kubernetes_secret.namespace`.
/// * `security_posture_config.vulnerability_mode`
/// * `monitoring_config.cloud_monitoring_config.enabled`
/// </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 @@ -29,7 +29,7 @@ static AttachedResourcesReflection() {
"b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jl",
"c291cmNlLnByb3RvGjRnb29nbGUvY2xvdWQvZ2tlbXVsdGljbG91ZC92MS9j",
"b21tb25fcmVzb3VyY2VzLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0",
"YW1wLnByb3RvIs4MCg9BdHRhY2hlZENsdXN0ZXISDAoEbmFtZRgBIAEoCRIY",
"YW1wLnByb3RvIssNCg9BdHRhY2hlZENsdXN0ZXISDAoEbmFtZRgBIAEoCRIY",
"CgtkZXNjcmlwdGlvbhgCIAEoCUID4EEBEksKC29pZGNfY29uZmlnGAMgASgL",
"MjEuZ29vZ2xlLmNsb3VkLmdrZW11bHRpY2xvdWQudjEuQXR0YWNoZWRPaWRj",
"Q29uZmlnQgPgQQISHQoQcGxhdGZvcm1fdmVyc2lvbhgEIAEoCUID4EECEhkK",
Expand Down Expand Up @@ -58,41 +58,44 @@ static AttachedResourcesReflection() {
"b24YGSABKAsyMi5nb29nbGUuY2xvdWQuZ2tlbXVsdGljbG91ZC52MS5CaW5h",
"cnlBdXRob3JpemF0aW9uQgPgQQESWgoXc2VjdXJpdHlfcG9zdHVyZV9jb25m",
"aWcYGiABKAsyNC5nb29nbGUuY2xvdWQuZ2tlbXVsdGljbG91ZC52MS5TZWN1",
"cml0eVBvc3R1cmVDb25maWdCA+BBARoyChBBbm5vdGF0aW9uc0VudHJ5EgsK",
"A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEidQoFU3RhdGUSFQoRU1RB",
"VEVfVU5TUEVDSUZJRUQQABIQCgxQUk9WSVNJT05JTkcQARILCgdSVU5OSU5H",
"EAISDwoLUkVDT05DSUxJTkcQAxIMCghTVE9QUElORxAEEgkKBUVSUk9SEAUS",
"DAo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Zm8SDwoHdmVyc2lvbhgBIAEoCSIn",
"ChRBdHRhY2hlZENsdXN0ZXJFcnJvchIPCgdtZXNzYWdlGAEgASgJImEKE0F0",
"dGFjaGVkUHJveHlDb25maWcSSgoRa3ViZXJuZXRlc19zZWNyZXQYASABKAsy",
"Ly5nb29nbGUuY2xvdWQuZ2tlbXVsdGljbG91ZC52MS5LdWJlcm5ldGVzU2Vj",
"cmV0IjMKEEt1YmVybmV0ZXNTZWNyZXQSDAoEbmFtZRgBIAEoCRIRCgluYW1l",
"c3BhY2UYAiABKAlC6QEKIWNvbS5nb29nbGUuY2xvdWQuZ2tlbXVsdGljbG91",
"ZC52MUIWQXR0YWNoZWRSZXNvdXJjZXNQcm90b1ABWkdjbG91ZC5nb29nbGUu",
"Y29tL2dvL2drZW11bHRpY2xvdWQvYXBpdjEvZ2tlbXVsdGljbG91ZHBiO2dr",
"ZW11bHRpY2xvdWRwYqoCHUdvb2dsZS5DbG91ZC5Ha2VNdWx0aUNsb3VkLlYx",
"ygIdR29vZ2xlXENsb3VkXEdrZU11bHRpQ2xvdWRcVjHqAiBHb29nbGU6OkNs",
"b3VkOjpHa2VNdWx0aUNsb3VkOjpWMWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.GkeMultiCloud.V1.CommonResourcesReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.GkeMultiCloud.V1.AttachedCluster), global::Google.Cloud.GkeMultiCloud.V1.AttachedCluster.Parser, new[]{ "Name", "Description", "OidcConfig", "PlatformVersion", "Distribution", "ClusterRegion", "Fleet", "State", "Uid", "Reconciling", "CreateTime", "UpdateTime", "Etag", "KubernetesVersion", "Annotations", "WorkloadIdentityConfig", "LoggingConfig", "Errors", "Authorization", "MonitoringConfig", "ProxyConfig", "BinaryAuthorization", "SecurityPostureConfig" }, null, new[]{ typeof(global::Google.Cloud.GkeMultiCloud.V1.AttachedCluster.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.GkeMultiCloud.V1.AttachedCluster), global::Google.Cloud.GkeMultiCloud.V1.AttachedCluster.Parser, new[]{ "Name", "Description", "OidcConfig", "PlatformVersion", "Distribution", "ClusterRegion", "Fleet", "State", "Uid", "Reconciling", "CreateTime", "UpdateTime", "Etag", "KubernetesVersion", "Annotations", "WorkloadIdentityConfig", "LoggingConfig", "Errors", "Authorization", "MonitoringConfig", "ProxyConfig", "BinaryAuthorization", "SecurityPostureConfig", "Tags" }, null, new[]{ typeof(global::Google.Cloud.GkeMultiCloud.V1.AttachedCluster.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.GkeMultiCloud.V1.AttachedClustersAuthorization), global::Google.Cloud.GkeMultiCloud.V1.AttachedClustersAuthorization.Parser, new[]{ "AdminUsers", "AdminGroups" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.GkeMultiCloud.V1.AttachedClusterUser), global::Google.Cloud.GkeMultiCloud.V1.AttachedClusterUser.Parser, new[]{ "Username" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.GkeMultiCloud.V1.AttachedClusterGroup), global::Google.Cloud.GkeMultiCloud.V1.AttachedClusterGroup.Parser, new[]{ "Group" }, null, null, null, null),
Expand Down Expand Up @@ -169,6 +172,7 @@ public AttachedCluster(AttachedCluster other) : this() {
proxyConfig_ = other.proxyConfig_ != null ? other.proxyConfig_.Clone() : null;
binaryAuthorization_ = other.binaryAuthorization_ != null ? other.binaryAuthorization_.Clone() : null;
securityPostureConfig_ = other.securityPostureConfig_ != null ? other.securityPostureConfig_.Clone() : null;
tags_ = other.tags_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -549,6 +553,31 @@ public string KubernetesVersion {
}
}

/// <summary>Field number for the "tags" field.</summary>
public const int TagsFieldNumber = 27;
private static readonly pbc::MapField<string, string>.Codec _map_tags_codec
= new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 218);
private readonly pbc::MapField<string, string> tags_ = new pbc::MapField<string, string>();
/// <summary>
/// Optional. Input only. Tag keys/values directly bound to this resource.
///
/// Tag key must be specified in the format &lt;tag namespace>/&lt;tag key name>
/// where the tag namespace is the ID of the organization or name of the
/// project that the tag key is defined in.
/// The short name of a tag key or value can have a maximum length of 256
/// characters. The permitted character set for the short name includes UTF-8
/// encoded Unicode characters except single quotes ('), double quotes ("),
/// backslashes (\), and forward slashes (/).
///
/// See [Tags](http://cloud/resource-manager/docs/tags/tags-overview)
/// for more details on Google Cloud Platform tags.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField<string, string> Tags {
get { return tags_; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand Down Expand Up @@ -587,6 +616,7 @@ public bool Equals(AttachedCluster other) {
if (!object.Equals(ProxyConfig, other.ProxyConfig)) return false;
if (!object.Equals(BinaryAuthorization, other.BinaryAuthorization)) return false;
if (!object.Equals(SecurityPostureConfig, other.SecurityPostureConfig)) return false;
if (!Tags.Equals(other.Tags)) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -617,6 +647,7 @@ public override int GetHashCode() {
if (proxyConfig_ != null) hash ^= ProxyConfig.GetHashCode();
if (binaryAuthorization_ != null) hash ^= BinaryAuthorization.GetHashCode();
if (securityPostureConfig_ != null) hash ^= SecurityPostureConfig.GetHashCode();
hash ^= Tags.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -721,6 +752,7 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(210, 1);
output.WriteMessage(SecurityPostureConfig);
}
tags_.WriteTo(output, _map_tags_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -817,6 +849,7 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(210, 1);
output.WriteMessage(SecurityPostureConfig);
}
tags_.WriteTo(ref output, _map_tags_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -892,6 +925,7 @@ public int CalculateSize() {
if (securityPostureConfig_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(SecurityPostureConfig);
}
size += tags_.CalculateSize(_map_tags_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -1002,6 +1036,7 @@ public void MergeFrom(AttachedCluster other) {
}
SecurityPostureConfig.MergeFrom(other.SecurityPostureConfig);
}
tags_.MergeFrom(other.tags_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -1142,6 +1177,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(SecurityPostureConfig);
break;
}
case 218: {
tags_.AddEntriesFrom(input, _map_tags_codec);
break;
}
}
}
#endif
Expand Down Expand Up @@ -1282,6 +1321,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(SecurityPostureConfig);
break;
}
case 218: {
tags_.AddEntriesFrom(ref input, _map_tags_codec);
break;
}
}
}
}
Expand Down Expand Up @@ -2876,6 +2919,10 @@ public AttachedProxyConfig Clone() {
/// The Kubernetes Secret resource that contains the HTTP(S) proxy
/// configuration. The secret must be a JSON encoded proxy configuration
/// as described in
/// https://cloud.google.com/kubernetes-engine/multi-cloud/docs/attached/eks/how-to/use-a-proxy#configure-proxy-support
/// for EKS clusters and
/// https://cloud.google.com/kubernetes-engine/multi-cloud/docs/attached/aks/how-to/use-a-proxy#configure-proxy-support
/// for AKS clusters.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,7 @@ public bool ValidateOnly {
/// * `proxy_config.kubernetes_secret.name`.
/// * `proxy_config.kubernetes_secret.namespace`.
/// * `security_posture_config.vulnerability_mode`
/// * `monitoring_config.cloud_monitoring_config.enabled`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down
Loading

0 comments on commit 3170840

Please sign in to comment.