From cca97cc558c93c47e89cde9c76dec44444de5022 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 21 May 2024 10:32:18 -0700 Subject: [PATCH] feat: Automated regeneration of connectors v1 client (#19269) Auto-created at 2024-05-19 11:07:12 +0000 using the toys pull request generator. --- api_names_out.yaml | 5 +++ .../google-apis-connectors_v1/CHANGELOG.md | 5 +++ .../google-apis-connectors_v1.gemspec | 2 +- .../lib/google/apis/connectors_v1/classes.rb | 28 +++++++++++++++ .../google/apis/connectors_v1/gem_version.rb | 6 ++-- .../apis/connectors_v1/representations.rb | 14 ++++++++ .../lib/google/apis/connectors_v1/service.rb | 35 +++++++++++++++++++ 7 files changed, 91 insertions(+), 4 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 4a3a8124aa8..c9896b74ecf 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -107813,6 +107813,7 @@ "/connectors:v1/ConnectorVersionInfraConfig/sharedDeployment": shared_deployment "/connectors:v1/ConnectorsLogConfig": connectors_log_config "/connectors:v1/ConnectorsLogConfig/enabled": enabled +"/connectors:v1/ConnectorsLogConfig/level": level "/connectors:v1/CustomConnector": custom_connector "/connectors:v1/CustomConnector/activeConnectorVersions": active_connector_versions "/connectors:v1/CustomConnector/activeConnectorVersions/active_connector_version": active_connector_version @@ -107861,6 +107862,7 @@ "/connectors:v1/DenyMaintenancePeriod/endDate": end_date "/connectors:v1/DenyMaintenancePeriod/startDate": start_date "/connectors:v1/DenyMaintenancePeriod/time": time +"/connectors:v1/DeprecateCustomConnectorVersionRequest": deprecate_custom_connector_version_request "/connectors:v1/Destination": destination "/connectors:v1/Destination/host": host "/connectors:v1/Destination/port": port @@ -107898,6 +107900,7 @@ "/connectors:v1/EndpointAttachment": endpoint_attachment "/connectors:v1/EndpointAttachment/createTime": create_time "/connectors:v1/EndpointAttachment/description": description +"/connectors:v1/EndpointAttachment/endpointGlobalAccess": endpoint_global_access "/connectors:v1/EndpointAttachment/endpointIp": endpoint_ip "/connectors:v1/EndpointAttachment/labels": labels "/connectors:v1/EndpointAttachment/labels/label": label @@ -108530,6 +108533,8 @@ "/connectors:v1/connectors.projects.locations.connections.testIamPermissions/resource": resource "/connectors:v1/connectors.projects.locations.customConnectors.customConnectorVersions.delete": delete_project_location_custom_connector_custom_connector_version "/connectors:v1/connectors.projects.locations.customConnectors.customConnectorVersions.delete/name": name +"/connectors:v1/connectors.projects.locations.customConnectors.customConnectorVersions.deprecate": deprecate_custom_connector_version +"/connectors:v1/connectors.projects.locations.customConnectors.customConnectorVersions.deprecate/name": name "/connectors:v1/connectors.projects.locations.customConnectors.validateCustomConnectorSpec": validate_custom_connector_spec "/connectors:v1/connectors.projects.locations.customConnectors.validateCustomConnectorSpec/parent": parent "/connectors:v1/connectors.projects.locations.endpointAttachments.create": create_project_location_endpoint_attachment diff --git a/generated/google-apis-connectors_v1/CHANGELOG.md b/generated/google-apis-connectors_v1/CHANGELOG.md index bde170e0e56..f977d290fa8 100644 --- a/generated/google-apis-connectors_v1/CHANGELOG.md +++ b/generated/google-apis-connectors_v1/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history for google-apis-connectors_v1 +### v0.58.0 (2024-05-19) + +* Regenerated from discovery document revision 20240504 +* Regenerated using generator version 0.15.0 + ### v0.57.0 (2024-04-21) * Regenerated from discovery document revision 20240415 diff --git a/generated/google-apis-connectors_v1/google-apis-connectors_v1.gemspec b/generated/google-apis-connectors_v1/google-apis-connectors_v1.gemspec index b6657453394..f1480d59233 100644 --- a/generated/google-apis-connectors_v1/google-apis-connectors_v1.gemspec +++ b/generated/google-apis-connectors_v1/google-apis-connectors_v1.gemspec @@ -29,5 +29,5 @@ Gem::Specification.new do |gem| gem.require_paths = ["lib"] gem.required_ruby_version = '>= 2.7' - gem.add_runtime_dependency "google-apis-core", ">= 0.14.0", "< 2.a" + gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a" end diff --git a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/classes.rb b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/classes.rb index 804edbff2c4..e7dcbdf46be 100644 --- a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/classes.rb +++ b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/classes.rb @@ -1188,6 +1188,11 @@ class ConnectorsLogConfig attr_accessor :enabled alias_method :enabled?, :enabled + # Optional. Log configuration level. + # Corresponds to the JSON property `level` + # @return [String] + attr_accessor :level + def initialize(**args) update!(**args) end @@ -1195,6 +1200,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) + @level = args[:level] if args.key?(:level) end end @@ -1511,6 +1517,19 @@ def update!(**args) end end + # Request message for ConnectorsService.DeprecateCustomConnectorVersion + class DeprecateCustomConnectorVersionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # class Destination include Google::Apis::Core::Hashable @@ -1781,6 +1800,14 @@ class EndpointAttachment # @return [String] attr_accessor :description + # Optional. The Private Service Connect Connection Endpoint Global Access. https: + # //cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints# + # global-access + # Corresponds to the JSON property `endpointGlobalAccess` + # @return [Boolean] + attr_accessor :endpoint_global_access + alias_method :endpoint_global_access?, :endpoint_global_access + # Output only. The Private Service Connect connection endpoint ip # Corresponds to the JSON property `endpointIp` # @return [String] @@ -1817,6 +1844,7 @@ def initialize(**args) def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) + @endpoint_global_access = args[:endpoint_global_access] if args.key?(:endpoint_global_access) @endpoint_ip = args[:endpoint_ip] if args.key?(:endpoint_ip) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) diff --git a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/gem_version.rb b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/gem_version.rb index 1018cdba2c7..1e3b4bd9130 100644 --- a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/gem_version.rb +++ b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ConnectorsV1 # Version of the google-apis-connectors_v1 gem - GEM_VERSION = "0.57.0" + GEM_VERSION = "0.58.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.14.0" + GENERATOR_VERSION = "0.15.0" # Revision of the discovery document this client was generated from - REVISION = "20240415" + REVISION = "20240504" end end end diff --git a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/representations.rb b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/representations.rb index a3c83474578..27a0e224711 100644 --- a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/representations.rb +++ b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/representations.rb @@ -166,6 +166,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DeprecateCustomConnectorVersionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Destination class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1083,6 +1089,7 @@ class ConnectorsLogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :enabled, as: 'enabled' + property :level, as: 'level' end end @@ -1161,6 +1168,12 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class DeprecateCustomConnectorVersionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Destination # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1240,6 +1253,7 @@ class EndpointAttachment class Representation < Google::Apis::Core::JsonRepresentation property :create_time, as: 'createTime' property :description, as: 'description' + property :endpoint_global_access, as: 'endpointGlobalAccess' property :endpoint_ip, as: 'endpointIp' hash :labels, as: 'labels' property :name, as: 'name' diff --git a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/service.rb b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/service.rb index 944763ab6ff..971739745d3 100644 --- a/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/service.rb +++ b/generated/google-apis-connectors_v1/lib/google/apis/connectors_v1/service.rb @@ -1229,6 +1229,41 @@ def delete_project_location_custom_connector_custom_connector_version(name, fiel execute_or_queue_command(command, &block) end + # Deprecates a single CustomConnectorVersion. + # @param [String] name + # Required. Resource name of the form: `projects/`project`/locations/`location`/ + # customConnectors/`custom_connector`/customConnectorVersions/` + # custom_connector_version`` + # @param [Google::Apis::ConnectorsV1::DeprecateCustomConnectorVersionRequest] deprecate_custom_connector_version_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::ConnectorsV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ConnectorsV1::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 deprecate_custom_connector_version(name, deprecate_custom_connector_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:deprecate', options) + command.request_representation = Google::Apis::ConnectorsV1::DeprecateCustomConnectorVersionRequest::Representation + command.request_object = deprecate_custom_connector_version_request_object + command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation + command.response_class = Google::Apis::ConnectorsV1::Operation + command.params['name'] = name unless name.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 new EndpointAttachment in a given project and location. # @param [String] parent # Required. Parent resource of the EndpointAttachment, of the form: `projects/*/