lib/google/cloud/managedidentities/v1/resource_pb.rb in google-cloud-managed_identities-v1-0.4.0 vs lib/google/cloud/managedidentities/v1/resource_pb.rb in google-cloud-managed_identities-v1-0.5.0

- old
+ new

@@ -1,73 +1,40 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/managedidentities/v1/resource.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -require 'google/api/annotations_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/managedidentities/v1/resource.proto", :syntax => :proto3) do - add_message "google.cloud.managedidentities.v1.Domain" do - optional :name, :string, 1 - map :labels, :string, :string, 2 - repeated :authorized_networks, :string, 3 - optional :reserved_ip_range, :string, 4 - repeated :locations, :string, 5 - optional :admin, :string, 6 - optional :fqdn, :string, 10 - optional :create_time, :message, 11, "google.protobuf.Timestamp" - optional :update_time, :message, 12, "google.protobuf.Timestamp" - optional :state, :enum, 13, "google.cloud.managedidentities.v1.Domain.State" - optional :status_message, :string, 14 - repeated :trusts, :message, 15, "google.cloud.managedidentities.v1.Trust" + +descriptor_data = "\n0google/cloud/managedidentities/v1/resource.proto\x12!google.cloud.managedidentities.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9e\x06\n\x06\x44omain\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x06labels\x18\x02 \x03(\x0b\x32\x35.google.cloud.managedidentities.v1.Domain.LabelsEntryB\x03\xe0\x41\x01\x12 \n\x13\x61uthorized_networks\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1e\n\x11reserved_ip_range\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tlocations\x18\x05 \x03(\tB\x03\xe0\x41\x02\x12\x12\n\x05\x61\x64min\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04\x66qdn\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\r \x01(\x0e\x32/.google.cloud.managedidentities.v1.Domain.StateB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12=\n\x06trusts\x18\x0f \x03(\x0b\x32(.google.cloud.managedidentities.v1.TrustB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8f\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\r\n\tREPAIRING\x10\x05\x12\x1a\n\x16PERFORMING_MAINTENANCE\x10\x06\x12\x0f\n\x0bUNAVAILABLE\x10\x07:f\xea\x41\x63\n\'managedidentities.googleapis.com/Domain\x12\x38projects/{project}/locations/{location}/domains/{domain}\"\xe1\x06\n\x05Trust\x12\x1f\n\x12target_domain_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\ntrust_type\x18\x02 \x01(\x0e\x32\x32.google.cloud.managedidentities.v1.Trust.TrustTypeB\x03\xe0\x41\x02\x12U\n\x0ftrust_direction\x18\x03 \x01(\x0e\x32\x37.google.cloud.managedidentities.v1.Trust.TrustDirectionB\x03\xe0\x41\x02\x12%\n\x18selective_authentication\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12$\n\x17target_dns_ip_addresses\x18\x05 \x03(\tB\x03\xe0\x41\x02\x12#\n\x16trust_handshake_secret\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x05state\x18\t \x01(\x0e\x32..google.cloud.managedidentities.v1.Trust.StateB\x03\xe0\x41\x03\x12\x1e\n\x11state_description\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x19last_trust_heartbeat_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"i\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0c\n\x08UPDATING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\r\n\tCONNECTED\x10\x04\x12\x10\n\x0c\x44ISCONNECTED\x10\x05\"A\n\tTrustType\x12\x1a\n\x16TRUST_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x46OREST\x10\x01\x12\x0c\n\x08\x45XTERNAL\x10\x02\"_\n\x0eTrustDirection\x12\x1f\n\x1bTRUST_DIRECTION_UNSPECIFIED\x10\x00\x12\x0b\n\x07INBOUND\x10\x01\x12\x0c\n\x08OUTBOUND\x10\x02\x12\x11\n\rBIDIRECTIONAL\x10\x03\x42\xfc\x01\n%com.google.cloud.managedidentities.v1B\rResourceProtoP\x01ZScloud.google.com/go/managedidentities/apiv1/managedidentitiespb;managedidentitiespb\xaa\x02!Google.Cloud.ManagedIdentities.V1\xca\x02!Google\\Cloud\\ManagedIdentities\\V1\xea\x02$Google::Cloud::ManagedIdentities::V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # 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) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_enum "google.cloud.managedidentities.v1.Domain.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :READY, 2 - value :UPDATING, 3 - value :DELETING, 4 - value :REPAIRING, 5 - value :PERFORMING_MAINTENANCE, 6 - value :UNAVAILABLE, 7 - end - add_message "google.cloud.managedidentities.v1.Trust" do - optional :target_domain_name, :string, 1 - optional :trust_type, :enum, 2, "google.cloud.managedidentities.v1.Trust.TrustType" - optional :trust_direction, :enum, 3, "google.cloud.managedidentities.v1.Trust.TrustDirection" - optional :selective_authentication, :bool, 4 - repeated :target_dns_ip_addresses, :string, 5 - optional :trust_handshake_secret, :string, 6 - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :update_time, :message, 8, "google.protobuf.Timestamp" - optional :state, :enum, 9, "google.cloud.managedidentities.v1.Trust.State" - optional :state_description, :string, 11 - optional :last_trust_heartbeat_time, :message, 12, "google.protobuf.Timestamp" - end - add_enum "google.cloud.managedidentities.v1.Trust.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :UPDATING, 2 - value :DELETING, 3 - value :CONNECTED, 4 - value :DISCONNECTED, 5 - end - add_enum "google.cloud.managedidentities.v1.Trust.TrustType" do - value :TRUST_TYPE_UNSPECIFIED, 0 - value :FOREST, 1 - value :EXTERNAL, 2 - end - add_enum "google.cloud.managedidentities.v1.Trust.TrustDirection" do - value :TRUST_DIRECTION_UNSPECIFIED, 0 - value :INBOUND, 1 - value :OUTBOUND, 2 - value :BIDIRECTIONAL, 3 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module ManagedIdentities