google-apis-chromepolicy_v1 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -236,6 +236,138 @@ module Google
236
236
  execute_or_queue_command(command, &block)
237
237
  end
238
238
 
239
+ # Creates a certificate at a specified OU for a customer.
240
+ # @param [String] customer
241
+ # Required. The customer for which the certificate will apply.
242
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineCertificateRequest] google_chrome_policy_v1_define_certificate_request_object
243
+ # @param [String] fields
244
+ # Selector specifying which fields to include in a partial response.
245
+ # @param [String] quota_user
246
+ # Available to use for quota purposes for server-side applications. Can be any
247
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
248
+ # @param [Google::Apis::RequestOptions] options
249
+ # Request-specific options
250
+ #
251
+ # @yield [result, err] Result & error if block supplied
252
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineCertificateResponse] parsed result object
253
+ # @yieldparam err [StandardError] error object if request failed
254
+ #
255
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineCertificateResponse]
256
+ #
257
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
258
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
259
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
260
+ def define_customer_policy_network_certificate(customer, google_chrome_policy_v1_define_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
261
+ command = make_simple_command(:post, 'v1/{+customer}/policies/networks:defineCertificate', options)
262
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineCertificateRequest::Representation
263
+ command.request_object = google_chrome_policy_v1_define_certificate_request_object
264
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineCertificateResponse::Representation
265
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineCertificateResponse
266
+ command.params['customer'] = customer unless customer.nil?
267
+ command.query['fields'] = fields unless fields.nil?
268
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
269
+ execute_or_queue_command(command, &block)
270
+ end
271
+
272
+ # Define a new network.
273
+ # @param [String] customer
274
+ # Required. The customer who will own this new network.
275
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkRequest] google_chrome_policy_v1_define_network_request_object
276
+ # @param [String] fields
277
+ # Selector specifying which fields to include in a partial response.
278
+ # @param [String] quota_user
279
+ # Available to use for quota purposes for server-side applications. Can be any
280
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
281
+ # @param [Google::Apis::RequestOptions] options
282
+ # Request-specific options
283
+ #
284
+ # @yield [result, err] Result & error if block supplied
285
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkResponse] parsed result object
286
+ # @yieldparam err [StandardError] error object if request failed
287
+ #
288
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkResponse]
289
+ #
290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
293
+ def define_customer_policy_network_network(customer, google_chrome_policy_v1_define_network_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
294
+ command = make_simple_command(:post, 'v1/{+customer}/policies/networks:defineNetwork', options)
295
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkRequest::Representation
296
+ command.request_object = google_chrome_policy_v1_define_network_request_object
297
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkResponse::Representation
298
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkResponse
299
+ command.params['customer'] = customer unless customer.nil?
300
+ command.query['fields'] = fields unless fields.nil?
301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
302
+ execute_or_queue_command(command, &block)
303
+ end
304
+
305
+ # Remove an existing certificate by guid.
306
+ # @param [String] customer
307
+ # Required. The customer whose certificate will be removed.
308
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveCertificateRequest] google_chrome_policy_v1_remove_certificate_request_object
309
+ # @param [String] fields
310
+ # Selector specifying which fields to include in a partial response.
311
+ # @param [String] quota_user
312
+ # Available to use for quota purposes for server-side applications. Can be any
313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
314
+ # @param [Google::Apis::RequestOptions] options
315
+ # Request-specific options
316
+ #
317
+ # @yield [result, err] Result & error if block supplied
318
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveCertificateResponse] parsed result object
319
+ # @yieldparam err [StandardError] error object if request failed
320
+ #
321
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveCertificateResponse]
322
+ #
323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
326
+ def remove_customer_policy_network_certificate(customer, google_chrome_policy_v1_remove_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
327
+ command = make_simple_command(:post, 'v1/{+customer}/policies/networks:removeCertificate', options)
328
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveCertificateRequest::Representation
329
+ command.request_object = google_chrome_policy_v1_remove_certificate_request_object
330
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveCertificateResponse::Representation
331
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveCertificateResponse
332
+ command.params['customer'] = customer unless customer.nil?
333
+ command.query['fields'] = fields unless fields.nil?
334
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
335
+ execute_or_queue_command(command, &block)
336
+ end
337
+
338
+ # Remove an existing network by guid.
339
+ # @param [String] customer
340
+ # Required. The customer whose network will be removed.
341
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveNetworkRequest] google_chrome_policy_v1_remove_network_request_object
342
+ # @param [String] fields
343
+ # Selector specifying which fields to include in a partial response.
344
+ # @param [String] quota_user
345
+ # Available to use for quota purposes for server-side applications. Can be any
346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
347
+ # @param [Google::Apis::RequestOptions] options
348
+ # Request-specific options
349
+ #
350
+ # @yield [result, err] Result & error if block supplied
351
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveNetworkResponse] parsed result object
352
+ # @yieldparam err [StandardError] error object if request failed
353
+ #
354
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveNetworkResponse]
355
+ #
356
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
359
+ def remove_customer_policy_network_network(customer, google_chrome_policy_v1_remove_network_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
360
+ command = make_simple_command(:post, 'v1/{+customer}/policies/networks:removeNetwork', options)
361
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveNetworkRequest::Representation
362
+ command.request_object = google_chrome_policy_v1_remove_network_request_object
363
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveNetworkResponse::Representation
364
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1RemoveNetworkResponse
365
+ command.params['customer'] = customer unless customer.nil?
366
+ command.query['fields'] = fields unless fields.nil?
367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
368
+ execute_or_queue_command(command, &block)
369
+ end
370
+
239
371
  # Modify multiple policy values that are applied to a specific org unit so that
240
372
  # they now inherit the value from a parent (if applicable). All targets must
241
373
  # have the same target format. That is to say that they must point to the same
@@ -327,18 +459,18 @@ module Google
327
459
  # Request-specific options
328
460
  #
329
461
  # @yield [result, err] Result & error if block supplied
330
- # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchema] parsed result object
462
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchema] parsed result object
331
463
  # @yieldparam err [StandardError] error object if request failed
