generated/google/apis/servicenetworking_v1/classes.rb in google-api-client-0.39.4 vs generated/google/apis/servicenetworking_v1/classes.rb in google-api-client-0.39.5

- old
+ new

@@ -21,10 +21,141 @@ module Google module Apis module ServicenetworkingV1 # Metadata provided through GetOperation request for the LRO generated by + # AddDnsRecordSet API + class AddDnsRecordSetMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to add a record set to a private managed DNS zone in the shared + # producer host project. + class AddDnsRecordSetRequest + include Google::Apis::Core::Hashable + + # Required. The network that the consumer is using to connect with services. + # Must be in the form of projects/`project`/global/networks/`network` + # `project` is the project number, as in '12345' + # `network` is the network name. + # Corresponds to the JSON property `consumerNetwork` + # @return [String] + attr_accessor :consumer_network + + # Represents a DNS record set resource. + # Corresponds to the JSON property `dnsRecordSet` + # @return [Google::Apis::ServicenetworkingV1::DnsRecordSet] + attr_accessor :dns_record_set + + # Required. The name of the private DNS zone in the shared producer host project + # to + # which the record set will be added. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_network = args[:consumer_network] if args.key?(:consumer_network) + @dns_record_set = args[:dns_record_set] if args.key?(:dns_record_set) + @zone = args[:zone] if args.key?(:zone) + end + end + + # Metadata provided through GetOperation request for the LRO generated by + # AddDnsZone API + class AddDnsZoneMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to add a private managed DNS zone in the shared producer host project + # and a matching DNS peering zone in the consumer project. + class AddDnsZoneRequest + include Google::Apis::Core::Hashable + + # Required. The network that the consumer is using to connect with services. + # Must be in the form of projects/`project`/global/networks/`network` + # `project` is the project number, as in '12345' + # `network` is the network name. + # Corresponds to the JSON property `consumerNetwork` + # @return [String] + attr_accessor :consumer_network + + # Required. The DNS name suffix for the zones e.g. `example.com`. + # Corresponds to the JSON property `dnsSuffix` + # @return [String] + attr_accessor :dns_suffix + + # Required. The name for both the private zone in the shared producer host + # project and + # the peering zone in the consumer project. Must be unique within both + # projects. The name must be 1-63 characters long, must begin with a letter, + # end with a letter or digit, and only contain lowercase letters, digits or + # dashes. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_network = args[:consumer_network] if args.key?(:consumer_network) + @dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix) + @name = args[:name] if args.key?(:name) + end + end + + # Represents managed DNS zones created in the shared producer host and consumer + # projects. + class AddDnsZoneResponse + include Google::Apis::Core::Hashable + + # Represents a DNS zone resource. + # Corresponds to the JSON property `consumerPeeringZone` + # @return [Google::Apis::ServicenetworkingV1::DnsZone] + attr_accessor :consumer_peering_zone + + # Represents a DNS zone resource. + # Corresponds to the JSON property `producerPrivateZone` + # @return [Google::Apis::ServicenetworkingV1::DnsZone] + attr_accessor :producer_private_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_peering_zone = args[:consumer_peering_zone] if args.key?(:consumer_peering_zone) + @producer_private_zone = args[:producer_private_zone] if args.key?(:producer_private_zone) + end + end + + # Metadata provided through GetOperation request for the LRO generated by # AddRoles API class AddRolesMetadata include Google::Apis::Core::Hashable def initialize(**args) @@ -593,40 +724,10 @@ # for more details on the supported values. # Corresponds to the JSON property `protocol` # @return [String] attr_accessor :protocol - # Unimplemented. Do not use. - # The new name the selected proto elements should be renamed to. - # The package, the service and the method can all be renamed. - # The backend server should implement the renamed proto. However, clients - # should call the original method, and ESF routes the traffic to the renamed - # method. - # HTTP clients should call the URL mapped to the original method. - # gRPC and Stubby clients should call the original method with package name. - # For legacy reasons, ESF allows Stubby clients to call with the - # short name (without the package name). However, for API Versioning(or - # multiple methods mapped to the same short name), all Stubby clients must - # call the method's full name with the package name, otherwise the first one - # (selector) wins. - # If this `rename_to` is specified with a trailing `*`, the `selector` must - # be specified with a trailing `*` as well. The all element short names - # matched by the `*` in the selector will be kept in the `rename_to`. - # For example, - # rename_rules: - # - selector: |- - # google.example.library.v1.* - # rename_to: google.example.library.* - # The selector matches `google.example.library.v1.Library.CreateShelf` and - # `google.example.library.v1.Library.CreateBook`, they will be renamed to - # `google.example.library.Library.CreateShelf` and - # `google.example.library.Library.CreateBook`. It essentially renames the - # proto package name section of the matched proto service and methods. - # Corresponds to the JSON property `renameTo` - # @return [String] - attr_accessor :rename_to - # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -643,11 +744,10 @@ @jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience) @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) @protocol = args[:protocol] if args.key?(:protocol) - @rename_to = args[:rename_to] if args.key?(:rename_to) @selector = args[:selector] if args.key?(:selector) end end # Billing related configuration of the service. @@ -1040,10 +1140,76 @@ def update!(**args) @consumer_network = args[:consumer_network] if args.key?(:consumer_network) end end + # Represents a DNS record set resource. + class DnsRecordSet + include Google::Apis::Core::Hashable + + # Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for + # examples see https://cloud.google.com/dns/records/json-record. + # Corresponds to the JSON property `data` + # @return [Array<String>] + attr_accessor :data + + # Required. The DNS or domain name of the record set, e.g. `test.example.com`. + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # Required. The period of time for which this RecordSet can be cached by + # resolvers. + # Corresponds to the JSON property `ttl` + # @return [String] + attr_accessor :ttl + + # Required. The identifier of a supported record type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @domain = args[:domain] if args.key?(:domain) + @ttl = args[:ttl] if args.key?(:ttl) + @type = args[:type] if args.key?(:type) + end + end + + # Represents a DNS zone resource. + class DnsZone + include Google::Apis::Core::Hashable + + # The DNS name suffix of this zone e.g. `example.com.`. + # Corresponds to the JSON property `dnsSuffix` + # @return [String] + attr_accessor :dns_suffix + + # User assigned name for this resource. Must be unique within the project. + # The name must be 1-63 characters long, must begin with a letter, end with + # a letter or digit, and only contain lowercase letters, digits or dashes. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix) + @name = args[:name] if args.key?(:name) + end + end + # `Documentation` provides the information for describing a service. # Example: # <pre><code>documentation: # summary: > # The Google Calendar API gives access @@ -3103,10 +3269,133 @@ @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) @secondary_range_ip_prefix_lengths = args[:secondary_range_ip_prefix_lengths] if args.key?(:secondary_range_ip_prefix_lengths) end end + # Metadata provided through GetOperation request for the LRO generated by + # RemoveDnsRecordSet API + class RemoveDnsRecordSetMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to remove a record set from a private managed DNS zone in the shared + # producer host project. The name, type, ttl, and data values must all exactly + # match an existing record set in the specified zone. + class RemoveDnsRecordSetRequest + include Google::Apis::Core::Hashable + + # Required. The network that the consumer is using to connect with services. + # Must be in the form of projects/`project`/global/networks/`network` + # `project` is the project number, as in '12345' + # `network` is the network name. + # Corresponds to the JSON property `consumerNetwork` + # @return [String] + attr_accessor :consumer_network + + # Represents a DNS record set resource. + # Corresponds to the JSON property `dnsRecordSet` + # @return [Google::Apis::ServicenetworkingV1::DnsRecordSet] + attr_accessor :dns_record_set + + # Required. The name of the private DNS zone in the shared producer host project + # from + # which the record set will be removed. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_network = args[:consumer_network] if args.key?(:consumer_network) + @dns_record_set = args[:dns_record_set] if args.key?(:dns_record_set) + @zone = args[:zone] if args.key?(:zone) + end + end + + # Blank message response type for RemoveDnsRecordSet API + class RemoveDnsRecordSetResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Metadata provided through GetOperation request for the LRO generated by + # RemoveDnsZone API + class RemoveDnsZoneMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to remove a private managed DNS zone in the shared producer host + # project and a matching DNS peering zone in the consumer project. + class RemoveDnsZoneRequest + include Google::Apis::Core::Hashable + + # Required. The network that the consumer is using to connect with services. + # Must be in the form of projects/`project`/global/networks/`network` + # `project` is the project number, as in '12345' + # `network` is the network name. + # Corresponds to the JSON property `consumerNetwork` + # @return [String] + attr_accessor :consumer_network + + # Required. The name for both the private zone in the shared producer host + # project and + # the peering zone in the consumer project. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_network = args[:consumer_network] if args.key?(:consumer_network) + @name = args[:name] if args.key?(:name) + end + end + + # Blank message response type for RemoveDnsZone API + class RemoveDnsZoneResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Represents a route that was created or discovered by a private access # management service. class Route include Google::Apis::Core::Hashable @@ -3954,9 +4243,68 @@ @name = args[:name] if args.key?(:name) @oneofs = args[:oneofs] if args.key?(:oneofs) @options = args[:options] if args.key?(:options) @source_context = args[:source_context] if args.key?(:source_context) @syntax = args[:syntax] if args.key?(:syntax) + end + end + + # Metadata provided through GetOperation request for the LRO generated by + # UpdateDnsRecordSet API + class UpdateDnsRecordSetMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to update a record set from a private managed DNS zone in the shared + # producer host project. The name, type, ttl, and data values of the existing + # record set must all exactly match an existing record set in the specified + # zone. + class UpdateDnsRecordSetRequest + include Google::Apis::Core::Hashable + + # Required. The network that the consumer is using to connect with services. + # Must be in the form of projects/`project`/global/networks/`network` + # `project` is the project number, as in '12345' + # `network` is the network name. + # Corresponds to the JSON property `consumerNetwork` + # @return [String] + attr_accessor :consumer_network + + # Represents a DNS record set resource. + # Corresponds to the JSON property `existingDnsRecordSet` + # @return [Google::Apis::ServicenetworkingV1::DnsRecordSet] + attr_accessor :existing_dns_record_set + + # Represents a DNS record set resource. + # Corresponds to the JSON property `newDnsRecordSet` + # @return [Google::Apis::ServicenetworkingV1::DnsRecordSet] + attr_accessor :new_dns_record_set + + # Required. The name of the private DNS zone in the shared producer host project + # from + # which the record set will be removed. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_network = args[:consumer_network] if args.key?(:consumer_network) + @existing_dns_record_set = args[:existing_dns_record_set] if args.key?(:existing_dns_record_set) + @new_dns_record_set = args[:new_dns_record_set] if args.key?(:new_dns_record_set) + @zone = args[:zone] if args.key?(:zone) end end # Configuration controlling usage of a service. class Usage