google-apis-admin_directory_v1 0.32.0 → 0.33.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e08475da20fd3e61ff3b457bee397ea74ab5aa8cc30c528aed09268ff4f74f3
4
- data.tar.gz: 412c84472cab3eae8a8550e121d31eeea80d0f18133eb941b0ae47ac9aecc040
3
+ metadata.gz: e5eb6d3bf491c891aa0f9dcaa3ab1ff5b3c9b3f0e0f32f6d0d3cf5d9f78d9ec0
4
+ data.tar.gz: 1df71c1f913359090a392bfc11fd31a0f9a1a83761537ce17f493b5b7a4ba436
5
5
  SHA512:
6
- metadata.gz: f159e698aa89138f79b9d4a7cc0681135cb8dce12812e259f05c98944696454cccb7a0b4a03062c114845a3f29a641ba335bca7387e19a0f3f299bdef4b758b4
7
- data.tar.gz: d7cc809548bb127fc7df11b6f648c2339683c0ae6e54ba2f56b91072cdeaff91e200779740e1c466bf5a4d59cea3d3652a54df941bb8cf9e439a7abafc2ee7e1
6
+ metadata.gz: 51d8a83eae45d884564d7256c6d400d53407fc909fc970d03c5d3d4804e3319983abb2e7bb645d6ad13fd29a7be1cab3b665737816899f8b5a497b2c417a7cc7
7
+ data.tar.gz: 3dafdfa8f4b39684bb028d572618ca685a198776d9a39283c8dffa1c04e42f679c83028cd1fde0ed210dffb04bad6a683cb3f52c537467ba8f8f7188fed9057e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-admin_directory_v1
2
2
 
3
+ ### v0.33.0 (2022-09-24)
4
+
5
+ * Regenerated from discovery document revision 20220919
6
+ * Regenerated using generator version 0.10.0
7
+
3
8
  ### v0.32.0 (2022-09-16)
4
9
 
5
10
  * Regenerated from discovery document revision 20220913
@@ -224,6 +224,51 @@ module Google
224
224
  end
225
225
  end
226
226
 
227
+ # Request to add multiple new print servers in a batch.
228
+ class BatchCreatePrintServersRequest
229
+ include Google::Apis::Core::Hashable
230
+
231
+ # Required. A list of `PrintServer` resources to be created (max `50` per batch).
232
+ # Corresponds to the JSON property `requests`
233
+ # @return [Array<Google::Apis::AdminDirectoryV1::CreatePrintServerRequest>]
234
+ attr_accessor :requests
235
+
236
+ def initialize(**args)
237
+ update!(**args)
238
+ end
239
+
240
+ # Update properties of this object
241
+ def update!(**args)
242
+ @requests = args[:requests] if args.key?(:requests)
243
+ end
244
+ end
245
+
246
+ #
247
+ class BatchCreatePrintServersResponse
248
+ include Google::Apis::Core::Hashable
249
+
250
+ # A list of create failures. `PrintServer` IDs are not populated, as print
251
+ # servers were not created.
252
+ # Corresponds to the JSON property `failures`
253
+ # @return [Array<Google::Apis::AdminDirectoryV1::PrintServerFailureInfo>]
254
+ attr_accessor :failures
255
+
256
+ # A list of successfully created print servers with their IDs populated.
257
+ # Corresponds to the JSON property `printServers`
258
+ # @return [Array<Google::Apis::AdminDirectoryV1::PrintServer>]
259
+ attr_accessor :print_servers
260
+
261
+ def initialize(**args)
262
+ update!(**args)
263
+ end
264
+
265
+ # Update properties of this object
266
+ def update!(**args)
267
+ @failures = args[:failures] if args.key?(:failures)
268
+ @print_servers = args[:print_servers] if args.key?(:print_servers)
269
+ end
270
+ end
271
+
227
272
  # Request for adding new printers in batch.
228
273
  class BatchCreatePrintersRequest
229
274
  include Google::Apis::Core::Hashable
@@ -269,6 +314,50 @@ module Google
269
314
  end
270
315
  end
271
316
 
