google-apis-admin_directory_v1 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/admin_directory_v1.rb +1 -1
- data/lib/google/apis/admin_directory_v1/classes.rb +412 -0
- 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 +295 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04da972e97cb6c3aa569de2f653a68a2a1e593a2864c3ee1bbd9965e8827abef
|
4
|
+
data.tar.gz: 2de04e2c91b2ca647c04752d3cedd199814a6586a17d1bab1df0446bbdf621ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ba92604a3f28e684c49219fa174493ded9775f9ffe2f4e67ae376e5b018d2c0014e8845e1131b62a579dcb09dab88a4fd4363675cd69b9efb87894558526e14
|
7
|
+
data.tar.gz: b58fe2b72e1f5abf952b082a3437f322874be195808b0390a9df28cec0361a68fe82ce037a32943f86a9b00a29f27890290ef44798ad49f8a3819ecbf6e715b4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-admin_directory_v1
|
2
2
|
|
3
|
+
### v0.5.0 (2021-03-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210309
|
6
|
+
* Regenerated using generator version 0.2.0
|
7
|
+
|
3
8
|
### v0.4.0 (2021-03-04)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20210302
|
@@ -109,7 +109,7 @@ module Google
|
|
109
109
|
# View user schemas on your domain
|
110
110
|
AUTH_ADMIN_DIRECTORY_USERSCHEMA_READONLY = 'https://www.googleapis.com/auth/admin.directory.userschema.readonly'
|
111
111
|
|
112
|
-
#
|
112
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
113
113
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
114
114
|
end
|
115
115
|
end
|
@@ -190,6 +190,129 @@ module Google
|
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
193
|
+
# Auxiliary message about issues with printers or settings. Example: `
|
194
|
+
# message_type:AUXILIARY_MESSAGE_WARNING, field_mask:make_and_model, message:"
|
195
|
+
# Given printer is invalid or no longer supported."`
|
196
|
+
class AuxiliaryMessage
|
197
|
+
include Google::Apis::Core::Hashable
|
198
|
+
|
199
|
+
# Human readable message in English. Example: "Given printer is invalid or no
|
200
|
+
# longer supported."
|
201
|
+
# Corresponds to the JSON property `auxiliaryMessage`
|
202
|
+
# @return [String]
|
203
|
+
attr_accessor :auxiliary_message
|
204
|
+
|
205
|
+
# Field that this message concerns.
|
206
|
+
# Corresponds to the JSON property `fieldMask`
|
207
|
+
# @return [String]
|
208
|
+
attr_accessor :field_mask
|
209
|
+
|
210
|
+
# Message severity
|
211
|
+
# Corresponds to the JSON property `severity`
|
212
|
+
# @return [String]
|
213
|
+
attr_accessor :severity
|
214
|
+
|
215
|
+
def initialize(**args)
|
216
|
+
update!(**args)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Update properties of this object
|
220
|
+
def update!(**args)
|
221
|
+
@auxiliary_message = args[:auxiliary_message] if args.key?(:auxiliary_message)
|
222
|
+
@field_mask = args[:field_mask] if args.key?(:field_mask)
|
223
|
+
@severity = args[:severity] if args.key?(:severity)
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# Request for adding new printers in batch.
|
228
|
+
class BatchCreatePrintersRequest
|
229
|
+
include Google::Apis::Core::Hashable
|
230
|
+
|
231
|
+
# A list of Printers to be created. Max 50 at a time.
|
232
|
+
# Corresponds to the JSON property `requests`
|
233
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::CreatePrinterRequest>]
|
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
|
+
# Response for adding new printers in batch.
|
247
|
+
class BatchCreatePrintersResponse
|
248
|
+
include Google::Apis::Core::Hashable
|
249
|
+
|
250
|
+
# A list of create failures. Printer IDs are not populated, as printer were not
|
251
|
+
# created.
|
252
|
+
# Corresponds to the JSON property `failures`
|
253
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::FailureInfo>]
|
254
|
+
attr_accessor :failures
|
255
|
+
|
256
|
+
# A list of successfully created printers with their IDs populated.
|
257
|
+
# Corresponds to the JSON property `printers`
|
258
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Printer>]
|
259
|
+
attr_accessor :printers
|
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
|
+
@printers = args[:printers] if args.key?(:printers)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# Request for deleting existing printers in batch.
|
273
|
+
class BatchDeletePrintersRequest
|
274
|
+
include Google::Apis::Core::Hashable
|
275
|
+
|
276
|
+
# A list of Printer.id that should be deleted. Max 100 at a time.
|
277
|
+
# Corresponds to the JSON property `printerIds`
|
278
|
+
# @return [Array<String>]
|
279
|
+
attr_accessor :printer_ids
|
280
|
+
|
281
|
+
def initialize(**args)
|
282
|
+
update!(**args)
|
283
|
+
end
|
284
|
+
|
285
|
+
# Update properties of this object
|
286
|
+
def update!(**args)
|
287
|
+
@printer_ids = args[:printer_ids] if args.key?(:printer_ids)
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
# Response for deleting existing printers in batch.
|
292
|
+
class BatchDeletePrintersResponse
|
293
|
+
include Google::Apis::Core::Hashable
|
294
|
+
|
295
|
+
# A list of update failures.
|
296
|
+
# Corresponds to the JSON property `failedPrinters`
|
297
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::FailureInfo>]
|
298
|
+
attr_accessor :failed_printers
|
299
|
+
|
300
|
+
# A list of Printer.id that were successfully deleted.
|
301
|
+
# Corresponds to the JSON property `printerIds`
|
302
|
+
# @return [Array<String>]
|
303
|
+
attr_accessor :printer_ids
|
304
|
+
|
305
|
+
def initialize(**args)
|
306
|
+
update!(**args)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Update properties of this object
|
310
|
+
def update!(**args)
|
311
|
+
@failed_printers = args[:failed_printers] if args.key?(:failed_printers)
|
312
|
+
@printer_ids = args[:printer_ids] if args.key?(:printer_ids)
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
193
316
|
# Public API: Resources.buildings
|
194
317
|
class Building
|
195
318
|
include Google::Apis::Core::Hashable
|
@@ -789,6 +912,12 @@ module Google
|
|
789
912
|
# @return [Array<Google::Apis::AdminDirectoryV1::RecentUsers>]
|
790
913
|
attr_accessor :recent_users
|
791
914
|
|
915
|
+
# List of screenshot files to download. Type is always "SCREENSHOT_FILE". (Read-
|
916
|
+
# only)
|
917
|
+
# Corresponds to the JSON property `screenshotFiles`
|
918
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ScreenshotFile>]
|
919
|
+
attr_accessor :screenshot_files
|
920
|
+
|
792
921
|
# The Chrome device serial number entered when the device was enabled. This
|
793
922
|
# value is the same as the Admin console's *Serial Number* in the *Chrome OS
|
794
923
|
# Devices* tab.
|
@@ -863,6 +992,7 @@ module Google
|
|
863
992
|
@os_version = args[:os_version] if args.key?(:os_version)
|
864
993
|
@platform_version = args[:platform_version] if args.key?(:platform_version)
|
865
994
|
@recent_users = args[:recent_users] if args.key?(:recent_users)
|
995
|
+
@screenshot_files = args[:screenshot_files] if args.key?(:screenshot_files)
|
866
996
|
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
867
997
|
@status = args[:status] if args.key?(:status)
|
868
998
|
@support_end_date = args[:support_end_date] if args.key?(:support_end_date)
|
@@ -1065,6 +1195,43 @@ module Google
|
|
1065
1195
|
end
|
1066
1196
|
end
|
1067
1197
|
|
1198
|
+
#
|
1199
|
+
class ScreenshotFile
|
1200
|
+
include Google::Apis::Core::Hashable
|
1201
|
+
|
1202
|
+
# Date and time the file was created
|
1203
|
+
# Corresponds to the JSON property `createTime`
|
1204
|
+
# @return [DateTime]
|
1205
|
+
attr_accessor :create_time
|
1206
|
+
|
1207
|
+
# File download URL
|
1208
|
+
# Corresponds to the JSON property `downloadUrl`
|
1209
|
+
# @return [String]
|
1210
|
+
attr_accessor :download_url
|
1211
|
+
|
1212
|
+
# File name
|
1213
|
+
# Corresponds to the JSON property `name`
|
1214
|
+
# @return [String]
|
1215
|
+
attr_accessor :name
|
1216
|
+
|
1217
|
+
# File type
|
1218
|
+
# Corresponds to the JSON property `type`
|
1219
|
+
# @return [String]
|
1220
|
+
attr_accessor :type
|
1221
|
+
|
1222
|
+
def initialize(**args)
|
1223
|
+
update!(**args)
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# Update properties of this object
|
1227
|
+
def update!(**args)
|
1228
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1229
|
+
@download_url = args[:download_url] if args.key?(:download_url)
|
1230
|
+
@name = args[:name] if args.key?(:name)
|
1231
|
+
@type = args[:type] if args.key?(:type)
|
1232
|
+
end
|
1233
|
+
end
|
1234
|
+
|
1068
1235
|
#
|
1069
1236
|
class SystemRamFreeReport
|
1070
1237
|
include Google::Apis::Core::Hashable
|
@@ -1226,6 +1393,31 @@ module Google
|
|
1226
1393
|
end
|
1227
1394
|
end
|
1228
1395
|
|
1396
|
+
# Request for adding a new printer.
|
1397
|
+
class CreatePrinterRequest
|
1398
|
+
include Google::Apis::Core::Hashable
|
1399
|
+
|
1400
|
+
# Required. The name of the customer. Format: customers/`customer_id`
|
1401
|
+
# Corresponds to the JSON property `parent`
|
1402
|
+
# @return [String]
|
1403
|
+
attr_accessor :parent
|
1404
|
+
|
1405
|
+
# Printer configuration.
|
1406
|
+
# Corresponds to the JSON property `printer`
|
1407
|
+
# @return [Google::Apis::AdminDirectoryV1::Printer]
|
1408
|
+
attr_accessor :printer
|
1409
|
+
|
1410
|
+
def initialize(**args)
|
1411
|
+
update!(**args)
|
1412
|
+
end
|
1413
|
+
|
1414
|
+
# Update properties of this object
|
1415
|
+
def update!(**args)
|
1416
|
+
@parent = args[:parent] if args.key?(:parent)
|
1417
|
+
@printer = args[:printer] if args.key?(:printer)
|
1418
|
+
end
|
1419
|
+
end
|
1420
|
+
|
1229
1421
|
#
|
1230
1422
|
class Customer
|
1231
1423
|
include Google::Apis::Core::Hashable
|
@@ -1678,6 +1870,60 @@ module Google
|
|
1678
1870
|
end
|
1679
1871
|
end
|
1680
1872
|
|
1873
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1874
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
1875
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
1876
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
1877
|
+
# `Empty` is empty JSON object ````.
|
1878
|
+
class Empty
|
1879
|
+
include Google::Apis::Core::Hashable
|
1880
|
+
|
1881
|
+
def initialize(**args)
|
1882
|
+
update!(**args)
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
# Update properties of this object
|
1886
|
+
def update!(**args)
|
1887
|
+
end
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
# Info about failures
|
1891
|
+
class FailureInfo
|
1892
|
+
include Google::Apis::Core::Hashable
|
1893
|
+
|
1894
|
+
# Canonical code for why the update failed to apply.
|
1895
|
+
# Corresponds to the JSON property `errorCode`
|
1896
|
+
# @return [String]
|
1897
|
+
attr_accessor :error_code
|
1898
|
+
|
1899
|
+
# Failure reason message.
|
1900
|
+
# Corresponds to the JSON property `errorMessage`
|
1901
|
+
# @return [String]
|
1902
|
+
attr_accessor :error_message
|
1903
|
+
|
1904
|
+
# Printer configuration.
|
1905
|
+
# Corresponds to the JSON property `printer`
|
1906
|
+
# @return [Google::Apis::AdminDirectoryV1::Printer]
|
1907
|
+
attr_accessor :printer
|
1908
|
+
|
1909
|
+
# Ids of failed printers.
|
1910
|
+
# Corresponds to the JSON property `printerIds`
|
1911
|
+
# @return [String]
|
1912
|
+
attr_accessor :printer_ids
|
1913
|
+
|
1914
|
+
def initialize(**args)
|
1915
|
+
update!(**args)
|
1916
|
+
end
|
1917
|
+
|
1918
|
+
# Update properties of this object
|
1919
|
+
def update!(**args)
|
1920
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
1921
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
1922
|
+
@printer = args[:printer] if args.key?(:printer)
|
1923
|
+
@printer_ids = args[:printer_ids] if args.key?(:printer_ids)
|
1924
|
+
end
|
1925
|
+
end
|
1926
|
+
|
1681
1927
|
# JSON template for Feature object in Directory API.
|
1682
1928
|
class Feature
|
1683
1929
|
include Google::Apis::Core::Hashable
|
@@ -1915,6 +2161,61 @@ module Google
|
|
1915
2161
|
end
|
1916
2162
|
end
|
1917
2163
|
|
2164
|
+
# Response for listing allowed printer models.
|
2165
|
+
class ListPrinterModelsResponse
|
2166
|
+
include Google::Apis::Core::Hashable
|
2167
|
+
|
2168
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
2169
|
+
# field is omitted, there are no subsequent pages.
|
2170
|
+
# Corresponds to the JSON property `nextPageToken`
|
2171
|
+
# @return [String]
|
2172
|
+
attr_accessor :next_page_token
|
2173
|
+
|
2174
|
+
# Printer models that are currently allowed to be configured for ChromeOs. Some
|
2175
|
+
# printers may be added or removed over time.
|
2176
|
+
# Corresponds to the JSON property `printerModels`
|
2177
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::PrinterModel>]
|
2178
|
+
attr_accessor :printer_models
|
2179
|
+
|
2180
|
+
def initialize(**args)
|
2181
|
+
update!(**args)
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
# Update properties of this object
|
2185
|
+
def update!(**args)
|
2186
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2187
|
+
@printer_models = args[:printer_models] if args.key?(:printer_models)
|
2188
|
+
end
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
# Response for listing printers.
|
2192
|
+
class ListPrintersResponse
|
2193
|
+
include Google::Apis::Core::Hashable
|
2194
|
+
|
2195
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
2196
|
+
# field is omitted, there are no subsequent pages.
|
2197
|
+
# Corresponds to the JSON property `nextPageToken`
|
2198
|
+
# @return [String]
|
2199
|
+
attr_accessor :next_page_token
|
2200
|
+
|
2201
|
+
# List of printers. If `org_unit_id` was given in the request, then only
|
2202
|
+
# printers visible for this OU will be returned. If `org_unit_id` was given in
|
2203
|
+
# the request, then all printers will be returned.
|
2204
|
+
# Corresponds to the JSON property `printers`
|
2205
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Printer>]
|
2206
|
+
attr_accessor :printers
|
2207
|
+
|
2208
|
+
def initialize(**args)
|
2209
|
+
update!(**args)
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
# Update properties of this object
|
2213
|
+
def update!(**args)
|
2214
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2215
|
+
@printers = args[:printers] if args.key?(:printers)
|
2216
|
+
end
|
2217
|
+
end
|
2218
|
+
|
1918
2219
|
# A Google Groups member can be a user or another group. This member can be
|
1919
2220
|
# inside or outside of your account's domains. For more information about common
|
1920
2221
|
# group member tasks, see the [Developer's Guide](/admin-sdk/directory/v1/guides/
|
@@ -2561,6 +2862,117 @@ module Google
|
|
2561
2862
|
end
|
2562
2863
|
end
|
2563
2864
|
|
2865
|
+
# Printer configuration.
|
2866
|
+
class Printer
|
2867
|
+
include Google::Apis::Core::Hashable
|
2868
|
+
|
2869
|
+
# Output only. Auxiliary messages about issues with the printer configuration if
|
2870
|
+
# any.
|
2871
|
+
# Corresponds to the JSON property `auxiliaryMessages`
|
2872
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::AuxiliaryMessage>]
|
2873
|
+
attr_accessor :auxiliary_messages
|
2874
|
+
|
2875
|
+
# Output only. Time when printer was created.
|
2876
|
+
# Corresponds to the JSON property `createTime`
|
2877
|
+
# @return [String]
|
2878
|
+
attr_accessor :create_time
|
2879
|
+
|
2880
|
+
# Editable. Description of printer.
|
2881
|
+
# Corresponds to the JSON property `description`
|
2882
|
+
# @return [String]
|
2883
|
+
attr_accessor :description
|
2884
|
+
|
2885
|
+
# Editable. Name of printer.
|
2886
|
+
# Corresponds to the JSON property `displayName`
|
2887
|
+
# @return [String]
|
2888
|
+
attr_accessor :display_name
|
2889
|
+
|
2890
|
+
# Id of the printer. (During printer creation leave empty)
|
2891
|
+
# Corresponds to the JSON property `id`
|
2892
|
+
# @return [String]
|
2893
|
+
attr_accessor :id
|
2894
|
+
|
2895
|
+
# Editable. Make and model of printer. e.g. Lexmark MS610de Value must be in
|
2896
|
+
# format as seen in ListPrinterModels response.
|
2897
|
+
# Corresponds to the JSON property `makeAndModel`
|
2898
|
+
# @return [String]
|
2899
|
+
attr_accessor :make_and_model
|
2900
|
+
|
2901
|
+
# The resource name of the Printer object, in the format customers/`customer-id`/
|
2902
|
+
# printers/`printer-id` (During printer creation leave empty)
|
2903
|
+
# Corresponds to the JSON property `name`
|
2904
|
+
# @return [String]
|
2905
|
+
attr_accessor :name
|
2906
|
+
|
2907
|
+
# Organization Unit that owns this printer (Only can be set during Printer
|
2908
|
+
# creation)
|
2909
|
+
# Corresponds to the JSON property `orgUnitId`
|
2910
|
+
# @return [String]
|
2911
|
+
attr_accessor :org_unit_id
|
2912
|
+
|
2913
|
+
# Editable. Printer URI.
|
2914
|
+
# Corresponds to the JSON property `uri`
|
2915
|
+
# @return [String]
|
2916
|
+
attr_accessor :uri
|
2917
|
+
|
2918
|
+
# Editable. flag to use driverless configuration or not. If it's set to be true,
|
2919
|
+
# make_and_model can be ignored
|
2920
|
+
# Corresponds to the JSON property `useDriverlessConfig`
|
2921
|
+
# @return [Boolean]
|
2922
|
+
attr_accessor :use_driverless_config
|
2923
|
+
alias_method :use_driverless_config?, :use_driverless_config
|
2924
|
+
|
2925
|
+
def initialize(**args)
|
2926
|
+
update!(**args)
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
# Update properties of this object
|
2930
|
+
def update!(**args)
|
2931
|
+
@auxiliary_messages = args[:auxiliary_messages] if args.key?(:auxiliary_messages)
|
2932
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2933
|
+
@description = args[:description] if args.key?(:description)
|
2934
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2935
|
+
@id = args[:id] if args.key?(:id)
|
2936
|
+
@make_and_model = args[:make_and_model] if args.key?(:make_and_model)
|
2937
|
+
@name = args[:name] if args.key?(:name)
|
2938
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
2939
|
+
@uri = args[:uri] if args.key?(:uri)
|
2940
|
+
@use_driverless_config = args[:use_driverless_config] if args.key?(:use_driverless_config)
|
2941
|
+
end
|
2942
|
+
end
|
2943
|
+
|
2944
|
+
# Printer manufacturer and model
|
2945
|
+
class PrinterModel
|
2946
|
+
include Google::Apis::Core::Hashable
|
2947
|
+
|
2948
|
+
# Display name. eq. "Brother MFC-8840D"
|
2949
|
+
# Corresponds to the JSON property `displayName`
|
2950
|
+
# @return [String]
|
2951
|
+
attr_accessor :display_name
|
2952
|
+
|
2953
|
+
# Make and model as represented in "make_and_model" field in Printer object. eq.
|
2954
|
+
# "brother mfc-8840d"
|
2955
|
+
# Corresponds to the JSON property `makeAndModel`
|
2956
|
+
# @return [String]
|
2957
|
+
attr_accessor :make_and_model
|
2958
|
+
|
2959
|
+
# Manufacturer. eq. "Brother"
|
2960
|
+
# Corresponds to the JSON property `manufacturer`
|
2961
|
+
# @return [String]
|
2962
|
+
attr_accessor :manufacturer
|
2963
|
+
|
2964
|
+
def initialize(**args)
|
2965
|
+
update!(**args)
|
2966
|
+
end
|
2967
|
+
|
2968
|
+
# Update properties of this object
|
2969
|
+
def update!(**args)
|
2970
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2971
|
+
@make_and_model = args[:make_and_model] if args.key?(:make_and_model)
|
2972
|
+
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
2973
|
+
end
|
2974
|
+
end
|
2975
|
+
|
2564
2976
|
#
|
2565
2977
|
class Privilege
|
2566
2978
|
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.
|
19
|
+
GEM_VERSION = "0.5.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 = "20210309"
|
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.
|
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.
|
4
|
+
version: 0.5.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: 2021-03-
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-admin_directory_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.5.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-admin_directory_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|