diff --git a/api_names_out.yaml b/api_names_out.yaml index 008181b66..7ce0dc876 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -136091,6 +136091,8 @@ "/servicenetworking:v1/Type/options/option": option "/servicenetworking:v1/Type/sourceContext": source_context "/servicenetworking:v1/Type/syntax": syntax +"/servicenetworking:v1/UpdateConsumerConfigRequest": update_consumer_config_request +"/servicenetworking:v1/UpdateConsumerConfigRequest/consumerConfig": consumer_config "/servicenetworking:v1/UpdateDnsRecordSetMetadata": update_dns_record_set_metadata "/servicenetworking:v1/UpdateDnsRecordSetRequest": update_dns_record_set_request "/servicenetworking:v1/UpdateDnsRecordSetRequest/consumerNetwork": consumer_network @@ -136161,6 +136163,8 @@ "/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.delete/name": name "/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.list": list_service_project_global_network_peered_dns_domains "/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.list/parent": parent +"/servicenetworking:v1/servicenetworking.services.projects.global.networks.updateConsumerConfig": update_network_consumer_config +"/servicenetworking:v1/servicenetworking.services.projects.global.networks.updateConsumerConfig/parent": parent "/servicenetworking:v1/servicenetworking.services.roles.add": add_roles "/servicenetworking:v1/servicenetworking.services.roles.add/parent": parent "/servicenetworking:v1/servicenetworking.services.searchRange": search_service_range diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index b8998e542..b2bf0890c 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20201021' + REVISION = '20201104' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index cd5e0e488..1320be28c 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -415,7 +415,7 @@ module Google # URL of the provider's public key set to validate signature of the JWT. See [ # OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# # ProviderMetadata). Optional if the key set document: - can be retrieved from [ - # OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html + # OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) # of the issuer. - can be inferred from the email domain of the issuer (e.g. a # Google service account). Example: https://www.googleapis.com/oauth2/v1/certs # Corresponds to the JSON property `jwksUri` @@ -3870,6 +3870,27 @@ module Google end end + # Request to update the configuration of a service networking connection + # including the import/export of custom routes and subnetwork routes with public + # IP. + class UpdateConsumerConfigRequest + include Google::Apis::Core::Hashable + + # Configuration information for a private service access connection. + # Corresponds to the JSON property `consumerConfig` + # @return [Google::Apis::ServicenetworkingV1::ConsumerConfig] + attr_accessor :consumer_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_config = args[:consumer_config] if args.key?(:consumer_config) + end + end + # Metadata provided through GetOperation request for the LRO generated by # UpdateDnsRecordSet API class UpdateDnsRecordSetMetadata diff --git a/generated/google/apis/servicenetworking_v1/representations.rb b/generated/google/apis/servicenetworking_v1/representations.rb index 02f085813..e03fa51d7 100644 --- a/generated/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google/apis/servicenetworking_v1/representations.rb @@ -562,6 +562,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateConsumerConfigRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateDnsRecordSetMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1498,6 +1504,14 @@ module Google end end + class UpdateConsumerConfigRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consumer_config, as: 'consumerConfig', class: Google::Apis::ServicenetworkingV1::ConsumerConfig, decorator: Google::Apis::ServicenetworkingV1::ConsumerConfig::Representation + + end + end + class UpdateDnsRecordSetMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/servicenetworking_v1/service.rb b/generated/google/apis/servicenetworking_v1/service.rb index 4b6d582c7..19fef202e 100644 --- a/generated/google/apis/servicenetworking_v1/service.rb +++ b/generated/google/apis/servicenetworking_v1/service.rb @@ -698,6 +698,48 @@ module Google execute_or_queue_command(command, &block) end + # Service producers use this method to update the configuration of their + # connection including the import/export of custom routes and subnetwork routes + # with public IP. + # @param [String] parent + # Required. Parent resource identifying the connection for which the consumer + # config is being updated in the format: `services/`service`/projects/`project`/ + # global/networks/`network`` `service` is the peering service that is managing + # connectivity for the service producer's organization. For Google services that + # support this functionality, this value is `servicenetworking.googleapis.com`. ` + # project` is the number of the project that contains the service consumer's VPC + # network e.g. `12345`. `network` is the name of the service consumer's VPC + # network. + # @param [Google::Apis::ServicenetworkingV1::UpdateConsumerConfigRequest] update_consumer_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ServicenetworkingV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicenetworkingV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_network_consumer_config(parent, update_consumer_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+parent}:updateConsumerConfig', options) + command.request_representation = Google::Apis::ServicenetworkingV1::UpdateConsumerConfigRequest::Representation + command.request_object = update_consumer_config_request_object + command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation + command.response_class = Google::Apis::ServicenetworkingV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a peered DNS domain which sends requests for records in given # namespace originating in the service producer VPC network to the consumer VPC # network to be resolved. diff --git a/generated/google/apis/servicenetworking_v1/synth.metadata b/generated/google/apis/servicenetworking_v1/synth.metadata index ad685105d..d836485a6 100644 --- a/generated/google/apis/servicenetworking_v1/synth.metadata +++ b/generated/google/apis/servicenetworking_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "d53bec90ed2ca3cdd76158f2fc018b05fe3d2027" + "sha": "6e81270051b57ce334c9929cbf56efdd34172726" } } ]