317
+ # Request to delete multiple existing print servers in a batch.
318
+ class BatchDeletePrintServersRequest
319
+ include Google::Apis::Core::Hashable
320
+
321
+ # A list of print server IDs that should be deleted (max `100` per batch).
322
+ # Corresponds to the JSON property `printServerIds`
323
+ # @return [Array<String>]
324
+ attr_accessor :print_server_ids
325
+
326
+ def initialize(**args)
327
+ update!(**args)
328
+ end
329
+
330
+ # Update properties of this object
331
+ def update!(**args)
332
+ @print_server_ids = args[:print_server_ids] if args.key?(:print_server_ids)
333
+ end
334
+ end
335
+
336
+ #
337
+ class BatchDeletePrintServersResponse
338
+ include Google::Apis::Core::Hashable
339
+
340
+ # A list of update failures.
341
+ # Corresponds to the JSON property `failedPrintServers`
342
+ # @return [Array<Google::Apis::AdminDirectoryV1::PrintServerFailureInfo>]
343
+ attr_accessor :failed_print_servers
344
+
345
+ # A list of print server IDs that were successfully deleted.
346
+ # Corresponds to the JSON property `printServerIds`
347
+ # @return [Array<String>]
348
+ attr_accessor :print_server_ids
349
+
350
+ def initialize(**args)
351
+ update!(**args)
352
+ end
353
+
354
+ # Update properties of this object
355
+ def update!(**args)
356
+ @failed_print_servers = args[:failed_print_servers] if args.key?(:failed_print_servers)
357
+ @print_server_ids = args[:print_server_ids] if args.key?(:print_server_ids)
358
+ end
359
+ end
360
+
272
361
  # Request for deleting existing printers in batch.
273
362
  class BatchDeletePrintersRequest
274
363
  include Google::Apis::Core::Hashable
@@ -1554,6 +1643,33 @@ module Google
1554
1643
  end
1555
1644
  end
1556
1645
 
1646
+ # Request for adding a new print server.
1647
+ class CreatePrintServerRequest
1648
+ include Google::Apis::Core::Hashable
1649
+
1650
+ # Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
1651
+ # reference/rest/v1/customers) of the customer's Google Workspace account.
1652
+ # Format: `customers/`id``
1653
+ # Corresponds to the JSON property `parent`
1654
+ # @return [String]
1655
+ attr_accessor :parent
1656
+
1657
+ # Configuration for a print server.
1658
+ # Corresponds to the JSON property `printServer`
1659
+ # @return [Google::Apis::AdminDirectoryV1::PrintServer]
1660
+ attr_accessor :print_server
1661
+
1662
+ def initialize(**args)
1663
+ update!(**args)
1664
+ end
1665
+
1666
+ # Update properties of this object
1667
+ def update!(**args)
1668
+ @parent = args[:parent] if args.key?(:parent)
1669
+ @print_server = args[:print_server] if args.key?(:print_server)
1670
+ end
1671
+ end
1672
+
1557
1673
  # Request for adding a new printer.
1558
1674
  class CreatePrinterRequest
1559
1675
  include Google::Apis::Core::Hashable
@@ -2367,6 +2483,32 @@ module Google
2367
2483
  end
2368
2484
  end
2369
2485
 
2486
+ #
2487
+ class ListPrintServersResponse
2488
+ include Google::Apis::Core::Hashable
2489
+
2490
+ # A token that can be sent as `page_token` in a request to retrieve the next
2491
+ # page. If this field is omitted, there are no subsequent pages.
2492
+ # Corresponds to the JSON property `nextPageToken`
2493
+ # @return [String]
2494
+ attr_accessor :next_page_token
2495
+
2496
+ # List of print servers.
2497
+ # Corresponds to the JSON property `printServers`
2498
+ # @return [Array<Google::Apis::AdminDirectoryV1::PrintServer>]
2499
+ attr_accessor :print_servers
2500
+
2501
+ def initialize(**args)
2502
+ update!(**args)
2503
+ end
2504
+
2505
+ # Update properties of this object
2506
+ def update!(**args)
2507
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2508
+ @print_servers = args[:print_servers] if args.key?(:print_servers)
2509
+ end
2510
+ end
2511
+
2370
2512
  # Response for listing allowed printer models.
