google-apis-admin_directory_v1 0.47.0 → 0.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/admin_directory_v1/classes.rb +141 -0
- data/lib/google/apis/admin_directory_v1/gem_version.rb +2 -2
- data/lib/google/apis/admin_directory_v1/representations.rb +73 -0
- data/lib/google/apis/admin_directory_v1/service.rb +46 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e8c6a78194c7833c2513429342dab38c682597d3da229b7de9e53a006189b99
|
4
|
+
data.tar.gz: 5f70969fad2dbb74bcee72cbc7ebfff631e42b4ac6ec4b2a4d373a9477ed6a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b4b7427ad837261080c1223b5da1cb74c0ca68b16371cef7a7df3e54a282068cdd1ae03899f1dcc62fc47c9a99a5f13e7d7c49169588e10aaaba352014aa0f7
|
7
|
+
data.tar.gz: a1a46ea8c4149c9bbd5bf12d8aa0ef39394a8245988009bb361b5853012bc86530b787acf837a2218e5fac3f469dd7aa9d4aca56fc080c576d7fc81a2babc3d9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-admin_directory_v1
|
2
2
|
|
3
|
+
### v0.49.0 (2024-01-07)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240102
|
6
|
+
|
7
|
+
### v0.48.0 (2023-12-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231219
|
10
|
+
|
3
11
|
### v0.47.0 (2023-11-19)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231113
|
@@ -224,6 +224,59 @@ module Google
|
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|
227
|
+
# A request for changing the status of a batch of ChromeOS devices.
|
228
|
+
class BatchChangeChromeOsDeviceStatusRequest
|
229
|
+
include Google::Apis::Core::Hashable
|
230
|
+
|
231
|
+
# Required. The action to take on the ChromeOS device in order to change its
|
232
|
+
# status.
|
233
|
+
# Corresponds to the JSON property `changeChromeOsDeviceStatusAction`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :change_chrome_os_device_status_action
|
236
|
+
|
237
|
+
# Optional. The reason behind a device deprovision. Must be provided if '
|
238
|
+
# changeChromeOsDeviceStatusAction' is set to '
|
239
|
+
# CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field.
|
240
|
+
# Corresponds to the JSON property `deprovisionReason`
|
241
|
+
# @return [String]
|
242
|
+
attr_accessor :deprovision_reason
|
243
|
+
|
244
|
+
# Required. List of the IDs of the ChromeOS devices to change. Maximum 50.
|
245
|
+
# Corresponds to the JSON property `deviceIds`
|
246
|
+
# @return [Array<String>]
|
247
|
+
attr_accessor :device_ids
|
248
|
+
|
249
|
+
def initialize(**args)
|
250
|
+
update!(**args)
|
251
|
+
end
|
252
|
+
|
253
|
+
# Update properties of this object
|
254
|
+
def update!(**args)
|
255
|
+
@change_chrome_os_device_status_action = args[:change_chrome_os_device_status_action] if args.key?(:change_chrome_os_device_status_action)
|
256
|
+
@deprovision_reason = args[:deprovision_reason] if args.key?(:deprovision_reason)
|
257
|
+
@device_ids = args[:device_ids] if args.key?(:device_ids)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# The response of changing the status of a batch of ChromeOS devices.
|
262
|
+
class BatchChangeChromeOsDeviceStatusResponse
|
263
|
+
include Google::Apis::Core::Hashable
|
264
|
+
|
265
|
+
# The results for each of the ChromeOS devices provided in the request.
|
266
|
+
# Corresponds to the JSON property `changeChromeOsDeviceStatusResults`
|
267
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusResult>]
|
268
|
+
attr_accessor :change_chrome_os_device_status_results
|
269
|
+
|
270
|
+
def initialize(**args)
|
271
|
+
update!(**args)
|
272
|
+
end
|
273
|
+
|
274
|
+
# Update properties of this object
|
275
|
+
def update!(**args)
|
276
|
+
@change_chrome_os_device_status_results = args[:change_chrome_os_device_status_results] if args.key?(:change_chrome_os_device_status_results)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
227
280
|
# Request to add multiple new print servers in a batch.
|
228
281
|
class BatchCreatePrintServersRequest
|
229
282
|
include Google::Apis::Core::Hashable
|
@@ -735,6 +788,55 @@ module Google
|
|
735
788
|
end
|
736
789
|
end
|
737
790
|
|
791
|
+
# The result of a single ChromeOS device for a Change state operation.
|
792
|
+
class ChangeChromeOsDeviceStatusResult
|
793
|
+
include Google::Apis::Core::Hashable
|
794
|
+
|
795
|
+
# The unique ID of the ChromeOS device.
|
796
|
+
# Corresponds to the JSON property `deviceId`
|
797
|
+
# @return [String]
|
798
|
+
attr_accessor :device_id
|
799
|
+
|
800
|
+
# The `Status` type defines a logical error model that is suitable for different
|
801
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
802
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
803
|
+
# data: error code, error message, and error details. You can find out more
|
804
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
805
|
+
# //cloud.google.com/apis/design/errors).
|
806
|
+
# Corresponds to the JSON property `error`
|
807
|
+
# @return [Google::Apis::AdminDirectoryV1::Status]
|
808
|
+
attr_accessor :error
|
809
|
+
|
810
|
+
# Response for a successful ChromeOS device status change.
|
811
|
+
# Corresponds to the JSON property `response`
|
812
|
+
# @return [Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusSucceeded]
|
813
|
+
attr_accessor :response
|
814
|
+
|
815
|
+
def initialize(**args)
|
816
|
+
update!(**args)
|
817
|
+
end
|
818
|
+
|
819
|
+
# Update properties of this object
|
820
|
+
def update!(**args)
|
821
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
822
|
+
@error = args[:error] if args.key?(:error)
|
823
|
+
@response = args[:response] if args.key?(:response)
|
824
|
+
end
|
825
|
+
end
|
826
|
+
|
827
|
+
# Response for a successful ChromeOS device status change.
|
828
|
+
class ChangeChromeOsDeviceStatusSucceeded
|
829
|
+
include Google::Apis::Core::Hashable
|
830
|
+
|
831
|
+
def initialize(**args)
|
832
|
+
update!(**args)
|
833
|
+
end
|
834
|
+
|
835
|
+
# Update properties of this object
|
836
|
+
def update!(**args)
|
837
|
+
end
|
838
|
+
end
|
839
|
+
|
738
840
|
# An notification channel used to watch for resource changes.
|
739
841
|
class Channel
|
740
842
|
include Google::Apis::Core::Hashable
|
@@ -4027,6 +4129,45 @@ module Google
|
|
4027
4129
|
end
|
4028
4130
|
end
|
4029
4131
|
|
4132
|
+
# The `Status` type defines a logical error model that is suitable for different
|
4133
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
4134
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
4135
|
+
# data: error code, error message, and error details. You can find out more
|
4136
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
4137
|
+
# //cloud.google.com/apis/design/errors).
|
4138
|
+
class Status
|
4139
|
+
include Google::Apis::Core::Hashable
|
4140
|
+
|
4141
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
4142
|
+
# Corresponds to the JSON property `code`
|
4143
|
+
# @return [Fixnum]
|
4144
|
+
attr_accessor :code
|
4145
|
+
|
4146
|
+
# A list of messages that carry the error details. There is a common set of
|
4147
|
+
# message types for APIs to use.
|
4148
|
+
# Corresponds to the JSON property `details`
|
4149
|
+
# @return [Array<Hash<String,Object>>]
|
4150
|
+
attr_accessor :details
|
4151
|
+
|
4152
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
4153
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
4154
|
+
# field, or localized by the client.
|
4155
|
+
# Corresponds to the JSON property `message`
|
4156
|
+
# @return [String]
|
4157
|
+
attr_accessor :message
|
4158
|
+
|
4159
|
+
def initialize(**args)
|
4160
|
+
update!(**args)
|
4161
|
+
end
|
4162
|
+
|
4163
|
+
# Update properties of this object
|
4164
|
+
def update!(**args)
|
4165
|
+
@code = args[:code] if args.key?(:code)
|
4166
|
+
@details = args[:details] if args.key?(:details)
|
4167
|
+
@message = args[:message] if args.key?(:message)
|
4168
|
+
end
|
4169
|
+
end
|
4170
|
+
|
4030
4171
|
# JSON template for token resource in Directory API.
|
4031
4172
|
class Token
|
4032
4173
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AdminDirectoryV1
|
18
18
|
# Version of the google-apis-admin_directory_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.49.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240102"
|
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 BatchChangeChromeOsDeviceStatusRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class BatchChangeChromeOsDeviceStatusResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
55
67
|
class BatchCreatePrintServersRequest
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
69
|
|
@@ -136,6 +148,18 @@ module Google
|
|
136
148
|
include Google::Apis::Core::JsonObjectSupport
|
137
149
|
end
|
138
150
|
|
151
|
+
class ChangeChromeOsDeviceStatusResult
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class ChangeChromeOsDeviceStatusSucceeded
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
139
163
|
class Channel
|
140
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
165
|
|
@@ -544,6 +568,12 @@ module Google
|
|
544
568
|
include Google::Apis::Core::JsonObjectSupport
|
545
569
|
end
|
546
570
|
|
571
|
+
class Status
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
|
+
|
574
|
+
include Google::Apis::Core::JsonObjectSupport
|
575
|
+
end
|
576
|
+
|
547
577
|
class Token
|
548
578
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
549
579
|
|
@@ -758,6 +788,23 @@ module Google
|
|
758
788
|
end
|
759
789
|
end
|
760
790
|
|
791
|
+
class BatchChangeChromeOsDeviceStatusRequest
|
792
|
+
# @private
|
793
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
794
|
+
property :change_chrome_os_device_status_action, as: 'changeChromeOsDeviceStatusAction'
|
795
|
+
property :deprovision_reason, as: 'deprovisionReason'
|
796
|
+
collection :device_ids, as: 'deviceIds'
|
797
|
+
end
|
798
|
+
end
|
799
|
+
|
800
|
+
class BatchChangeChromeOsDeviceStatusResponse
|
801
|
+
# @private
|
802
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
803
|
+
collection :change_chrome_os_device_status_results, as: 'changeChromeOsDeviceStatusResults', class: Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusResult, decorator: Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusResult::Representation
|
804
|
+
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
761
808
|
class BatchCreatePrintServersRequest
|
762
809
|
# @private
|
763
810
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -906,6 +953,23 @@ module Google
|
|
906
953
|
end
|
907
954
|
end
|
908
955
|
|
956
|
+
class ChangeChromeOsDeviceStatusResult
|
957
|
+
# @private
|
958
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
959
|
+
property :device_id, as: 'deviceId'
|
960
|
+
property :error, as: 'error', class: Google::Apis::AdminDirectoryV1::Status, decorator: Google::Apis::AdminDirectoryV1::Status::Representation
|
961
|
+
|
962
|
+
property :response, as: 'response', class: Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusSucceeded, decorator: Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusSucceeded::Representation
|
963
|
+
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
967
|
+
class ChangeChromeOsDeviceStatusSucceeded
|
968
|
+
# @private
|
969
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
970
|
+
end
|
971
|
+
end
|
972
|
+
|
909
973
|
class Channel
|
910
974
|
# @private
|
911
975
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1726,6 +1790,15 @@ module Google
|
|
1726
1790
|
end
|
1727
1791
|
end
|
1728
1792
|
|
1793
|
+
class Status
|
1794
|
+
# @private
|
1795
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1796
|
+
property :code, as: 'code'
|
1797
|
+
collection :details, as: 'details'
|
1798
|
+
property :message, as: 'message'
|
1799
|
+
end
|
1800
|
+
end
|
1801
|
+
|
1729
1802
|
class Token
|
1730
1803
|
# @private
|
1731
1804
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -176,15 +176,17 @@ module Google
|
|
176
176
|
execute_or_queue_command(command, &block)
|
177
177
|
end
|
178
178
|
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
179
|
+
# Use [BatchChangeChromeOsDeviceStatus](/admin-sdk/directory/reference/rest/v1/
|
180
|
+
# customer.devices.chromeos/batchChangeStatus) instead. Takes an action that
|
181
|
+
# affects a Chrome OS Device. This includes deprovisioning, disabling, and re-
|
182
|
+
# enabling devices. *Warning:* * Deprovisioning a device will stop device policy
|
183
|
+
# syncing and remove device-level printers. After a device is deprovisioned, it
|
184
|
+
# must be wiped before it can be re-enrolled. * Lost or stolen devices should
|
185
|
+
# use the disable action. * Re-enabling a disabled device will consume a device
|
186
|
+
# license. If you do not have sufficient licenses available when completing the
|
187
|
+
# re-enable action, you will receive an error. For more information about
|
188
|
+
# deprovisioning and disabling devices, visit the [help center](https://support.
|
189
|
+
# google.com/chrome/a/answer/3523633).
|
188
190
|
# @param [String] customer_id
|
189
191
|
# The unique ID for the customer's Google Workspace account. As an account
|
190
192
|
# administrator, you can also use the `my_customer` alias to represent your
|
@@ -454,6 +456,41 @@ module Google
|
|
454
456
|
execute_or_queue_command(command, &block)
|
455
457
|
end
|
456
458
|
|
459
|
+
# Changes the status of a batch of ChromeOS devices. For more information about
|
460
|
+
# changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS
|
461
|
+
# devices](https://support.google.com/chrome/a/answer/3523633).
|
462
|
+
# @param [String] customer_id
|
463
|
+
# Required. Immutable ID of the Google Workspace account.
|
464
|
+
# @param [Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusRequest] batch_change_chrome_os_device_status_request_object
|
465
|
+
# @param [String] fields
|
466
|
+
# Selector specifying which fields to include in a partial response.
|
467
|
+
# @param [String] quota_user
|
468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
470
|
+
# @param [Google::Apis::RequestOptions] options
|
471
|
+
# Request-specific options
|
472
|
+
#
|
473
|
+
# @yield [result, err] Result & error if block supplied
|
474
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse] parsed result object
|
475
|
+
# @yieldparam err [StandardError] error object if request failed
|
476
|
+
#
|
477
|
+
# @return [Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse]
|
478
|
+
#
|
479
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
480
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
|
+
def batch_customer_device_chromeo_change_status(customer_id, batch_change_chrome_os_device_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
483
|
+
command = make_simple_command(:post, 'admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus', options)
|
484
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusRequest::Representation
|
485
|
+
command.request_object = batch_change_chrome_os_device_status_request_object
|
486
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse::Representation
|
487
|
+
command.response_class = Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse
|
488
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
489
|
+
command.query['fields'] = fields unless fields.nil?
|
490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
491
|
+
execute_or_queue_command(command, &block)
|
492
|
+
end
|
493
|
+
|
457
494
|
# Issues a command for the device to execute.
|
458
495
|
# @param [String] customer_id
|
459
496
|
# Immutable. ID of the Google Workspace account.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-admin_directory_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.49.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:
|
11
|
+
date: 2024-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.49.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Admin SDK API DirectoryV1
|