@@ -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