2371
2513
  class ListPrinterModelsResponse
2372
2514
  include Google::Apis::Core::Hashable
@@ -3122,6 +3264,103 @@ module Google
3122
3264
  end
3123
3265
  end
3124
3266
 
3267
+ # Configuration for a print server.
3268
+ class PrintServer
3269
+ include Google::Apis::Core::Hashable
3270
+
3271
+ # Output only. Time when the print server was created.
3272
+ # Corresponds to the JSON property `createTime`
3273
+ # @return [String]
3274
+ attr_accessor :create_time
3275
+
3276
+ # Editable. Description of the print server (as shown in the Admin console).
3277
+ # Corresponds to the JSON property `description`
3278
+ # @return [String]
3279
+ attr_accessor :description
3280
+
3281
+ # Editable. Display name of the print server (as shown in the Admin console).
3282
+ # Corresponds to the JSON property `displayName`
3283
+ # @return [String]
3284
+ attr_accessor :display_name
3285
+
3286
+ # Immutable. ID of the print server. Leave empty when creating.
3287
+ # Corresponds to the JSON property `id`
3288
+ # @return [String]
3289
+ attr_accessor :id
3290
+
3291
+ # Immutable. Resource name of the print server. Leave empty when creating.
3292
+ # Format: `customers/`customer.id`/printServers/`print_server.id``
3293
+ # Corresponds to the JSON property `name`
3294
+ # @return [String]
3295
+ attr_accessor :name
3296
+
3297
+ # ID of the organization unit (OU) that owns this print server. This value can
3298
+ # only be set when the print server is initially created. If it's not populated,
3299
+ # the print server is placed under the root OU. The `org_unit_id` can be
3300
+ # retrieved using the [Directory API](/admin-sdk/directory/reference/rest/v1/
3301
+ # orgunits).
3302
+ # Corresponds to the JSON property `orgUnitId`
3303
+ # @return [String]
3304
+ attr_accessor :org_unit_id
3305
+
3306
+ # Editable. Print server URI.
3307
+ # Corresponds to the JSON property `uri`
3308
+ # @return [String]
3309
+ attr_accessor :uri
3310
+
3311
+ def initialize(**args)
3312
+ update!(**args)
3313
+ end
3314
+
3315
+ # Update properties of this object
3316
+ def update!(**args)
3317
+ @create_time = args[:create_time] if args.key?(:create_time)
3318
+ @description = args[:description] if args.key?(:description)
3319
+ @display_name = args[:display_name] if args.key?(:display_name)
3320
+ @id = args[:id] if args.key?(:id)
3321
+ @name = args[:name] if args.key?(:name)
3322
+ @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
3323
+ @uri = args[:uri] if args.key?(:uri)
3324
+ end
3325
+ end
3326
+
3327
+ # Info about failures
3328
+ class PrintServerFailureInfo
3329
+ include Google::Apis::Core::Hashable
3330
+
3331
+ # Canonical code for why the update failed to apply.
3332
+ # Corresponds to the JSON property `errorCode`
3333
+ # @return [String]
3334
+ attr_accessor :error_code
3335
+
3336
+ # Failure reason message.
3337
+ # Corresponds to the JSON property `errorMessage`
3338
+ # @return [String]
3339
+ attr_accessor :error_message
3340
+
3341
+ # Configuration for a print server.
3342
+ # Corresponds to the JSON property `printServer`
3343
+ # @return [Google::Apis::AdminDirectoryV1::PrintServer]
3344
+ attr_accessor :print_server
3345
+
3346
+ # ID of a failed print server.
3347
+ # Corresponds to the JSON property `printServerId`
3348
+ # @return [String]
3349
+ attr_accessor :print_server_id
3350
+
3351
+ def initialize(**args)
3352
+ update!(**args)
3353
+ end
3354
+
3355
+ # Update properties of this object
3356
+ def update!(**args)
3357
+ @error_code = args[:error_code] if args.key?(:error_code)
3358
+ @error_message = args[:error_message] if args.key?(:error_message)
3359
+ @print_server = args[:print_server] if args.key?(:print_server)
3360
+ @print_server_id = args[:print_server_id] if args.key?(:print_server_id)
3361
+ end
3362
+ end
3363
+
3125
3364
  # Printer configuration.
