Skip to content

Commit

Permalink
feat: Automated regeneration of beyondcorp v1 client (#20495)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-03 09:32:30 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 3, 2024
1 parent 05a7c4c commit b00b72f
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 39 deletions.
2 changes: 2 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44432,6 +44432,8 @@
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.patch/name": name
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.patch/requestId": request_id
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.patch/updateMask": update_mask
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.setIamPolicy": set_project_location_security_gateway_iam_policy
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.setIamPolicy/resource": resource
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.setPeering": set_project_location_security_gateway_peering
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.setPeering/securityGateway": security_gateway
"/beyondcorp:v1/beyondcorp.projects.locations.securityGateways.testIamPermissions": test_project_location_security_gateway_iam_permissions
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-beyondcorp_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-beyondcorp_v1

### v0.30.0 (2024-11-03)

* Regenerated from discovery document revision 20241024

### v0.29.0 (2024-10-20)

* Regenerated from discovery document revision 20241011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module BeyondcorpV1
# Version of the google-apis-beyondcorp_v1 gem
GEM_VERSION = "0.29.0"
GEM_VERSION = "0.30.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"

# Revision of the discovery document this client was generated from
REVISION = "20241011"
REVISION = "20241024"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2594,6 +2594,43 @@ def patch_project_location_security_gateway(name, google_cloud_beyondcorp_securi
execute_or_queue_command(command, &block)
end

# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. See [Resource
# names](https://cloud.google.com/apis/design/resource_names) for the
# appropriate value for this field.
# @param [Google::Apis::BeyondcorpV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::BeyondcorpV1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BeyondcorpV1::GoogleIamV1Policy]
#
# @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 set_project_location_security_gateway_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::BeyondcorpV1::GoogleIamV1SetIamPolicyRequest::Representation
command.request_object = google_iam_v1_set_iam_policy_request_object
command.response_representation = Google::Apis::BeyondcorpV1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::BeyondcorpV1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# This is a custom method to allow customers to create a peering connections
# between Google network and customer networks. This is enabled only for the
# allowlisted customers.
Expand Down Expand Up @@ -2880,43 +2917,6 @@ def set_project_location_security_gateway_application_iam_policy(resource, googl
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. See [Resource
# names](https://cloud.google.com/apis/design/resource_names) for the
# appropriate value for this field.
# @param [Google::Apis::BeyondcorpV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::BeyondcorpV1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BeyondcorpV1::GoogleIamV1Policy]
#
# @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 set_v_project_location_security_gateway_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::BeyondcorpV1::GoogleIamV1SetIamPolicyRequest::Representation
command.request_object = google_iam_v1_set_iam_policy_request_object
command.response_representation = Google::Apis::BeyondcorpV1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::BeyondcorpV1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

protected

Expand Down

0 comments on commit b00b72f

Please sign in to comment.