google-apis-admin_directory_v1 0.3.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 776c7734e9e7b82b4b6e06018867ddc1ba7f37afefd48df94ef4de0e89eca7cd
4
- data.tar.gz: 11b4652dc946a65cbac0823e9214d829fe1c0d114ad0e711ed5f9794121fa5eb
3
+ metadata.gz: e71a6ce55133d58cc765ecf8066f2fa43ddbee2859666d4e3538fef1fd9d29fc
4
+ data.tar.gz: 51e06eacc5b3dfe894b0e705fd687bf5264ed1067ded17a04f40b2b10f82eb95
5
5
  SHA512:
6
- metadata.gz: f8cd3e92470be2faa5d61597284fdc97bd2d9d038e77f5b8bce203c5c7d1096e3d7e6f6100b3598b48e04ebb801bb13d87ac1978b90f07b7bfef7f8181d059f2
7
- data.tar.gz: bb9012891aeb586842956f09f07fc871baaccedfa5697d1179e446b3bc0842c730105cf31c8e86c69c3d0b2c5f2746615f68879aff6ab43102e1e211dfa0f6bc
6
+ metadata.gz: 29e2d71c36e98e3397e942e463846c40c7c4249b6ddf61b96106875431d646ec2725c2e84bfa323cd8ac98ba8399960d64b7240a5781c8130336fb292bb44a3a
7
+ data.tar.gz: 55be2349ca2e496f3fb9de9d581e0846b6a44ded829d6361ae4a19c47f07dea87b3b5be8a1f6ce05824f02336681b969a3285c6770d77c1b3d641c6b5ad2486a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-admin_directory_v1
2
2
 
3
+ ### v0.8.0 (2021-04-28)
4
+
5
+ * Regenerated from discovery document revision 20210427
6
+
7
+ ### v0.7.0 (2021-03-24)
8
+
9
+ * Regenerated from discovery document revision 20210323
10
+
11
+ ### v0.6.0 (2021-03-17)
12
+
13
+ * Regenerated from discovery document revision 20210316
14
+
15
+ ### v0.5.0 (2021-03-10)
16
+
17
+ * Regenerated from discovery document revision 20210309
18
+ * Regenerated using generator version 0.2.0
19
+
20
+ ### v0.4.0 (2021-03-04)
21
+
22
+ * Regenerated from discovery document revision 20210302
23
+
3
24
  ### v0.3.0 (2021-02-24)
4
25
 
5
26
  * Regenerated from discovery document revision 20210223
@@ -31,6 +31,12 @@ module Google
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'DirectoryV1'
33
33
 
34
+ # See, add, edit, and permanently delete the printers that your organization can use with Chrome
35
+ AUTH_ADMIN_CHROME_PRINTERS = 'https://www.googleapis.com/auth/admin.chrome.printers'
36
+
37
+ # See the printers that your organization can use with Chrome
38
+ AUTH_ADMIN_CHROME_PRINTERS_READONLY = 'https://www.googleapis.com/auth/admin.chrome.printers.readonly'
39
+
34
40
  # View and manage customer related information
35
41
  AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
36
42
 
@@ -109,7 +115,7 @@ module Google
109
115
  # View user schemas on your domain
110
116
  AUTH_ADMIN_DIRECTORY_USERSCHEMA_READONLY = 'https://www.googleapis.com/auth/admin.directory.userschema.readonly'
111
117
 
112
- # View and manage your data across Google Cloud Platform services
118
+ # See, edit, configure, and delete your Google Cloud Platform data
113
119
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
114
120
  end
115
121
  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
@@ -786,9 +909,15 @@ module Google
786
909
 
787
910
  # List of recent device users, in descending order, by last login time.
788
911
  # Corresponds to the JSON property `recentUsers`
789
- # @return [Array<Google::Apis::AdminDirectoryV1::RecentUsers>]
912
+ # @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser>]
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,69 @@ module Google
1065
1195
  end
1066
1196
  end
1067
1197
 
