google-apis-admin_directory_v1 0.1.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/admin_directory_v1.rb +8 -2
- data/lib/google/apis/admin_directory_v1/classes.rb +449 -42
- data/lib/google/apis/admin_directory_v1/gem_version.rb +3 -3
- data/lib/google/apis/admin_directory_v1/representations.rb +204 -0
- data/lib/google/apis/admin_directory_v1/service.rb +315 -5
- metadata +5 -5
@@ -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.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210316"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,36 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class AuxiliaryMessage
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class BatchCreatePrintersRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class BatchCreatePrintersResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class BatchDeletePrintersRequest
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class BatchDeletePrintersResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
49
79
|
class Building
|
50
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
81
|
|
@@ -133,6 +163,12 @@ module Google
|
|
133
163
|
include Google::Apis::Core::JsonObjectSupport
|
134
164
|
end
|
135
165
|
|
166
|
+
class ScreenshotFile
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
168
|
+
|
169
|
+
include Google::Apis::Core::JsonObjectSupport
|
170
|
+
end
|
171
|
+
|
136
172
|
class SystemRamFreeReport
|
137
173
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
138
174
|
|
@@ -166,6 +202,12 @@ module Google
|
|
166
202
|
include Google::Apis::Core::JsonObjectSupport
|
167
203
|
end
|
168
204
|
|
205
|
+
class CreatePrinterRequest
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
169
211
|
class Customer
|
170
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
213
|
|
@@ -226,6 +268,18 @@ module Google
|
|
226
268
|
include Google::Apis::Core::JsonObjectSupport
|
227
269
|
end
|
228
270
|
|
271
|
+
class Empty
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
277
|
+
class FailureInfo
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
229
283
|
class Feature
|
230
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
285
|
|
@@ -262,6 +316,18 @@ module Google
|
|
262
316
|
include Google::Apis::Core::JsonObjectSupport
|
263
317
|
end
|
264
318
|
|
319
|
+
class ListPrinterModelsResponse
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
325
|
+
class ListPrintersResponse
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
265
331
|
class Member
|
266
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
333
|
|
@@ -316,6 +382,18 @@ module Google
|
|
316
382
|
include Google::Apis::Core::JsonObjectSupport
|
317
383
|
end
|
318
384
|
|
385
|
+
class Printer
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
391
|
+
class PrinterModel
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
319
397
|
class Privilege
|
320
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
399
|
|
@@ -581,6 +659,49 @@ module Google
|
|
581
659
|
end
|
582
660
|
end
|
583
661
|
|
662
|
+
class AuxiliaryMessage
|
663
|
+
# @private
|
664
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
665
|
+
property :auxiliary_message, as: 'auxiliaryMessage'
|
666
|
+
property :field_mask, as: 'fieldMask'
|
667
|
+
property :severity, as: 'severity'
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
class BatchCreatePrintersRequest
|
672
|
+
# @private
|
673
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
674
|
+
collection :requests, as: 'requests', class: Google::Apis::AdminDirectoryV1::CreatePrinterRequest, decorator: Google::Apis::AdminDirectoryV1::CreatePrinterRequest::Representation
|
675
|
+
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
679
|
+
class BatchCreatePrintersResponse
|
680
|
+
# @private
|
681
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
682
|
+
collection :failures, as: 'failures', class: Google::Apis::AdminDirectoryV1::FailureInfo, decorator: Google::Apis::AdminDirectoryV1::FailureInfo::Representation
|
683
|
+
|
684
|
+
collection :printers, as: 'printers', class: Google::Apis::AdminDirectoryV1::Printer, decorator: Google::Apis::AdminDirectoryV1::Printer::Representation
|
685
|
+
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
689
|
+
class BatchDeletePrintersRequest
|
690
|
+
# @private
|
691
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
692
|
+
collection :printer_ids, as: 'printerIds'
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
class BatchDeletePrintersResponse
|
697
|
+
# @private
|
698
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
699
|
+
collection :failed_printers, as: 'failedPrinters', class: Google::Apis::AdminDirectoryV1::FailureInfo, decorator: Google::Apis::AdminDirectoryV1::FailureInfo::Representation
|
700
|
+
|
701
|
+
collection :printer_ids, as: 'printerIds'
|
702
|
+
end
|
703
|
+
end
|
704
|
+
|
584
705
|
class Building
|
585
706
|
# @private
|
586
707
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -717,6 +838,8 @@ module Google
|
|
717
838
|
property :platform_version, as: 'platformVersion'
|
718
839
|
collection :recent_users, as: 'recentUsers', class: Google::Apis::AdminDirectoryV1::RecentUsers, decorator: Google::Apis::AdminDirectoryV1::RecentUsers::Representation
|
719
840
|
|
841
|
+
collection :screenshot_files, as: 'screenshotFiles', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::ScreenshotFile, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::ScreenshotFile::Representation
|
842
|
+
|
720
843
|
property :serial_number, as: 'serialNumber'
|
721
844
|
property :status, as: 'status'
|
722
845
|
property :support_end_date, as: 'supportEndDate', type: DateTime
|
@@ -793,6 +916,17 @@ module Google
|
|
793
916
|
end
|
794
917
|
end
|
795
918
|
|
919
|
+
class ScreenshotFile
|
920
|
+
# @private
|
921
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
922
|
+
property :create_time, as: 'createTime', type: DateTime
|
923
|
+
|
924
|
+
property :download_url, as: 'downloadUrl'
|
925
|
+
property :name, as: 'name'
|
926
|
+
property :type, as: 'type'
|
927
|
+
end
|
928
|
+
end
|
929
|
+
|
796
930
|
class SystemRamFreeReport
|
797
931
|
# @private
|
798
932
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -841,6 +975,15 @@ module Google
|
|
841
975
|
end
|
842
976
|
end
|
843
977
|
|
978
|
+
class CreatePrinterRequest
|
979
|
+
# @private
|
980
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
981
|
+
property :parent, as: 'parent'
|
982
|
+
property :printer, as: 'printer', class: Google::Apis::AdminDirectoryV1::Printer, decorator: Google::Apis::AdminDirectoryV1::Printer::Representation
|
983
|
+
|
984
|
+
end
|
985
|
+
end
|
986
|
+
|
844
987
|
class Customer
|
845
988
|
# @private
|
846
989
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -957,6 +1100,23 @@ module Google
|
|
957
1100
|
end
|
958
1101
|
end
|
959
1102
|
|
1103
|
+
class Empty
|
1104
|
+
# @private
|
1105
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1106
|
+
end
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
class FailureInfo
|
1110
|
+
# @private
|
1111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1112
|
+
property :error_code, as: 'errorCode'
|
1113
|
+
property :error_message, as: 'errorMessage'
|
1114
|
+
property :printer, as: 'printer', class: Google::Apis::AdminDirectoryV1::Printer, decorator: Google::Apis::AdminDirectoryV1::Printer::Representation
|
1115
|
+
|
1116
|
+
property :printer_ids, as: 'printerIds'
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
960
1120
|
class Feature
|
961
1121
|
# @private
|
962
1122
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1019,6 +1179,24 @@ module Google
|
|
1019
1179
|
end
|
1020
1180
|
end
|
1021
1181
|
|
1182
|
+
class ListPrinterModelsResponse
|
1183
|
+
# @private
|
1184
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1185
|
+
property :next_page_token, as: 'nextPageToken'
|
1186
|
+
collection :printer_models, as: 'printerModels', class: Google::Apis::AdminDirectoryV1::PrinterModel, decorator: Google::Apis::AdminDirectoryV1::PrinterModel::Representation
|
1187
|
+
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
class ListPrintersResponse
|
1192
|
+
# @private
|
1193
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1194
|
+
property :next_page_token, as: 'nextPageToken'
|
1195
|
+
collection :printers, as: 'printers', class: Google::Apis::AdminDirectoryV1::Printer, decorator: Google::Apis::AdminDirectoryV1::Printer::Representation
|
1196
|
+
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1022
1200
|
class Member
|
1023
1201
|
# @private
|
1024
1202
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1154,6 +1332,32 @@ module Google
|
|
1154
1332
|
end
|
1155
1333
|
end
|
1156
1334
|
|
1335
|
+
class Printer
|
1336
|
+
# @private
|
1337
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1338
|
+
collection :auxiliary_messages, as: 'auxiliaryMessages', class: Google::Apis::AdminDirectoryV1::AuxiliaryMessage, decorator: Google::Apis::AdminDirectoryV1::AuxiliaryMessage::Representation
|
1339
|
+
|
1340
|
+
property :create_time, as: 'createTime'
|
1341
|
+
property :description, as: 'description'
|
1342
|
+
property :display_name, as: 'displayName'
|
1343
|
+
property :id, as: 'id'
|
1344
|
+
property :make_and_model, as: 'makeAndModel'
|
1345
|
+
property :name, as: 'name'
|
1346
|
+
property :org_unit_id, as: 'orgUnitId'
|
1347
|
+
property :uri, as: 'uri'
|
1348
|
+
property :use_driverless_config, as: 'useDriverlessConfig'
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
class PrinterModel
|
1353
|
+
# @private
|
1354
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1355
|
+
property :display_name, as: 'displayName'
|
1356
|
+
property :make_and_model, as: 'makeAndModel'
|
1357
|
+
property :manufacturer, as: 'manufacturer'
|
1358
|
+
end
|
1359
|
+
end
|
1360
|
+
|
1157
1361
|
class Privilege
|
1158
1362
|
# @private
|
1159
1363
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -617,6 +617,301 @@ module Google
|
|
617
617
|
execute_or_queue_command(command, &block)
|
618
618
|
end
|
619
619
|
|
620
|
+
# Creates printers under given Organization Unit.
|
621
|
+
# @param [String] parent
|
622
|
+
# Required. The name of the customer. Format: customers/`customer_id`
|
623
|
+
# @param [Google::Apis::AdminDirectoryV1::BatchCreatePrintersRequest] batch_create_printers_request_object
|
624
|
+
# @param [String] fields
|
625
|
+
# Selector specifying which fields to include in a partial response.
|
626
|
+
# @param [String] quota_user
|
627
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
628
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
629
|
+
# @param [Google::Apis::RequestOptions] options
|
630
|
+
# Request-specific options
|
631
|
+
#
|
632
|
+
# @yield [result, err] Result & error if block supplied
|
633
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::BatchCreatePrintersResponse] parsed result object
|
634
|
+
# @yieldparam err [StandardError] error object if request failed
|
635
|
+
#
|
636
|
+
# @return [Google::Apis::AdminDirectoryV1::BatchCreatePrintersResponse]
|
637
|
+
#
|
638
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
639
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
640
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
641
|
+
def batch_create_printers(parent, batch_create_printers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
642
|
+
command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printers:batchCreatePrinters', options)
|
643
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::BatchCreatePrintersRequest::Representation
|
644
|
+
command.request_object = batch_create_printers_request_object
|
645
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::BatchCreatePrintersResponse::Representation
|
646
|
+
command.response_class = Google::Apis::AdminDirectoryV1::BatchCreatePrintersResponse
|
647
|
+
command.params['parent'] = parent unless parent.nil?
|
648
|
+
command.query['fields'] = fields unless fields.nil?
|
649
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
650
|
+
execute_or_queue_command(command, &block)
|
651
|
+
end
|
652
|
+
|
653
|
+
# Deletes printers in batch.
|
654
|
+
# @param [String] parent
|
655
|
+
# Required. The name of the customer. Format: customers/`customer_id`
|
656
|
+
# @param [Google::Apis::AdminDirectoryV1::BatchDeletePrintersRequest] batch_delete_printers_request_object
|
657
|
+
# @param [String] fields
|
658
|
+
# Selector specifying which fields to include in a partial response.
|
659
|
+
# @param [String] quota_user
|
660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
662
|
+
# @param [Google::Apis::RequestOptions] options
|
663
|
+
# Request-specific options
|
664
|
+
#
|
665
|
+
# @yield [result, err] Result & error if block supplied
|
666
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::BatchDeletePrintersResponse] parsed result object
|
667
|
+
# @yieldparam err [StandardError] error object if request failed
|
668
|
+
#
|
669
|
+
# @return [Google::Apis::AdminDirectoryV1::BatchDeletePrintersResponse]
|
670
|
+
#
|
671
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
672
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
673
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
674
|
+
def batch_delete_printers(parent, batch_delete_printers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
675
|
+
command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printers:batchDeletePrinters', options)
|
676
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::BatchDeletePrintersRequest::Representation
|
677
|
+
command.request_object = batch_delete_printers_request_object
|
678
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::BatchDeletePrintersResponse::Representation
|
679
|
+
command.response_class = Google::Apis::AdminDirectoryV1::BatchDeletePrintersResponse
|
680
|
+
command.params['parent'] = parent unless parent.nil?
|
681
|
+
command.query['fields'] = fields unless fields.nil?
|
682
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
683
|
+
execute_or_queue_command(command, &block)
|
684
|
+
end
|
685
|
+
|
686
|
+
# Creates a printer under given Organization Unit.
|
687
|
+
# @param [String] parent
|
688
|
+
# Required. The name of the customer. Format: customers/`customer_id`
|
689
|
+
# @param [Google::Apis::AdminDirectoryV1::Printer] printer_object
|
690
|
+
# @param [String] fields
|
691
|
+
# Selector specifying which fields to include in a partial response.
|
692
|
+
# @param [String] quota_user
|
693
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
694
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
695
|
+
# @param [Google::Apis::RequestOptions] options
|
696
|
+
# Request-specific options
|
697
|
+
#
|
698
|
+
# @yield [result, err] Result & error if block supplied
|
699
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Printer] parsed result object
|
700
|
+
# @yieldparam err [StandardError] error object if request failed
|
701
|
+
#
|
702
|
+
# @return [Google::Apis::AdminDirectoryV1::Printer]
|
703
|
+
#
|
704
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
705
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
706
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
707
|
+
def create_customer_chrome_printer(parent, printer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
708
|
+
command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printers', options)
|
709
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Printer::Representation
|
710
|
+
command.request_object = printer_object
|
711
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Printer::Representation
|
712
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Printer
|
713
|
+
command.params['parent'] = parent unless parent.nil?
|
714
|
+
command.query['fields'] = fields unless fields.nil?
|
715
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
716
|
+
execute_or_queue_command(command, &block)
|
717
|
+
end
|
718
|
+
|
719
|
+
# Deletes a `Printer`.
|
720
|
+
# @param [String] name
|
721
|
+
# Required. The name of the printer to be updated. Format: customers/`
|
722
|
+
# customer_id`/chrome/printers/`printer_id`
|
723
|
+
# @param [String] fields
|
724
|
+
# Selector specifying which fields to include in a partial response.
|
725
|
+
# @param [String] quota_user
|
726
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
727
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
728
|
+
# @param [Google::Apis::RequestOptions] options
|
729
|
+
# Request-specific options
|
730
|
+
#
|
731
|
+
# @yield [result, err] Result & error if block supplied
|
732
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Empty] parsed result object
|
733
|
+
# @yieldparam err [StandardError] error object if request failed
|
734
|
+
#
|
735
|
+
# @return [Google::Apis::AdminDirectoryV1::Empty]
|
736
|
+
#
|
737
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
738
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
739
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
740
|
+
def delete_customer_chrome_printer(name, fields: nil, quota_user: nil, options: nil, &block)
|
741
|
+
command = make_simple_command(:delete, 'admin/directory/v1/{+name}', options)
|
742
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Empty::Representation
|
743
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Empty
|
744
|
+
command.params['name'] = name unless name.nil?
|
745
|
+
command.query['fields'] = fields unless fields.nil?
|
746
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
747
|
+
execute_or_queue_command(command, &block)
|
748
|
+
end
|
749
|
+
|
750
|
+
# Returns a `Printer` resource (printer's config).
|
751
|
+
# @param [String] name
|
752
|
+
# Required. The name of the printer to retrieve. Format: customers/`customer_id`/
|
753
|
+
# chrome/printers/`printer_id`
|
754
|
+
# @param [String] fields
|
755
|
+
# Selector specifying which fields to include in a partial response.
|
756
|
+
# @param [String] quota_user
|
757
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
758
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
759
|
+
# @param [Google::Apis::RequestOptions] options
|
760
|
+
# Request-specific options
|
761
|
+
#
|
762
|
+
# @yield [result, err] Result & error if block supplied
|
763
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Printer] parsed result object
|
764
|
+
# @yieldparam err [StandardError] error object if request failed
|
765
|
+
#
|
766
|
+
# @return [Google::Apis::AdminDirectoryV1::Printer]
|
767
|
+
#
|
768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
771
|
+
def get_customer_chrome_printer(name, fields: nil, quota_user: nil, options: nil, &block)
|
772
|
+
command = make_simple_command(:get, 'admin/directory/v1/{+name}', options)
|
773
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Printer::Representation
|
774
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Printer
|
775
|
+
command.params['name'] = name unless name.nil?
|
776
|
+
command.query['fields'] = fields unless fields.nil?
|
777
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
778
|
+
execute_or_queue_command(command, &block)
|
779
|
+
end
|
780
|
+
|
781
|
+
# List printers configs.
|
782
|
+
# @param [String] parent
|
783
|
+
# Required. The name of the customer who owns this collection of printers.
|
784
|
+
# Format: customers/`customer_id`
|
785
|
+
# @param [String] filter
|
786
|
+
# Search query. Search syntax is shared between this api and Admin Console
|
787
|
+
# printers pages.
|
788
|
+
# @param [String] org_unit_id
|
789
|
+
# Organization Unit that we want to list the printers for. When org_unit is not
|
790
|
+
# present in the request then all printers of the customer are returned (or
|
791
|
+
# filtered). When org_unit is present in the request then only printers
|
792
|
+
# available to this OU will be returned (owned or inherited). You may see if
|
793
|
+
# printer is owned or inherited for this OU by looking at Printer.org_unit_id.
|
794
|
+
# @param [Fixnum] page_size
|
795
|
+
# The maximum number of objects to return. The service may return fewer than
|
796
|
+
# this value.
|
797
|
+
# @param [String] page_token
|
798
|
+
# A page token, received from a previous call.
|
799
|
+
# @param [String] fields
|
800
|
+
# Selector specifying which fields to include in a partial response.
|
801
|
+
# @param [String] quota_user
|
802
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
803
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
804
|
+
# @param [Google::Apis::RequestOptions] options
|
805
|
+
# Request-specific options
|
806
|
+
#
|
807
|
+
# @yield [result, err] Result & error if block supplied
|
808
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::ListPrintersResponse] parsed result object
|
809
|
+
# @yieldparam err [StandardError] error object if request failed
|
810
|
+
#
|
811
|
+
# @return [Google::Apis::AdminDirectoryV1::ListPrintersResponse]
|
812
|
+
#
|
813
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
814
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
815
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
816
|
+
def list_customer_chrome_printers(parent, filter: nil, org_unit_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
817
|
+
command = make_simple_command(:get, 'admin/directory/v1/{+parent}/chrome/printers', options)
|
818
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::ListPrintersResponse::Representation
|
819
|
+
command.response_class = Google::Apis::AdminDirectoryV1::ListPrintersResponse
|
820
|
+
command.params['parent'] = parent unless parent.nil?
|
821
|
+
command.query['filter'] = filter unless filter.nil?
|
822
|
+
command.query['orgUnitId'] = org_unit_id unless org_unit_id.nil?
|
823
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
824
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
825
|
+
command.query['fields'] = fields unless fields.nil?
|
826
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
827
|
+
execute_or_queue_command(command, &block)
|
828
|
+
end
|
829
|
+
|
830
|
+
# Lists the supported printer models.
|
831
|
+
# @param [String] parent
|
832
|
+
# Required. The name of the customer who owns this collection of printers.
|
833
|
+
# Format: customers/`customer_id`
|
834
|
+
# @param [String] filter
|
835
|
+
# Filer to list only models by a given manufacturer in format: "manufacturer:
|
836
|
+
# Brother". Search syntax is shared between this api and Admin Console printers
|
837
|
+
# pages.
|
838
|
+
# @param [Fixnum] page_size
|
839
|
+
# The maximum number of objects to return. The service may return fewer than
|
840
|
+
# this value.
|
841
|
+
# @param [String] page_token
|
842
|
+
# A page token, received from a previous call.
|
843
|
+
# @param [String] fields
|
844
|
+
# Selector specifying which fields to include in a partial response.
|
845
|
+
# @param [String] quota_user
|
846
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
847
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
848
|
+
# @param [Google::Apis::RequestOptions] options
|
849
|
+
# Request-specific options
|
850
|
+
#
|
851
|
+
# @yield [result, err] Result & error if block supplied
|
852
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::ListPrinterModelsResponse] parsed result object
|
853
|
+
# @yieldparam err [StandardError] error object if request failed
|
854
|
+
#
|
855
|
+
# @return [Google::Apis::AdminDirectoryV1::ListPrinterModelsResponse]
|
856
|
+
#
|
857
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
858
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
859
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
860
|
+
def list_customer_chrome_printer_printer_models(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
861
|
+
command = make_simple_command(:get, 'admin/directory/v1/{+parent}/chrome/printers:listPrinterModels', options)
|
862
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::ListPrinterModelsResponse::Representation
|
863
|
+
command.response_class = Google::Apis::AdminDirectoryV1::ListPrinterModelsResponse
|
864
|
+
command.params['parent'] = parent unless parent.nil?
|
865
|
+
command.query['filter'] = filter unless filter.nil?
|
866
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
867
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
868
|
+
command.query['fields'] = fields unless fields.nil?
|
869
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
870
|
+
execute_or_queue_command(command, &block)
|
871
|
+
end
|
872
|
+
|
873
|
+
# Updates a `Printer` resource.
|
874
|
+
# @param [String] name
|
875
|
+
# The resource name of the Printer object, in the format customers/`customer-id`/
|
876
|
+
# printers/`printer-id` (During printer creation leave empty)
|
877
|
+
# @param [Google::Apis::AdminDirectoryV1::Printer] printer_object
|
878
|
+
# @param [String] clear_mask
|
879
|
+
# The list of fields to be cleared. Note, some of the fields are read only and
|
880
|
+
# cannot be updated. Values for not specified fields will be patched.
|
881
|
+
# @param [String] update_mask
|
882
|
+
# The list of fields to be updated. Note, some of the fields are read only and
|
883
|
+
# cannot be updated. Values for not specified fields will be patched.
|
884
|
+
# @param [String] fields
|
885
|
+
# Selector specifying which fields to include in a partial response.
|
886
|
+
# @param [String] quota_user
|
887
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
888
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
889
|
+
# @param [Google::Apis::RequestOptions] options
|
890
|
+
# Request-specific options
|
891
|
+
#
|
892
|
+
# @yield [result, err] Result & error if block supplied
|
893
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Printer] parsed result object
|
894
|
+
# @yieldparam err [StandardError] error object if request failed
|
895
|
+
#
|
896
|
+
# @return [Google::Apis::AdminDirectoryV1::Printer]
|
897
|
+
#
|
898
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
899
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
900
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
901
|
+
def patch_customer_chrome_printer(name, printer_object = nil, clear_mask: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
902
|
+
command = make_simple_command(:patch, 'admin/directory/v1/{+name}', options)
|
903
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Printer::Representation
|
904
|
+
command.request_object = printer_object
|
905
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Printer::Representation
|
906
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Printer
|
907
|
+
command.params['name'] = name unless name.nil?
|
908
|
+
command.query['clearMask'] = clear_mask unless clear_mask.nil?
|
909
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
910
|
+
command.query['fields'] = fields unless fields.nil?
|
911
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
912
|
+
execute_or_queue_command(command, &block)
|
913
|
+
end
|
914
|
+
|
620
915
|
# Deletes a domain Alias of the customer.
|
621
916
|
# @param [String] customer
|
622
917
|
# Immutable ID of the Google Workspace account.
|
@@ -1626,6 +1921,8 @@ module Google
|
|
1626
1921
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
1627
1922
|
# @param [String] org_unit_path
|
1628
1923
|
# The full path of the organizational unit or its unique ID.
|
1924
|
+
# @param [Boolean] allow_plus
|
1925
|
+
# Parses org unit path without url decode to allow for plus in ou name
|
1629
1926
|
# @param [String] fields
|
1630
1927
|
# Selector specifying which fields to include in a partial response.
|
1631
1928
|
# @param [String] quota_user
|
@@ -1643,10 +1940,11 @@ module Google
|
|
1643
1940
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1644
1941
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1645
1942
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1646
|
-
def delete_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, options: nil, &block)
|
1943
|
+
def delete_org_unit(customer_id, org_unit_path, allow_plus: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1647
1944
|
command = make_simple_command(:delete, 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}', options)
|
1648
1945
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
1649
1946
|
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
1947
|
+
command.query['allowPlus'] = allow_plus unless allow_plus.nil?
|
1650
1948
|
command.query['fields'] = fields unless fields.nil?
|
1651
1949
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1652
1950
|
execute_or_queue_command(command, &block)
|
@@ -1660,6 +1958,8 @@ module Google
|
|
1660
1958
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
1661
1959
|
# @param [String] org_unit_path
|
1662
1960
|
# The full path of the organizational unit or its unique ID.
|
1961
|
+
# @param [Boolean] allow_plus
|
1962
|
+
# Parses org unit path without url decode to allow for plus in ou name
|
1663
1963
|
# @param [String] fields
|
1664
1964
|
# Selector specifying which fields to include in a partial response.
|
1665
1965
|
# @param [String] quota_user
|
@@ -1677,12 +1977,13 @@ module Google
|
|
1677
1977
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1678
1978
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1679
1979
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1680
|
-
def get_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, options: nil, &block)
|
1980
|
+
def get_org_unit(customer_id, org_unit_path, allow_plus: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1681
1981
|
command = make_simple_command(:get, 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}', options)
|
1682
1982
|
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
1683
1983
|
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
|
1684
1984
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
1685
1985
|
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
1986
|
+
command.query['allowPlus'] = allow_plus unless allow_plus.nil?
|
1686
1987
|
command.query['fields'] = fields unless fields.nil?
|
1687
1988
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1688
1989
|
execute_or_queue_command(command, &block)
|
@@ -1774,6 +2075,8 @@ module Google
|
|
1774
2075
|
# @param [String] org_unit_path
|
1775
2076
|
# The full path of the organizational unit or its unique ID.
|
1776
2077
|
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
2078
|
+
# @param [Boolean] allow_plus
|
2079
|
+
# Parses org unit path without url decode to allow for plus in ou name
|
1777
2080
|
# @param [String] fields
|
1778
2081
|
# Selector specifying which fields to include in a partial response.
|
1779
2082
|
# @param [String] quota_user
|
@@ -1791,7 +2094,7 @@ module Google
|
|
1791
2094
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1792
2095
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1793
2096
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1794
|
-
def patch_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2097
|
+
def patch_org_unit(customer_id, org_unit_path, org_unit_object = nil, allow_plus: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1795
2098
|
command = make_simple_command(:patch, 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}', options)
|
1796
2099
|
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
1797
2100
|
command.request_object = org_unit_object
|
@@ -1799,6 +2102,7 @@ module Google
|
|
1799
2102
|
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
|
1800
2103
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
1801
2104
|
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
2105
|
+
command.query['allowPlus'] = allow_plus unless allow_plus.nil?
|
1802
2106
|
command.query['fields'] = fields unless fields.nil?
|
1803
2107
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1804
2108
|
execute_or_queue_command(command, &block)
|
@@ -1813,6 +2117,8 @@ module Google
|
|
1813
2117
|
# @param [String] org_unit_path
|
1814
2118
|
# The full path of the organizational unit or its unique ID.
|
1815
2119
|
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
2120
|
+
# @param [Boolean] allow_plus
|
2121
|
+
# Parses org unit path without url decode to allow for plus in ou name
|
1816
2122
|
# @param [String] fields
|
1817
2123
|
# Selector specifying which fields to include in a partial response.
|
1818
2124
|
# @param [String] quota_user
|
@@ -1830,7 +2136,7 @@ module Google
|
|
1830
2136
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1831
2137
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1832
2138
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1833
|
-
def update_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2139
|
+
def update_org_unit(customer_id, org_unit_path, org_unit_object = nil, allow_plus: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1834
2140
|
command = make_simple_command(:put, 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}', options)
|
1835
2141
|
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
1836
2142
|
command.request_object = org_unit_object
|
@@ -1838,6 +2144,7 @@ module Google
|
|
1838
2144
|
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
|
1839
2145
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
1840
2146
|
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
2147
|
+
command.query['allowPlus'] = allow_plus unless allow_plus.nil?
|
1841
2148
|
command.query['fields'] = fields unless fields.nil?
|
1842
2149
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1843
2150
|
execute_or_queue_command(command, &block)
|
@@ -3378,6 +3685,8 @@ module Google
|
|
3378
3685
|
# The domain name. Use this field to get fields from only one domain. To return
|
3379
3686
|
# all domains for a customer account, use the `customer` query parameter instead.
|
3380
3687
|
# Either the `customer` or the `domain` parameter must be provided.
|
3688
|
+
# @param [String] event
|
3689
|
+
# Event on which subscription is intended (if subscribing)
|
3381
3690
|
# @param [Fixnum] max_results
|
3382
3691
|
# Maximum number of results to return.
|
3383
3692
|
# @param [String] order_by
|
@@ -3415,13 +3724,14 @@ module Google
|
|
3415
3724
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3416
3725
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3417
3726
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3418
|
-
def list_users(custom_field_mask: nil, customer: nil, domain: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, show_deleted: nil, sort_order: nil, view_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3727
|
+
def list_users(custom_field_mask: nil, customer: nil, domain: nil, event: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, show_deleted: nil, sort_order: nil, view_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3419
3728
|
command = make_simple_command(:get, 'admin/directory/v1/users', options)
|
3420
3729
|
command.response_representation = Google::Apis::AdminDirectoryV1::Users::Representation
|
3421
3730
|
command.response_class = Google::Apis::AdminDirectoryV1::Users
|
3422
3731
|
command.query['customFieldMask'] = custom_field_mask unless custom_field_mask.nil?
|
3423
3732
|
command.query['customer'] = customer unless customer.nil?
|
3424
3733
|
command.query['domain'] = domain unless domain.nil?
|
3734
|
+
command.query['event'] = event unless event.nil?
|
3425
3735
|
command.query['maxResults'] = max_results unless max_results.nil?
|
3426
3736
|
command.query['orderBy'] = order_by unless order_by.nil?
|
3427
3737
|
command.query['pageToken'] = page_token unless page_token.nil?
|