google-apis-admin_directory_v1 0.47.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a156a6848eaaa224a2cd3953b93252ca3472e69af7975170620daccb74b13d0
4
- data.tar.gz: 54d68f29e8c111432478f61bbc9f61856dc33cc981640fab4e4d2e43c3279776
3
+ metadata.gz: 1ecf75d48a2cebdf63f7f30436f25b35e9f46e6934cd11cf565c69ac01a259ff
4
+ data.tar.gz: 57d90d7f772564aba7b40497c708c19c4602f126303d0c6cbeb5dab284b350c2
5
5
  SHA512:
6
- metadata.gz: c41bc479916b8f425ae8deeb338a44f8474932c375ca7556c63f6486cfff4a403437da42135a1308427acabf20893133d9fd0348708db1023357dbbf017aa80a
7
- data.tar.gz: '08a8b1f200420d3efe1fc9ed4e6d459ac29b740c61cff28594575ae2dcfc90e518d8b4700b6e93c6067e8ffc42b0c88e07c411f7e81ea1ed727189f13c3c0f34'
6
+ metadata.gz: 10c5bab5f4c8fcea0c3afb5383c2ccbaa6fdb71bfffa5769b87860df3724e2d7686be4520a0c73d0859dedcfa48bec608ccc8e91527a2b4b4cf17c01ca1df7cc
7
+ data.tar.gz: 259680ad784bcfa3936e88ab3b9099685614eac55d2c16903d55f7fa37b739809e75c6181d2b2cb97e949a9017b9e6bfd83d6f32050bcc7ebd2e80a7f1eff67d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-admin_directory_v1
2
2
 
3
+ ### v0.48.0 (2023-12-24)
4
+
5
+ * Regenerated from discovery document revision 20231219
6
+
3
7
  ### v0.47.0 (2023-11-19)
4
8
 
5
9
  * 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 for all
238
+ # deprovisions, otherwise it must not be provided. It must be one of the non-
239
+ # deprecated deprovision reasons.
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.
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.47.0"
19
+ GEM_VERSION = "0.48.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 = "20231113"
25
+ REVISION = "20231219"
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,16 @@ module Google
176
176
  execute_or_queue_command(command, &block)
177
177
  end
178
178
 
179
- # Takes an action that affects a Chrome OS Device. This includes deprovisioning,
180
- # disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will
181
- # stop device policy syncing and remove device-level printers. After a device is
182
- # deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen
183
- # devices should use the disable action. * Re-enabling a disabled device will
184
- # consume a device license. If you do not have sufficient licenses available
185
- # when completing the re-enable action, you will receive an error. For more
186
- # information about deprovisioning and disabling devices, visit the [help center]
187
- # (https://support.google.com/chrome/a/answer/3523633).
179
+ # DEPRECATED: Use BatchChangeChromeOsDeviceStatus instead. Takes an action that
180
+ # affects a Chrome OS Device. This includes deprovisioning, disabling, and re-
181
+ # enabling devices. *Warning:* * Deprovisioning a device will stop device policy
182
+ # syncing and remove device-level printers. After a device is deprovisioned, it
183
+ # must be wiped before it can be re-enrolled. * Lost or stolen devices should
184
+ # use the disable action. * Re-enabling a disabled device will consume a device
185
+ # license. If you do not have sufficient licenses available when completing the
186
+ # re-enable action, you will receive an error. For more information about
187
+ # deprovisioning and disabling devices, visit the [help center](https://support.
188
+ # google.com/chrome/a/answer/3523633).
188
189
  # @param [String] customer_id
189
190
  # The unique ID for the customer's Google Workspace account. As an account
190
191
  # administrator, you can also use the `my_customer` alias to represent your
@@ -454,6 +455,39 @@ module Google
454
455
  execute_or_queue_command(command, &block)
455
456
  end
456
457
 
458
+ # Changes the status of a batch of ChromeOS devices.
459
+ # @param [String] customer_id
460
+ # Required. Immutable ID of the G Suite account.
461
+ # @param [Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusRequest] batch_change_chrome_os_device_status_request_object
462
+ # @param [String] fields
463
+ # Selector specifying which fields to include in a partial response.
464
+ # @param [String] quota_user
465
+ # Available to use for quota purposes for server-side applications. Can be any
466
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
467
+ # @param [Google::Apis::RequestOptions] options
468
+ # Request-specific options
469
+ #
470
+ # @yield [result, err] Result & error if block supplied
471
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse] parsed result object
472
+ # @yieldparam err [StandardError] error object if request failed
473
+ #
474
+ # @return [Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse]
475
+ #
476
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
477
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
478
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
479
+ 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)
480
+ command = make_simple_command(:post, 'admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus', options)
481
+ command.request_representation = Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusRequest::Representation
482
+ command.request_object = batch_change_chrome_os_device_status_request_object
483
+ command.response_representation = Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse::Representation
484
+ command.response_class = Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusResponse
485
+ command.params['customerId'] = customer_id unless customer_id.nil?
486
+ command.query['fields'] = fields unless fields.nil?
487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
488
+ execute_or_queue_command(command, &block)
489
+ end
490
+
457
491
  # Issues a command for the device to execute.
458
492
  # @param [String] customer_id
459
493
  # 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.47.0
4
+ version: 0.48.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: 2023-11-19 00:00:00.000000000 Z
11
+ date: 2023-12-24 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.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.48.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: []