Skip to content

Commit

Permalink
feat: Automated regeneration of connectors v1 client (googleapis#19269)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-19 11:07:12 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored May 21, 2024
1 parent 7b30b07 commit cca97cc
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 4 deletions.
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-connectors_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -1188,13 +1188,19 @@ 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

# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
@level = args[:level] if args.key?(:level)
end
end

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -1083,6 +1089,7 @@ class ConnectorsLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :level, as: 'level'
end
end

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/*/
Expand Down

0 comments on commit cca97cc

Please sign in to comment.