Skip to content

Commit 46132bb

Browse files
feat: Automated regeneration of cloudidentity v1beta1 client (#24810)
Auto-created at 2025-11-02 09:52:32 +0000 using the toys pull request generator.
1 parent 3849af4 commit 46132bb

File tree

4 files changed

+105
-2
lines changed

4 files changed

+105
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77124,12 +77124,17 @@
7712477124
"/cloudidentity:v1beta1/cloudidentity.orgUnits.memberships.list/parent": parent
7712577125
"/cloudidentity:v1beta1/cloudidentity.orgUnits.memberships.move": move_org_membership
7712677126
"/cloudidentity:v1beta1/cloudidentity.orgUnits.memberships.move/name": name
77127+
"/cloudidentity:v1beta1/cloudidentity.policies.create": create_policy
77128+
"/cloudidentity:v1beta1/cloudidentity.policies.delete": delete_policy
77129+
"/cloudidentity:v1beta1/cloudidentity.policies.delete/name": name
7712777130
"/cloudidentity:v1beta1/cloudidentity.policies.get": get_policy
7712877131
"/cloudidentity:v1beta1/cloudidentity.policies.get/name": name
7712977132
"/cloudidentity:v1beta1/cloudidentity.policies.list": list_policies
7713077133
"/cloudidentity:v1beta1/cloudidentity.policies.list/filter": filter
7713177134
"/cloudidentity:v1beta1/cloudidentity.policies.list/pageSize": page_size
7713277135
"/cloudidentity:v1beta1/cloudidentity.policies.list/pageToken": page_token
77136+
"/cloudidentity:v1beta1/cloudidentity.policies.patch": patch_policy
77137+
"/cloudidentity:v1beta1/cloudidentity.policies.patch/name": name
7713377138
"/cloudidentity:v1beta1/fields": fields
7713477139
"/cloudidentity:v1beta1/key": key
7713577140
"/cloudidentity:v1beta1/quotaUser": quota_user

generated/google-apis-cloudidentity_v1beta1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-cloudidentity_v1beta1
22

3+
### v0.58.0 (2025-11-02)
4+
5+
* Regenerated from discovery document revision 20251027
6+
37
### v0.57.0 (2025-10-26)
48

59
* Regenerated from discovery document revision 20251021

generated/google-apis-cloudidentity_v1beta1/lib/google/apis/cloudidentity_v1beta1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudidentityV1beta1
1818
# Version of the google-apis-cloudidentity_v1beta1 gem
19-
GEM_VERSION = "0.57.0"
19+
GEM_VERSION = "0.58.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251021"
25+
REVISION = "20251027"
2626
end
2727
end
2828
end

generated/google-apis-cloudidentity_v1beta1/lib/google/apis/cloudidentity_v1beta1/service.rb

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,6 +2592,66 @@ def move_org_membership(name, move_org_membership_request_object = nil, fields:
25922592
execute_or_queue_command(command, &block)
25932593
end
25942594

2595+
# Create a policy.
2596+
# @param [Google::Apis::CloudidentityV1beta1::Policy] policy_object
2597+
# @param [String] fields
2598+
# Selector specifying which fields to include in a partial response.
2599+
# @param [String] quota_user
2600+
# Available to use for quota purposes for server-side applications. Can be any
2601+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2602+
# @param [Google::Apis::RequestOptions] options
2603+
# Request-specific options
2604+
#
2605+
# @yield [result, err] Result & error if block supplied
2606+
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
2607+
# @yieldparam err [StandardError] error object if request failed
2608+
#
2609+
# @return [Google::Apis::CloudidentityV1beta1::Operation]
2610+
#
2611+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2612+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2613+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2614+
def create_policy(policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2615+
command = make_simple_command(:post, 'v1beta1/policies', options)
2616+
command.request_representation = Google::Apis::CloudidentityV1beta1::Policy::Representation
2617+
command.request_object = policy_object
2618+
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
2619+
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
2620+
command.query['fields'] = fields unless fields.nil?
2621+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2622+
execute_or_queue_command(command, &block)
2623+
end
2624+
2625+
# Delete a policy.
2626+
# @param [String] name
2627+
# Required. The name of the policy to retrieve. Format: "policies/`policy`".
2628+
# @param [String] fields
2629+
# Selector specifying which fields to include in a partial response.
2630+
# @param [String] quota_user
2631+
# Available to use for quota purposes for server-side applications. Can be any
2632+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2633+
# @param [Google::Apis::RequestOptions] options
2634+
# Request-specific options
2635+
#
2636+
# @yield [result, err] Result & error if block supplied
2637+
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
2638+
# @yieldparam err [StandardError] error object if request failed
2639+
#
2640+
# @return [Google::Apis::CloudidentityV1beta1::Operation]
2641+
#
2642+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2643+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2644+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2645+
def delete_policy(name, fields: nil, quota_user: nil, options: nil, &block)
2646+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2647+
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
2648+
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
2649+
command.params['name'] = name unless name.nil?
2650+
command.query['fields'] = fields unless fields.nil?
2651+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2652+
execute_or_queue_command(command, &block)
2653+
end
2654+
25952655
# Get a policy.
25962656
# @param [String] name
25972657
# Required. The name of the policy to retrieve. Format: "policies/`policy`".
@@ -2674,6 +2734,40 @@ def list_policies(filter: nil, page_size: nil, page_token: nil, fields: nil, quo
26742734
command.query['quotaUser'] = quota_user unless quota_user.nil?
26752735
execute_or_queue_command(command, &block)
26762736
end
2737+
2738+
# Update a policy.
2739+
# @param [String] name
2740+
# Output only. Identifier. The [resource name](https://cloud.google.com/apis/
2741+
# design/resource_names) of the Policy. Format: policies/`policy`.
2742+
# @param [Google::Apis::CloudidentityV1beta1::Policy] policy_object
2743+
# @param [String] fields
2744+
# Selector specifying which fields to include in a partial response.
2745+
# @param [String] quota_user
2746+
# Available to use for quota purposes for server-side applications. Can be any
2747+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2748+
# @param [Google::Apis::RequestOptions] options
2749+
# Request-specific options
2750+
#
2751+
# @yield [result, err] Result & error if block supplied
2752+
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
2753+
# @yieldparam err [StandardError] error object if request failed
2754+
#
2755+
# @return [Google::Apis::CloudidentityV1beta1::Operation]
2756+
#
2757+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2758+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2759+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2760+
def patch_policy(name, policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2761+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2762+
command.request_representation = Google::Apis::CloudidentityV1beta1::Policy::Representation
2763+
command.request_object = policy_object
2764+
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
2765+
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
2766+
command.params['name'] = name unless name.nil?
2767+
command.query['fields'] = fields unless fields.nil?
2768+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2769+
execute_or_queue_command(command, &block)
2770+
end
26772771

26782772
protected
26792773

0 commit comments

Comments
 (0)