google-apis-androiddeviceprovisioning_v1 0.19.0 → 0.21.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: eb458ddc26931f3696ef7d195b67a6236ee3a2071c1f13a08f6fee6e9776f54f
4
- data.tar.gz: 030121c1980416dc8403ba1c17afbad052347f37052242593c50aa68c8d8619e
3
+ metadata.gz: e147e8b4f518ffbcd84504280d38275730a40889202c71306c5444ddd25a8d24
4
+ data.tar.gz: 6baa3f186c58670cbce805d0b876998dd6aaacb9b636b27f28df2d194064662d
5
5
  SHA512:
6
- metadata.gz: f39630a2263cb034e9b3ee7291da77611e220742ddc3c36ea03e6dfd174226bb701333d4f8ad97e269e8d45725c7a234dcbb2e6d1ca2c5f6da23ea96fef6ae77
7
- data.tar.gz: 99a8bca0842976a694605a44f373a2090b83fa7f1a97c92dd2fdb55ab84b6bc6392cdd4279b874c32210543a8e2a8658d62b4847685339137ae4a79d3c9e0c98
6
+ metadata.gz: e33a64518b7182becee2fd55a7191ad076b42896ce74b46e5b22e5a15fde660c82f82e100186d93dfe3a08b7a83cb90b8086dded0a9f2da481764530a90884a0
7
+ data.tar.gz: 769e436abf68be9d8cd0214def44e33dd5846c219b85b9b5c1cd65c54a41ee65dabf0c8912c4d11d010405339ddc0b10ef7621150a0eed9e6ef738f82417d58f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-androiddeviceprovisioning_v1
2
2
 
3
+ ### v0.21.0 (2023-09-03)
4
+
5
+ * Regenerated from discovery document revision 20230829
6
+
7
+ ### v0.20.0 (2023-05-14)
8
+
9
+ * Regenerated from discovery document revision 20230509
10
+
3
11
  ### v0.19.0 (2023-03-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20230304
@@ -280,6 +280,14 @@ module Google
280
280
  # @return [String]
281
281
  attr_accessor :dpc_resource_path
282
282
 
283
+ # Optional. The timeout before forcing factory reset the device if the device
284
+ # doesn't go through provisioning in the setup wizard, usually due to lack of
285
+ # network connectivity during setup wizard. Ranges from 0-6 hours, with 2 hours
286
+ # being the default if unset.
287
+ # Corresponds to the JSON property `forcedResetTime`
288
+ # @return [String]
289
+ attr_accessor :forced_reset_time
290
+
283
291
  # Required. Whether this is the default configuration that zero-touch enrollment
284
292
  # applies to any new devices the organization purchases in the future. Only one
285
293
  # customer configuration can be the default. Setting this value to `true`,
@@ -309,6 +317,7 @@ module Google
309
317
  @custom_message = args[:custom_message] if args.key?(:custom_message)
310
318
  @dpc_extras = args[:dpc_extras] if args.key?(:dpc_extras)
311
319
  @dpc_resource_path = args[:dpc_resource_path] if args.key?(:dpc_resource_path)
320
+ @forced_reset_time = args[:forced_reset_time] if args.key?(:forced_reset_time)
312
321
  @is_default = args[:is_default] if args.key?(:is_default)
313
322
  @name = args[:name] if args.key?(:name)
314
323
  end
@@ -1001,6 +1010,46 @@ module Google
1001
1010
  end
1002
1011
  end
1003
1012
 
1013
+ # Request to get a device's SIM lock status.
1014
+ class GetDeviceSimLockStateRequest
1015
+ include Google::Apis::Core::Hashable
1016
+
1017
+ # Encapsulates hardware and product IDs to identify a manufactured device. To
1018
+ # understand requirements on identifier sets, read [Identifiers](https://
1019
+ # developers.google.com/zero-touch/guides/identifiers).
1020
+ # Corresponds to the JSON property `deviceIdentifier`
1021
+ # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
1022
+ attr_accessor :device_identifier
1023
+
1024
+ def initialize(**args)
1025
+ update!(**args)
1026
+ end
1027
+
1028
+ # Update properties of this object
1029
+ def update!(**args)
1030
+ @device_identifier = args[:device_identifier] if args.key?(:device_identifier)
1031
+ end
1032
+ end
1033
+
1034
+ # Response containing a device's SimLock state.
1035
+ class GetDeviceSimLockStateResponse
1036
+ include Google::Apis::Core::Hashable
1037
+
1038
+ #
1039
+ # Corresponds to the JSON property `simLockState`
1040
+ # @return [String]
1041
+ attr_accessor :sim_lock_state
1042
+
1043
+ def initialize(**args)
1044
+ update!(**args)
1045
+ end
1046
+
1047
+ # Update properties of this object
1048
+ def update!(**args)
1049
+ @sim_lock_state = args[:sim_lock_state] if args.key?(:sim_lock_state)
1050
+ end
1051
+ end
1052
+
1004
1053
  # A Google Workspace customer.
