google-apis-androiddeviceprovisioning_v1 0.20.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: ae1fa1bb6918fac5700f3eb7c894c04fba4877cebda909de23e3c66b18a622f9
4
- data.tar.gz: 303d5d6d63822301cd9e3cbc36735fb981a72b8919f5fdd380cc34f8a1ab1f74
3
+ metadata.gz: e147e8b4f518ffbcd84504280d38275730a40889202c71306c5444ddd25a8d24
4
+ data.tar.gz: 6baa3f186c58670cbce805d0b876998dd6aaacb9b636b27f28df2d194064662d
5
5
  SHA512:
6
- metadata.gz: 80276c594d1ebf1a6d31b9f1993b5df79f5f289afdb5229dc683c97b1ef2290d04f4fb8ea39b6ab734e1b329594541e31bcb78c306ae9b3f3b62ccab1e4bbc50
7
- data.tar.gz: 5df6328cc0edb449771799c5ba95fe4c244981f64acb18a86a21a26838844f44f6f13e1162fe80b4aae5f299225a7c0cd36138707a6b82f75b81257bab58a2bf
6
+ metadata.gz: e33a64518b7182becee2fd55a7191ad076b42896ce74b46e5b22e5a15fde660c82f82e100186d93dfe3a08b7a83cb90b8086dded0a9f2da481764530a90884a0
7
+ data.tar.gz: 769e436abf68be9d8cd0214def44e33dd5846c219b85b9b5c1cd65c54a41ee65dabf0c8912c4d11d010405339ddc0b10ef7621150a0eed9e6ef738f82417d58f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.20.0 (2023-05-14)
4
8
 
5
9
  * Regenerated from discovery document revision 20230509
@@ -1010,6 +1010,46 @@ module Google
1010
1010
  end
1011
1011
  end
1012
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
+
1013
1053
  # A Google Workspace customer.
1014
1054
  class GoogleWorkspaceAccount
1015
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.20.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 = "20230509"
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
 
@@ -530,6 +542,21 @@ module Google
530
542
  end
531
543
  end
532
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
+
533
560
  class GoogleWorkspaceAccount
534
561
  # @private
535
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.20.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-05-21 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.20.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