google-apis-androidmanagement_v1 0.1.0 → 0.6.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: 9710b73579f5de5ca6adf212c4310c98964740e7dd7edf397637bc1d1a3a7535
4
- data.tar.gz: fee85aed7575aea1256b705f3269e4929218dc31b3d6d5d0198be1838e02c1e9
3
+ metadata.gz: 9a5527b003024840d9f508c84aef498e08f2c9b58b285e6f4ff019f8abb174d3
4
+ data.tar.gz: 8b9f9a639f8e3823de45f5f8e66227368313ab5ff5d3ea4917fe7179918d6ea4
5
5
  SHA512:
6
- metadata.gz: 3e5b2475dc308794494832c67eb6b2c7b07791ce851428d0ed3fe12060a14c080f2cfa0451129d140418ac427995dc9495262e8364d8a52505e94a1ae63bc367
7
- data.tar.gz: d74d2c2e56c664db3bfec711cbf7b4e78cde4855994bb39b2765da923924ec867edb65e3dbcc1507177f455811721dbf59d9dd4a85b45d057db818f1c0c0d28c
6
+ metadata.gz: e605bd4fc78dde4b8505e87bcb569c0ecc8ba3d4797c99bc9194d5e574b4900672c245a8acb4da1be00f166fb1deda64a05ac9d7834edb730767e2c4b0560940
7
+ data.tar.gz: 6de26037d27062b1da0590a28d612861b0787dedb2a706f6e8914c7660090ba5df1c5e04282bc9a10ea55d543e17f6a6eb0c4411d922f24cdb35508b53f2f664
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-androidmanagement_v1
2
2
 
3
+ ### v0.6.0 (2021-03-12)
4
+
5
+ * Regenerated from discovery document revision 20210311
6
+ * Regenerated using generator version 0.2.0
7
+
8
+ ### v0.5.0 (2021-03-04)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.4.0 (2021-02-16)
13
+
14
+ * Regenerated from discovery document revision 20210208
15
+
16
+ ### v0.3.0 (2021-02-10)
17
+
18
+ * Regenerated from discovery document revision 20210201
19
+
20
+ ### v0.2.0 (2021-02-03)
21
+
22
+ * Regenerated from discovery document revision 20210127
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * 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,96 @@ 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
+
722
+ # This feature is not generally available.
723
+ class ContentProviderEndpoint
724
+ include Google::Apis::Core::Hashable
725
+
726
+ # This feature is not generally available.
727
+ # Corresponds to the JSON property `packageName`
728
+ # @return [String]
729
+ attr_accessor :package_name
730
+
731
+ # Required. This feature is not generally available.
732
+ # Corresponds to the JSON property `signingCertsSha256`
733
+ # @return [Array<String>]
734
+ attr_accessor :signing_certs_sha256
735
+
736
+ # This feature is not generally available.
737
+ # Corresponds to the JSON property `uri`
738
+ # @return [String]
739
+ attr_accessor :uri
740
+
741
+ def initialize(**args)
742
+ update!(**args)
743
+ end
744
+
745
+ # Update properties of this object
746
+ def update!(**args)
747
+ @package_name = args[:package_name] if args.key?(:package_name)
748
+ @signing_certs_sha256 = args[:signing_certs_sha256] if args.key?(:signing_certs_sha256)
749
+ @uri = args[:uri] if args.key?(:uri)
750
+ end
751
+ end
752
+
663
753
  # Represents a whole or partial calendar date, such as a birthday. The time of
664
754
  # day and time zone are either specified elsewhere or are insignificant. The
665
755
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -1112,7 +1202,7 @@ module Google
1112
1202
  # @return [String]
1113
1203
  attr_accessor :allow_personal_usage
1114
1204
 
1115
- # The length of time the enrollment token is valid, ranging from 1 minute to 30
1205
+ # The length of time the enrollment token is valid, ranging from 1 minute to 90
1116
1206
  # days. If not specified, the default duration is 1 hour.
1117
1207
  # Corresponds to the JSON property `duration`
1118
1208
  # @return [String]
@@ -1197,6 +1287,11 @@ module Google
1197
1287
  attr_accessor :app_auto_approval_enabled
1198
1288
  alias_method :app_auto_approval_enabled?, :app_auto_approval_enabled
1199
1289
 
1290
+ # Contact details for LaForge enterprises.
1291
+ # Corresponds to the JSON property `contactInfo`
1292
+ # @return [Google::Apis::AndroidmanagementV1::ContactInfo]
1293
+ attr_accessor :contact_info
1294
+
1200
1295
  # The types of Google Pub/Sub notifications enabled for the enterprise.
1201
1296
  # Corresponds to the JSON property `enabledNotificationTypes`
1202
1297
  # @return [Array<String>]
@@ -1252,6 +1347,7 @@ module Google
1252
1347
  # Update properties of this object
