google-apis-androiddeviceprovisioning_v1 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae1fa1bb6918fac5700f3eb7c894c04fba4877cebda909de23e3c66b18a622f9
4
- data.tar.gz: 303d5d6d63822301cd9e3cbc36735fb981a72b8919f5fdd380cc34f8a1ab1f74
3
+ metadata.gz: bb3c7c68f6ed77384e4a8692f0455cab10922d5e6cf0382a3eb47f692f2f5cdd
4
+ data.tar.gz: d406a95f581d6c1cc62149f6644698c9a6a6eb04fccb5ce940e26808234ed973
5
5
  SHA512:
6
- metadata.gz: 80276c594d1ebf1a6d31b9f1993b5df79f5f289afdb5229dc683c97b1ef2290d04f4fb8ea39b6ab734e1b329594541e31bcb78c306ae9b3f3b62ccab1e4bbc50
7
- data.tar.gz: 5df6328cc0edb449771799c5ba95fe4c244981f64acb18a86a21a26838844f44f6f13e1162fe80b4aae5f299225a7c0cd36138707a6b82f75b81257bab58a2bf
6
+ metadata.gz: 316604e24ec0be767634b7fde88187a1d15d4cc84c56927d8cc3eeee4bac055fbde0ed46d326e37694b52c8789836074b7d5236baacf3fc9ebc2f488aedaab84
7
+ data.tar.gz: f1b17479a9e1e082ad61f9cee2373fc7b2b0bdb94c2d5d46505b1e87048f437a5ad98eeaf4164f3e851ab390be37283f295ca4113491112d625a90dbeb7a340b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-androiddeviceprovisioning_v1
2
2
 
3
+ ### v0.22.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231029
6
+
7
+ ### v0.21.0 (2023-09-03)
8
+
9
+ * Regenerated from discovery document revision 20230829
10
+
3
11
  ### v0.20.0 (2023-05-14)
4
12
 
5
13
  * Regenerated from discovery document revision 20230509
@@ -26,6 +26,12 @@ module Google
26
26
  class ClaimDeviceRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
+ # Optional. The unique identifier of the configuration (internally known as
30
+ # profile) to set for the section.
31
+ # Corresponds to the JSON property `configurationId`
32
+ # @return [Fixnum]
33
+ attr_accessor :configuration_id
34
+
29
35
  # The ID of the customer for whom the device is being claimed.
30
36
  # Corresponds to the JSON property `customerId`
31
37
  # @return [Fixnum]
@@ -59,8 +65,7 @@ module Google
59
65
  # @return [String]
60
66
  attr_accessor :section_type
61
67
 
62
- # Optional. Must and can only be set when DeviceProvisioningSectionType is
63
- # SECTION_TYPE_SIM_LOCK. The unique identifier of the SimLock profile.
68
+ # Optional.
64
69
  # Corresponds to the JSON property `simlockProfileId`
65
70
  # @return [Fixnum]
66
71
  attr_accessor :simlock_profile_id
@@ -71,6 +76,7 @@ module Google
71
76
 
72
77
  # Update properties of this object
73
78
  def update!(**args)
79
+ @configuration_id = args[:configuration_id] if args.key?(:configuration_id)
74
80
  @customer_id = args[:customer_id] if args.key?(:customer_id)
75
81
  @device_identifier = args[:device_identifier] if args.key?(:device_identifier)
76
82
  @device_metadata = args[:device_metadata] if args.key?(:device_metadata)
@@ -1010,6 +1016,46 @@ module Google
1010
1016
  end
1011
1017
  end
1012
1018
 
