google-apis-admin_directory_v1 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/google/apis/admin_directory_v1/classes.rb +283 -43
- data/lib/google/apis/admin_directory_v1/gem_version.rb +3 -3
- data/lib/google/apis/admin_directory_v1/representations.rb +124 -0
- data/lib/google/apis/admin_directory_v1/service.rb +266 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a52ee0261f3420c191274101c9f14bd7a34d58e9b07a15aafd96caf44e0876d
|
4
|
+
data.tar.gz: 3008737910e922f35172792a35de28923469e7a0744420a73781bbf078ea3a5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d6e9d9967d0f4021279b1d6c9ad980fd4204b9f3d472e73e7760a656ec45fde5af0888de07015460b3e73434aa5dcbfd8d7f773029f0d458567eac087ed59c4
|
7
|
+
data.tar.gz: 643b3271b2d74d76c636defab3de39465daf78369d14a5fedd197e7e7c0ac7b9330eec2f9ae46c17878acb7a0e7b6d414720c0ab68f596074aee5b561c1b1747
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-admin_directory_v1
|
2
2
|
|
3
|
+
### v0.34.0 (2022-10-30)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221020
|
6
|
+
* Regenerated using generator version 0.11.0
|
7
|
+
|
8
|
+
### v0.33.0 (2022-09-24)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220919
|
11
|
+
* Regenerated using generator version 0.10.0
|
12
|
+
|
3
13
|
### v0.32.0 (2022-09-16)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20220913
|
@@ -224,6 +224,51 @@ module Google
|
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|
227
|
+
# Request to add multiple new print servers in a batch.
|
228
|
+
class BatchCreatePrintServersRequest
|
229
|
+
include Google::Apis::Core::Hashable
|
230
|
+
|
231
|
+
# Required. A list of `PrintServer` resources to be created (max `50` per batch).
|
232
|
+
# Corresponds to the JSON property `requests`
|
233
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::CreatePrintServerRequest>]
|
234
|
+
attr_accessor :requests
|
235
|
+
|
236
|
+
def initialize(**args)
|
237
|
+
update!(**args)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Update properties of this object
|
241
|
+
def update!(**args)
|
242
|
+
@requests = args[:requests] if args.key?(:requests)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
class BatchCreatePrintServersResponse
|
248
|
+
include Google::Apis::Core::Hashable
|
249
|
+
|
250
|
+
# A list of create failures. `PrintServer` IDs are not populated, as print
|
251
|
+
# servers were not created.
|
252
|
+
# Corresponds to the JSON property `failures`
|
253
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::PrintServerFailureInfo>]
|
254
|
+
attr_accessor :failures
|
255
|
+
|
256
|
+
# A list of successfully created print servers with their IDs populated.
|
257
|
+
# Corresponds to the JSON property `printServers`
|
258
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::PrintServer>]
|
259
|
+
attr_accessor :print_servers
|
260
|
+
|
261
|
+
def initialize(**args)
|
262
|
+
update!(**args)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Update properties of this object
|
266
|
+
def update!(**args)
|
267
|
+
@failures = args[:failures] if args.key?(:failures)
|
268
|
+
@print_servers = args[:print_servers] if args.key?(:print_servers)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
227
272
|
# Request for adding new printers in batch.
|
228
273
|
class BatchCreatePrintersRequest
|
229
274
|
include Google::Apis::Core::Hashable
|
@@ -269,6 +314,50 @@ module Google
|
|
269
314
|
end
|
270
315
|
end
|
271
316
|
|
317
|
+
# Request to delete multiple existing print servers in a batch.
|
318
|
+
class BatchDeletePrintServersRequest
|
319
|
+
include Google::Apis::Core::Hashable
|
320
|
+
|
321
|
+
# A list of print server IDs that should be deleted (max `100` per batch).
|
322
|
+
# Corresponds to the JSON property `printServerIds`
|
323
|
+
# @return [Array<String>]
|
324
|
+
attr_accessor :print_server_ids
|
325
|
+
|
326
|
+
def initialize(**args)
|
327
|
+
update!(**args)
|
328
|
+
end
|
329
|
+
|
330
|
+
# Update properties of this object
|
331
|
+
def update!(**args)
|
332
|
+
@print_server_ids = args[:print_server_ids] if args.key?(:print_server_ids)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
#
|
337
|
+
class BatchDeletePrintServersResponse
|
338
|
+
include Google::Apis::Core::Hashable
|
339
|
+
|
340
|
+
# A list of update failures.
|
341
|
+
# Corresponds to the JSON property `failedPrintServers`
|
342
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::PrintServerFailureInfo>]
|
343
|
+
attr_accessor :failed_print_servers
|
344
|
+
|
345
|
+
# A list of print server IDs that were successfully deleted.
|
346
|
+
# Corresponds to the JSON property `printServerIds`
|
347
|
+
# @return [Array<String>]
|
348
|
+
attr_accessor :print_server_ids
|
349
|
+
|
350
|
+
def initialize(**args)
|
351
|
+
update!(**args)
|
352
|
+
end
|
353
|
+
|
354
|
+
# Update properties of this object
|
355
|
+
def update!(**args)
|
356
|
+
@failed_print_servers = args[:failed_print_servers] if args.key?(:failed_print_servers)
|
357
|
+
@print_server_ids = args[:print_server_ids] if args.key?(:print_server_ids)
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
272
361
|
# Request for deleting existing printers in batch.
|
273
362
|
class BatchDeletePrintersRequest
|
274
363
|
include Google::Apis::Core::Hashable
|
@@ -733,7 +822,7 @@ module Google
|
|
733
822
|
class ChromeOsDevice
|
734
823
|
include Google::Apis::Core::Hashable
|
735
824
|
|
736
|
-
#
|
825
|
+
# A list of active time ranges (Read-only).
|
737
826
|
# Corresponds to the JSON property `activeTimeRanges`
|
738
827
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange>]
|
739
828
|
attr_accessor :active_time_ranges
|
@@ -783,7 +872,7 @@ module Google
|
|
783
872
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport>]
|
784
873
|
attr_accessor :cpu_status_reports
|
785
874
|
|
786
|
-
#
|
875
|
+
# A list of device files to download (Read-only)
|
787
876
|
# Corresponds to the JSON property `deviceFiles`
|
788
877
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile>]
|
789
878
|
attr_accessor :device_files
|
@@ -937,13 +1026,13 @@ module Google
|
|
937
1026
|
# @return [String]
|
938
1027
|
attr_accessor :platform_version
|
939
1028
|
|
940
|
-
#
|
1029
|
+
# A list of recent device users, in descending order, by last login time.
|
941
1030
|
# Corresponds to the JSON property `recentUsers`
|
942
1031
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser>]
|
943
1032
|
attr_accessor :recent_users
|
944
1033
|
|
945
|
-
#
|
946
|
-
# only)
|
1034
|
+
# A list of screenshot files to download. Type is always "SCREENSHOT_FILE". (
|
1035
|
+
# Read-only)
|
947
1036
|
# Corresponds to the JSON property `screenshotFiles`
|
948
1037
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ScreenshotFile>]
|
949
1038
|
attr_accessor :screenshot_files
|
@@ -1166,7 +1255,7 @@ module Google
|
|
1166
1255
|
class CpuStatusReport
|
1167
1256
|
include Google::Apis::Core::Hashable
|
1168
1257
|
|
1169
|
-
#
|
1258
|
+
# A list of CPU temperature samples.
|
1170
1259
|
# Corresponds to the JSON property `cpuTemperatureInfo`
|
1171
1260
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport::CpuTemperatureInfo>]
|
1172
1261
|
attr_accessor :cpu_temperature_info
|
@@ -1330,7 +1419,7 @@ module Google
|
|
1330
1419
|
end
|
1331
1420
|
end
|
1332
1421
|
|
1333
|
-
#
|
1422
|
+
# A list of recent device users, in descending order, by last login time.
|
1334
1423
|
class RecentUser
|
1335
1424
|
include Google::Apis::Core::Hashable
|
1336
1425
|
|
@@ -1470,7 +1559,7 @@ module Google
|
|
1470
1559
|
end
|
1471
1560
|
end
|
1472
1561
|
|
1473
|
-
#
|
1562
|
+
# Data about an update to the status of a Chrome OS device.
|
1474
1563
|
class ChromeOsDeviceAction
|
1475
1564
|
include Google::Apis::Core::Hashable
|
1476
1565
|
|
@@ -1501,7 +1590,7 @@ module Google
|
|
1501
1590
|
class ChromeOsDevices
|
1502
1591
|
include Google::Apis::Core::Hashable
|
1503
1592
|
|
1504
|
-
#
|
1593
|
+
# A list of Chrome OS Device objects.
|
1505
1594
|
# Corresponds to the JSON property `chromeosdevices`
|
1506
1595
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice>]
|
1507
1596
|
attr_accessor :chromeosdevices
|
@@ -1554,6 +1643,33 @@ module Google
|
|
1554
1643
|
end
|
1555
1644
|
end
|
1556
1645
|
|
1646
|
+
# Request for adding a new print server.
|
1647
|
+
class CreatePrintServerRequest
|
1648
|
+
include Google::Apis::Core::Hashable
|
1649
|
+
|
1650
|
+
# Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
|
1651
|
+
# reference/rest/v1/customers) of the customer's Google Workspace account.
|
1652
|
+
# Format: `customers/`id``
|
1653
|
+
# Corresponds to the JSON property `parent`
|
1654
|
+
# @return [String]
|
1655
|
+
attr_accessor :parent
|
1656
|
+
|
1657
|
+
# Configuration for a print server.
|
1658
|
+
# Corresponds to the JSON property `printServer`
|
1659
|
+
# @return [Google::Apis::AdminDirectoryV1::PrintServer]
|
1660
|
+
attr_accessor :print_server
|
1661
|
+
|
1662
|
+
def initialize(**args)
|
1663
|
+
update!(**args)
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
# Update properties of this object
|
1667
|
+
def update!(**args)
|
1668
|
+
@parent = args[:parent] if args.key?(:parent)
|
1669
|
+
@print_server = args[:print_server] if args.key?(:print_server)
|
1670
|
+
end
|
1671
|
+
end
|
1672
|
+
|
1557
1673
|
# Request for adding a new printer.
|
1558
1674
|
class CreatePrinterRequest
|
1559
1675
|
include Google::Apis::Core::Hashable
|
@@ -1915,7 +2031,7 @@ module Google
|
|
1915
2031
|
class DomainAliases
|
1916
2032
|
include Google::Apis::Core::Hashable
|
1917
2033
|
|
1918
|
-
#
|
2034
|
+
# A list of domain alias objects.
|
1919
2035
|
# Corresponds to the JSON property `domainAliases`
|
1920
2036
|
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
1921
2037
|
attr_accessor :domain_aliases
|
@@ -1952,7 +2068,7 @@ module Google
|
|
1952
2068
|
# @return [Fixnum]
|
1953
2069
|
attr_accessor :creation_time
|
1954
2070
|
|
1955
|
-
#
|
2071
|
+
# A list of domain alias objects. (Read-only)
|
1956
2072
|
# Corresponds to the JSON property `domainAliases`
|
1957
2073
|
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
1958
2074
|
attr_accessor :domain_aliases
|
@@ -2004,7 +2120,7 @@ module Google
|
|
2004
2120
|
class Domains2
|
2005
2121
|
include Google::Apis::Core::Hashable
|
2006
2122
|
|
2007
|
-
#
|
2123
|
+
# A list of domain objects.
|
2008
2124
|
# Corresponds to the JSON property `domains`
|
2009
2125
|
# @return [Array<Google::Apis::AdminDirectoryV1::Domains>]
|
2010
2126
|
attr_accessor :domains
|
@@ -2205,7 +2321,7 @@ module Google
|
|
2205
2321
|
attr_accessor :admin_created
|
2206
2322
|
alias_method :admin_created?, :admin_created
|
2207
2323
|
|
2208
|
-
# Read-only.
|
2324
|
+
# Read-only. The list of a group's alias email addresses. To add, update, or
|
2209
2325
|
# remove a group's aliases, use the `groups.aliases` methods. If edited in a
|
2210
2326
|
# group's POST or PUT request, the edit is ignored.
|
2211
2327
|
# Corresponds to the JSON property `aliases`
|
@@ -2258,7 +2374,7 @@ module Google
|
|
2258
2374
|
# @return [String]
|
2259
2375
|
attr_accessor :name
|
2260
2376
|
|
2261
|
-
# Read-only.
|
2377
|
+
# Read-only. The list of the group's non-editable alias email addresses that are
|
2262
2378
|
# outside of the account's primary domain or subdomains. These are functioning
|
2263
2379
|
# email addresses used by the group. This is a read-only property returned in
|
2264
2380
|
# the API's response for a group. If edited in a group's POST or PUT request,
|
@@ -2339,7 +2455,7 @@ module Google
|
|
2339
2455
|
# @return [String]
|
2340
2456
|
attr_accessor :etag
|
2341
2457
|
|
2342
|
-
#
|
2458
|
+
# A list of group objects.
|
2343
2459
|
# Corresponds to the JSON property `groups`
|
2344
2460
|
# @return [Array<Google::Apis::AdminDirectoryV1::Group>]
|
2345
2461
|
attr_accessor :groups
|
@@ -2367,6 +2483,32 @@ module Google
|
|
2367
2483
|
end
|
2368
2484
|
end
|
2369
2485
|
|
2486
|
+
#
|
2487
|
+
class ListPrintServersResponse
|
2488
|
+
include Google::Apis::Core::Hashable
|
2489
|
+
|
2490
|
+
# A token that can be sent as `page_token` in a request to retrieve the next
|
2491
|
+
# page. If this field is omitted, there are no subsequent pages.
|
2492
|
+
# Corresponds to the JSON property `nextPageToken`
|
2493
|
+
# @return [String]
|
2494
|
+
attr_accessor :next_page_token
|
2495
|
+
|
2496
|
+
# List of print servers.
|
2497
|
+
# Corresponds to the JSON property `printServers`
|
2498
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::PrintServer>]
|
2499
|
+
attr_accessor :print_servers
|
2500
|
+
|
2501
|
+
def initialize(**args)
|
2502
|
+
update!(**args)
|
2503
|
+
end
|
2504
|
+
|
2505
|
+
# Update properties of this object
|
2506
|
+
def update!(**args)
|
2507
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2508
|
+
@print_servers = args[:print_servers] if args.key?(:print_servers)
|
2509
|
+
end
|
2510
|
+
end
|
2511
|
+
|
2370
2512
|
# Response for listing allowed printer models.
|
2371
2513
|
class ListPrinterModelsResponse
|
2372
2514
|
include Google::Apis::Core::Hashable
|
@@ -2509,7 +2651,7 @@ module Google
|
|
2509
2651
|
# @return [String]
|
2510
2652
|
attr_accessor :kind
|
2511
2653
|
|
2512
|
-
#
|
2654
|
+
# A list of member objects.
|
2513
2655
|
# Corresponds to the JSON property `members`
|
2514
2656
|
# @return [Array<Google::Apis::AdminDirectoryV1::Member>]
|
2515
2657
|
attr_accessor :members
|
@@ -2623,10 +2765,10 @@ module Google
|
|
2623
2765
|
# @return [String]
|
2624
2766
|
attr_accessor :device_password_status
|
2625
2767
|
|
2626
|
-
#
|
2627
|
-
# user emails, use the [get](/admin-sdk/directory/v1/reference/
|
2628
|
-
# html) method. For additional information, see the [retrieve
|
2629
|
-
# directory/v1/guides/manage-users#get_user) method.
|
2768
|
+
# The list of the owner's email addresses. If your application needs the current
|
2769
|
+
# list of user emails, use the [get](/admin-sdk/directory/v1/reference/
|
2770
|
+
# mobiledevices/get.html) method. For additional information, see the [retrieve
|
2771
|
+
# a user](/admin-sdk/directory/v1/guides/manage-users#get_user) method.
|
2630
2772
|
# Corresponds to the JSON property `email`
|
2631
2773
|
# @return [Array<String>]
|
2632
2774
|
attr_accessor :email
|
@@ -2705,8 +2847,8 @@ module Google
|
|
2705
2847
|
# @return [String]
|
2706
2848
|
attr_accessor :model
|
2707
2849
|
|
2708
|
-
#
|
2709
|
-
# device owner names, use the [get](/admin-sdk/directory/v1/reference/
|
2850
|
+
# The list of the owner's user names. If your application needs the current list
|
2851
|
+
# of device owner names, use the [get](/admin-sdk/directory/v1/reference/
|
2710
2852
|
# mobiledevices/get.html) method. For more information about retrieving mobile
|
2711
2853
|
# device user information, see the [Developer's Guide](/admin-sdk/directory/v1/
|
2712
2854
|
# guides/manage-users#get_user).
|
@@ -2727,7 +2869,7 @@ module Google
|
|
2727
2869
|
# @return [String]
|
2728
2870
|
attr_accessor :os
|
2729
2871
|
|
2730
|
-
#
|
2872
|
+
# The list of accounts added on device (Read-only)
|
2731
2873
|
# Corresponds to the JSON property `otherAccountsInfo`
|
2732
2874
|
# @return [Array<String>]
|
2733
2875
|
attr_accessor :other_accounts_info
|
@@ -2921,7 +3063,7 @@ module Google
|
|
2921
3063
|
# @return [String]
|
2922
3064
|
attr_accessor :kind
|
2923
3065
|
|
2924
|
-
#
|
3066
|
+
# A list of Mobile Device objects.
|
2925
3067
|
# Corresponds to the JSON property `mobiledevices`
|
2926
3068
|
# @return [Array<Google::Apis::AdminDirectoryV1::MobileDevice>]
|
2927
3069
|
attr_accessor :mobiledevices
|
@@ -3052,7 +3194,7 @@ module Google
|
|
3052
3194
|
# @return [String]
|
3053
3195
|
attr_accessor :kind
|
3054
3196
|
|
3055
|
-
#
|
3197
|
+
# A list of organizational unit objects.
|
3056
3198
|
# Corresponds to the JSON property `organizationUnits`
|
3057
3199
|
# @return [Array<Google::Apis::AdminDirectoryV1::OrgUnit>]
|
3058
3200
|
attr_accessor :organization_units
|
@@ -3122,6 +3264,103 @@ module Google
|
|
3122
3264
|
end
|
3123
3265
|
end
|
3124
3266
|
|
3267
|
+
# Configuration for a print server.
|
3268
|
+
class PrintServer
|
3269
|
+
include Google::Apis::Core::Hashable
|
3270
|
+
|
3271
|
+
# Output only. Time when the print server was created.
|
3272
|
+
# Corresponds to the JSON property `createTime`
|
3273
|
+
# @return [String]
|
3274
|
+
attr_accessor :create_time
|
3275
|
+
|
3276
|
+
# Editable. Description of the print server (as shown in the Admin console).
|
3277
|
+
# Corresponds to the JSON property `description`
|
3278
|
+
# @return [String]
|
3279
|
+
attr_accessor :description
|
3280
|
+
|
3281
|
+
# Editable. Display name of the print server (as shown in the Admin console).
|
3282
|
+
# Corresponds to the JSON property `displayName`
|
3283
|
+
# @return [String]
|
3284
|
+
attr_accessor :display_name
|
3285
|
+
|
3286
|
+
# Immutable. ID of the print server. Leave empty when creating.
|
3287
|
+
# Corresponds to the JSON property `id`
|
3288
|
+
# @return [String]
|
3289
|
+
attr_accessor :id
|
3290
|
+
|
3291
|
+
# Immutable. Resource name of the print server. Leave empty when creating.
|
3292
|
+
# Format: `customers/`customer.id`/printServers/`print_server.id``
|
3293
|
+
# Corresponds to the JSON property `name`
|
3294
|
+
# @return [String]
|
3295
|
+
attr_accessor :name
|
3296
|
+
|
3297
|
+
# ID of the organization unit (OU) that owns this print server. This value can
|
3298
|
+
# only be set when the print server is initially created. If it's not populated,
|
3299
|
+
# the print server is placed under the root OU. The `org_unit_id` can be
|
3300
|
+
# retrieved using the [Directory API](/admin-sdk/directory/reference/rest/v1/
|
3301
|
+
# orgunits).
|
3302
|
+
# Corresponds to the JSON property `orgUnitId`
|
3303
|
+
# @return [String]
|
3304
|
+
attr_accessor :org_unit_id
|
3305
|
+
|
3306
|
+
# Editable. Print server URI.
|
3307
|
+
# Corresponds to the JSON property `uri`
|
3308
|
+
# @return [String]
|
3309
|
+
attr_accessor :uri
|
3310
|
+
|
3311
|
+
def initialize(**args)
|
3312
|
+
update!(**args)
|
3313
|
+
end
|
3314
|
+
|
3315
|
+
# Update properties of this object
|
3316
|
+
def update!(**args)
|
3317
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3318
|
+
@description = args[:description] if args.key?(:description)
|
3319
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
3320
|
+
@id = args[:id] if args.key?(:id)
|
3321
|
+
@name = args[:name] if args.key?(:name)
|
3322
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
3323
|
+
@uri = args[:uri] if args.key?(:uri)
|
3324
|
+
end
|
3325
|
+
end
|
3326
|
+
|
3327
|
+
# Info about failures
|
3328
|
+
class PrintServerFailureInfo
|
3329
|
+
include Google::Apis::Core::Hashable
|
3330
|
+
|
3331
|
+
# Canonical code for why the update failed to apply.
|
3332
|
+
# Corresponds to the JSON property `errorCode`
|
3333
|
+
# @return [String]
|
3334
|
+
attr_accessor :error_code
|
3335
|
+
|
3336
|
+
# Failure reason message.
|
3337
|
+
# Corresponds to the JSON property `errorMessage`
|
3338
|
+
# @return [String]
|
3339
|
+
attr_accessor :error_message
|
3340
|
+
|
3341
|
+
# Configuration for a print server.
|
3342
|
+
# Corresponds to the JSON property `printServer`
|
3343
|
+
# @return [Google::Apis::AdminDirectoryV1::PrintServer]
|
3344
|
+
attr_accessor :print_server
|
3345
|
+
|
3346
|
+
# ID of a failed print server.
|
3347
|
+
# Corresponds to the JSON property `printServerId`
|
3348
|
+
# @return [String]
|
3349
|
+
attr_accessor :print_server_id
|
3350
|
+
|
3351
|
+
def initialize(**args)
|
3352
|
+
update!(**args)
|
3353
|
+
end
|
3354
|
+
|
3355
|
+
# Update properties of this object
|
3356
|
+
def update!(**args)
|
3357
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
3358
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
3359
|
+
@print_server = args[:print_server] if args.key?(:print_server)
|
3360
|
+
@print_server_id = args[:print_server_id] if args.key?(:print_server_id)
|
3361
|
+
end
|
3362
|
+
end
|
3363
|
+
|
3125
3364
|
# Printer configuration.
|
3126
3365
|
class Printer
|
3127
3366
|
include Google::Apis::Core::Hashable
|
@@ -3727,7 +3966,7 @@ module Google
|
|
3727
3966
|
# @return [String]
|
3728
3967
|
attr_accessor :kind
|
3729
3968
|
|
3730
|
-
#
|
3969
|
+
# A list of UserSchema objects.
|
3731
3970
|
# Corresponds to the JSON property `schemas`
|
3732
3971
|
# @return [Array<Google::Apis::AdminDirectoryV1::Schema>]
|
3733
3972
|
attr_accessor :schemas
|
@@ -3848,7 +4087,7 @@ module Google
|
|
3848
4087
|
class User
|
3849
4088
|
include Google::Apis::Core::Hashable
|
3850
4089
|
|
3851
|
-
#
|
4090
|
+
# The list of the user's addresses. The maximum allowed data size for this field
|
3852
4091
|
# is 10Kb.
|
3853
4092
|
# Corresponds to the JSON property `addresses`
|
3854
4093
|
# @return [Object]
|
@@ -3861,7 +4100,7 @@ module Google
|
|
3861
4100
|
attr_accessor :agreed_to_terms
|
3862
4101
|
alias_method :agreed_to_terms?, :agreed_to_terms
|
3863
4102
|
|
3864
|
-
# Output only.
|
4103
|
+
# Output only. The list of the user's alias email addresses.
|
3865
4104
|
# Corresponds to the JSON property `aliases`
|
3866
4105
|
# @return [Array<String>]
|
3867
4106
|
attr_accessor :aliases
|
@@ -3906,7 +4145,7 @@ module Google
|
|
3906
4145
|
# @return [DateTime]
|
3907
4146
|
attr_accessor :deletion_time
|
3908
4147
|
|
3909
|
-
#
|
4148
|
+
# The list of the user's email addresses. The maximum allowed data size for this
|
3910
4149
|
# field is 10Kb.
|
3911
4150
|
# Corresponds to the JSON property `emails`
|
3912
4151
|
# @return [Object]
|
@@ -3917,7 +4156,7 @@ module Google
|
|
3917
4156
|
# @return [String]
|
3918
4157
|
attr_accessor :etag
|
3919
4158
|
|
3920
|
-
#
|
4159
|
+
# The list of external IDs for the user, such as an employee or network ID. The
|
3921
4160
|
# maximum allowed data size for this field is 2Kb.
|
3922
4161
|
# Corresponds to the JSON property `externalIds`
|
3923
4162
|
# @return [Object]
|
@@ -3945,9 +4184,9 @@ module Google
|
|
3945
4184
|
# @return [String]
|
3946
4185
|
attr_accessor :id
|
3947
4186
|
|
3948
|
-
# The user's Instant Messenger (IM) accounts. A user account can
|
3949
|
-
# ims properties. But, only one of these ims properties can be the
|
3950
|
-
# contact. The maximum allowed data size for this field is 2Kb.
|
4187
|
+
# The list of the user's Instant Messenger (IM) accounts. A user account can
|
4188
|
+
# have multiple ims properties. But, only one of these ims properties can be the
|
4189
|
+
# primary IM contact. The maximum allowed data size for this field is 2Kb.
|
3951
4190
|
# Corresponds to the JSON property `ims`
|
3952
4191
|
# @return [Object]
|
3953
4192
|
attr_accessor :ims
|
@@ -4009,7 +4248,8 @@ module Google
|
|
4009
4248
|
attr_accessor :is_mailbox_setup
|
4010
4249
|
alias_method :is_mailbox_setup?, :is_mailbox_setup
|
4011
4250
|
|
4012
|
-
# The user's keywords. The maximum allowed data size for this field
|
4251
|
+
# The list of the user's keywords. The maximum allowed data size for this field
|
4252
|
+
# is 1Kb.
|
4013
4253
|
# Corresponds to the JSON property `keywords`
|
4014
4254
|
# @return [Object]
|
4015
4255
|
attr_accessor :keywords
|
@@ -4046,8 +4286,8 @@ module Google
|
|
4046
4286
|
# @return [Google::Apis::AdminDirectoryV1::UserName]
|
4047
4287
|
attr_accessor :name
|
4048
4288
|
|
4049
|
-
# Output only.
|
4050
|
-
# typically outside the account's primary domain or sub-domain.
|
4289
|
+
# Output only. The list of the user's non-editable alias email addresses. These
|
4290
|
+
# are typically outside the account's primary domain or sub-domain.
|
4051
4291
|
# Corresponds to the JSON property `nonEditableAliases`
|
4052
4292
|
# @return [Array<String>]
|
4053
4293
|
attr_accessor :non_editable_aliases
|
@@ -4064,8 +4304,8 @@ module Google
|
|
4064
4304
|
# @return [String]
|
4065
4305
|
attr_accessor :org_unit_path
|
4066
4306
|
|
4067
|
-
#
|
4068
|
-
# this field is 10Kb.
|
4307
|
+
# The list of organizations the user belongs to. The maximum allowed data size
|
4308
|
+
# for this field is 10Kb.
|
4069
4309
|
# Corresponds to the JSON property `organizations`
|
4070
4310
|
# @return [Object]
|
4071
4311
|
attr_accessor :organizations
|
@@ -4075,13 +4315,13 @@ module Google
|
|
4075
4315
|
# @return [String]
|
4076
4316
|
attr_accessor :password
|
4077
4317
|
|
4078
|
-
#
|
4318
|
+
# The list of the user's phone numbers. The maximum allowed data size for this
|
4079
4319
|
# field is 1Kb.
|
4080
4320
|
# Corresponds to the JSON property `phones`
|
4081
4321
|
# @return [Object]
|
4082
4322
|
attr_accessor :phones
|
4083
4323
|
|
4084
|
-
#
|
4324
|
+
# The list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html)
|
4085
4325
|
# account information for the user.
|
4086
4326
|
# Corresponds to the JSON property `posixAccounts`
|
4087
4327
|
# @return [Object]
|
@@ -4105,7 +4345,7 @@ module Google
|
|
4105
4345
|
# @return [String]
|
4106
4346
|
attr_accessor :recovery_phone
|
4107
4347
|
|
4108
|
-
#
|
4348
|
+
# The list of the user's relationships to other users. The maximum allowed data
|
4109
4349
|
# size for this field is 2Kb.
|
4110
4350
|
# Corresponds to the JSON property `relations`
|
4111
4351
|
# @return [Object]
|
@@ -5134,7 +5374,7 @@ module Google
|
|
5134
5374
|
# @return [String]
|
5135
5375
|
attr_accessor :trigger_event
|
5136
5376
|
|
5137
|
-
#
|
5377
|
+
# A list of user objects.
|
5138
5378
|
# Corresponds to the JSON property `users`
|
5139
5379
|
# @return [Array<Google::Apis::AdminDirectoryV1::User>]
|
5140
5380
|
attr_accessor :users
|
@@ -5192,7 +5432,7 @@ module Google
|
|
5192
5432
|
end
|
5193
5433
|
end
|
5194
5434
|
|
5195
|
-
# JSON response template for
|
5435
|
+
# JSON response template for list verification codes operation in Directory API.
|
5196
5436
|
class VerificationCodes
|
5197
5437
|
include Google::Apis::Core::Hashable
|
5198
5438
|
|
@@ -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.34.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221020"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,18 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class BatchCreatePrintServersRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class BatchCreatePrintServersResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
55
67
|
class BatchCreatePrintersRequest
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
69
|
|
@@ -64,6 +76,18 @@ module Google
|
|
64
76
|
include Google::Apis::Core::JsonObjectSupport
|
65
77
|
end
|
66
78
|
|
79
|
+
class BatchDeletePrintServersRequest
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class BatchDeletePrintServersResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
67
91
|
class BatchDeletePrintersRequest
|
68
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
93
|
|
@@ -226,6 +250,12 @@ module Google
|
|
226
250
|
include Google::Apis::Core::JsonObjectSupport
|
227
251
|
end
|
228
252
|
|
253
|
+
class CreatePrintServerRequest
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
229
259
|
class CreatePrinterRequest
|
230
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
261
|
|
@@ -346,6 +376,12 @@ module Google
|
|
346
376
|
include Google::Apis::Core::JsonObjectSupport
|
347
377
|
end
|
348
378
|
|
379
|
+
class ListPrintServersResponse
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
349
385
|
class ListPrinterModelsResponse
|
350
386
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
387
|
|
@@ -418,6 +454,18 @@ module Google
|
|
418
454
|
include Google::Apis::Core::JsonObjectSupport
|
419
455
|
end
|
420
456
|
|
457
|
+
class PrintServer
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
463
|
+
class PrintServerFailureInfo
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
421
469
|
class Printer
|
422
470
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
471
|
|
@@ -704,6 +752,24 @@ module Google
|
|
704
752
|
end
|
705
753
|
end
|
706
754
|
|
755
|
+
class BatchCreatePrintServersRequest
|
756
|
+
# @private
|
757
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
758
|
+
collection :requests, as: 'requests', class: Google::Apis::AdminDirectoryV1::CreatePrintServerRequest, decorator: Google::Apis::AdminDirectoryV1::CreatePrintServerRequest::Representation
|
759
|
+
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
763
|
+
class BatchCreatePrintServersResponse
|
764
|
+
# @private
|
765
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
766
|
+
collection :failures, as: 'failures', class: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo, decorator: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo::Representation
|
767
|
+
|
768
|
+
collection :print_servers, as: 'printServers', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
769
|
+
|
770
|
+
end
|
771
|
+
end
|
772
|
+
|
707
773
|
class BatchCreatePrintersRequest
|
708
774
|
# @private
|
709
775
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -722,6 +788,22 @@ module Google
|
|
722
788
|
end
|
723
789
|
end
|
724
790
|
|
791
|
+
class BatchDeletePrintServersRequest
|
792
|
+
# @private
|
793
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
794
|
+
collection :print_server_ids, as: 'printServerIds'
|
795
|
+
end
|
796
|
+
end
|
797
|
+
|
798
|
+
class BatchDeletePrintServersResponse
|
799
|
+
# @private
|
800
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
801
|
+
collection :failed_print_servers, as: 'failedPrintServers', class: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo, decorator: Google::Apis::AdminDirectoryV1::PrintServerFailureInfo::Representation
|
802
|
+
|
803
|
+
collection :print_server_ids, as: 'printServerIds'
|
804
|
+
end
|
805
|
+
end
|
806
|
+
|
725
807
|
class BatchDeletePrintersRequest
|
726
808
|
# @private
|
727
809
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1055,6 +1137,15 @@ module Google
|
|
1055
1137
|
end
|
1056
1138
|
end
|
1057
1139
|
|
1140
|
+
class CreatePrintServerRequest
|
1141
|
+
# @private
|
1142
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1143
|
+
property :parent, as: 'parent'
|
1144
|
+
property :print_server, as: 'printServer', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
1145
|
+
|
1146
|
+
end
|
1147
|
+
end
|
1148
|
+
|
1058
1149
|
class CreatePrinterRequest
|
1059
1150
|
# @private
|
1060
1151
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1270,6 +1361,15 @@ module Google
|
|
1270
1361
|
end
|
1271
1362
|
end
|
1272
1363
|
|
1364
|
+
class ListPrintServersResponse
|
1365
|
+
# @private
|
1366
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1367
|
+
property :next_page_token, as: 'nextPageToken'
|
1368
|
+
collection :print_servers, as: 'printServers', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
1369
|
+
|
1370
|
+
end
|
1371
|
+
end
|
1372
|
+
|
1273
1373
|
class ListPrinterModelsResponse
|
1274
1374
|
# @private
|
1275
1375
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1435,6 +1535,30 @@ module Google
|
|
1435
1535
|
end
|
1436
1536
|
end
|
1437
1537
|
|
1538
|
+
class PrintServer
|
1539
|
+
# @private
|
1540
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1541
|
+
property :create_time, as: 'createTime'
|
1542
|
+
property :description, as: 'description'
|
1543
|
+
property :display_name, as: 'displayName'
|
1544
|
+
property :id, as: 'id'
|
1545
|
+
property :name, as: 'name'
|
1546
|
+
property :org_unit_id, as: 'orgUnitId'
|
1547
|
+
property :uri, as: 'uri'
|
1548
|
+
end
|
1549
|
+
end
|
1550
|
+
|
1551
|
+
class PrintServerFailureInfo
|
1552
|
+
# @private
|
1553
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1554
|
+
property :error_code, as: 'errorCode'
|
1555
|
+
property :error_message, as: 'errorMessage'
|
1556
|
+
property :print_server, as: 'printServer', class: Google::Apis::AdminDirectoryV1::PrintServer, decorator: Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
1557
|
+
|
1558
|
+
property :print_server_id, as: 'printServerId'
|
1559
|
+
end
|
1560
|
+
end
|
1561
|
+
|
1438
1562
|
class Printer
|
1439
1563
|
# @private
|
1440
1564
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -273,7 +273,7 @@ module Google
|
|
273
273
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
274
274
|
# @param [Boolean] include_child_orgunits
|
275
275
|
# Return devices from all child orgunits, as well as the specified org unit. If
|
276
|
-
# this is set to true 'orgUnitPath' must be provided.
|
276
|
+
# this is set to true, 'orgUnitPath' must be provided.
|
277
277
|
# @param [Fixnum] max_results
|
278
278
|
# Maximum number of results to return.
|
279
279
|
# @param [String] order_by
|
@@ -622,6 +622,271 @@ module Google
|
|
622
622
|
execute_or_queue_command(command, &block)
|
623
623
|
end
|
624
624
|
|
625
|
+
# Creates multiple print servers.
|
626
|
+
# @param [String] parent
|
627
|
+
# Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
|
628
|
+
# reference/rest/v1/customers) of the customer's Google Workspace account.
|
629
|
+
# Format: `customers/`id``
|
630
|
+
# @param [Google::Apis::AdminDirectoryV1::BatchCreatePrintServersRequest] batch_create_print_servers_request_object
|
631
|
+
# @param [String] fields
|
632
|
+
# Selector specifying which fields to include in a partial response.
|
633
|
+
# @param [String] quota_user
|
634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
636
|
+
# @param [Google::Apis::RequestOptions] options
|
637
|
+
# Request-specific options
|
638
|
+
#
|
639
|
+
# @yield [result, err] Result & error if block supplied
|
640
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse] parsed result object
|
641
|
+
# @yieldparam err [StandardError] error object if request failed
|
642
|
+
#
|
643
|
+
# @return [Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse]
|
644
|
+
#
|
645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
648
|
+
def batch_create_print_servers(parent, batch_create_print_servers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
649
|
+
command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers', options)
|
650
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::BatchCreatePrintServersRequest::Representation
|
651
|
+
command.request_object = batch_create_print_servers_request_object
|
652
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse::Representation
|
653
|
+
command.response_class = Google::Apis::AdminDirectoryV1::BatchCreatePrintServersResponse
|
654
|
+
command.params['parent'] = parent unless parent.nil?
|
655
|
+
command.query['fields'] = fields unless fields.nil?
|
656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
657
|
+
execute_or_queue_command(command, &block)
|
658
|
+
end
|
659
|
+
|
660
|
+
# Deletes multiple print servers.
|
661
|
+
# @param [String] parent
|
662
|
+
# Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
|
663
|
+
# reference/rest/v1/customers) of the customer's Google Workspace account.
|
664
|
+
# Format: `customers/`customer.id``
|
665
|
+
# @param [Google::Apis::AdminDirectoryV1::BatchDeletePrintServersRequest] batch_delete_print_servers_request_object
|
666
|
+
# @param [String] fields
|
667
|
+
# Selector specifying which fields to include in a partial response.
|
668
|
+
# @param [String] quota_user
|
669
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
670
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
671
|
+
# @param [Google::Apis::RequestOptions] options
|
672
|
+
# Request-specific options
|
673
|
+
#
|
674
|
+
# @yield [result, err] Result & error if block supplied
|
675
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse] parsed result object
|
676
|
+
# @yieldparam err [StandardError] error object if request failed
|
677
|
+
#
|
678
|
+
# @return [Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse]
|
679
|
+
#
|
680
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
681
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
682
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
683
|
+
def batch_delete_print_servers(parent, batch_delete_print_servers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
684
|
+
command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers', options)
|
685
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::BatchDeletePrintServersRequest::Representation
|
686
|
+
command.request_object = batch_delete_print_servers_request_object
|
687
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse::Representation
|
688
|
+
command.response_class = Google::Apis::AdminDirectoryV1::BatchDeletePrintServersResponse
|
689
|
+
command.params['parent'] = parent unless parent.nil?
|
690
|
+
command.query['fields'] = fields unless fields.nil?
|
691
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
692
|
+
execute_or_queue_command(command, &block)
|
693
|
+
end
|
694
|
+
|
695
|
+
# Creates a print server.
|
696
|
+
# @param [String] parent
|
697
|
+
# Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
|
698
|
+
# reference/rest/v1/customers) of the customer's Google Workspace account.
|
699
|
+
# Format: `customers/`id``
|
700
|
+
# @param [Google::Apis::AdminDirectoryV1::PrintServer] print_server_object
|
701
|
+
# @param [String] fields
|
702
|
+
# Selector specifying which fields to include in a partial response.
|
703
|
+
# @param [String] quota_user
|
704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
706
|
+
# @param [Google::Apis::RequestOptions] options
|
707
|
+
# Request-specific options
|
708
|
+
#
|
709
|
+
# @yield [result, err] Result & error if block supplied
|
710
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::PrintServer] parsed result object
|
711
|
+
# @yieldparam err [StandardError] error object if request failed
|
712
|
+
#
|
713
|
+
# @return [Google::Apis::AdminDirectoryV1::PrintServer]
|
714
|
+
#
|
715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
718
|
+
def create_customer_chrome_print_server(parent, print_server_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
719
|
+
command = make_simple_command(:post, 'admin/directory/v1/{+parent}/chrome/printServers', options)
|
720
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
721
|
+
command.request_object = print_server_object
|
722
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
723
|
+
command.response_class = Google::Apis::AdminDirectoryV1::PrintServer
|
724
|
+
command.params['parent'] = parent unless parent.nil?
|
725
|
+
command.query['fields'] = fields unless fields.nil?
|
726
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
727
|
+
execute_or_queue_command(command, &block)
|
728
|
+
end
|
729
|
+
|
730
|
+
# Deletes a print server.
|
731
|
+
# @param [String] name
|
732
|
+
# Required. The name of the print server to be deleted. Format: `customers/`
|
733
|
+
# customer.id`/chrome/printServers/`print_server.id``
|
734
|
+
# @param [String] fields
|
735
|
+
# Selector specifying which fields to include in a partial response.
|
736
|
+
# @param [String] quota_user
|
737
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
738
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
739
|
+
# @param [Google::Apis::RequestOptions] options
|
740
|
+
# Request-specific options
|
741
|
+
#
|
742
|
+
# @yield [result, err] Result & error if block supplied
|
743
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Empty] parsed result object
|
744
|
+
# @yieldparam err [StandardError] error object if request failed
|
745
|
+
#
|
746
|
+
# @return [Google::Apis::AdminDirectoryV1::Empty]
|
747
|
+
#
|
748
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
749
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
750
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
751
|
+
def delete_customer_chrome_print_server(name, fields: nil, quota_user: nil, options: nil, &block)
|
752
|
+
command = make_simple_command(:delete, 'admin/directory/v1/{+name}', options)
|
753
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Empty::Representation
|
754
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Empty
|
755
|
+
command.params['name'] = name unless name.nil?
|
756
|
+
command.query['fields'] = fields unless fields.nil?
|
757
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
758
|
+
execute_or_queue_command(command, &block)
|
759
|
+
end
|
760
|
+
|
761
|
+
# Returns a print server's configuration.
|
762
|
+
# @param [String] name
|
763
|
+
# Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
|
764
|
+
# reference/rest/v1/customers) of the customer's Google Workspace account.
|
765
|
+
# Format: `customers/`id``
|
766
|
+
# @param [String] fields
|
767
|
+
# Selector specifying which fields to include in a partial response.
|
768
|
+
# @param [String] quota_user
|
769
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
770
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
771
|
+
# @param [Google::Apis::RequestOptions] options
|
772
|
+
# Request-specific options
|
773
|
+
#
|
774
|
+
# @yield [result, err] Result & error if block supplied
|
775
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::PrintServer] parsed result object
|
776
|
+
# @yieldparam err [StandardError] error object if request failed
|
777
|
+
#
|
778
|
+
# @return [Google::Apis::AdminDirectoryV1::PrintServer]
|
779
|
+
#
|
780
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
781
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
782
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
783
|
+
def get_customer_chrome_print_server(name, fields: nil, quota_user: nil, options: nil, &block)
|
784
|
+
command = make_simple_command(:get, 'admin/directory/v1/{+name}', options)
|
785
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
786
|
+
command.response_class = Google::Apis::AdminDirectoryV1::PrintServer
|
787
|
+
command.params['name'] = name unless name.nil?
|
788
|
+
command.query['fields'] = fields unless fields.nil?
|
789
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
790
|
+
execute_or_queue_command(command, &block)
|
791
|
+
end
|
792
|
+
|
793
|
+
# Lists print server configurations.
|
794
|
+
# @param [String] parent
|
795
|
+
# Required. The [unique ID](https://developers.google.com/admin-sdk/directory/
|
796
|
+
# reference/rest/v1/customers) of the customer's Google Workspace account.
|
797
|
+
# Format: `customers/`id``
|
798
|
+
# @param [String] filter
|
799
|
+
# Search query in [Common Expression Language syntax](https://github.com/google/
|
800
|
+
# cel-spec). Supported filters are `display_name`, `description`, and `uri`.
|
801
|
+
# Example: `printServer.displayName=='marketing-queue'`.
|
802
|
+
# @param [String] order_by
|
803
|
+
# Sort order for results. Supported values are `display_name`, `description`, or
|
804
|
+
# `create_time`. Default order is ascending, but descending order can be
|
805
|
+
# returned by appending "desc" to the `order_by` field. For instance, `orderBy=='
|
806
|
+
# description desc'` returns the print servers sorted by description in
|
807
|
+
# descending order.
|
808
|
+
# @param [String] org_unit_id
|
809
|
+
# If `org_unit_id` is present in the request, only print servers owned or
|
810
|
+
# inherited by the organizational unit (OU) are returned. If the `PrintServer`
|
811
|
+
# resource's `org_unit_id` matches the one in the request, the OU owns the
|
812
|
+
# server. If `org_unit_id` is not specified in the request, all print servers
|
813
|
+
# are returned or filtered against.
|
814
|
+
# @param [Fixnum] page_size
|
815
|
+
# The maximum number of objects to return (default `100`, max `100`). The
|
816
|
+
# service might return fewer than this value.
|
817
|
+
# @param [String] page_token
|
818
|
+
# A generated token to paginate results (the `next_page_token` from a previous
|
819
|
+
# call).
|
820
|
+
# @param [String] fields
|
821
|
+
# Selector specifying which fields to include in a partial response.
|
822
|
+
# @param [String] quota_user
|
823
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
824
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
825
|
+
# @param [Google::Apis::RequestOptions] options
|
826
|
+
# Request-specific options
|
827
|
+
#
|
828
|
+
# @yield [result, err] Result & error if block supplied
|
829
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::ListPrintServersResponse] parsed result object
|
830
|
+
# @yieldparam err [StandardError] error object if request failed
|
831
|
+
#
|
832
|
+
# @return [Google::Apis::AdminDirectoryV1::ListPrintServersResponse]
|
833
|
+
#
|
834
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
835
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
836
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
837
|
+
def list_customer_chrome_print_servers(parent, filter: nil, order_by: nil, org_unit_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
838
|
+
command = make_simple_command(:get, 'admin/directory/v1/{+parent}/chrome/printServers', options)
|
839
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::ListPrintServersResponse::Representation
|
840
|
+
command.response_class = Google::Apis::AdminDirectoryV1::ListPrintServersResponse
|
841
|
+
command.params['parent'] = parent unless parent.nil?
|
842
|
+
command.query['filter'] = filter unless filter.nil?
|
843
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
844
|
+
command.query['orgUnitId'] = org_unit_id unless org_unit_id.nil?
|
845
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
846
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
847
|
+
command.query['fields'] = fields unless fields.nil?
|
848
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
849
|
+
execute_or_queue_command(command, &block)
|
850
|
+
end
|
851
|
+
|
852
|
+
# Updates a print server's configuration.
|
853
|
+
# @param [String] name
|
854
|
+
# Immutable. Resource name of the print server. Leave empty when creating.
|
855
|
+
# Format: `customers/`customer.id`/printServers/`print_server.id``
|
856
|
+
# @param [Google::Apis::AdminDirectoryV1::PrintServer] print_server_object
|
857
|
+
# @param [String] update_mask
|
858
|
+
# The list of fields to update. Some fields are read-only and cannot be updated.
|
859
|
+
# Values for unspecified fields are patched.
|
860
|
+
# @param [String] fields
|
861
|
+
# Selector specifying which fields to include in a partial response.
|
862
|
+
# @param [String] quota_user
|
863
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
864
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
865
|
+
# @param [Google::Apis::RequestOptions] options
|
866
|
+
# Request-specific options
|
867
|
+
#
|
868
|
+
# @yield [result, err] Result & error if block supplied
|
869
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::PrintServer] parsed result object
|
870
|
+
# @yieldparam err [StandardError] error object if request failed
|
871
|
+
#
|
872
|
+
# @return [Google::Apis::AdminDirectoryV1::PrintServer]
|
873
|
+
#
|
874
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
875
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
876
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
877
|
+
def patch_customer_chrome_print_server(name, print_server_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
878
|
+
command = make_simple_command(:patch, 'admin/directory/v1/{+name}', options)
|
879
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
880
|
+
command.request_object = print_server_object
|
881
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::PrintServer::Representation
|
882
|
+
command.response_class = Google::Apis::AdminDirectoryV1::PrintServer
|
883
|
+
command.params['name'] = name unless name.nil?
|
884
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
885
|
+
command.query['fields'] = fields unless fields.nil?
|
886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
887
|
+
execute_or_queue_command(command, &block)
|
888
|
+
end
|
889
|
+
|
625
890
|
# Creates printers under given Organization Unit.
|
626
891
|
# @param [String] parent
|
627
892
|
# Required. The name of the customer. Format: customers/`customer_id`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-admin_directory_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.9.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admin_directory_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.34.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admin_directory_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|