1253
1348
  def update!(**args)
1254
1349
  @app_auto_approval_enabled = args[:app_auto_approval_enabled] if args.key?(:app_auto_approval_enabled)
1350
+ @contact_info = args[:contact_info] if args.key?(:contact_info)
1255
1351
  @enabled_notification_types = args[:enabled_notification_types] if args.key?(:enabled_notification_types)
1256
1352
  @enterprise_display_name = args[:enterprise_display_name] if args.key?(:enterprise_display_name)
1257
1353
  @logo = args[:logo] if args.key?(:logo)
@@ -1648,6 +1744,33 @@ module Google
1648
1744
  end
1649
1745
  end
1650
1746
 
1747
+ # This feature is not generally available yet. Response to a request to list
1748
+ # enterprises.
1749
+ class ListEnterprisesResponse
1750
+ include Google::Apis::Core::Hashable
1751
+
1752
+ # This feature is not generally available yet. The list of enterprises.
1753
+ # Corresponds to the JSON property `enterprises`
1754
+ # @return [Array<Google::Apis::AndroidmanagementV1::Enterprise>]
1755
+ attr_accessor :enterprises
1756
+
1757
+ # This feature is not generally available yet. If there are more results, a
1758
+ # token to retrieve next page of results.
1759
+ # Corresponds to the JSON property `nextPageToken`
1760
+ # @return [String]
1761
+ attr_accessor :next_page_token
1762
+
1763
+ def initialize(**args)
1764
+ update!(**args)
1765
+ end
1766
+
1767
+ # Update properties of this object
1768
+ def update!(**args)
1769
+ @enterprises = args[:enterprises] if args.key?(:enterprises)
1770
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1771
+ end
1772
+ end
1773
+
1651
1774
  # The response message for Operations.ListOperations.
1652
1775
  class ListOperationsResponse
1653
1776
  include Google::Apis::Core::Hashable
@@ -1911,6 +2034,12 @@ module Google
1911
2034
  # @return [String]
1912
2035
  attr_accessor :network_operator_name
1913
2036
 
2037
+ # Provides telephony information associated with each SIM card on the device.
2038
+ # Only supported on fully managed devices starting from Android API level 23.
2039
+ # Corresponds to the JSON property `telephonyInfos`
2040
+ # @return [Array<Google::Apis::AndroidmanagementV1::TelephonyInfo>]
2041
+ attr_accessor :telephony_infos
2042
+
1914
2043
  # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
1915
2044
  # Corresponds to the JSON property `wifiMacAddress`
1916
2045
  # @return [String]
@@ -1925,6 +2054,7 @@ module Google
1925
2054
  @imei = args[:imei] if args.key?(:imei)
1926
2055
  @meid = args[:meid] if args.key?(:meid)
1927
2056
  @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
2057
+ @telephony_infos = args[:telephony_infos] if args.key?(:telephony_infos)
1928
2058
  @wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
1929
2059
  end
1930
2060
  end
@@ -2026,6 +2156,31 @@ module Google
2026
2156
  end
2027
2157
  end
2028
2158
 
2159
+ # This feature is not generally available.
2160
+ class OncCertificateProvider
2161
+ include Google::Apis::Core::Hashable
2162
+
2163
+ # This feature is not generally available.
2164
+ # Corresponds to the JSON property `certificateReferences`
2165
+ # @return [Array<String>]
2166
+ attr_accessor :certificate_references
2167
+
2168
+ # This feature is not generally available.
2169
+ # Corresponds to the JSON property `contentProviderEndpoint`
2170
+ # @return [Google::Apis::AndroidmanagementV1::ContentProviderEndpoint]
2171
+ attr_accessor :content_provider_endpoint
2172
+
2173
+ def initialize(**args)
2174
+ update!(**args)
2175
+ end
2176
+
2177
+ # Update properties of this object
2178
+ def update!(**args)
2179
+ @certificate_references = args[:certificate_references] if args.key?(:certificate_references)
2180
+ @content_provider_endpoint = args[:content_provider_endpoint] if args.key?(:content_provider_endpoint)
2181
+ end
2182
+ end
2183
+
2029
2184
  # This resource represents a long-running operation that is the result of a
2030
2185
  # network API call.
2031
2186
  class Operation
@@ -2323,7 +2478,8 @@ module Google
2323
2478
  attr_accessor :camera_disabled
2324
2479
  alias_method :camera_disabled?, :camera_disabled
2325
2480
 
2326
- # Controls how long the work profile can stay off.
2481
+ # Controls how long the work profile can stay off. The duration must be at least
2482
+ # 3 days.
2327
2483
  # Corresponds to the JSON property `maxDaysWithWorkOff`
2328
2484
  # @return [Fixnum]
2329
2485
  attr_accessor :max_days_with_work_off
