Skip to content

Commit 93a6cd8

Browse files
feat: Automated regeneration of cloudcontrolspartner v1 client (googleapis#20453)
Auto-created at 2024-10-27 09:27:02 +0000 using the toys pull request generator.
1 parent f5b1046 commit 93a6cd8

File tree

6 files changed

+159
-2
lines changed

6 files changed

+159
-2
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62313,6 +62313,7 @@
6231362313
"/cloudcontrolspartner:v1/Customer/displayName": display_name
6231462314
"/cloudcontrolspartner:v1/Customer/isOnboarded": is_onboarded
6231562315
"/cloudcontrolspartner:v1/Customer/name": name
62316+
"/cloudcontrolspartner:v1/Customer/organizationDomain": organization_domain
6231662317
"/cloudcontrolspartner:v1/CustomerOnboardingState": customer_onboarding_state
6231762318
"/cloudcontrolspartner:v1/CustomerOnboardingState/onboardingSteps": onboarding_steps
6231862319
"/cloudcontrolspartner:v1/CustomerOnboardingState/onboardingSteps/onboarding_step": onboarding_step
@@ -62332,6 +62333,7 @@
6233262333
"/cloudcontrolspartner:v1/EkmMetadata": ekm_metadata
6233362334
"/cloudcontrolspartner:v1/EkmMetadata/ekmEndpointUri": ekm_endpoint_uri
6233462335
"/cloudcontrolspartner:v1/EkmMetadata/ekmSolution": ekm_solution
62336+
"/cloudcontrolspartner:v1/Empty": empty
6233562337
"/cloudcontrolspartner:v1/Gcloud": gcloud
6233662338
"/cloudcontrolspartner:v1/Gcloud/additionalLinks": additional_links
6233762339
"/cloudcontrolspartner:v1/Gcloud/additionalLinks/additional_link": additional_link
@@ -62426,6 +62428,11 @@
6242662428
"/cloudcontrolspartner:v1/WorkloadOnboardingStep/completionTime": completion_time
6242762429
"/cloudcontrolspartner:v1/WorkloadOnboardingStep/startTime": start_time
6242862430
"/cloudcontrolspartner:v1/WorkloadOnboardingStep/step": step
62431+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.create": create_organization_location_customer
62432+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.create/customerId": customer_id
62433+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.create/parent": parent
62434+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.delete": delete_organization_location_customer
62435+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.delete/name": name
6242962436
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.get": get_organization_location_customer
6243062437
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.get/name": name
6243162438
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.list": list_organization_location_customers
@@ -62434,6 +62441,9 @@
6243462441
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.list/pageSize": page_size
6243562442
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.list/pageToken": page_token
6243662443
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.list/parent": parent
62444+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.patch": patch_organization_location_customer
62445+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.patch/name": name
62446+
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.patch/updateMask": update_mask
6243762447
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.workloads.accessApprovalRequests.list": list_organization_location_customer_workload_access_approval_requests
6243862448
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.workloads.accessApprovalRequests.list/filter": filter
6243962449
"/cloudcontrolspartner:v1/cloudcontrolspartner.organizations.locations.customers.workloads.accessApprovalRequests.list/orderBy": order_by

generated/google-apis-cloudcontrolspartner_v1/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-cloudcontrolspartner_v1
22

3+
### v0.8.0 (2024-10-27)
4+
5+
* Regenerated from discovery document revision 20241024
6+
37
### v0.7.0 (2024-09-15)
48

59
* Regenerated from discovery document revision 20240904

generated/google-apis-cloudcontrolspartner_v1/lib/google/apis/cloudcontrolspartner_v1/classes.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ class Customer
170170
# @return [String]
171171
attr_accessor :name
172172

173+
# Output only. The customer organization domain, extracted from CRM Organization’
174+
# s display_name field. e.g. "google.com"
175+
# Corresponds to the JSON property `organizationDomain`
176+
# @return [String]
177+
attr_accessor :organization_domain
178+
173179
def initialize(**args)
174180
update!(**args)
175181
end
@@ -180,6 +186,7 @@ def update!(**args)
180186
@display_name = args[:display_name] if args.key?(:display_name)
181187
@is_onboarded = args[:is_onboarded] if args.key?(:is_onboarded)
182188
@name = args[:name] if args.key?(:name)
189+
@organization_domain = args[:organization_domain] if args.key?(:organization_domain)
183190
end
184191
end
185192

@@ -324,6 +331,22 @@ def update!(**args)
324331
end
325332
end
326333

334+
# A generic empty message that you can re-use to avoid defining duplicated empty
335+
# messages in your APIs. A typical example is to use it as the request or the
336+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
337+
# protobuf.Empty) returns (google.protobuf.Empty); `
338+
class Empty
339+
include Google::Apis::Core::Hashable
340+
341+
def initialize(**args)
342+
update!(**args)
343+
end
344+
345+
# Update properties of this object
346+
def update!(**args)
347+
end
348+
end
349+
327350
# Remediation instructions to resolve violation via gcloud cli
328351
class Gcloud
329352
include Google::Apis::Core::Hashable

generated/google-apis-cloudcontrolspartner_v1/lib/google/apis/cloudcontrolspartner_v1/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 CloudcontrolspartnerV1
1818
# Version of the google-apis-cloudcontrolspartner_v1 gem
19-
GEM_VERSION = "0.7.0"
19+
GEM_VERSION = "0.8.0"
2020

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

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

generated/google-apis-cloudcontrolspartner_v1/lib/google/apis/cloudcontrolspartner_v1/representations.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class Empty
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
8591
class Gcloud
8692
class Representation < Google::Apis::Core::JsonRepresentation; end
8793

@@ -216,6 +222,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
216222
property :display_name, as: 'displayName'
217223
property :is_onboarded, as: 'isOnboarded'
218224
property :name, as: 'name'
225+
property :organization_domain, as: 'organizationDomain'
219226
end
220227
end
221228

@@ -264,6 +271,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
264271
end
265272
end
266273

274+
class Empty
275+
# @private
276+
class Representation < Google::Apis::Core::JsonRepresentation
277+
end
278+
end
279+
267280
class Gcloud
268281
# @private
269282
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,76 @@ def get_organization_location_partner(name, fields: nil, quota_user: nil, option
8282
execute_or_queue_command(command, &block)
8383
end
8484

85+
# Creates a new customer.
86+
# @param [String] parent
87+
# Required. Parent resource Format: `organizations/`organization`/locations/`
88+
# location``
89+
# @param [Google::Apis::CloudcontrolspartnerV1::Customer] customer_object
90+
# @param [String] customer_id
91+
# Required. The customer id to use for the customer, which will become the final
92+
# component of the customer's resource name. The specified value must be a valid
93+
# Google cloud organization id.
94+
# @param [String] fields
95+
# Selector specifying which fields to include in a partial response.
96+
# @param [String] quota_user
97+
# Available to use for quota purposes for server-side applications. Can be any
98+
# arbitrary string assigned to a user, but should not exceed 40 characters.
99+
# @param [Google::Apis::RequestOptions] options
100+
# Request-specific options
101+
#
102+
# @yield [result, err] Result & error if block supplied
103+
# @yieldparam result [Google::Apis::CloudcontrolspartnerV1::Customer] parsed result object
104+
# @yieldparam err [StandardError] error object if request failed
105+
#
106+
# @return [Google::Apis::CloudcontrolspartnerV1::Customer]
107+
#
108+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110+
# @raise [Google::Apis::AuthorizationError] Authorization is required
111+
def create_organization_location_customer(parent, customer_object = nil, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
112+
command = make_simple_command(:post, 'v1/{+parent}/customers', options)
113+
command.request_representation = Google::Apis::CloudcontrolspartnerV1::Customer::Representation
114+
command.request_object = customer_object
115+
command.response_representation = Google::Apis::CloudcontrolspartnerV1::Customer::Representation
116+
command.response_class = Google::Apis::CloudcontrolspartnerV1::Customer
117+
command.params['parent'] = parent unless parent.nil?
118+
command.query['customerId'] = customer_id unless customer_id.nil?
119+
command.query['fields'] = fields unless fields.nil?
120+
command.query['quotaUser'] = quota_user unless quota_user.nil?
121+
execute_or_queue_command(command, &block)
122+
end
123+
124+
# Delete details of a single customer
125+
# @param [String] name
126+
# Required. name of the resource to be deleted format: name=organizations/*/
127+
# locations/*/customers/*
128+
# @param [String] fields
129+
# Selector specifying which fields to include in a partial response.
130+
# @param [String] quota_user
131+
# Available to use for quota purposes for server-side applications. Can be any
132+
# arbitrary string assigned to a user, but should not exceed 40 characters.
133+
# @param [Google::Apis::RequestOptions] options
134+
# Request-specific options
135+
#
136+
# @yield [result, err] Result & error if block supplied
137+
# @yieldparam result [Google::Apis::CloudcontrolspartnerV1::Empty] parsed result object
138+
# @yieldparam err [StandardError] error object if request failed
139+
#
140+
# @return [Google::Apis::CloudcontrolspartnerV1::Empty]
141+
#
142+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144+
# @raise [Google::Apis::AuthorizationError] Authorization is required
145+
def delete_organization_location_customer(name, fields: nil, quota_user: nil, options: nil, &block)
146+
command = make_simple_command(:delete, 'v1/{+name}', options)
147+
command.response_representation = Google::Apis::CloudcontrolspartnerV1::Empty::Representation
148+
command.response_class = Google::Apis::CloudcontrolspartnerV1::Empty
149+
command.params['name'] = name unless name.nil?
150+
command.query['fields'] = fields unless fields.nil?
151+
command.query['quotaUser'] = quota_user unless quota_user.nil?
152+
execute_or_queue_command(command, &block)
153+
end
154+
85155
# Gets details of a single customer
86156
# @param [String] name
87157
# Required. Format: `organizations/`organization`/locations/`location`/customers/
@@ -158,6 +228,43 @@ def list_organization_location_customers(parent, filter: nil, order_by: nil, pag
158228
execute_or_queue_command(command, &block)
159229
end
160230

231+
# Update details of a single customer
232+
# @param [String] name
233+
# Identifier. Format: `organizations/`organization`/locations/`location`/
234+
# customers/`customer``
235+
# @param [Google::Apis::CloudcontrolspartnerV1::Customer] customer_object
236+
# @param [String] update_mask
237+
# Optional. The list of fields to update
238+
# @param [String] fields
239+
# Selector specifying which fields to include in a partial response.
240+
# @param [String] quota_user
241+
# Available to use for quota purposes for server-side applications. Can be any
242+
# arbitrary string assigned to a user, but should not exceed 40 characters.
243+
# @param [Google::Apis::RequestOptions] options
244+
# Request-specific options
245+
#
246+
# @yield [result, err] Result & error if block supplied
247+
# @yieldparam result [Google::Apis::CloudcontrolspartnerV1::Customer] parsed result object
248+
# @yieldparam err [StandardError] error object if request failed
249+
#
250+
# @return [Google::Apis::CloudcontrolspartnerV1::Customer]
251+
#
252+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254+
# @raise [Google::Apis::AuthorizationError] Authorization is required
255+
def patch_organization_location_customer(name, customer_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
256+
command = make_simple_command(:patch, 'v1/{+name}', options)
257+
command.request_representation = Google::Apis::CloudcontrolspartnerV1::Customer::Representation
258+
command.request_object = customer_object
259+
command.response_representation = Google::Apis::CloudcontrolspartnerV1::Customer::Representation
260+
command.response_class = Google::Apis::CloudcontrolspartnerV1::Customer
261+
command.params['name'] = name unless name.nil?
262+
command.query['updateMask'] = update_mask unless update_mask.nil?
263+
command.query['fields'] = fields unless fields.nil?
264+
command.query['quotaUser'] = quota_user unless quota_user.nil?
265+
execute_or_queue_command(command, &block)
266+
end
267+
161268
# Gets details of a single workload
162269
# @param [String] name
163270
# Required. Format: `organizations/`organization`/locations/`location`/customers/

0 commit comments

Comments
 (0)