1198
+ # List of recent device users, in descending order, by last login time.
1199
+ class RecentUser
1200
+ include Google::Apis::Core::Hashable
1201
+
1202
+ # The user's email address. This is only present if the user type is `
1203
+ # USER_TYPE_MANAGED`.
1204
+ # Corresponds to the JSON property `email`
1205
+ # @return [String]
1206
+ attr_accessor :email
1207
+
1208
+ # The type of the user.
1209
+ # Corresponds to the JSON property `type`
1210
+ # @return [String]
1211
+ attr_accessor :type
1212
+
1213
+ def initialize(**args)
1214
+ update!(**args)
1215
+ end
1216
+
1217
+ # Update properties of this object
1218
+ def update!(**args)
1219
+ @email = args[:email] if args.key?(:email)
1220
+ @type = args[:type] if args.key?(:type)
1221
+ end
1222
+ end
1223
+
1224
+ #
1225
+ class ScreenshotFile
1226
+ include Google::Apis::Core::Hashable
1227
+
1228
+ # Date and time the file was created
1229
+ # Corresponds to the JSON property `createTime`
1230
+ # @return [DateTime]
1231
+ attr_accessor :create_time
1232
+
1233
+ # File download URL
1234
+ # Corresponds to the JSON property `downloadUrl`
1235
+ # @return [String]
1236
+ attr_accessor :download_url
1237
+
1238
+ # File name
1239
+ # Corresponds to the JSON property `name`
1240
+ # @return [String]
1241
+ attr_accessor :name
1242
+
1243
+ # File type
1244
+ # Corresponds to the JSON property `type`
1245
+ # @return [String]
1246
+ attr_accessor :type
1247
+
1248
+ def initialize(**args)
1249
+ update!(**args)
1250
+ end
1251
+
1252
+ # Update properties of this object
1253
+ def update!(**args)
1254
+ @create_time = args[:create_time] if args.key?(:create_time)
1255
+ @download_url = args[:download_url] if args.key?(:download_url)
1256
+ @name = args[:name] if args.key?(:name)
1257
+ @type = args[:type] if args.key?(:type)
1258
+ end
1259
+ end
1260
+
1068
1261
  #
1069
1262
  class SystemRamFreeReport
1070
1263
  include Google::Apis::Core::Hashable
@@ -1226,6 +1419,31 @@ module Google
1226
1419
  end
1227
1420
  end
1228
1421
 
1422
+ # Request for adding a new printer.
1423
+ class CreatePrinterRequest
1424
+ include Google::Apis::Core::Hashable
1425
+
1426
+ # Required. The name of the customer. Format: customers/`customer_id`
1427
+ # Corresponds to the JSON property `parent`
1428
+ # @return [String]
1429
+ attr_accessor :parent
1430
+
1431
+ # Printer configuration.
1432
+ # Corresponds to the JSON property `printer`
1433
+ # @return [Google::Apis::AdminDirectoryV1::Printer]
1434
+ attr_accessor :printer
1435
+
1436
+ def initialize(**args)
1437
+ update!(**args)
1438
+ end
1439
+
1440
+ # Update properties of this object
1441
+ def update!(**args)
1442
+ @parent = args[:parent] if args.key?(:parent)
1443
+ @printer = args[:printer] if args.key?(:printer)
1444
+ end
1445
+ end
1446
+
1229
1447
  #
1230
1448
  class Customer
1231
1449
  include Google::Apis::Core::Hashable
@@ -1678,6 +1896,60 @@ module Google
1678
1896
  end
1679
1897
  end
1680
1898
 
