google-apis-androidmanagement_v1 0.34.0 → 0.37.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 +12 -0
- data/lib/google/apis/androidmanagement_v1/classes.rb +1136 -0
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidmanagement_v1/representations.rb +575 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +83 -1
- metadata +5 -5
@@ -606,7 +606,12 @@ module Google
|
|
606
606
|
execute_or_queue_command(command, &block)
|
607
607
|
end
|
608
608
|
|
609
|
-
# Creates an enrollment token for a given enterprise.
|
609
|
+
# Creates an enrollment token for a given enterprise. It's up to the caller's
|
610
|
+
# responsibility to manage the lifecycle of newly created tokens and deleting
|
611
|
+
# them when they're not intended to be used anymore. Once an enrollment token
|
612
|
+
# has been created, it's not possible to retrieve the token's content anymore
|
613
|
+
# using AM API. It is recommended for EMMs to securely store the token if it's
|
614
|
+
# intended to be reused.
|
610
615
|
# @param [String] parent
|
611
616
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
612
617
|
# @param [Google::Apis::AndroidmanagementV1::EnrollmentToken] enrollment_token_object
|
@@ -671,6 +676,83 @@ module Google
|
|
671
676
|
execute_or_queue_command(command, &block)
|
672
677
|
end
|
673
678
|
|
679
|
+
# Gets an active, unexpired enrollment token. Only a partial view of
|
680
|
+
# EnrollmentToken is returned: all the fields but name and expiration_timestamp
|
681
|
+
# are empty. This method is meant to help manage active enrollment tokens
|
682
|
+
# lifecycle. For security reasons, it's recommended to delete active enrollment
|
683
|
+
# tokens as soon as they're not intended to be used anymore.
|
684
|
+
# @param [String] name
|
685
|
+
# Required. The name of the enrollment token in the form enterprises/`
|
686
|
+
# enterpriseId`/enrollmentTokens/`enrollmentTokenId`.
|
687
|
+
# @param [String] fields
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
689
|
+
# @param [String] quota_user
|
690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
692
|
+
# @param [Google::Apis::RequestOptions] options
|
693
|
+
# Request-specific options
|
694
|
+
#
|
695
|
+
# @yield [result, err] Result & error if block supplied
|
696
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::EnrollmentToken] parsed result object
|
697
|
+
# @yieldparam err [StandardError] error object if request failed
|
698
|
+
#
|
699
|
+
# @return [Google::Apis::AndroidmanagementV1::EnrollmentToken]
|
700
|
+
#
|
701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
+
def get_enterprise_enrollment_token(name, fields: nil, quota_user: nil, options: nil, &block)
|
705
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
706
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::EnrollmentToken::Representation
|
707
|
+
command.response_class = Google::Apis::AndroidmanagementV1::EnrollmentToken
|
708
|
+
command.params['name'] = name unless name.nil?
|
709
|
+
command.query['fields'] = fields unless fields.nil?
|
710
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
711
|
+
execute_or_queue_command(command, &block)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Lists active, unexpired enrollment tokens for a given enterprise. The list
|
715
|
+
# items contain only a partial view of EnrollmentToken: all the fields but name
|
716
|
+
# and expiration_timestamp are empty. This method is meant to help manage active
|
717
|
+
# enrollment tokens lifecycle. For security reasons, it's recommended to delete
|
718
|
+
# active enrollment tokens as soon as they're not intended to be used anymore.
|
719
|
+
# @param [String] parent
|
720
|
+
# Required. The name of the enterprise in the form enterprises/`enterpriseId`.
|
721
|
+
# @param [Fixnum] page_size
|
722
|
+
# The requested page size. The service may return fewer than this value. If
|
723
|
+
# unspecified, at most 10 items will be returned. The maximum value is 100;
|
724
|
+
# values above 100 will be coerced to 100.
|
725
|
+
# @param [String] page_token
|
726
|
+
# A token identifying a page of results returned by the server.
|
727
|
+
# @param [String] fields
|
728
|
+
# Selector specifying which fields to include in a partial response.
|
729
|
+
# @param [String] quota_user
|
730
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
731
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
732
|
+
# @param [Google::Apis::RequestOptions] options
|
733
|
+
# Request-specific options
|
734
|
+
#
|
735
|
+
# @yield [result, err] Result & error if block supplied
|
736
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse] parsed result object
|
737
|
+
# @yieldparam err [StandardError] error object if request failed
|
738
|
+
#
|
739
|
+
# @return [Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse]
|
740
|
+
#
|
741
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
742
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
743
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
744
|
+
def list_enterprise_enrollment_tokens(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
745
|
+
command = make_simple_command(:get, 'v1/{+parent}/enrollmentTokens', options)
|
746
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse::Representation
|
747
|
+
command.response_class = Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse
|
748
|
+
command.params['parent'] = parent unless parent.nil?
|
749
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
750
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
751
|
+
command.query['fields'] = fields unless fields.nil?
|
752
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
753
|
+
execute_or_queue_command(command, &block)
|
754
|
+
end
|
755
|
+
|
674
756
|
# Deletes a policy. This operation is only permitted if no devices are currently
|
675
757
|
# referencing the policy.
|
676
758
|
# @param [String] name
|
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.37.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: 2022-06-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.6'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.6'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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-androidmanagement_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.37.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidmanagement_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|