Skip to content

Commit

Permalink
feat: Automated regeneration of clouddeploy v1 client (googleapis#17649)
Browse files Browse the repository at this point in the history
Auto-created at 2024-01-28 10:10:54 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 28, 2024
1 parent f182c69 commit 9e36508
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 3 deletions.
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57043,6 +57043,9 @@
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.delete/validateOnly": validate_only
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.get": get_project_location_custom_target_type
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.get/name": name
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.getIamPolicy": get_project_location_custom_target_type_iam_policy
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.getIamPolicy/resource": resource
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.list": list_project_location_custom_target_types
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.list/filter": filter
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.list/orderBy": order_by
Expand All @@ -57055,6 +57058,8 @@
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.patch/requestId": request_id
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.patch/updateMask": update_mask
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.patch/validateOnly": validate_only
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.setIamPolicy": set_custom_target_type_iam_policy
"/clouddeploy:v1/clouddeploy.projects.locations.customTargetTypes.setIamPolicy/resource": resource
"/clouddeploy:v1/clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel": cancel_automation_run
"/clouddeploy:v1/clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel/name": name
"/clouddeploy:v1/clouddeploy.projects.locations.deliveryPipelines.automationRuns.get": get_project_location_delivery_pipeline_automation_run
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-clouddeploy_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-clouddeploy_v1

### v0.39.0 (2024-01-28)

* Regenerated from discovery document revision 20240117
* Regenerated using generator version 0.13.1

### v0.38.0 (2024-01-22)

* Regenerated from discovery document revision 20240107
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ClouddeployV1
# Version of the google-apis-clouddeploy_v1 gem
GEM_VERSION = "0.38.0"
GEM_VERSION = "0.39.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20240107"
REVISION = "20240117"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,51 @@ def get_project_location_custom_target_type(name, fields: nil, quota_user: nil,
execute_or_queue_command(command, &block)
end

# Gets the access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. See [Resource
# names](https://cloud.google.com/apis/design/resource_names) for the
# appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The maximum policy version that will be used to format the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected. Requests for policies with any conditional role bindings must
# specify version 3. Policies with no conditional role bindings may specify any
# valid value or leave the field unset. The policy in the response might use the
# policy version that you specified, or it might use a lower policy version. For
# example, if you specify version 3, but the policy has no conditional role
# bindings, the response uses version 1. To learn which resources support
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
# google.com/iam/help/conditions/resource-policies).
# @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::ClouddeployV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddeployV1::Policy]
#
# @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 get_project_location_custom_target_type_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::ClouddeployV1::Policy::Representation
command.response_class = Google::Apis::ClouddeployV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Lists CustomTargetTypes in a given project and location.
# @param [String] parent
# Required. The parent that owns this collection of custom target types. Format
Expand Down Expand Up @@ -406,6 +451,43 @@ def patch_project_location_custom_target_type(name, custom_target_type_object =
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::ClouddeployV1::SetIamPolicyRequest] 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::ClouddeployV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddeployV1::Policy]
#
# @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_custom_target_type_iam_policy(resource, 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::ClouddeployV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::ClouddeployV1::Policy::Representation
command.response_class = Google::Apis::ClouddeployV1::Policy
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

# Creates a new DeliveryPipeline in a given project and location.
# @param [String] parent
# Required. The parent collection in which the `DeliveryPipeline` should be
Expand Down

0 comments on commit 9e36508

Please sign in to comment.