@@ -2376,7 +2532,7 @@ module Google
2376
2532
  attr_accessor :add_user_disabled
2377
2533
  alias_method :add_user_disabled?, :add_user_disabled
2378
2534
 
2379
- # Whether adjusting the master volume is disabled.
2535
+ # Whether adjusting the master volume is disabled. Also mutes the device.
2380
2536
  # Corresponds to the JSON property `adjustVolumeDisabled`
2381
2537
  # @return [Boolean]
2382
2538
  attr_accessor :adjust_volume_disabled
@@ -2555,8 +2711,7 @@ module Google
2555
2711
  attr_accessor :install_apps_disabled
2556
2712
  alias_method :install_apps_disabled?, :install_apps_disabled
2557
2713
 
2558
- # Whether the user is allowed to enable the "Unknown Sources" setting, which
2559
- # allows installation of apps from unknown sources.
2714
+ # This field has no effect.
2560
2715
  # Corresponds to the JSON property `installUnknownSourcesAllowed`
2561
2716
  # @return [Boolean]
2562
2717
  attr_accessor :install_unknown_sources_allowed
@@ -2653,6 +2808,11 @@ module Google
2653
2808
  attr_accessor :network_reset_disabled
2654
2809
  alias_method :network_reset_disabled?, :network_reset_disabled
2655
2810
 
2811
+ # This feature is not generally available.
2812
+ # Corresponds to the JSON property `oncCertificateProviders`
2813
+ # @return [Array<Google::Apis::AndroidmanagementV1::OncCertificateProvider>]
2814
+ attr_accessor :onc_certificate_providers
2815
+
2656
2816
  # Network configuration for the device. See configure networks for more
2657
2817
  # information.
2658
2818
  # Corresponds to the JSON property `openNetworkConfiguration`
@@ -2927,6 +3087,7 @@ module Google
2927
3087
  @name = args[:name] if args.key?(:name)
2928
3088
  @network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled)
2929
3089
  @network_reset_disabled = args[:network_reset_disabled] if args.key?(:network_reset_disabled)
3090
+ @onc_certificate_providers = args[:onc_certificate_providers] if args.key?(:onc_certificate_providers)
2930
3091
  @open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration)
2931
3092
  @outgoing_beam_disabled = args[:outgoing_beam_disabled] if args.key?(:outgoing_beam_disabled)
2932
3093
  @outgoing_calls_disabled = args[:outgoing_calls_disabled] if args.key?(:outgoing_calls_disabled)
@@ -3525,6 +3686,32 @@ module Google
3525
3686
  end
3526
3687
  end
3527
3688
 
3689
+ # Telephony information associated with a given SIM card on the device. Only
3690
+ # supported on fully managed devices starting from Android API level 23.
3691
+ class TelephonyInfo
3692
+ include Google::Apis::Core::Hashable
3693
+
3694
+ # The carrier name associated with this SIM card.
3695
+ # Corresponds to the JSON property `carrierName`
3696
+ # @return [String]
3697
+ attr_accessor :carrier_name
3698
+
3699
+ # The phone number associated with this SIM card.
3700
+ # Corresponds to the JSON property `phoneNumber`
3701
+ # @return [String]
3702
+ attr_accessor :phone_number
3703
+
3704
+ def initialize(**args)
3705
+ update!(**args)
3706
+ end
3707
+
3708
+ # Update properties of this object
3709
+ def update!(**args)
3710
+ @carrier_name = args[:carrier_name] if args.key?(:carrier_name)
3711
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
3712
+ end
3713
+ end
3714
+
3528
3715
  # A terms and conditions page to be accepted during provisioning.
3529
3716
  class TermsAndConditions
3530
3717
  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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201209"
25
+ REVISION = "20210311"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,18 @@ 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
+
121
+ class ContentProviderEndpoint
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
115
127
  class Date
116
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
129
 
@@ -202,6 +214,12 @@ module Google
202
214
  include Google::Apis::Core::JsonObjectSupport
203
215
  end
204
216
 
217
+ class ListEnterprisesResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
205
223
  class ListOperationsResponse
206
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
225
 
@@ -268,6 +286,12 @@ module Google
268
286
  include Google::Apis::Core::JsonObjectSupport
269
287
  end
270
288
 
289
+ class OncCertificateProvider
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
271
295
  class Operation
272
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
297
 
@@ -394,6 +418,12 @@ module Google
394
418
  include Google::Apis::Core::JsonObjectSupport
395
419
  end
396
420
 
421
+ class TelephonyInfo
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
397
427
  class TermsAndConditions
398
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
429
 
@@ -594,6 +624,28 @@ module Google
594
624
  end
595
625
  end
596
626
 