1899
+ # A generic empty message that you can re-use to avoid defining duplicated empty
1900
+ # messages in your APIs. A typical example is to use it as the request or the
1901
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
1902
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
1903
+ # `Empty` is empty JSON object ````.
1904
+ class Empty
1905
+ include Google::Apis::Core::Hashable
1906
+
1907
+ def initialize(**args)
1908
+ update!(**args)
1909
+ end
1910
+
1911
+ # Update properties of this object
1912
+ def update!(**args)
1913
+ end
1914
+ end
1915
+
1916
+ # Info about failures
1917
+ class FailureInfo
1918
+ include Google::Apis::Core::Hashable
1919
+
1920
+ # Canonical code for why the update failed to apply.
1921
+ # Corresponds to the JSON property `errorCode`
1922
+ # @return [String]
1923
+ attr_accessor :error_code
1924
+
1925
+ # Failure reason message.
1926
+ # Corresponds to the JSON property `errorMessage`
1927
+ # @return [String]
1928
+ attr_accessor :error_message
1929
+
1930
+ # Printer configuration.
1931
+ # Corresponds to the JSON property `printer`
1932
+ # @return [Google::Apis::AdminDirectoryV1::Printer]
1933
+ attr_accessor :printer
1934
+
1935
+ # Id of a failed printer.
1936
+ # Corresponds to the JSON property `printerId`
1937
+ # @return [String]
1938
+ attr_accessor :printer_id
1939
+
1940
+ def initialize(**args)
1941
+ update!(**args)
1942
+ end
1943
+
1944
+ # Update properties of this object
1945
+ def update!(**args)
1946
+ @error_code = args[:error_code] if args.key?(:error_code)
1947
+ @error_message = args[:error_message] if args.key?(:error_message)
1948
+ @printer = args[:printer] if args.key?(:printer)
1949
+ @printer_id = args[:printer_id] if args.key?(:printer_id)
1950
+ end
1951
+ end
1952
+
1681
1953
  # JSON template for Feature object in Directory API.
1682
1954
  class Feature
1683
1955
  include Google::Apis::Core::Hashable
@@ -1915,6 +2187,61 @@ module Google
1915
2187
  end
1916
2188
  end
1917
2189
 
2190
+ # Response for listing allowed printer models.
2191
+ class ListPrinterModelsResponse
2192
+ include Google::Apis::Core::Hashable
2193
+
2194
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
2195
+ # field is omitted, there are no subsequent pages.
2196
+ # Corresponds to the JSON property `nextPageToken`
2197
+ # @return [String]
2198
+ attr_accessor :next_page_token
2199
+
2200
+ # Printer models that are currently allowed to be configured for ChromeOs. Some
2201
+ # printers may be added or removed over time.
2202
+ # Corresponds to the JSON property `printerModels`
2203
+ # @return [Array<Google::Apis::AdminDirectoryV1::PrinterModel>]
2204
+ attr_accessor :printer_models
2205
+
2206
+ def initialize(**args)
2207
+ update!(**args)
2208
+ end
2209
+
2210
+ # Update properties of this object
2211
+ def update!(**args)
2212
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2213
+ @printer_models = args[:printer_models] if args.key?(:printer_models)
2214
+ end
2215
+ end
2216
+
2217
+ # Response for listing printers.
2218
+ class ListPrintersResponse
2219
+ include Google::Apis::Core::Hashable
2220
+
2221
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
2222
+ # field is omitted, there are no subsequent pages.
2223
+ # Corresponds to the JSON property `nextPageToken`
2224
+ # @return [String]
2225
+ attr_accessor :next_page_token
2226
+
2227
+ # List of printers. If `org_unit_id` was given in the request, then only
2228
+ # printers visible for this OU will be returned. If `org_unit_id` was given in
2229
+ # the request, then all printers will be returned.
2230
+ # Corresponds to the JSON property `printers`
2231
+ # @return [Array<Google::Apis::AdminDirectoryV1::Printer>]
2232
+ attr_accessor :printers
2233
+
2234
+ def initialize(**args)
2235
+ update!(**args)
2236
+ end
2237
+
2238
+ # Update properties of this object
2239
+ def update!(**args)
2240
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2241
+ @printers = args[:printers] if args.key?(:printers)
2242
+ end
2243
+ end
2244
+
1918
2245
  # A Google Groups member can be a user or another group. This member can be
1919
2246
  # inside or outside of your account's domains. For more information about common
1920
2247
  # group member tasks, see the [Developer's Guide](/admin-sdk/directory/v1/guides/
@@ -2561,6 +2888,117 @@ module Google
2561
2888
  end
2562
2889
  end
2563
2890
 
