google-apis-androidmanagement_v1 0.1.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/androidmanagement_v1/classes.rb +129 -2
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidmanagement_v1/representations.rb +52 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +80 -1
- 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: c9fa608a259e4a1eb7cdea0f29270a7d475205dad39bc4c64e1c9f4563ad654d
|
4
|
+
data.tar.gz: a5d2d0453f57593f8d597b25a3ee8d61f6a116f852187cf908c975243ed4954f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1b770eaa70b0479d5aff7be2210bfe0d5da42802b02be829625ba99125ce392a047d756cb80b6baf0f2427e087f3a8ba8df98889c55bd1d6fe36e8c5e23b72
|
7
|
+
data.tar.gz: f4ea729c91cc2724b4595d4a76084c76b2e7223301435cc8ea128d69846d328d75a452801c5fd74805ecc0e47ccf11be840763198d94794bf7312a3b27d65c0c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-androidmanagement_v1
|
2
2
|
|
3
|
+
### v0.2.0 (2021-02-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210127
|
6
|
+
* Regenerated using generator version 0.1.2
|
7
|
+
|
3
8
|
### v0.1.0 (2021-01-07)
|
4
9
|
|
5
10
|
* Regenerated using generator version 0.1.1
|
@@ -247,7 +247,7 @@ module Google
|
|
247
247
|
# @return [Array<String>]
|
248
248
|
attr_accessor :accessible_track_ids
|
249
249
|
|
250
|
-
# This feature is not generally available.
|
250
|
+
# This feature is not generally available yet.
|
251
251
|
# Corresponds to the JSON property `autoUpdateMode`
|
252
252
|
# @return [String]
|
253
253
|
attr_accessor :auto_update_mode
|
@@ -660,6 +660,65 @@ module Google
|
|
660
660
|
end
|
661
661
|
end
|
662
662
|
|
663
|
+
# Contact details for LaForge enterprises.
|
664
|
+
class ContactInfo
|
665
|
+
include Google::Apis::Core::Hashable
|
666
|
+
|
667
|
+
# Email address for a point of contact, which will be used to send important
|
668
|
+
# announcements related to managed Google Play.
|
669
|
+
# Corresponds to the JSON property `contactEmail`
|
670
|
+
# @return [String]
|
671
|
+
attr_accessor :contact_email
|
672
|
+
|
673
|
+
# The email of the data protection officer. The email is validated but not
|
674
|
+
# verified.
|
675
|
+
# Corresponds to the JSON property `dataProtectionOfficerEmail`
|
676
|
+
# @return [String]
|
677
|
+
attr_accessor :data_protection_officer_email
|
678
|
+
|
679
|
+
# The name of the data protection officer.
|
680
|
+
# Corresponds to the JSON property `dataProtectionOfficerName`
|
681
|
+
# @return [String]
|
682
|
+
attr_accessor :data_protection_officer_name
|
683
|
+
|
684
|
+
# The phone number of the data protection officer The phone number is validated
|
685
|
+
# but not verified.
|
686
|
+
# Corresponds to the JSON property `dataProtectionOfficerPhone`
|
687
|
+
# @return [String]
|
688
|
+
attr_accessor :data_protection_officer_phone
|
689
|
+
|
690
|
+
# The email of the EU representative. The email is validated but not verified.
|
691
|
+
# Corresponds to the JSON property `euRepresentativeEmail`
|
692
|
+
# @return [String]
|
693
|
+
attr_accessor :eu_representative_email
|
694
|
+
|
695
|
+
# The name of the EU representative.
|
696
|
+
# Corresponds to the JSON property `euRepresentativeName`
|
697
|
+
# @return [String]
|
698
|
+
attr_accessor :eu_representative_name
|
699
|
+
|
700
|
+
# The phone number of the EU representative. The phone number is validated but
|
701
|
+
# not verified.
|
702
|
+
# Corresponds to the JSON property `euRepresentativePhone`
|
703
|
+
# @return [String]
|
704
|
+
attr_accessor :eu_representative_phone
|
705
|
+
|
706
|
+
def initialize(**args)
|
707
|
+
update!(**args)
|
708
|
+
end
|
709
|
+
|
710
|
+
# Update properties of this object
|
711
|
+
def update!(**args)
|
712
|
+
@contact_email = args[:contact_email] if args.key?(:contact_email)
|
713
|
+
@data_protection_officer_email = args[:data_protection_officer_email] if args.key?(:data_protection_officer_email)
|
714
|
+
@data_protection_officer_name = args[:data_protection_officer_name] if args.key?(:data_protection_officer_name)
|
715
|
+
@data_protection_officer_phone = args[:data_protection_officer_phone] if args.key?(:data_protection_officer_phone)
|
716
|
+
@eu_representative_email = args[:eu_representative_email] if args.key?(:eu_representative_email)
|
717
|
+
@eu_representative_name = args[:eu_representative_name] if args.key?(:eu_representative_name)
|
718
|
+
@eu_representative_phone = args[:eu_representative_phone] if args.key?(:eu_representative_phone)
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
663
722
|
# Represents a whole or partial calendar date, such as a birthday. The time of
|
664
723
|
# day and time zone are either specified elsewhere or are insignificant. The
|
665
724
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
@@ -1112,7 +1171,7 @@ module Google
|
|
1112
1171
|
# @return [String]
|
1113
1172
|
attr_accessor :allow_personal_usage
|
1114
1173
|
|
1115
|
-
# The length of time the enrollment token is valid, ranging from 1 minute to
|
1174
|
+
# The length of time the enrollment token is valid, ranging from 1 minute to 90
|
1116
1175
|
# days. If not specified, the default duration is 1 hour.
|
1117
1176
|
# Corresponds to the JSON property `duration`
|
1118
1177
|
# @return [String]
|
@@ -1197,6 +1256,11 @@ module Google
|
|
1197
1256
|
attr_accessor :app_auto_approval_enabled
|
1198
1257
|
alias_method :app_auto_approval_enabled?, :app_auto_approval_enabled
|
1199
1258
|
|
1259
|
+
# Contact details for LaForge enterprises.
|
1260
|
+
# Corresponds to the JSON property `contactInfo`
|
1261
|
+
# @return [Google::Apis::AndroidmanagementV1::ContactInfo]
|
1262
|
+
attr_accessor :contact_info
|
1263
|
+
|
1200
1264
|
# The types of Google Pub/Sub notifications enabled for the enterprise.
|
1201
1265
|
# Corresponds to the JSON property `enabledNotificationTypes`
|
1202
1266
|
# @return [Array<String>]
|
@@ -1252,6 +1316,7 @@ module Google
|
|
1252
1316
|
# Update properties of this object
|
1253
1317
|
def update!(**args)
|
1254
1318
|
@app_auto_approval_enabled = args[:app_auto_approval_enabled] if args.key?(:app_auto_approval_enabled)
|
1319
|
+
@contact_info = args[:contact_info] if args.key?(:contact_info)
|
1255
1320
|
@enabled_notification_types = args[:enabled_notification_types] if args.key?(:enabled_notification_types)
|
1256
1321
|
@enterprise_display_name = args[:enterprise_display_name] if args.key?(:enterprise_display_name)
|
1257
1322
|
@logo = args[:logo] if args.key?(:logo)
|
@@ -1648,6 +1713,33 @@ module Google
|
|
1648
1713
|
end
|
1649
1714
|
end
|
1650
1715
|
|
1716
|
+
# This feature is not generally available yet. Response to a request to list
|
1717
|
+
# enterprises.
|
1718
|
+
class ListEnterprisesResponse
|
1719
|
+
include Google::Apis::Core::Hashable
|
1720
|
+
|
1721
|
+
# This feature is not generally available yet. The list of enterprises.
|
1722
|
+
# Corresponds to the JSON property `enterprises`
|
1723
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::Enterprise>]
|
1724
|
+
attr_accessor :enterprises
|
1725
|
+
|
1726
|
+
# This feature is not generally available yet. If there are more results, a
|
1727
|
+
# token to retrieve next page of results.
|
1728
|
+
# Corresponds to the JSON property `nextPageToken`
|
1729
|
+
# @return [String]
|
1730
|
+
attr_accessor :next_page_token
|
1731
|
+
|
1732
|
+
def initialize(**args)
|
1733
|
+
update!(**args)
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
# Update properties of this object
|
1737
|
+
def update!(**args)
|
1738
|
+
@enterprises = args[:enterprises] if args.key?(:enterprises)
|
1739
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1740
|
+
end
|
1741
|
+
end
|
1742
|
+
|
1651
1743
|
# The response message for Operations.ListOperations.
|
1652
1744
|
class ListOperationsResponse
|
1653
1745
|
include Google::Apis::Core::Hashable
|
@@ -1911,6 +2003,13 @@ module Google
|
|
1911
2003
|
# @return [String]
|
1912
2004
|
attr_accessor :network_operator_name
|
1913
2005
|
|
2006
|
+
# Provides telephony information associated with each SIM card on the device.
|
2007
|
+
# Only supported on fully managed devices starting from Android API level 23 and
|
2008
|
+
# above.
|
2009
|
+
# Corresponds to the JSON property `telephonyInfos`
|
2010
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::TelephonyInfo>]
|
2011
|
+
attr_accessor :telephony_infos
|
2012
|
+
|
1914
2013
|
# Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
|
1915
2014
|
# Corresponds to the JSON property `wifiMacAddress`
|
1916
2015
|
# @return [String]
|
@@ -1925,6 +2024,7 @@ module Google
|
|
1925
2024
|
@imei = args[:imei] if args.key?(:imei)
|
1926
2025
|
@meid = args[:meid] if args.key?(:meid)
|
1927
2026
|
@network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
|
2027
|
+
@telephony_infos = args[:telephony_infos] if args.key?(:telephony_infos)
|
1928
2028
|
@wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
|
1929
2029
|
end
|
1930
2030
|
end
|
@@ -3525,6 +3625,33 @@ module Google
|
|
3525
3625
|
end
|
3526
3626
|
end
|
3527
3627
|
|
3628
|
+
# Telephony information associated with a given SIM card on the device. Only
|
3629
|
+
# supported on fully managed devices starting from Android API level 23 and
|
3630
|
+
# above.
|
3631
|
+
class TelephonyInfo
|
3632
|
+
include Google::Apis::Core::Hashable
|
3633
|
+
|
3634
|
+
# The carrier name associated with this SIM card.
|
3635
|
+
# Corresponds to the JSON property `carrierName`
|
3636
|
+
# @return [String]
|
3637
|
+
attr_accessor :carrier_name
|
3638
|
+
|
3639
|
+
# The phone number associated with this SIM card.
|
3640
|
+
# Corresponds to the JSON property `phoneNumber`
|
3641
|
+
# @return [String]
|
3642
|
+
attr_accessor :phone_number
|
3643
|
+
|
3644
|
+
def initialize(**args)
|
3645
|
+
update!(**args)
|
3646
|
+
end
|
3647
|
+
|
3648
|
+
# Update properties of this object
|
3649
|
+
def update!(**args)
|
3650
|
+
@carrier_name = args[:carrier_name] if args.key?(:carrier_name)
|
3651
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
3652
|
+
end
|
3653
|
+
end
|
3654
|
+
|
3528
3655
|
# A terms and conditions page to be accepted during provisioning.
|
3529
3656
|
class TermsAndConditions
|
3530
3657
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AndroidmanagementV1
|
18
18
|
# Version of the google-apis-androidmanagement_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210127"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,12 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class ContactInfo
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
115
121
|
class Date
|
116
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
123
|
|
@@ -202,6 +208,12 @@ module Google
|
|
202
208
|
include Google::Apis::Core::JsonObjectSupport
|
203
209
|
end
|
204
210
|
|
211
|
+
class ListEnterprisesResponse
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
205
217
|
class ListOperationsResponse
|
206
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
219
|
|
@@ -394,6 +406,12 @@ module Google
|
|
394
406
|
include Google::Apis::Core::JsonObjectSupport
|
395
407
|
end
|
396
408
|
|
409
|
+
class TelephonyInfo
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
397
415
|
class TermsAndConditions
|
398
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
417
|
|
@@ -594,6 +612,19 @@ module Google
|
|
594
612
|
end
|
595
613
|
end
|
596
614
|
|
615
|
+
class ContactInfo
|
616
|
+
# @private
|
617
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
618
|
+
property :contact_email, as: 'contactEmail'
|
619
|
+
property :data_protection_officer_email, as: 'dataProtectionOfficerEmail'
|
620
|
+
property :data_protection_officer_name, as: 'dataProtectionOfficerName'
|
621
|
+
property :data_protection_officer_phone, as: 'dataProtectionOfficerPhone'
|
622
|
+
property :eu_representative_email, as: 'euRepresentativeEmail'
|
623
|
+
property :eu_representative_name, as: 'euRepresentativeName'
|
624
|
+
property :eu_representative_phone, as: 'euRepresentativePhone'
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
597
628
|
class Date
|
598
629
|
# @private
|
599
630
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -711,6 +742,8 @@ module Google
|
|
711
742
|
# @private
|
712
743
|
class Representation < Google::Apis::Core::JsonRepresentation
|
713
744
|
property :app_auto_approval_enabled, as: 'appAutoApprovalEnabled'
|
745
|
+
property :contact_info, as: 'contactInfo', class: Google::Apis::AndroidmanagementV1::ContactInfo, decorator: Google::Apis::AndroidmanagementV1::ContactInfo::Representation
|
746
|
+
|
714
747
|
collection :enabled_notification_types, as: 'enabledNotificationTypes'
|
715
748
|
property :enterprise_display_name, as: 'enterpriseDisplayName'
|
716
749
|
property :logo, as: 'logo', class: Google::Apis::AndroidmanagementV1::ExternalData, decorator: Google::Apis::AndroidmanagementV1::ExternalData::Representation
|
@@ -815,6 +848,15 @@ module Google
|
|
815
848
|
end
|
816
849
|
end
|
817
850
|
|
851
|
+
class ListEnterprisesResponse
|
852
|
+
# @private
|
853
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
854
|
+
collection :enterprises, as: 'enterprises', class: Google::Apis::AndroidmanagementV1::Enterprise, decorator: Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
855
|
+
|
856
|
+
property :next_page_token, as: 'nextPageToken'
|
857
|
+
end
|
858
|
+
end
|
859
|
+
|
818
860
|
class ListOperationsResponse
|
819
861
|
# @private
|
820
862
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -896,6 +938,8 @@ module Google
|
|
896
938
|
property :imei, as: 'imei'
|
897
939
|
property :meid, as: 'meid'
|
898
940
|
property :network_operator_name, as: 'networkOperatorName'
|
941
|
+
collection :telephony_infos, as: 'telephonyInfos', class: Google::Apis::AndroidmanagementV1::TelephonyInfo, decorator: Google::Apis::AndroidmanagementV1::TelephonyInfo::Representation
|
942
|
+
|
899
943
|
property :wifi_mac_address, as: 'wifiMacAddress'
|
900
944
|
end
|
901
945
|
end
|
@@ -1248,6 +1292,14 @@ module Google
|
|
1248
1292
|
end
|
1249
1293
|
end
|
1250
1294
|
|
1295
|
+
class TelephonyInfo
|
1296
|
+
# @private
|
1297
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1298
|
+
property :carrier_name, as: 'carrierName'
|
1299
|
+
property :phone_number, as: 'phoneNumber'
|
1300
|
+
end
|
1301
|
+
end
|
1302
|
+
|
1251
1303
|
class TermsAndConditions
|
1252
1304
|
# @private
|
1253
1305
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,6 +52,9 @@ module Google
|
|
52
52
|
|
53
53
|
# Creates an enterprise. This is the last step in the enterprise signup flow.
|
54
54
|
# @param [Google::Apis::AndroidmanagementV1::Enterprise] enterprise_object
|
55
|
+
# @param [Boolean] agreement_accepted
|
56
|
+
# This feature is not generally available yet. Whether the managed Google Play
|
57
|
+
# Agreement is presented and agreed.
|
55
58
|
# @param [String] enterprise_token
|
56
59
|
# The enterprise token appended to the callback URL.
|
57
60
|
# @param [String] project_id
|
@@ -75,12 +78,13 @@ module Google
|
|
75
78
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
79
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
80
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
-
def create_enterprise(enterprise_object = nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
def create_enterprise(enterprise_object = nil, agreement_accepted: nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
82
|
command = make_simple_command(:post, 'v1/enterprises', options)
|
80
83
|
command.request_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
81
84
|
command.request_object = enterprise_object
|
82
85
|
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
83
86
|
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
|
87
|
+
command.query['agreementAccepted'] = agreement_accepted unless agreement_accepted.nil?
|
84
88
|
command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
|
85
89
|
command.query['projectId'] = project_id unless project_id.nil?
|
86
90
|
command.query['signupUrlName'] = signup_url_name unless signup_url_name.nil?
|
@@ -89,6 +93,37 @@ module Google
|
|
89
93
|
execute_or_queue_command(command, &block)
|
90
94
|
end
|
91
95
|
|
96
|
+
# This feature is not generally available yet. Deletes an enterprise.
|
97
|
+
# @param [String] name
|
98
|
+
# This feature is not generally available yet. The name of the enterprise in the
|
99
|
+
# form enterprises/`enterpriseId`.
|
100
|
+
# @param [String] fields
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
102
|
+
# @param [String] quota_user
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
105
|
+
# @param [Google::Apis::RequestOptions] options
|
106
|
+
# Request-specific options
|
107
|
+
#
|
108
|
+
# @yield [result, err] Result & error if block supplied
|
109
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
|
110
|
+
# @yieldparam err [StandardError] error object if request failed
|
111
|
+
#
|
112
|
+
# @return [Google::Apis::AndroidmanagementV1::Empty]
|
113
|
+
#
|
114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
+
def delete_enterprise(name, fields: nil, quota_user: nil, options: nil, &block)
|
118
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
119
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
120
|
+
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
121
|
+
command.params['name'] = name unless name.nil?
|
122
|
+
command.query['fields'] = fields unless fields.nil?
|
123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
+
execute_or_queue_command(command, &block)
|
125
|
+
end
|
126
|
+
|
92
127
|
# Gets an enterprise.
|
93
128
|
# @param [String] name
|
94
129
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
@@ -119,6 +154,50 @@ module Google
|
|
119
154
|
execute_or_queue_command(command, &block)
|
120
155
|
end
|
121
156
|
|
157
|
+
# This feature is not generally available yet. Lists enterprises that are
|
158
|
+
# managed by an EMM. Only partial views are returned.
|
159
|
+
# @param [Fixnum] page_size
|
160
|
+
# This feature is not generally available yet. The requested page size. The
|
161
|
+
# actual page size may be fixed to a min or max value.
|
162
|
+
# @param [String] page_token
|
163
|
+
# This feature is not generally available yet. A token identifying a page of
|
164
|
+
# results returned by the server.
|
165
|
+
# @param [String] project_id
|
166
|
+
# Required. This feature is not generally available yet. The ID of the Cloud
|
167
|
+
# project of the EMM the enterprises belongs to.
|
168
|
+
# @param [String] view
|
169
|
+
# This feature is not generally available yet. View that specify that partial
|
170
|
+
# response should be returned.
|
171
|
+
# @param [String] fields
|
172
|
+
# Selector specifying which fields to include in a partial response.
|
173
|
+
# @param [String] quota_user
|
174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
176
|
+
# @param [Google::Apis::RequestOptions] options
|
177
|
+
# Request-specific options
|
178
|
+
#
|
179
|
+
# @yield [result, err] Result & error if block supplied
|
180
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListEnterprisesResponse] parsed result object
|
181
|
+
# @yieldparam err [StandardError] error object if request failed
|
182
|
+
#
|
183
|
+
# @return [Google::Apis::AndroidmanagementV1::ListEnterprisesResponse]
|
184
|
+
#
|
185
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
186
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
|
+
def list_enterprises(page_size: nil, page_token: nil, project_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
189
|
+
command = make_simple_command(:get, 'v1/enterprises', options)
|
190
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::ListEnterprisesResponse::Representation
|
191
|
+
command.response_class = Google::Apis::AndroidmanagementV1::ListEnterprisesResponse
|
192
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
193
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
194
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
195
|
+
command.query['view'] = view unless view.nil?
|
196
|
+
command.query['fields'] = fields unless fields.nil?
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
198
|
+
execute_or_queue_command(command, &block)
|
199
|
+
end
|
200
|
+
|
122
201
|
# Updates an enterprise.
|
123
202
|
# @param [String] name
|
124
203
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-androidmanagement_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidmanagement_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidmanagement_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Android Management API V1
|