627
+ class ContactInfo
628
+ # @private
629
+ class Representation < Google::Apis::Core::JsonRepresentation
630
+ property :contact_email, as: 'contactEmail'
631
+ property :data_protection_officer_email, as: 'dataProtectionOfficerEmail'
632
+ property :data_protection_officer_name, as: 'dataProtectionOfficerName'
633
+ property :data_protection_officer_phone, as: 'dataProtectionOfficerPhone'
634
+ property :eu_representative_email, as: 'euRepresentativeEmail'
635
+ property :eu_representative_name, as: 'euRepresentativeName'
636
+ property :eu_representative_phone, as: 'euRepresentativePhone'
637
+ end
638
+ end
639
+
640
+ class ContentProviderEndpoint
641
+ # @private
642
+ class Representation < Google::Apis::Core::JsonRepresentation
643
+ property :package_name, as: 'packageName'
644
+ collection :signing_certs_sha256, as: 'signingCertsSha256'
645
+ property :uri, as: 'uri'
646
+ end
647
+ end
648
+
597
649
  class Date
598
650
  # @private
599
651
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -711,6 +763,8 @@ module Google
711
763
  # @private
712
764
  class Representation < Google::Apis::Core::JsonRepresentation
713
765
  property :app_auto_approval_enabled, as: 'appAutoApprovalEnabled'
766
+ property :contact_info, as: 'contactInfo', class: Google::Apis::AndroidmanagementV1::ContactInfo, decorator: Google::Apis::AndroidmanagementV1::ContactInfo::Representation
767
+
714
768
  collection :enabled_notification_types, as: 'enabledNotificationTypes'
715
769
  property :enterprise_display_name, as: 'enterpriseDisplayName'
716
770
  property :logo, as: 'logo', class: Google::Apis::AndroidmanagementV1::ExternalData, decorator: Google::Apis::AndroidmanagementV1::ExternalData::Representation
@@ -815,6 +869,15 @@ module Google
815
869
  end
816
870
  end
817
871
 
872
+ class ListEnterprisesResponse
873
+ # @private
874
+ class Representation < Google::Apis::Core::JsonRepresentation
875
+ collection :enterprises, as: 'enterprises', class: Google::Apis::AndroidmanagementV1::Enterprise, decorator: Google::Apis::AndroidmanagementV1::Enterprise::Representation
876
+
877
+ property :next_page_token, as: 'nextPageToken'
878
+ end
879
+ end
880
+
818
881
  class ListOperationsResponse
819
882
  # @private
820
883
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -896,6 +959,8 @@ module Google
896
959
  property :imei, as: 'imei'
897
960
  property :meid, as: 'meid'
898
961
  property :network_operator_name, as: 'networkOperatorName'
962
+ collection :telephony_infos, as: 'telephonyInfos', class: Google::Apis::AndroidmanagementV1::TelephonyInfo, decorator: Google::Apis::AndroidmanagementV1::TelephonyInfo::Representation
963
+
899
964
  property :wifi_mac_address, as: 'wifiMacAddress'
900
965
  end
901
966
  end
@@ -921,6 +986,15 @@ module Google
921
986
  end
922
987
  end
923
988
 
989
+ class OncCertificateProvider
990
+ # @private
991
+ class Representation < Google::Apis::Core::JsonRepresentation
992
+ collection :certificate_references, as: 'certificateReferences'
993
+ property :content_provider_endpoint, as: 'contentProviderEndpoint', class: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint, decorator: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint::Representation
994
+
995
+ end
996
+ end
997
+
924
998
  class Operation
925
999
  # @private
926
1000
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1053,6 +1127,8 @@ module Google
1053
1127
  property :name, as: 'name'
1054
1128
  property :network_escape_hatch_enabled, as: 'networkEscapeHatchEnabled'
1055
1129
  property :network_reset_disabled, as: 'networkResetDisabled'
1130
+ collection :onc_certificate_providers, as: 'oncCertificateProviders', class: Google::Apis::AndroidmanagementV1::OncCertificateProvider, decorator: Google::Apis::AndroidmanagementV1::OncCertificateProvider::Representation
1131
+
1056
1132
  hash :open_network_configuration, as: 'openNetworkConfiguration'
1057
1133
  property :outgoing_beam_disabled, as: 'outgoingBeamDisabled'
1058
1134
  property :outgoing_calls_disabled, as: 'outgoingCallsDisabled'
@@ -1248,6 +1324,14 @@ module Google
1248
1324
  end
1249
1325
  end
1250
1326
 
1327
+ class TelephonyInfo
1328
+ # @private
1329
+ class Representation < Google::Apis::Core::JsonRepresentation
1330
+ property :carrier_name, as: 'carrierName'
1331
+ property :phone_number, as: 'phoneNumber'
1332
+ end
1333
+ end
1334
+
1251
1335
  class TermsAndConditions
1252
1336
  # @private
1253
1337
  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.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-03-15 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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.6.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Android Management API V1