2891
+ # Printer configuration.
2892
+ class Printer
2893
+ include Google::Apis::Core::Hashable
2894
+
2895
+ # Output only. Auxiliary messages about issues with the printer configuration if
2896
+ # any.
2897
+ # Corresponds to the JSON property `auxiliaryMessages`
2898
+ # @return [Array<Google::Apis::AdminDirectoryV1::AuxiliaryMessage>]
2899
+ attr_accessor :auxiliary_messages
2900
+
2901
+ # Output only. Time when printer was created.
2902
+ # Corresponds to the JSON property `createTime`
2903
+ # @return [String]
2904
+ attr_accessor :create_time
2905
+
2906
+ # Editable. Description of printer.
2907
+ # Corresponds to the JSON property `description`
2908
+ # @return [String]
2909
+ attr_accessor :description
2910
+
2911
+ # Editable. Name of printer.
2912
+ # Corresponds to the JSON property `displayName`
2913
+ # @return [String]
2914
+ attr_accessor :display_name
2915
+
2916
+ # Id of the printer. (During printer creation leave empty)
2917
+ # Corresponds to the JSON property `id`
2918
+ # @return [String]
2919
+ attr_accessor :id
2920
+
2921
+ # Editable. Make and model of printer. e.g. Lexmark MS610de Value must be in
2922
+ # format as seen in ListPrinterModels response.
2923
+ # Corresponds to the JSON property `makeAndModel`
2924
+ # @return [String]
2925
+ attr_accessor :make_and_model
2926
+
2927
+ # The resource name of the Printer object, in the format customers/`customer-id`/
2928
+ # printers/`printer-id` (During printer creation leave empty)
2929
+ # Corresponds to the JSON property `name`
2930
+ # @return [String]
2931
+ attr_accessor :name
2932
+
2933
+ # Organization Unit that owns this printer (Only can be set during Printer
2934
+ # creation)
2935
+ # Corresponds to the JSON property `orgUnitId`
2936
+ # @return [String]
2937
+ attr_accessor :org_unit_id
2938
+
2939
+ # Editable. Printer URI.
2940
+ # Corresponds to the JSON property `uri`
2941
+ # @return [String]
2942
+ attr_accessor :uri
2943
+
2944
+ # Editable. flag to use driverless configuration or not. If it's set to be true,
2945
+ # make_and_model can be ignored
2946
+ # Corresponds to the JSON property `useDriverlessConfig`
2947
+ # @return [Boolean]
2948
+ attr_accessor :use_driverless_config
2949
+ alias_method :use_driverless_config?, :use_driverless_config
2950
+
2951
+ def initialize(**args)
2952
+ update!(**args)
2953
+ end
2954
+
2955
+ # Update properties of this object
2956
+ def update!(**args)
2957
+ @auxiliary_messages = args[:auxiliary_messages] if args.key?(:auxiliary_messages)
2958
+ @create_time = args[:create_time] if args.key?(:create_time)
2959
+ @description = args[:description] if args.key?(:description)
2960
+ @display_name = args[:display_name] if args.key?(:display_name)
2961
+ @id = args[:id] if args.key?(:id)
2962
+ @make_and_model = args[:make_and_model] if args.key?(:make_and_model)
2963
+ @name = args[:name] if args.key?(:name)
2964
+ @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
2965
+ @uri = args[:uri] if args.key?(:uri)
2966
+ @use_driverless_config = args[:use_driverless_config] if args.key?(:use_driverless_config)
2967
+ end
2968
+ end
2969
+
2970
+ # Printer manufacturer and model
2971
+ class PrinterModel
2972
+ include Google::Apis::Core::Hashable
2973
+
2974
+ # Display name. eq. "Brother MFC-8840D"
2975
+ # Corresponds to the JSON property `displayName`
2976
+ # @return [String]
2977
+ attr_accessor :display_name
2978
+
2979
+ # Make and model as represented in "make_and_model" field in Printer object. eq.
2980
+ # "brother mfc-8840d"
2981
+ # Corresponds to the JSON property `makeAndModel`
2982
+ # @return [String]
2983
+ attr_accessor :make_and_model
2984
+
2985
+ # Manufacturer. eq. "Brother"
2986
+ # Corresponds to the JSON property `manufacturer`
2987
+ # @return [String]
2988
+ attr_accessor :manufacturer
2989
+
2990
+ def initialize(**args)
2991
+ update!(**args)
2992
+ end
2993
+
2994
+ # Update properties of this object
2995
+ def update!(**args)
2996
+ @display_name = args[:display_name] if args.key?(:display_name)
2997
+ @make_and_model = args[:make_and_model] if args.key?(:make_and_model)
2998
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
2999
+ end
3000
+ end
3001
+
2564
3002
  #