1005
1054
  class GoogleWorkspaceAccount
1006
1055
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AndroiddeviceprovisioningV1
18
18
  # Version of the google-apis-androiddeviceprovisioning_v1 gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.21.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 = "20230304"
25
+ REVISION = "20230829"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,18 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class GetDeviceSimLockStateRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class GetDeviceSimLockStateResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class GoogleWorkspaceAccount
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -326,6 +338,7 @@ module Google
326
338
  property :custom_message, as: 'customMessage'
327
339
  property :dpc_extras, as: 'dpcExtras'
328
340
  property :dpc_resource_path, as: 'dpcResourcePath'
341
+ property :forced_reset_time, as: 'forcedResetTime'
329
342
  property :is_default, as: 'isDefault'
330
343
  property :name, as: 'name'
331
344
  end
@@ -529,6 +542,21 @@ module Google
529
542
  end
530
543
  end
531
544
 
545
+ class GetDeviceSimLockStateRequest
546
+ # @private
547
+ class Representation < Google::Apis::Core::JsonRepresentation
548
+ property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
549
+
550
+ end
551
+ end
552
+
553
+ class GetDeviceSimLockStateResponse
554
+ # @private
555
+ class Representation < Google::Apis::Core::JsonRepresentation
556
+ property :sim_lock_state, as: 'simLockState'
557
+ end
558
+ end
559
+
532
560
  class GoogleWorkspaceAccount
533
561
  # @private
534
562
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -738,6 +738,39 @@ module Google
738
738
  execute_or_queue_command(command, &block)
739
739
  end
740
740
 
741
+ # Gets a device's SIM lock state.
742
+ # @param [Fixnum] partner_id
743
+ # Required. The ID of the partner.
744
+ # @param [Google::Apis::AndroiddeviceprovisioningV1::GetDeviceSimLockStateRequest] get_device_sim_lock_state_request_object
745
+ # @param [String] fields
746
+ # Selector specifying which fields to include in a partial response.
747
+ # @param [String] quota_user
748
+ # Available to use for quota purposes for server-side applications. Can be any
749
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
750
+ # @param [Google::Apis::RequestOptions] options
751
+ # Request-specific options
752
+ #
753
+ # @yield [result, err] Result & error if block supplied
754
+ # @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::GetDeviceSimLockStateResponse] parsed result object
755
+ # @yieldparam err [StandardError] error object if request failed
756
+ #
757
+ # @return [Google::Apis::AndroiddeviceprovisioningV1::GetDeviceSimLockStateResponse]
758
+ #
759
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
760
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
761
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
762
+ def get_partner_device_sim_lock_state(partner_id, get_device_sim_lock_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
763
+ command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:getSimLockState', options)
764
+ command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::GetDeviceSimLockStateRequest::Representation
765
+ command.request_object = get_device_sim_lock_state_request_object
766
+ command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::GetDeviceSimLockStateResponse::Representation
767
+ command.response_class = Google::Apis::AndroiddeviceprovisioningV1::GetDeviceSimLockStateResponse
768
+ command.params['partnerId'] = partner_id unless partner_id.nil?
769
+ command.query['fields'] = fields unless fields.nil?
770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
771
+ execute_or_queue_command(command, &block)
772
+ end
773
+
741
774
  # Updates reseller metadata associated with the device. Android devices only.
742
775
  # @param [Fixnum] metadata_owner_id
743
776
  # Required. The owner of the newly set metadata. Set this to the partner ID.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androiddeviceprovisioning_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.21.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-03-12 00:00:00.000000000 Z
11
+ date: 2023-09-03 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-androiddeviceprovisioning_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-androiddeviceprovisioning_v1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androiddeviceprovisioning_v1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androiddeviceprovisioning_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.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Android Device Provisioning Partner API V1