3126
3365
  class Printer
3127
3366
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AdminDirectoryV1
18
18
  # Version of the google-apis-admin_directory_v1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220913"
25
+ REVISION = "20220919"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,18 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class BatchCreatePrintServersRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class BatchCreatePrintServersResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
55
67
  class BatchCreatePrintersRequest
56
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
69
 
@@ -64,6 +76,18 @@ module Google
64
76
  include Google::Apis::Core::JsonObjectSupport
65
77
  end
66
78
 
79
+ class BatchDeletePrintServersRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class BatchDeletePrintServersResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
67
91
  class BatchDeletePrintersRequest
68
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
93
 
@@ -226,6 +250,12 @@ module Google
226
250
  include Google::Apis::Core::JsonObjectSupport
227
251
  end
228
252
 
253
+ class CreatePrintServerRequest
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
229
259
  class CreatePrinterRequest
230
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
261
 
@@ -346,6 +376,12 @@ module Google
346
376
  include Google::Apis::Core::JsonObjectSupport
347
377
  end
348
378
 
379
+ class ListPrintServersResponse
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
349
385
  class ListPrinterModelsResponse
350
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
387
 
@@ -418,6 +454,18 @@ module Google
418
454
  include Google::Apis::Core::JsonObjectSupport
419
455
  end
420
456
 
457
+ class PrintServer
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
463
+ class PrintServerFailureInfo
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
421
469
  class Printer
422
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
471
 
@@ -704,6 +752,24 @@ module Google
704
752
  end
705
753
  end
706
754
 
755
+ class BatchCreatePrintServersRequest
756
+ # @private
757
+ class Representation < Google::Apis::Core::JsonRepresentation
758
+ collection :requests, as: 'requests', class: Google::Apis::AdminDirectoryV1::CreatePrintServerRequest, decorator: Google::Apis::AdminDirectoryV1::CreatePrintServerRequest::Representation
759
+
760
+ end
761
+ end
762
+
763
+ class BatchCreatePrintServersResponse
764
+ # @private
765
+ class Representation < Google::Apis::Core::JsonRepresentation
766
+ collection :failures, as: 'failures', class: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo, decorator: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo::Representation
767
+
768
+ collection :print_servers, as: 'printServers', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
769
+
770
+ end
771
+ end
772
+
707
773
  class BatchCreatePrintersRequest
708
774
  # @private
709
775
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -722,6 +788,22 @@ module Google
722
788
  end
723
789
  end
724
790
 
791
+ class BatchDeletePrintServersRequest
792
+ # @private
793
+ class Representation < Google::Apis::Core::JsonRepresentation
794
+ collection :print_server_ids, as: 'printServerIds'
795
+ end
796
+ end
797
+
798
+ class BatchDeletePrintServersResponse
799
+ # @private
800
+ class Representation < Google::Apis::Core::JsonRepresentation
801
+ collection :failed_print_servers, as: 'failedPrintServers', class: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo, decorator: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo::Representation
802
+
803
+ collection :print_server_ids, as: 'printServerIds'
804
+ end
805
+ end
806
+
725
807
  class BatchDeletePrintersRequest
726
808
  # @private
727
809
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1055,6 +1137,15 @@ module Google
1055
1137
  end
1056
1138
  end
1057
1139
 
1140
+ class CreatePrintServerRequest
1141
+ # @private
1142
+ class Representation < Google::Apis::Core::JsonRepresentation
1143
+ property :parent, as: 'parent'
1144
+ property :print_server, as: 'printServer', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
1145
+
1146
+ end
1147
+ end
1148
+
1058
1149
  class CreatePrinterRequest
1059
1150
  # @private
1060
1151
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1270,6 +1361,15 @@ module Google
1270
1361
  end
1271
1362
  end
1272
1363
 
1364
+ class ListPrintServersResponse
1365
+ # @private
1366
+ class Representation < Google::Apis::Core::JsonRepresentation
1367
+ property :next_page_token, as: 'nextPageToken'
1368
+ collection :print_servers, as: 'printServers', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
1369
+
1370
+ end
1371
+ end
1372
+
1273
1373
  class ListPrinterModelsResponse