2565
3003
  class Privilege
2566
3004
  include Google::Apis::Core::Hashable
@@ -2651,32 +3089,6 @@ module Google
2651
3089
  end
2652
3090
  end
2653
3091
 
2654
- # List of recent device users, in descending order, by last login time.
2655
- class RecentUsers
2656
- include Google::Apis::Core::Hashable
2657
-
2658
- # The user's email address. This is only present if the user type is `
2659
- # USER_TYPE_MANAGED`.
2660
- # Corresponds to the JSON property `email`
2661
- # @return [String]
2662
- attr_accessor :email
2663
-
2664
- # The type of the user.
2665
- # Corresponds to the JSON property `type`
2666
- # @return [String]
2667
- attr_accessor :type
2668
-
2669
- def initialize(**args)
2670
- update!(**args)
2671
- end
2672
-
2673
- # Update properties of this object
2674
- def update!(**args)
2675
- @email = args[:email] if args.key?(:email)
2676
- @type = args[:type] if args.key?(:type)
2677
- end
2678
- end
2679
-
2680
3092
  #
2681
3093
  class Role
2682
3094
  include Google::Apis::Core::Hashable
@@ -2766,7 +3178,7 @@ module Google
2766
3178
  end
2767
3179
  end
2768
3180
 
2769
- #
3181
+ # Defines an assignment of a role.
2770
3182
  class RoleAssignment
2771
3183
  include Google::Apis::Core::Hashable
2772
3184
 
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210223"
25
+ REVISION = "20210427"
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,18 @@ module Google
133
163
  include Google::Apis::Core::JsonObjectSupport
134
164
  end
135
165
 
166
+ class RecentUser
167
+ class Representation < Google::Apis::Core::JsonRepresentation; end
168
+
169
+ include Google::Apis::Core::JsonObjectSupport
170
+ end
171
+
172
+ class ScreenshotFile
173
+ class Representation < Google::Apis::Core::JsonRepresentation; end
174
+
175
+ include Google::Apis::Core::JsonObjectSupport
176
+ end
177
+
136
178
  class SystemRamFreeReport
137
179
  class Representation < Google::Apis::Core::JsonRepresentation; end
138
180
 
@@ -166,6 +208,12 @@ module Google
166
208
  include Google::Apis::Core::JsonObjectSupport
167
209
  end
168
210
 
211
+ class CreatePrinterRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
169
217
  class Customer
170
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
219
 
@@ -226,6 +274,18 @@ module Google
226
274
  include Google::Apis::Core::JsonObjectSupport
227
275
  end
228
276
 
277
+ class Empty
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class FailureInfo
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
229
289
  class Feature
230
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
291
 
@@ -262,6 +322,18 @@ module Google
262
322
  include Google::Apis::Core::JsonObjectSupport
263
323
  end
264
324
 
325
+ class ListPrinterModelsResponse
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class ListPrintersResponse
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
265
337
  class Member
266
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
339
 
@@ -316,19 +388,25 @@ module Google
316
388
  include Google::Apis::Core::JsonObjectSupport
317
389
  end
318
390
 
319
- class Privilege
391
+ class Printer
320
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
393
 
322
394
  include Google::Apis::Core::JsonObjectSupport
323
395
  end
324
396
 
325
- class Privileges
397
+ class PrinterModel
326
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
399
 
328
400
  include Google::Apis::Core::JsonObjectSupport
329
401
  end
330
402
 
331
- class RecentUsers
403
+ class Privilege
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
409
+ class Privileges
332
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
411
 
334
412
  include Google::Apis::Core::JsonObjectSupport
@@ -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
@@ -715,7 +836,9 @@ module Google
715
836
  property :org_unit_path, as: 'orgUnitPath'
716
837
  property :os_version, as: 'osVersion'
717
838
  property :platform_version, as: 'platformVersion'
718
- collection :recent_users, as: 'recentUsers', class: Google::Apis::AdminDirectoryV1::RecentUsers, decorator: Google::Apis::AdminDirectoryV1::RecentUsers::Representation
839
+ collection :recent_users, as: 'recentUsers', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser::Representation
840
+
841
+ collection :screenshot_files, as: 'screenshotFiles', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::ScreenshotFile, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::ScreenshotFile::Representation
719
842
 