332
464
  #
333
- # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchema]
465
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchema]
334
466
  #
335
467
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
336
468
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
337
469
  # @raise [Google::Apis::AuthorizationError] Authorization is required
338
470
  def get_customer_policy_schema(name, fields: nil, quota_user: nil, options: nil, &block)
339
471
  command = make_simple_command(:get, 'v1/{+name}', options)
340
- command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchema::Representation
341
- command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchema
472
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchema::Representation
473
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchema
342
474
  command.params['name'] = name unless name.nil?
343
475
  command.query['fields'] = fields unless fields.nil?
344
476
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -353,7 +485,8 @@ module Google
353
485
  # The schema filter used to find a particular schema based on fields like its
354
486
  # resource name, description and `additionalTargetKeyNames`.
355
487
  # @param [Fixnum] page_size
356
- # The maximum number of policy schemas to return.
488
+ # The maximum number of policy schemas to return, defaults to 100 and has a
489
+ # maximum of 1000.
357
490
  # @param [String] page_token
358
491
  # The page token used to retrieve a specific page of the listing request.
359
492
  # @param [String] fields
@@ -365,18 +498,18 @@ module Google
365
498
  # Request-specific options
366
499
  #
367
500
  # @yield [result, err] Result & error if block supplied
368
- # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListPolicySchemasResponse] parsed result object
501
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1ListPolicySchemasResponse] parsed result object
369
502
  # @yieldparam err [StandardError] error object if request failed
370
503
  #
371
- # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListPolicySchemasResponse]
504
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1ListPolicySchemasResponse]
372
505
  #
373
506
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
376
509
  def list_customer_policy_schemas(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
377
510
  command = make_simple_command(:get, 'v1/{+parent}/policySchemas', options)
378
- command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListPolicySchemasResponse::Representation
379
- command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListPolicySchemasResponse
511
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1ListPolicySchemasResponse::Representation
512
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1ListPolicySchemasResponse
380
513
  command.params['parent'] = parent unless parent.nil?
381
514
  command.query['filter'] = filter unless filter.nil?
382
515
  command.query['pageSize'] = page_size unless page_size.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chromepolicy_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromepolicy_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.28.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromepolicy_v1
63
63
  post_install_message:
64
64
  rdoc_options: []