lib/google/cloud/gkehub/v1/membership_pb.rb in google-cloud-gke_hub-v1-0.8.1 vs lib/google/cloud/gkehub/v1/membership_pb.rb in google-cloud-gke_hub-v1-0.8.2
- old
+ new
@@ -7,16 +7,16 @@
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/timestamp_pb'
-descriptor_data = "\n\'google/cloud/gkehub/v1/membership.proto\x12\x16google.cloud.gkehub.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb8\x06\n\nMembership\x12\x43\n\x08\x65ndpoint\x18\x04 \x01(\x0b\x32*.google.cloud.gkehub.v1.MembershipEndpointB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x02 \x03(\x0b\x32..google.cloud.gkehub.v1.Membership.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12;\n\x05state\x18\x05 \x01(\x0b\x32\'.google.cloud.gkehub.v1.MembershipStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xternal_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12=\n\x14last_connection_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tunique_id\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x39\n\tauthority\x18\x0c \x01(\x0b\x32!.google.cloud.gkehub.v1.AuthorityB\x03\xe0\x41\x01\x12H\n\x11monitoring_config\x18\x0e \x01(\x0b\x32(.google.cloud.gkehub.v1.MonitoringConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:g\xea\x41\x64\n gkehub.googleapis.com/Membership\x12@projects/{project}/locations/{location}/memberships/{membership}B\x06\n\x04type\"\x8b\x02\n\x12MembershipEndpoint\x12<\n\x0bgke_cluster\x18\x01 \x01(\x0b\x32\".google.cloud.gkehub.v1.GkeClusterB\x03\xe0\x41\x01\x12L\n\x13kubernetes_metadata\x18\x02 \x01(\x0b\x32*.google.cloud.gkehub.v1.KubernetesMetadataB\x03\xe0\x41\x03\x12L\n\x13kubernetes_resource\x18\x03 \x01(\x0b\x32*.google.cloud.gkehub.v1.KubernetesResourceB\x03\xe0\x41\x01\x12\x1b\n\x0egoogle_managed\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\"\x98\x02\n\x12KubernetesResource\x12#\n\x16membership_cr_manifest\x18\x01 \x01(\tB\x03\xe0\x41\x04\x12K\n\x14membership_resources\x18\x02 \x03(\x0b\x32(.google.cloud.gkehub.v1.ResourceManifestB\x03\xe0\x41\x03\x12H\n\x11\x63onnect_resources\x18\x03 \x03(\x0b\x32(.google.cloud.gkehub.v1.ResourceManifestB\x03\xe0\x41\x03\x12\x46\n\x10resource_options\x18\x04 \x01(\x0b\x32\'.google.cloud.gkehub.v1.ResourceOptionsB\x03\xe0\x41\x01\"c\n\x0fResourceOptions\x12\x1c\n\x0f\x63onnect_version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bv1beta1_crd\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bk8s_version\x18\x03 \x01(\tB\x03\xe0\x41\x01\"<\n\x10ResourceManifest\x12\x10\n\x08manifest\x18\x01 \x01(\t\x12\x16\n\x0e\x63luster_scoped\x18\x02 \x01(\x08\"F\n\nGkeCluster\x12\x1a\n\rresource_link\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x1c\n\x0f\x63luster_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\"\xdf\x01\n\x12KubernetesMetadata\x12*\n\x1dkubernetes_api_server_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10node_provider_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nnode_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nvcpu_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12\x16\n\tmemory_mb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x64 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x96\x01\n\x10MonitoringConfig\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x14\n\x07\x63luster\x18\x03 \x01(\tB\x03\xe0\x41\x05\x12!\n\x19kubernetes_metrics_prefix\x18\x04 \x01(\t\x12\x19\n\x0c\x63luster_hash\x18\x05 \x01(\tB\x03\xe0\x41\x05\"\xbb\x01\n\x0fMembershipState\x12?\n\x04\x63ode\x18\x01 \x01(\x0e\x32,.google.cloud.gkehub.v1.MembershipState.CodeB\x03\xe0\x41\x03\"g\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x14\n\x10SERVICE_UPDATING\x10\x05\"}\n\tAuthority\x12\x13\n\x06issuer\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16workload_identity_pool\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11identity_provider\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\toidc_jwks\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x01\x42\xb1\x01\n\x1a\x63om.google.cloud.gkehub.v1B\x0fMembershipProtoP\x01Z2cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb\xaa\x02\x16Google.Cloud.GkeHub.V1\xca\x02\x16Google\\Cloud\\GkeHub\\V1\xea\x02\x19Google::Cloud::GkeHub::V1b\x06proto3"
+descriptor_data = "\n\'google/cloud/gkehub/v1/membership.proto\x12\x16google.cloud.gkehub.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc5\x06\n\nMembership\x12\x44\n\x08\x65ndpoint\x18\x04 \x01(\x0b\x32*.google.cloud.gkehub.v1.MembershipEndpointB\x04\xe2\x41\x01\x01H\x00\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x44\n\x06labels\x18\x02 \x03(\x0b\x32..google.cloud.gkehub.v1.Membership.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12<\n\x05state\x18\x05 \x01(\x0b\x32\'.google.cloud.gkehub.v1.MembershipStateB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x65xternal_id\x18\t \x01(\tB\x04\xe2\x41\x01\x01\x12>\n\x14last_connection_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x17\n\tunique_id\x18\x0b \x01(\tB\x04\xe2\x41\x01\x03\x12:\n\tauthority\x18\x0c \x01(\x0b\x32!.google.cloud.gkehub.v1.AuthorityB\x04\xe2\x41\x01\x01\x12I\n\x11monitoring_config\x18\x0e \x01(\x0b\x32(.google.cloud.gkehub.v1.MonitoringConfigB\x04\xe2\x41\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:g\xea\x41\x64\n gkehub.googleapis.com/Membership\x12@projects/{project}/locations/{location}/memberships/{membership}B\x06\n\x04type\"\x8f\x02\n\x12MembershipEndpoint\x12=\n\x0bgke_cluster\x18\x01 \x01(\x0b\x32\".google.cloud.gkehub.v1.GkeClusterB\x04\xe2\x41\x01\x01\x12M\n\x13kubernetes_metadata\x18\x02 \x01(\x0b\x32*.google.cloud.gkehub.v1.KubernetesMetadataB\x04\xe2\x41\x01\x03\x12M\n\x13kubernetes_resource\x18\x03 \x01(\x0b\x32*.google.cloud.gkehub.v1.KubernetesResourceB\x04\xe2\x41\x01\x01\x12\x1c\n\x0egoogle_managed\x18\x08 \x01(\x08\x42\x04\xe2\x41\x01\x03\"\x9c\x02\n\x12KubernetesResource\x12$\n\x16membership_cr_manifest\x18\x01 \x01(\tB\x04\xe2\x41\x01\x04\x12L\n\x14membership_resources\x18\x02 \x03(\x0b\x32(.google.cloud.gkehub.v1.ResourceManifestB\x04\xe2\x41\x01\x03\x12I\n\x11\x63onnect_resources\x18\x03 \x03(\x0b\x32(.google.cloud.gkehub.v1.ResourceManifestB\x04\xe2\x41\x01\x03\x12G\n\x10resource_options\x18\x04 \x01(\x0b\x32\'.google.cloud.gkehub.v1.ResourceOptionsB\x04\xe2\x41\x01\x01\"f\n\x0fResourceOptions\x12\x1d\n\x0f\x63onnect_version\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x19\n\x0bv1beta1_crd\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x19\n\x0bk8s_version\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"<\n\x10ResourceManifest\x12\x10\n\x08manifest\x18\x01 \x01(\t\x12\x16\n\x0e\x63luster_scoped\x18\x02 \x01(\x08\"H\n\nGkeCluster\x12\x1b\n\rresource_link\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05\x12\x1d\n\x0f\x63luster_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x03\"\xe5\x01\n\x12KubernetesMetadata\x12+\n\x1dkubernetes_api_server_version\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1e\n\x10node_provider_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x18\n\nnode_count\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x03\x12\x18\n\nvcpu_count\x18\x04 \x01(\x05\x42\x04\xe2\x41\x01\x03\x12\x17\n\tmemory_mb\x18\x05 \x01(\x05\x42\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x64 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\"\x9a\x01\n\x10MonitoringConfig\x12\x18\n\nproject_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05\x12\x16\n\x08location\x18\x02 \x01(\tB\x04\xe2\x41\x01\x05\x12\x15\n\x07\x63luster\x18\x03 \x01(\tB\x04\xe2\x41\x01\x05\x12!\n\x19kubernetes_metrics_prefix\x18\x04 \x01(\t\x12\x1a\n\x0c\x63luster_hash\x18\x05 \x01(\tB\x04\xe2\x41\x01\x05\"\xbc\x01\n\x0fMembershipState\x12@\n\x04\x63ode\x18\x01 \x01(\x0e\x32,.google.cloud.gkehub.v1.MembershipState.CodeB\x04\xe2\x41\x01\x03\"g\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x14\n\x10SERVICE_UPDATING\x10\x05\"\x81\x01\n\tAuthority\x12\x14\n\x06issuer\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12$\n\x16workload_identity_pool\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1f\n\x11identity_provider\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x17\n\toidc_jwks\x18\x04 \x01(\x0c\x42\x04\xe2\x41\x01\x01\x42\xb1\x01\n\x1a\x63om.google.cloud.gkehub.v1B\x0fMembershipProtoP\x01Z2cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb\xaa\x02\x16Google.Cloud.GkeHub.V1\xca\x02\x16Google\\Cloud\\GkeHub\\V1\xea\x02\x19Google::Cloud::GkeHub::V1b\x06proto3"
pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
-rescue TypeError => e
+rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
parsed.clear_dependency
serialized = parsed.class.encode(parsed)