720
843
  property :serial_number, as: 'serialNumber'
721
844
  property :status, as: 'status'
@@ -793,6 +916,25 @@ module Google
793
916
  end
794
917
  end
795
918
 
919
+ class RecentUser
920
+ # @private
921
+ class Representation < Google::Apis::Core::JsonRepresentation
922
+ property :email, as: 'email'
923
+ property :type, as: 'type'
924
+ end
925
+ end
926
+
927
+ class ScreenshotFile
928
+ # @private
929
+ class Representation < Google::Apis::Core::JsonRepresentation
930
+ property :create_time, as: 'createTime', type: DateTime
931
+
932
+ property :download_url, as: 'downloadUrl'
933
+ property :name, as: 'name'
934
+ property :type, as: 'type'
935
+ end
936
+ end
937
+
796
938
  class SystemRamFreeReport
797
939
  # @private
798
940
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -841,6 +983,15 @@ module Google
841
983
  end
842
984
  end
843
985
 
986
+ class CreatePrinterRequest
987
+ # @private
988
+ class Representation < Google::Apis::Core::JsonRepresentation
989
+ property :parent, as: 'parent'
990
+ property :printer, as: 'printer', class: Google::Apis::AdminDirectoryV1::Printer, decorator: Google::Apis::AdminDirectoryV1::Printer::Representation
991
+
992
+ end
993
+ end
994
+
844
995
  class Customer
845
996
  # @private
846
997
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -957,6 +1108,23 @@ module Google
957
1108
  end
958
1109
  end
959
1110
 
1111
+ class Empty
1112
+ # @private
1113
+ class Representation < Google::Apis::Core::JsonRepresentation
1114
+ end
1115
+ end
1116
+
1117
+ class FailureInfo
1118
+ # @private
1119
+ class Representation < Google::Apis::Core::JsonRepresentation
1120
+ property :error_code, as: 'errorCode'
1121
+ property :error_message, as: 'errorMessage'
1122
+ property :printer, as: 'printer', class: Google::Apis::AdminDirectoryV1::Printer, decorator: Google::Apis::AdminDirectoryV1::Printer::Representation
1123
+
1124
+ property :printer_id, as: 'printerId'
1125
+ end
1126
+ end
1127
+
960
1128
  class Feature
961
1129
  # @private
962
1130
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1019,6 +1187,24 @@ module Google
1019
1187
  end
1020
1188
  end
1021
1189
 
1190
+ class ListPrinterModelsResponse
1191
+ # @private
1192
+ class Representation < Google::Apis::Core::JsonRepresentation
1193
+ property :next_page_token, as: 'nextPageToken'
1194
+ collection :printer_models, as: 'printerModels', class: Google::Apis::AdminDirectoryV1::PrinterModel, decorator: Google::Apis::AdminDirectoryV1::PrinterModel::Representation
1195
+
1196
+ end
1197
+ end
1198
+
1199
+ class ListPrintersResponse
1200
+ # @private
1201
+ class Representation < Google::Apis::Core::JsonRepresentation
1202
+ property :next_page_token, as: 'nextPageToken'
1203
+ collection :printers, as: 'printers', class: Google::Apis::AdminDirectoryV1::Printer, decorator: Google::Apis::AdminDirectoryV1::Printer::Representation
1204
+
1205
+ end
1206
+ end
1207
+
1022
1208
  class Member
1023
1209
  # @private
1024
1210
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1154,6 +1340,32 @@ module Google
1154
1340
  end
1155
1341
  end
1156
1342
 