1019
+ # Request to get a device's SIM lock status.
1020
+ class GetDeviceSimLockStateRequest
1021
+ include Google::Apis::Core::Hashable
1022
+
1023
+ # Encapsulates hardware and product IDs to identify a manufactured device. To
1024
+ # understand requirements on identifier sets, read [Identifiers](https://
1025
+ # developers.google.com/zero-touch/guides/identifiers).
1026
+ # Corresponds to the JSON property `deviceIdentifier`
1027
+ # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
1028
+ attr_accessor :device_identifier
1029
+
1030
+ def initialize(**args)
1031
+ update!(**args)
1032
+ end
1033
+
1034
+ # Update properties of this object
1035
+ def update!(**args)
1036
+ @device_identifier = args[:device_identifier] if args.key?(:device_identifier)
1037
+ end
1038
+ end
1039
+
1040
+ # Response containing a device's SimLock state.
1041
+ class GetDeviceSimLockStateResponse
1042
+ include Google::Apis::Core::Hashable
1043
+
1044
+ #
1045
+ # Corresponds to the JSON property `simLockState`
1046
+ # @return [String]
1047
+ attr_accessor :sim_lock_state
1048
+
1049
+ def initialize(**args)
1050
+ update!(**args)
1051
+ end
1052
+
1053
+ # Update properties of this object
1054
+ def update!(**args)
1055
+ @sim_lock_state = args[:sim_lock_state] if args.key?(:sim_lock_state)
1056
+ end
1057
+ end
1058
+
1013
1059
  # A Google Workspace customer.
1014
1060
  class GoogleWorkspaceAccount
1015
1061
  include Google::Apis::Core::Hashable
@@ -1229,6 +1275,12 @@ module Google
1229
1275
  class PartnerClaim
1230
1276
  include Google::Apis::Core::Hashable
1231
1277
 
1278
+ # Optional. The unique identifier of the configuration (internally known as
1279
+ # profile) to set for the section.
1280
+ # Corresponds to the JSON property `configurationId`
1281
+ # @return [Fixnum]
1282
+ attr_accessor :configuration_id
1283
+
1232
1284
  # The ID of the customer for whom the device is being claimed.
1233
1285
  # Corresponds to the JSON property `customerId`
1234
1286
  # @return [Fixnum]
@@ -1262,8 +1314,7 @@ module Google
1262
1314
  # @return [String]
1263
1315
  attr_accessor :section_type
1264
1316
 
1265
- # Optional. Must and can only be set when DeviceProvisioningSectionType is
1266
- # SECTION_TYPE_SIM_LOCK. The unique identifier of the SimLock profile.
1317
+ # Optional.
1267
1318
  # Corresponds to the JSON property `simlockProfileId`
1268
1319
  # @return [Fixnum]
1269
1320
  attr_accessor :simlock_profile_id
@@ -1274,6 +1325,7 @@ module Google
1274
1325
 
1275
1326
  # Update properties of this object
1276
1327
  def update!(**args)
1328
+ @configuration_id = args[:configuration_id] if args.key?(:configuration_id)
1277
1329
  @customer_id = args[:customer_id] if args.key?(:customer_id)
1278
1330
  @device_identifier = args[:device_identifier] if args.key?(:device_identifier)
1279
1331
  @device_metadata = args[:device_metadata] if args.key?(:device_metadata)
@@ -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.20.0"
19
+ GEM_VERSION = "0.22.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 = "20230509"
25
+ REVISION = "20231029"
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
 
@@ -271,6 +283,7 @@ module Google
271
283
  class ClaimDeviceRequest
272
284
  # @private
273
285
  class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :configuration_id, :numeric_string => true, as: 'configurationId'
274
287
  property :customer_id, :numeric_string => true, as: 'customerId'
275
288
  property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
276
289
 
@@ -530,6 +543,21 @@ module Google
530
543
  end
531
544
  end
532
545
 
546
+ class GetDeviceSimLockStateRequest
547
+ # @private
548
+ class Representation < Google::Apis::Core::JsonRepresentation
549
+ property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
550
+
551
+ end
552
+ end
553
+
554
+ class GetDeviceSimLockStateResponse
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ property :sim_lock_state, as: 'simLockState'
558
+ end
559
+ end
560
+
533
561
  class GoogleWorkspaceAccount
534
562
  # @private
535
563
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -597,6 +625,7 @@ module Google
597
625
  class PartnerClaim
598
626
  # @private
599
627
  class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :configuration_id, :numeric_string => true, as: 'configurationId'
600
629
  property :customer_id, :numeric_string => true, as: 'customerId'
601
630
  property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
602
631
 
@@ -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.20.0
4
+ version: 0.22.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-05-21 00:00:00.000000000 Z
11
+ date: 2023-11-05 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.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androiddeviceprovisioning_v1/v0.22.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