1274
1374
  # @private
1275
1375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1435,6 +1535,30 @@ module Google
1435
1535
  end
1436
1536
  end
1437
1537
 
1538
+ class PrintServer
1539
+ # @private
1540
+ class Representation < Google::Apis::Core::JsonRepresentation
1541
+ property :create_time, as: 'createTime'
1542
+ property :description, as: 'description'
1543
+ property :display_name, as: 'displayName'
1544
+ property :id, as: 'id'
1545
+ property :name, as: 'name'
1546
+ property :org_unit_id, as: 'orgUnitId'
1547
+ property :uri, as: 'uri'
1548
+ end
1549
+ end
1550
+
1551
+ class PrintServerFailureInfo
1552
+ # @private
1553
+ class Representation < Google::Apis::Core::JsonRepresentation
1554
+ property :error_code, as: 'errorCode'
1555
+ property :error_message, as: 'errorMessage'
1556
+ property :print_server, as: 'printServer', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
1557
+
1558
+ property :print_server_id, as: 'printServerId'
1559
+ end
1560
+ end
1561
+
1438
1562
  class Printer
1439
1563
  # @private
1440
1564
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -622,6 +622,271 @@ module Google
622
622
  execute_or_queue_command(command, &block)
623
623
  end
624
624
 
625
+ # Creates multiple print servers.
626
+ # @param [String] parent
627
+ # Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
628
+ # reference/rest/v1/customers) of the customer's Google Workspace account.
629
+ # Format: `customers/`id``
630
+ # @param [Google::Apis::AdminDirectoryV1::BatchCreatePrintServersRequest] batch_create_print_servers_request_object
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def batch_create_print_servers(parent, batch_create_print_servers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers', options)
650
+ command.request_representation = Google::Apis::AdminDirectoryV1::BatchCreatePrintServersRequest::Representation
651
+ command.request_object = batch_create_print_servers_request_object
652
+ command.response_representation = Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse::Representation
653
+ command.response_class = Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse
654
+ command.params['parent'] = parent unless parent.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
660
+ # Deletes multiple print servers.
661
+ # @param [String] parent
662
+ # Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
663
+ # reference/rest/v1/customers) of the customer's Google Workspace account.
664
+ # Format: `customers/`customer.id``
665
+ # @param [Google::Apis::AdminDirectoryV1::BatchDeletePrintServersRequest] batch_delete_print_servers_request_object
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def batch_delete_print_servers(parent, batch_delete_print_servers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers', options)
685
+ command.request_representation = Google::Apis::AdminDirectoryV1::BatchDeletePrintServersRequest::Representation
686
+ command.request_object = batch_delete_print_servers_request_object
687
+ command.response_representation = Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse::Representation
688
+ command.response_class = Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse
689
+ command.params['parent'] = parent unless parent.nil?
690
+ command.query['fields'] = fields unless fields.nil?
691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
692
+ execute_or_queue_command(command, &block)
693
+ end
694
+
695
+ # Creates a print server.
696
+ # @param [String] parent
697
+ # Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
698
+ # reference/rest/v1/customers) of the customer's Google Workspace account.
699
+ # Format: `customers/`id``
700
+ # @param [Google::Apis::AdminDirectoryV1::PrintServer] print_server_object
701
+ # @param [String] fields
702
+ # Selector specifying which fields to include in a partial response.
703
+ # @param [String] quota_user
704
+ # Available to use for quota purposes for server-side applications. Can be any
705
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
706
+ # @param [Google::Apis::RequestOptions] options
707
+ # Request-specific options
708
+ #
709
+ # @yield [result, err] Result & error if block supplied
710
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::PrintServer] parsed result object
711
+ # @yieldparam err [StandardError] error object if request failed
712
+ #
713
+ # @return [Google::Apis::AdminDirectoryV1::PrintServer]
714
+ #
715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
718
+ def create_customer_chrome_print_server(parent, print_server_object = nil, fields: nil, quota_user: nil, options: nil, &block)
719
+ command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printServers', options)
720
+ command.request_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
721
+ command.request_object = print_server_object
722
+ command.response_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
723
+ command.response_class = Google::Apis::AdminDirectoryV1::PrintServer
724
+ command.params['parent'] = parent unless parent.nil?
725
+ command.query['fields'] = fields unless fields.nil?
726
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
727
+ execute_or_queue_command(command, &block)
728
+ end
729
+
730
+ # Deletes a print server.
731
+ # @param [String] name
732
+ # Required. The name of the print server to be deleted. Format: `customers/`
733
+ # customer.id`/chrome/printServers/`print_server.id``
734
+ # @param [String] fields
735
+ # Selector specifying which fields to include in a partial response.
736
+ # @param [String] quota_user
737
+ # Available to use for quota purposes for server-side applications. Can be any
738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
739
+ # @param [Google::Apis::RequestOptions] options
740
+ # Request-specific options
741
+ #
742
+ # @yield [result, err] Result & error if block supplied
743
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::Empty] parsed result object
744
+ # @yieldparam err [StandardError] error object if request failed
745
+ #
746
+ # @return [Google::Apis::AdminDirectoryV1::Empty]
747
+ #
748
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
749
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
750
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
751
+ def delete_customer_chrome_print_server(name, fields: nil, quota_user: nil, options: nil, &block)
752
+ command = make_simple_command(:delete, 'admin/directory/v1/{+name}', options)
753
+ command.response_representation = Google::Apis::AdminDirectoryV1::Empty::Representation
754
+ command.response_class = Google::Apis::AdminDirectoryV1::Empty
755
+ command.params['name'] = name unless name.nil?
756
+ command.query['fields'] = fields unless fields.nil?
757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
758
+ execute_or_queue_command(command, &block)
759
+ end
760
+
761
+ # Returns a print server's configuration.
762
+ # @param [String] name
763
+ # Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
764
+ # reference/rest/v1/customers) of the customer's Google Workspace account.
765
+ # Format: `customers/`id``
766
+ # @param [String] fields
767
+ # Selector specifying which fields to include in a partial response.
768
+ # @param [String] quota_user
769
+ # Available to use for quota purposes for server-side applications. Can be any
770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
771
+ # @param [Google::Apis::RequestOptions] options
772
+ # Request-specific options
773
+ #
774
+ # @yield [result, err] Result & error if block supplied
775
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::PrintServer] parsed result object
776
+ # @yieldparam err [StandardError] error object if request failed
777
+ #
778
+ # @return [Google::Apis::AdminDirectoryV1::PrintServer]
779
+ #
780
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
781
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
782
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
783
+ def get_customer_chrome_print_server(name, fields: nil, quota_user: nil, options: nil, &block)
784
+ command = make_simple_command(:get, 'admin/directory/v1/{+name}', options)
785
+ command.response_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
786
+ command.response_class = Google::Apis::AdminDirectoryV1::PrintServer
787
+ command.params['name'] = name unless name.nil?
788
+ command.query['fields'] = fields unless fields.nil?
789
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
790
+ execute_or_queue_command(command, &block)
791
+ end
792
+
793
+ # Lists print server configurations.
794
+ # @param [String] parent
795
+ # Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
796
+ # reference/rest/v1/customers) of the customer's Google Workspace account.
797
+ # Format: `customers/`id``
798
+ # @param [String] filter
799
+ # Search query in [Common Expression Language syntax](https://github.com/google/
800
+ # cel-spec). Supported filters are `display_name`, `description`, and `uri`.
801
+ # Example: `printServer.displayName=='marketing-queue'`.
802
+ # @param [String] order_by
803
+ # Sort order for results. Supported values are `display_name`, `description`, or
804
+ # `create_time`. Default order is ascending, but descending order can be
805
+ # returned by appending "desc" to the `order_by` field. For instance, `orderBy=='
806
+ # description desc'` returns the print servers sorted by description in
807
+ # descending order.
808
+ # @param [String] org_unit_id
809
+ # If `org_unit_id` is present in the request, only print servers owned or
810
+ # inherited by the organizational unit (OU) are returned. If the `PrintServer`
811
+ # resource's `org_unit_id` matches the one in the request, the OU owns the
812
+ # server. If `org_unit_id` is not specified in the request, all print servers
813
+ # are returned or filtered against.
814
+ # @param [Fixnum] page_size
815
+ # The maximum number of objects to return (default `100`, max `100`). The
816
+ # service might return fewer than this value.
817
+ # @param [String] page_token
818
+ # A generated token to paginate results (the `next_page_token` from a previous
819
+ # call).
820
+ # @param [String] fields
821
+ # Selector specifying which fields to include in a partial response.
822
+ # @param [String] quota_user
823
+ # Available to use for quota purposes for server-side applications. Can be any
824
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
825
+ # @param [Google::Apis::RequestOptions] options
826
+ # Request-specific options
827
+ #
828
+ # @yield [result, err] Result & error if block supplied
829
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::ListPrintServersResponse] parsed result object
830
+ # @yieldparam err [StandardError] error object if request failed
831
+ #
832
+ # @return [Google::Apis::AdminDirectoryV1::ListPrintServersResponse]
833
+ #
834
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
835
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
836
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
837
+ def list_customer_chrome_print_servers(parent, filter: nil, order_by: nil, org_unit_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
838
+ command = make_simple_command(:get, 'admin/directory/v1/{+parent}/chrome/printServers', options)
839
+ command.response_representation = Google::Apis::AdminDirectoryV1::ListPrintServersResponse::Representation
840
+ command.response_class = Google::Apis::AdminDirectoryV1::ListPrintServersResponse
841
+ command.params['parent'] = parent unless parent.nil?
842
+ command.query['filter'] = filter unless filter.nil?
843
+ command.query['orderBy'] = order_by unless order_by.nil?
844
+ command.query['orgUnitId'] = org_unit_id unless org_unit_id.nil?
845
+ command.query['pageSize'] = page_size unless page_size.nil?
846
+ command.query['pageToken'] = page_token unless page_token.nil?
847
+ command.query['fields'] = fields unless fields.nil?
848
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
849
+ execute_or_queue_command(command, &block)
850
+ end
851
+
852
+ # Updates a print server's configuration.
853
+ # @param [String] name
854
+ # Immutable. Resource name of the print server. Leave empty when creating.
855
+ # Format: `customers/`customer.id`/printServers/`print_server.id``
856
+ # @param [Google::Apis::AdminDirectoryV1::PrintServer] print_server_object
857
+ # @param [String] update_mask
858
+ # The list of fields to update. Some fields are read-only and cannot be updated.
859
+ # Values for unspecified fields are patched.
860
+ # @param [String] fields
861
+ # Selector specifying which fields to include in a partial response.
862
+ # @param [String] quota_user
863
+ # Available to use for quota purposes for server-side applications. Can be any
864
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
865
+ # @param [Google::Apis::RequestOptions] options
866
+ # Request-specific options
867
+ #
868
+ # @yield [result, err] Result & error if block supplied
869
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::PrintServer] parsed result object
870
+ # @yieldparam err [StandardError] error object if request failed
871
+ #
872
+ # @return [Google::Apis::AdminDirectoryV1::PrintServer]
873
+ #
874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
877
+ def patch_customer_chrome_print_server(name, print_server_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
878
+ command = make_simple_command(:patch, 'admin/directory/v1/{+name}', options)
879
+ command.request_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
880
+ command.request_object = print_server_object
881
+ command.response_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
882
+ command.response_class = Google::Apis::AdminDirectoryV1::PrintServer
883
+ command.params['name'] = name unless name.nil?
884
+ command.query['updateMask'] = update_mask unless update_mask.nil?
885
+ command.query['fields'] = fields unless fields.nil?
886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ execute_or_queue_command(command, &block)
888
+ end
889
+
625
890
  # Creates printers under given Organization Unit.
626
891
  # @param [String] parent
627
892
  # Required. The name of the customer. Format: customers/`customer_id`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-admin_directory_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.33.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-19 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.2
19
+ version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.7.2
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-admin_directory_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.33.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admin_directory_v1
63
63
  post_install_message:
64
64
  rdoc_options: []