1343
+ class Printer
1344
+ # @private
1345
+ class Representation < Google::Apis::Core::JsonRepresentation
1346
+ collection :auxiliary_messages, as: 'auxiliaryMessages', class: Google::Apis::AdminDirectoryV1::AuxiliaryMessage, decorator: Google::Apis::AdminDirectoryV1::AuxiliaryMessage::Representation
1347
+
1348
+ property :create_time, as: 'createTime'
1349
+ property :description, as: 'description'
1350
+ property :display_name, as: 'displayName'
1351
+ property :id, as: 'id'
1352
+ property :make_and_model, as: 'makeAndModel'
1353
+ property :name, as: 'name'
1354
+ property :org_unit_id, as: 'orgUnitId'
1355
+ property :uri, as: 'uri'
1356
+ property :use_driverless_config, as: 'useDriverlessConfig'
1357
+ end
1358
+ end
1359
+
1360
+ class PrinterModel
1361
+ # @private
1362
+ class Representation < Google::Apis::Core::JsonRepresentation
1363
+ property :display_name, as: 'displayName'
1364
+ property :make_and_model, as: 'makeAndModel'
1365
+ property :manufacturer, as: 'manufacturer'
1366
+ end
1367
+ end
1368
+
1157
1369
  class Privilege
1158
1370
  # @private
1159
1371
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1178,14 +1390,6 @@ module Google
1178
1390
  end
1179
1391
  end
1180
1392
 
1181
- class RecentUsers
1182
- # @private
1183
- class Representation < Google::Apis::Core::JsonRepresentation
1184
- property :email, as: 'email'
1185
- property :type, as: 'type'
1186
- end
1187
- end
1188
-
1189
1393
  class Role
1190
1394
  # @private
1191
1395
  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.
@@ -3390,6 +3685,8 @@ module Google
3390
3685
  # The domain name. Use this field to get fields from only one domain. To return
3391
3686
  # all domains for a customer account, use the `customer` query parameter instead.
3392
3687
  # Either the `customer` or the `domain` parameter must be provided.
3688
+ # @param [String] event
3689
+ # Event on which subscription is intended (if subscribing)
3393
3690
  # @param [Fixnum] max_results
3394
3691
  # Maximum number of results to return.
3395
3692
  # @param [String] order_by
@@ -3427,13 +3724,14 @@ module Google
3427
3724
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3428
3725
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3429
3726
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3430
- 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)
3431
3728
  command = make_simple_command(:get, 'admin/directory/v1/users', options)
3432
3729
  command.response_representation = Google::Apis::AdminDirectoryV1::Users::Representation
3433
3730
  command.response_class = Google::Apis::AdminDirectoryV1::Users
3434
3731
  command.query['customFieldMask'] = custom_field_mask unless custom_field_mask.nil?
3435
3732
  command.query['customer'] = customer unless customer.nil?
3436
3733
  command.query['domain'] = domain unless domain.nil?
3734
+ command.query['event'] = event unless event.nil?
3437
3735
  command.query['maxResults'] = max_results unless max_results.nil?
3438
3736
  command.query['orderBy'] = order_by unless order_by.nil?
3439
3737
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -3755,6 +4053,8 @@ module Google
3755
4053
  # @param [String] user_key
3756
4054
  # Identifies the user in the API request. The value can be the user's primary
3757
4055
  # email address, alias email address, or unique user ID.
4056
+ # @param [String] event
4057
+ # Events to watch for.
3758
4058
  # @param [String] fields
3759
4059
  # Selector specifying which fields to include in a partial response.
3760
4060
  # @param [String] quota_user
@@ -3772,11 +4072,12 @@ module Google
3772
4072
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3773
4073
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3774
4074
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3775
- def list_user_aliases(user_key, fields: nil, quota_user: nil, options: nil, &block)
4075
+ def list_user_aliases(user_key, event: nil, fields: nil, quota_user: nil, options: nil, &block)
3776
4076
  command = make_simple_command(:get, 'admin/directory/v1/users/{userKey}/aliases', options)
3777
4077
  command.response_representation = Google::Apis::AdminDirectoryV1::Aliases::Representation
3778
4078
  command.response_class = Google::Apis::AdminDirectoryV1::Aliases
3779
4079
  command.params['userKey'] = user_key unless user_key.nil?
4080
+ command.query['event'] = event unless event.nil?
3780
4081
  command.query['fields'] = fields unless fields.nil?
3781
4082
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3782
4083
  execute_or_queue_command(command, &block)
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.3.0
4
+ version: 0.8.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-01 00:00:00.000000000 Z
11
+ date: 2021-05-18 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.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.8.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.11
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Admin SDK API DirectoryV1