google-apis-cloudidentity_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 844079381cb6af9dbf2eb9cec3ea58e2b8c734b1a17f1c7b9abcfda26d724916
4
+ data.tar.gz: c47f1ed5c2032c740ef01cb0f570a9482c67a73f8c2d7b1dfa052584ea648ac0
5
+ SHA512:
6
+ metadata.gz: 82d4d779c089ea0642e966fc748ab46d2034d748a8ae2d08377d96e89fd3794f7122536f1b5a7239dc96b73c31a422e88e95ab9d6d87669e8aac3797cb63b98b
7
+ data.tar.gz: d355d2548a7f2ece3667c6f2ca5776dd2aeb0a2f067af216999945bfd944e461e7457f2a9474b834f96ff70d2c75da1f4ba06549dfeada401b5f45ed46a5e846
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudidentity_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudidentity_v1beta1/*.rb
9
+ lib/google/apis/cloudidentity_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudidentity_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201213
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Cloud Identity API
2
+
3
+ This is a simple client library for version V1beta1 of the Cloud Identity API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/cloudidentity.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-cloudidentity_v1beta1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-cloudidentity_v1beta1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/cloudidentity_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudidentityV1beta1::CloudIdentityService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudidentity service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Identity API, see the {Google::Apis::CloudidentityV1beta1::CloudIdentityService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-cloudidentity_v1beta1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/identity/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/cloudidentity_v1beta1"
@@ -0,0 +1,45 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/cloudidentity_v1beta1/service.rb'
16
+ require 'google/apis/cloudidentity_v1beta1/classes.rb'
17
+ require 'google/apis/cloudidentity_v1beta1/representations.rb'
18
+ require 'google/apis/cloudidentity_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Identity API
23
+ #
24
+ # API for provisioning and managing identity resources.
25
+ #
26
+ # @see https://cloud.google.com/identity/
27
+ module CloudidentityV1beta1
28
+ # Version of the Cloud Identity API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1beta1'
31
+
32
+ # See your device details
33
+ AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup'
34
+
35
+ # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
36
+ AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
37
+
38
+ # See any Cloud Identity Groups that you can access, including group members and their emails
39
+ AUTH_CLOUD_IDENTITY_GROUPS_READONLY = 'https://www.googleapis.com/auth/cloud-identity.groups.readonly'
40
+
41
+ # View and manage your data across Google Cloud Platform services
42
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,2309 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudidentityV1beta1
24
+
25
+ # Resource representing the Android specific attributes of a Device.
26
+ class AndroidAttributes
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Whether applications from unknown sources can be installed on device.
30
+ # Corresponds to the JSON property `enabledUnknownSources`
31
+ # @return [Boolean]
32
+ attr_accessor :enabled_unknown_sources
33
+ alias_method :enabled_unknown_sources?, :enabled_unknown_sources
34
+
35
+ # Whether this account is on an owner/primary profile. For phones, only true for
36
+ # owner profiles. Android 4+ devices can have secondary or restricted user
37
+ # profiles.
38
+ # Corresponds to the JSON property `ownerProfileAccount`
39
+ # @return [Boolean]
40
+ attr_accessor :owner_profile_account
41
+ alias_method :owner_profile_account?, :owner_profile_account
42
+
43
+ # Ownership privileges on device.
44
+ # Corresponds to the JSON property `ownershipPrivilege`
45
+ # @return [String]
46
+ attr_accessor :ownership_privilege
47
+
48
+ # Whether device supports Android work profiles. If false, this service will not
49
+ # block access to corp data even if an administrator turns on the "Enforce Work
50
+ # Profile" policy.
51
+ # Corresponds to the JSON property `supportsWorkProfile`
52
+ # @return [Boolean]
53
+ attr_accessor :supports_work_profile
54
+ alias_method :supports_work_profile?, :supports_work_profile
55
+
56
+ def initialize(**args)
57
+ update!(**args)
58
+ end
59
+
60
+ # Update properties of this object
61
+ def update!(**args)
62
+ @enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources)
63
+ @owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account)
64
+ @ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege)
65
+ @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
66
+ end
67
+ end
68
+
69
+ # Request message for approving the device to access user data.
70
+ class ApproveDeviceUserRequest
71
+ include Google::Apis::Core::Hashable
72
+
73
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
74
+ # of the customer. If you're using this API for your own organization, use `
75
+ # customers/my_customer` If you're using this API to manage another organization,
76
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
77
+ # device belongs.
78
+ # Corresponds to the JSON property `customer`
79
+ # @return [String]
80
+ attr_accessor :customer
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ @customer = args[:customer] if args.key?(:customer)
89
+ end
90
+ end
91
+
92
+ # Response message for approving the device to access user data.
93
+ class ApproveDeviceUserResponse
94
+ include Google::Apis::Core::Hashable
95
+
96
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
97
+ # DeviceUser is a resource representing a user's use of a Device
98
+ # Corresponds to the JSON property `deviceUser`
99
+ # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
100
+ attr_accessor :device_user
101
+
102
+ def initialize(**args)
103
+ update!(**args)
104
+ end
105
+
106
+ # Update properties of this object
107
+ def update!(**args)
108
+ @device_user = args[:device_user] if args.key?(:device_user)
109
+ end
110
+ end
111
+
112
+ # Request message for blocking account on device.
113
+ class BlockDeviceUserRequest
114
+ include Google::Apis::Core::Hashable
115
+
116
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
117
+ # of the customer. If you're using this API for your own organization, use `
118
+ # customers/my_customer` If you're using this API to manage another organization,
119
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
120
+ # device belongs.
121
+ # Corresponds to the JSON property `customer`
122
+ # @return [String]
123
+ attr_accessor :customer
124
+
125
+ def initialize(**args)
126
+ update!(**args)
127
+ end
128
+
129
+ # Update properties of this object
130
+ def update!(**args)
131
+ @customer = args[:customer] if args.key?(:customer)
132
+ end
133
+ end
134
+
135
+ # Response message for blocking the device from accessing user data.
136
+ class BlockDeviceUserResponse
137
+ include Google::Apis::Core::Hashable
138
+
139
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
140
+ # DeviceUser is a resource representing a user's use of a Device
141
+ # Corresponds to the JSON property `deviceUser`
142
+ # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
143
+ attr_accessor :device_user
144
+
145
+ def initialize(**args)
146
+ update!(**args)
147
+ end
148
+
149
+ # Update properties of this object
150
+ def update!(**args)
151
+ @device_user = args[:device_user] if args.key?(:device_user)
152
+ end
153
+ end
154
+
155
+ # Request message for cancelling an unfinished device wipe.
156
+ class CancelWipeDeviceRequest
157
+ include Google::Apis::Core::Hashable
158
+
159
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
160
+ # of the customer. If you're using this API for your own organization, use `
161
+ # customers/my_customer` If you're using this API to manage another organization,
162
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
163
+ # device belongs.
164
+ # Corresponds to the JSON property `customer`
165
+ # @return [String]
166
+ attr_accessor :customer
167
+
168
+ def initialize(**args)
169
+ update!(**args)
170
+ end
171
+
172
+ # Update properties of this object
173
+ def update!(**args)
174
+ @customer = args[:customer] if args.key?(:customer)
175
+ end
176
+ end
177
+
178
+ # Response message for cancelling an unfinished device wipe.
179
+ class CancelWipeDeviceResponse
180
+ include Google::Apis::Core::Hashable
181
+
182
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
183
+ # Google Cloud, independent of the device ownership, type, and whether it is
184
+ # assigned or in use by a user.
185
+ # Corresponds to the JSON property `device`
186
+ # @return [Google::Apis::CloudidentityV1beta1::Device]
187
+ attr_accessor :device
188
+
189
+ def initialize(**args)
190
+ update!(**args)
191
+ end
192
+
193
+ # Update properties of this object
194
+ def update!(**args)
195
+ @device = args[:device] if args.key?(:device)
196
+ end
197
+ end
198
+
199
+ # Request message for cancelling an unfinished user account wipe.
200
+ class CancelWipeDeviceUserRequest
201
+ include Google::Apis::Core::Hashable
202
+
203
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
204
+ # of the customer. If you're using this API for your own organization, use `
205
+ # customers/my_customer` If you're using this API to manage another organization,
206
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
207
+ # device belongs.
208
+ # Corresponds to the JSON property `customer`
209
+ # @return [String]
210
+ attr_accessor :customer
211
+
212
+ def initialize(**args)
213
+ update!(**args)
214
+ end
215
+
216
+ # Update properties of this object
217
+ def update!(**args)
218
+ @customer = args[:customer] if args.key?(:customer)
219
+ end
220
+ end
221
+
222
+ # Response message for cancelling an unfinished user account wipe.
223
+ class CancelWipeDeviceUserResponse
224
+ include Google::Apis::Core::Hashable
225
+
226
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
227
+ # DeviceUser is a resource representing a user's use of a Device
228
+ # Corresponds to the JSON property `deviceUser`
229
+ # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
230
+ attr_accessor :device_user
231
+
232
+ def initialize(**args)
233
+ update!(**args)
234
+ end
235
+
236
+ # Update properties of this object
237
+ def update!(**args)
238
+ @device_user = args[:device_user] if args.key?(:device_user)
239
+ end
240
+ end
241
+
242
+ # The response message for MembershipsService.CheckTransitiveMembership.
243
+ class CheckTransitiveMembershipResponse
244
+ include Google::Apis::Core::Hashable
245
+
246
+ # Response does not include the possible roles of a member since the behavior of
247
+ # this rpc is not all-or-nothing unlike the other rpcs. So, it may not be
248
+ # possible to list all the roles definitively, due to possible lack of
249
+ # authorization in some of the paths.
250
+ # Corresponds to the JSON property `hasMembership`
251
+ # @return [Boolean]
252
+ attr_accessor :has_membership
253
+ alias_method :has_membership?, :has_membership
254
+
255
+ def initialize(**args)
256
+ update!(**args)
257
+ end
258
+
259
+ # Update properties of this object
260
+ def update!(**args)
261
+ @has_membership = args[:has_membership] if args.key?(:has_membership)
262
+ end
263
+ end
264
+
265
+ # Represents the state associated with an API client calling the Devices API.
266
+ # Resource representing ClientState and supports updates from API users
267
+ class ClientState
268
+ include Google::Apis::Core::Hashable
269
+
270
+ # The caller can specify asset tags for this resource
271
+ # Corresponds to the JSON property `assetTags`
272
+ # @return [Array<String>]
273
+ attr_accessor :asset_tags
274
+
275
+ # The compliance state of the resource as specified by the API client.
276
+ # Corresponds to the JSON property `complianceState`
277
+ # @return [String]
278
+ attr_accessor :compliance_state
279
+
280
+ # Output only. The time the client state data was created.
281
+ # Corresponds to the JSON property `createTime`
282
+ # @return [String]
283
+ attr_accessor :create_time
284
+
285
+ # This field may be used to store a unique identifier for the API resource
286
+ # within which these CustomAttributes are a field.
287
+ # Corresponds to the JSON property `customId`
288
+ # @return [String]
289
+ attr_accessor :custom_id
290
+
291
+ # The token that needs to be passed back for concurrency control in updates.
292
+ # Token needs to be passed back in UpdateRequest
293
+ # Corresponds to the JSON property `etag`
294
+ # @return [String]
295
+ attr_accessor :etag
296
+
297
+ # The Health score of the resource
298
+ # Corresponds to the JSON property `healthScore`
299
+ # @return [String]
300
+ attr_accessor :health_score
301
+
302
+ # The map of key-value attributes stored by callers specific to a device. The
303
+ # total serialized length of this map may not exceed 10KB. No limit is placed on
304
+ # the number of attributes in a map.
305
+ # Corresponds to the JSON property `keyValuePairs`
306
+ # @return [Hash<String,Google::Apis::CloudidentityV1beta1::CustomAttributeValue>]
307
+ attr_accessor :key_value_pairs
308
+
309
+ # Output only. The time the client state data was last updated.
310
+ # Corresponds to the JSON property `lastUpdateTime`
311
+ # @return [String]
312
+ attr_accessor :last_update_time
313
+
314
+ # The management state of the resource as specified by the API client.
315
+ # Corresponds to the JSON property `managed`
316
+ # @return [String]
317
+ attr_accessor :managed
318
+
319
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
320
+ # resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
321
+ # `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
322
+ # the partner storing the data.
323
+ # Corresponds to the JSON property `name`
324
+ # @return [String]
325
+ attr_accessor :name
326
+
327
+ # Output only. The owner of the ClientState
328
+ # Corresponds to the JSON property `ownerType`
329
+ # @return [String]
330
+ attr_accessor :owner_type
331
+
332
+ # A descriptive cause of the health score.
333
+ # Corresponds to the JSON property `scoreReason`
334
+ # @return [String]
335
+ attr_accessor :score_reason
336
+
337
+ def initialize(**args)
338
+ update!(**args)
339
+ end
340
+
341
+ # Update properties of this object
342
+ def update!(**args)
343
+ @asset_tags = args[:asset_tags] if args.key?(:asset_tags)
344
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
345
+ @create_time = args[:create_time] if args.key?(:create_time)
346
+ @custom_id = args[:custom_id] if args.key?(:custom_id)
347
+ @etag = args[:etag] if args.key?(:etag)
348
+ @health_score = args[:health_score] if args.key?(:health_score)
349
+ @key_value_pairs = args[:key_value_pairs] if args.key?(:key_value_pairs)
350
+ @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
351
+ @managed = args[:managed] if args.key?(:managed)
352
+ @name = args[:name] if args.key?(:name)
353
+ @owner_type = args[:owner_type] if args.key?(:owner_type)
354
+ @score_reason = args[:score_reason] if args.key?(:score_reason)
355
+ end
356
+ end
357
+
358
+ # Request message for creating a Company Owned device.
359
+ class CreateDeviceRequest
360
+ include Google::Apis::Core::Hashable
361
+
362
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
363
+ # of the customer. If you're using this API for your own organization, use `
364
+ # customers/my_customer` If you're using this API to manage another organization,
365
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
366
+ # device belongs.
367
+ # Corresponds to the JSON property `customer`
368
+ # @return [String]
369
+ attr_accessor :customer
370
+
371
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
372
+ # Google Cloud, independent of the device ownership, type, and whether it is
373
+ # assigned or in use by a user.
374
+ # Corresponds to the JSON property `device`
375
+ # @return [Google::Apis::CloudidentityV1beta1::Device]
376
+ attr_accessor :device
377
+
378
+ def initialize(**args)
379
+ update!(**args)
380
+ end
381
+
382
+ # Update properties of this object
383
+ def update!(**args)
384
+ @customer = args[:customer] if args.key?(:customer)
385
+ @device = args[:device] if args.key?(:device)
386
+ end
387
+ end
388
+
389
+ # Additional custom attribute values may be one of these types
390
+ class CustomAttributeValue
391
+ include Google::Apis::Core::Hashable
392
+
393
+ # Represents a boolean value.
394
+ # Corresponds to the JSON property `boolValue`
395
+ # @return [Boolean]
396
+ attr_accessor :bool_value
397
+ alias_method :bool_value?, :bool_value
398
+
399
+ # Represents a double value.
400
+ # Corresponds to the JSON property `numberValue`
401
+ # @return [Float]
402
+ attr_accessor :number_value
403
+
404
+ # Represents a string value.
405
+ # Corresponds to the JSON property `stringValue`
406
+ # @return [String]
407
+ attr_accessor :string_value
408
+
409
+ def initialize(**args)
410
+ update!(**args)
411
+ end
412
+
413
+ # Update properties of this object
414
+ def update!(**args)
415
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
416
+ @number_value = args[:number_value] if args.key?(:number_value)
417
+ @string_value = args[:string_value] if args.key?(:string_value)
418
+ end
419
+ end
420
+
421
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
422
+ # Google Cloud, independent of the device ownership, type, and whether it is
423
+ # assigned or in use by a user.
424
+ class Device
425
+ include Google::Apis::Core::Hashable
426
+
427
+ # Resource representing the Android specific attributes of a Device.
428
+ # Corresponds to the JSON property `androidSpecificAttributes`
429
+ # @return [Google::Apis::CloudidentityV1beta1::AndroidAttributes]
430
+ attr_accessor :android_specific_attributes
431
+
432
+ # Asset tag of the device.
433
+ # Corresponds to the JSON property `assetTag`
434
+ # @return [String]
435
+ attr_accessor :asset_tag
436
+
437
+ # Output only. Baseband version of the device.
438
+ # Corresponds to the JSON property `basebandVersion`
439
+ # @return [String]
440
+ attr_accessor :baseband_version
441
+
442
+ # Output only. Device bootloader version. Example: 0.6.7.
443
+ # Corresponds to the JSON property `bootloaderVersion`
444
+ # @return [String]
445
+ attr_accessor :bootloader_version
446
+
447
+ # Output only. Device brand. Example: Samsung.
448
+ # Corresponds to the JSON property `brand`
449
+ # @return [String]
450
+ attr_accessor :brand
451
+
452
+ # Output only. Build number of the device.
453
+ # Corresponds to the JSON property `buildNumber`
454
+ # @return [String]
455
+ attr_accessor :build_number
456
+
457
+ # Output only. Represents whether the Device is compromised.
458
+ # Corresponds to the JSON property `compromisedState`
459
+ # @return [String]
460
+ attr_accessor :compromised_state
461
+
462
+ # Output only. When the Company-Owned device was imported. This field is empty
463
+ # for BYOD devices.
464
+ # Corresponds to the JSON property `createTime`
465
+ # @return [String]
466
+ attr_accessor :create_time
467
+
468
+ # Output only. Type of device.
469
+ # Corresponds to the JSON property `deviceType`
470
+ # @return [String]
471
+ attr_accessor :device_type
472
+
473
+ # Output only. Whether developer options is enabled on device.
474
+ # Corresponds to the JSON property `enabledDeveloperOptions`
475
+ # @return [Boolean]
476
+ attr_accessor :enabled_developer_options
477
+ alias_method :enabled_developer_options?, :enabled_developer_options
478
+
479
+ # Output only. Whether USB debugging is enabled on device.
480
+ # Corresponds to the JSON property `enabledUsbDebugging`
481
+ # @return [Boolean]
482
+ attr_accessor :enabled_usb_debugging
483
+ alias_method :enabled_usb_debugging?, :enabled_usb_debugging
484
+
485
+ # Output only. Device encryption state.
486
+ # Corresponds to the JSON property `encryptionState`
487
+ # @return [String]
488
+ attr_accessor :encryption_state
489
+
490
+ # Output only. IMEI number of device if GSM device; empty otherwise.
491
+ # Corresponds to the JSON property `imei`
492
+ # @return [String]
493
+ attr_accessor :imei
494
+
495
+ # Output only. Kernel version of the device.
496
+ # Corresponds to the JSON property `kernelVersion`
497
+ # @return [String]
498
+ attr_accessor :kernel_version
499
+
500
+ # Most recent time when device synced with this service.
501
+ # Corresponds to the JSON property `lastSyncTime`
502
+ # @return [String]
503
+ attr_accessor :last_sync_time
504
+
505
+ # Output only. Management state of the device
506
+ # Corresponds to the JSON property `managementState`
507
+ # @return [String]
508
+ attr_accessor :management_state
509
+
510
+ # Output only. Device manufacturer. Example: Motorola.
511
+ # Corresponds to the JSON property `manufacturer`
512
+ # @return [String]
513
+ attr_accessor :manufacturer
514
+
515
+ # Output only. MEID number of device if CDMA device; empty otherwise.
516
+ # Corresponds to the JSON property `meid`
517
+ # @return [String]
518
+ attr_accessor :meid
519
+
520
+ # Output only. Model name of device. Example: Pixel 3.
521
+ # Corresponds to the JSON property `model`
522
+ # @return [String]
523
+ attr_accessor :model
524
+
525
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
526
+ # resource_names) of the Device in format: `devices/`device_id``, where
527
+ # device_id is the unique id assigned to the Device.
528
+ # Corresponds to the JSON property `name`
529
+ # @return [String]
530
+ attr_accessor :name
531
+
532
+ # Output only. Mobile or network operator of device, if available.
533
+ # Corresponds to the JSON property `networkOperator`
534
+ # @return [String]
535
+ attr_accessor :network_operator
536
+
537
+ # Output only. OS version of the device. Example: Android 8.1.0.
538
+ # Corresponds to the JSON property `osVersion`
539
+ # @return [String]
540
+ attr_accessor :os_version
541
+
542
+ # Output only. Domain name for Google accounts on device. Type for other
543
+ # accounts on device. On Android, will only be populated if |ownership_privilege|
544
+ # is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
545
+ # to the device policy app if that account's domain has only one account.
546
+ # Examples: "com.example", "xyz.com".
547
+ # Corresponds to the JSON property `otherAccounts`
548
+ # @return [Array<String>]
549
+ attr_accessor :other_accounts
550
+
551
+ # Output only. Whether the device is owned by the company or an individual
552
+ # Corresponds to the JSON property `ownerType`
553
+ # @return [String]
554
+ attr_accessor :owner_type
555
+
556
+ # Output only. OS release version. Example: 6.0.
557
+ # Corresponds to the JSON property `releaseVersion`
558
+ # @return [String]
559
+ attr_accessor :release_version
560
+
561
+ # Output only. OS security patch update time on device.
562
+ # Corresponds to the JSON property `securityPatchTime`
563
+ # @return [String]
564
+ attr_accessor :security_patch_time
565
+
566
+ # Serial Number of device. Example: HT82V1A01076.
567
+ # Corresponds to the JSON property `serialNumber`
568
+ # @return [String]
569
+ attr_accessor :serial_number
570
+
571
+ # WiFi MAC addresses of device.
572
+ # Corresponds to the JSON property `wifiMacAddresses`
573
+ # @return [Array<String>]
574
+ attr_accessor :wifi_mac_addresses
575
+
576
+ def initialize(**args)
577
+ update!(**args)
578
+ end
579
+
580
+ # Update properties of this object
581
+ def update!(**args)
582
+ @android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes)
583
+ @asset_tag = args[:asset_tag] if args.key?(:asset_tag)
584
+ @baseband_version = args[:baseband_version] if args.key?(:baseband_version)
585
+ @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
586
+ @brand = args[:brand] if args.key?(:brand)
587
+ @build_number = args[:build_number] if args.key?(:build_number)
588
+ @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
589
+ @create_time = args[:create_time] if args.key?(:create_time)
590
+ @device_type = args[:device_type] if args.key?(:device_type)
591
+ @enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
592
+ @enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
593
+ @encryption_state = args[:encryption_state] if args.key?(:encryption_state)
594
+ @imei = args[:imei] if args.key?(:imei)
595
+ @kernel_version = args[:kernel_version] if args.key?(:kernel_version)
596
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
597
+ @management_state = args[:management_state] if args.key?(:management_state)
598
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
599
+ @meid = args[:meid] if args.key?(:meid)
600
+ @model = args[:model] if args.key?(:model)
601
+ @name = args[:name] if args.key?(:name)
602
+ @network_operator = args[:network_operator] if args.key?(:network_operator)
603
+ @os_version = args[:os_version] if args.key?(:os_version)
604
+ @other_accounts = args[:other_accounts] if args.key?(:other_accounts)
605
+ @owner_type = args[:owner_type] if args.key?(:owner_type)
606
+ @release_version = args[:release_version] if args.key?(:release_version)
607
+ @security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
608
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
609
+ @wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
610
+ end
611
+ end
612
+
613
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
614
+ # DeviceUser is a resource representing a user's use of a Device
615
+ class DeviceUser
616
+ include Google::Apis::Core::Hashable
617
+
618
+ # Compromised State of the DeviceUser object
619
+ # Corresponds to the JSON property `compromisedState`
620
+ # @return [String]
621
+ attr_accessor :compromised_state
622
+
623
+ # When the user first signed in to the device
624
+ # Corresponds to the JSON property `createTime`
625
+ # @return [String]
626
+ attr_accessor :create_time
627
+
628
+ # Output only. Most recent time when user registered with this service.
629
+ # Corresponds to the JSON property `firstSyncTime`
630
+ # @return [String]
631
+ attr_accessor :first_sync_time
632
+
633
+ # Output only. Default locale used on device, in IETF BCP-47 format.
634
+ # Corresponds to the JSON property `languageCode`
635
+ # @return [String]
636
+ attr_accessor :language_code
637
+
638
+ # Output only. Last time when user synced with policies.
639
+ # Corresponds to the JSON property `lastSyncTime`
640
+ # @return [String]
641
+ attr_accessor :last_sync_time
642
+
643
+ # Output only. Management state of the user on the device.
644
+ # Corresponds to the JSON property `managementState`
645
+ # @return [String]
646
+ attr_accessor :management_state
647
+
648
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
649
+ # resource_names) of the DeviceUser in format: `devices/`device_id`/deviceUsers/`
650
+ # user_id``, where user_id is the ID of the user associated with the user
651
+ # session.
652
+ # Corresponds to the JSON property `name`
653
+ # @return [String]
654
+ attr_accessor :name
655
+
656
+ # Password state of the DeviceUser object
657
+ # Corresponds to the JSON property `passwordState`
658
+ # @return [String]
659
+ attr_accessor :password_state
660
+
661
+ # Output only. User agent on the device for this specific user
662
+ # Corresponds to the JSON property `userAgent`
663
+ # @return [String]
664
+ attr_accessor :user_agent
665
+
666
+ # Email address of the user registered on the device.
667
+ # Corresponds to the JSON property `userEmail`
668
+ # @return [String]
669
+ attr_accessor :user_email
670
+
671
+ def initialize(**args)
672
+ update!(**args)
673
+ end
674
+
675
+ # Update properties of this object
676
+ def update!(**args)
677
+ @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
678
+ @create_time = args[:create_time] if args.key?(:create_time)
679
+ @first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
680
+ @language_code = args[:language_code] if args.key?(:language_code)
681
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
682
+ @management_state = args[:management_state] if args.key?(:management_state)
683
+ @name = args[:name] if args.key?(:name)
684
+ @password_state = args[:password_state] if args.key?(:password_state)
685
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
686
+ @user_email = args[:user_email] if args.key?(:user_email)
687
+ end
688
+ end
689
+
690
+ # Dynamic group metadata like queries and status.
691
+ class DynamicGroupMetadata
692
+ include Google::Apis::Core::Hashable
693
+
694
+ # Memberships will be the union of all queries. Only one entry with USER
695
+ # resource is currently supported. Customers can create up to 100 dynamic groups.
696
+ # Corresponds to the JSON property `queries`
697
+ # @return [Array<Google::Apis::CloudidentityV1beta1::DynamicGroupQuery>]
698
+ attr_accessor :queries
699
+
700
+ # The current status of a dynamic group along with timestamp.
701
+ # Corresponds to the JSON property `status`
702
+ # @return [Google::Apis::CloudidentityV1beta1::DynamicGroupStatus]
703
+ attr_accessor :status
704
+
705
+ def initialize(**args)
706
+ update!(**args)
707
+ end
708
+
709
+ # Update properties of this object
710
+ def update!(**args)
711
+ @queries = args[:queries] if args.key?(:queries)
712
+ @status = args[:status] if args.key?(:status)
713
+ end
714
+ end
715
+
716
+ # Defines a query on a resource.
717
+ class DynamicGroupQuery
718
+ include Google::Apis::Core::Hashable
719
+
720
+ # Query that determines the memberships of the dynamic group. Examples: All
721
+ # users with at least one `organizations.department` of engineering. `user.
722
+ # organizations.exists(org, org.department=='engineering')` All users with at
723
+ # least one location that has `area` of `foo` and `building_id` of `bar`. `user.
724
+ # locations.exists(loc, loc.area=='foo' && loc.building_id=='bar')`
725
+ # Corresponds to the JSON property `query`
726
+ # @return [String]
727
+ attr_accessor :query
728
+
729
+ #
730
+ # Corresponds to the JSON property `resourceType`
731
+ # @return [String]
732
+ attr_accessor :resource_type
733
+
734
+ def initialize(**args)
735
+ update!(**args)
736
+ end
737
+
738
+ # Update properties of this object
739
+ def update!(**args)
740
+ @query = args[:query] if args.key?(:query)
741
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
742
+ end
743
+ end
744
+
745
+ # The current status of a dynamic group along with timestamp.
746
+ class DynamicGroupStatus
747
+ include Google::Apis::Core::Hashable
748
+
749
+ # Status of the dynamic group.
750
+ # Corresponds to the JSON property `status`
751
+ # @return [String]
752
+ attr_accessor :status
753
+
754
+ # The latest time at which the dynamic group is guaranteed to be in the given
755
+ # status. If status is `UP_TO_DATE`, the latest time at which the dynamic group
756
+ # was confirmed to be up-to-date. If status is `UPDATING_MEMBERSHIPS`, the time
757
+ # at which dynamic group was created.
758
+ # Corresponds to the JSON property `statusTime`
759
+ # @return [String]
760
+ attr_accessor :status_time
761
+
762
+ def initialize(**args)
763
+ update!(**args)
764
+ end
765
+
766
+ # Update properties of this object
767
+ def update!(**args)
768
+ @status = args[:status] if args.key?(:status)
769
+ @status_time = args[:status_time] if args.key?(:status_time)
770
+ end
771
+ end
772
+
773
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
774
+ # can represent either a group with an optional `namespace` or a user without a `
775
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
776
+ # the same `id` can be used with different `namespace`s.
777
+ class EntityKey
778
+ include Google::Apis::Core::Hashable
779
+
780
+ # The ID of the entity. For Google-managed entities, the `id` must be the email
781
+ # address of an existing group or user. For external-identity-mapped entities,
782
+ # the `id` must be a string conforming to the Identity Source's requirements.
783
+ # Must be unique within a `namespace`.
784
+ # Corresponds to the JSON property `id`
785
+ # @return [String]
786
+ attr_accessor :id
787
+
788
+ # The namespace in which the entity exists. If not specified, the `EntityKey`
789
+ # represents a Google-managed entity such as a Google user or a Google Group. If
790
+ # specified, the `EntityKey` represents an external-identity-mapped group. The
791
+ # namespace must correspond to an identity source created in Admin Console and
792
+ # must be in the form of `identitysources/`identity_source_id`.
793
+ # Corresponds to the JSON property `namespace`
794
+ # @return [String]
795
+ attr_accessor :namespace
796
+
797
+ def initialize(**args)
798
+ update!(**args)
799
+ end
800
+
801
+ # Update properties of this object
802
+ def update!(**args)
803
+ @id = args[:id] if args.key?(:id)
804
+ @namespace = args[:namespace] if args.key?(:namespace)
805
+ end
806
+ end
807
+
808
+ # The `MembershipRole` expiry details.
809
+ class ExpiryDetail
810
+ include Google::Apis::Core::Hashable
811
+
812
+ # The time at which the `MembershipRole` will expire.
813
+ # Corresponds to the JSON property `expireTime`
814
+ # @return [String]
815
+ attr_accessor :expire_time
816
+
817
+ def initialize(**args)
818
+ update!(**args)
819
+ end
820
+
821
+ # Update properties of this object
822
+ def update!(**args)
823
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
824
+ end
825
+ end
826
+
827
+ # The response message for MembershipsService.GetMembershipGraph.
828
+ class GetMembershipGraphResponse
829
+ include Google::Apis::Core::Hashable
830
+
831
+ # The membership graph's path information represented as an adjacency list.
832
+ # Corresponds to the JSON property `adjacencyList`
833
+ # @return [Array<Google::Apis::CloudidentityV1beta1::MembershipAdjacencyList>]
834
+ attr_accessor :adjacency_list
835
+
836
+ # The resources representing each group in the adjacency list. Each group in
837
+ # this list can be correlated to a 'group' of the MembershipAdjacencyList using
838
+ # the 'name' of the Group resource.
839
+ # Corresponds to the JSON property `groups`
840
+ # @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
841
+ attr_accessor :groups
842
+
843
+ def initialize(**args)
844
+ update!(**args)
845
+ end
846
+
847
+ # Update properties of this object
848
+ def update!(**args)
849
+ @adjacency_list = args[:adjacency_list] if args.key?(:adjacency_list)
850
+ @groups = args[:groups] if args.key?(:groups)
851
+ end
852
+ end
853
+
854
+ # Resource representing the Android specific attributes of a Device.
855
+ class GoogleAppsCloudidentityDevicesV1AndroidAttributes
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # Whether applications from unknown sources can be installed on device.
859
+ # Corresponds to the JSON property `enabledUnknownSources`
860
+ # @return [Boolean]
861
+ attr_accessor :enabled_unknown_sources
862
+ alias_method :enabled_unknown_sources?, :enabled_unknown_sources
863
+
864
+ # Whether this account is on an owner/primary profile. For phones, only true for
865
+ # owner profiles. Android 4+ devices can have secondary or restricted user
866
+ # profiles.
867
+ # Corresponds to the JSON property `ownerProfileAccount`
868
+ # @return [Boolean]
869
+ attr_accessor :owner_profile_account
870
+ alias_method :owner_profile_account?, :owner_profile_account
871
+
872
+ # Ownership privileges on device.
873
+ # Corresponds to the JSON property `ownershipPrivilege`
874
+ # @return [String]
875
+ attr_accessor :ownership_privilege
876
+
877
+ # Whether device supports Android work profiles. If false, this service will not
878
+ # block access to corp data even if an administrator turns on the "Enforce Work
879
+ # Profile" policy.
880
+ # Corresponds to the JSON property `supportsWorkProfile`
881
+ # @return [Boolean]
882
+ attr_accessor :supports_work_profile
883
+ alias_method :supports_work_profile?, :supports_work_profile
884
+
885
+ def initialize(**args)
886
+ update!(**args)
887
+ end
888
+
889
+ # Update properties of this object
890
+ def update!(**args)
891
+ @enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources)
892
+ @owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account)
893
+ @ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege)
894
+ @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
895
+ end
896
+ end
897
+
898
+ # Response message for approving the device to access user data.
899
+ class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
900
+ include Google::Apis::Core::Hashable
901
+
902
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
903
+ # DeviceUser is a resource representing a user's use of a Device
904
+ # Corresponds to the JSON property `deviceUser`
905
+ # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1DeviceUser]
906
+ attr_accessor :device_user
907
+
908
+ def initialize(**args)
909
+ update!(**args)
910
+ end
911
+
912
+ # Update properties of this object
913
+ def update!(**args)
914
+ @device_user = args[:device_user] if args.key?(:device_user)
915
+ end
916
+ end
917
+
918
+ # Response message for blocking the device from accessing user data.
919
+ class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
920
+ include Google::Apis::Core::Hashable
921
+
922
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
923
+ # DeviceUser is a resource representing a user's use of a Device
924
+ # Corresponds to the JSON property `deviceUser`
925
+ # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1DeviceUser]
926
+ attr_accessor :device_user
927
+
928
+ def initialize(**args)
929
+ update!(**args)
930
+ end
931
+
932
+ # Update properties of this object
933
+ def update!(**args)
934
+ @device_user = args[:device_user] if args.key?(:device_user)
935
+ end
936
+ end
937
+
938
+ # Response message for cancelling an unfinished device wipe.
939
+ class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
940
+ include Google::Apis::Core::Hashable
941
+
942
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
943
+ # Google Cloud, independent of the device ownership, type, and whether it is
944
+ # assigned or in use by a user.
945
+ # Corresponds to the JSON property `device`
946
+ # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1Device]
947
+ attr_accessor :device
948
+
949
+ def initialize(**args)
950
+ update!(**args)
951
+ end
952
+
953
+ # Update properties of this object
954
+ def update!(**args)
955
+ @device = args[:device] if args.key?(:device)
956
+ end
957
+ end
958
+
959
+ # Response message for cancelling an unfinished user account wipe.
960
+ class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
961
+ include Google::Apis::Core::Hashable
962
+
963
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
964
+ # DeviceUser is a resource representing a user's use of a Device
965
+ # Corresponds to the JSON property `deviceUser`
966
+ # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1DeviceUser]
967
+ attr_accessor :device_user
968
+
969
+ def initialize(**args)
970
+ update!(**args)
971
+ end
972
+
973
+ # Update properties of this object
974
+ def update!(**args)
975
+ @device_user = args[:device_user] if args.key?(:device_user)
976
+ end
977
+ end
978
+
979
+ # Represents the state associated with an API client calling the Devices API.
980
+ # Resource representing ClientState and supports updates from API users
981
+ class GoogleAppsCloudidentityDevicesV1ClientState
982
+ include Google::Apis::Core::Hashable
983
+
984
+ # The caller can specify asset tags for this resource
985
+ # Corresponds to the JSON property `assetTags`
986
+ # @return [Array<String>]
987
+ attr_accessor :asset_tags
988
+
989
+ # The compliance state of the resource as specified by the API client.
990
+ # Corresponds to the JSON property `complianceState`
991
+ # @return [String]
992
+ attr_accessor :compliance_state
993
+
994
+ # Output only. The time the client state data was created.
995
+ # Corresponds to the JSON property `createTime`
996
+ # @return [String]
997
+ attr_accessor :create_time
998
+
999
+ # This field may be used to store a unique identifier for the API resource
1000
+ # within which these CustomAttributes are a field.
1001
+ # Corresponds to the JSON property `customId`
1002
+ # @return [String]
1003
+ attr_accessor :custom_id
1004
+
1005
+ # The token that needs to be passed back for concurrency control in updates.
1006
+ # Token needs to be passed back in UpdateRequest
1007
+ # Corresponds to the JSON property `etag`
1008
+ # @return [String]
1009
+ attr_accessor :etag
1010
+
1011
+ # The Health score of the resource. The Health score is the callers
1012
+ # specification of the condition of the device from a usability point of view.
1013
+ # For example, a third-party device management provider may specify a health
1014
+ # score based on its compliance with organizational policies.
1015
+ # Corresponds to the JSON property `healthScore`
1016
+ # @return [String]
1017
+ attr_accessor :health_score
1018
+
1019
+ # The map of key-value attributes stored by callers specific to a device. The
1020
+ # total serialized length of this map may not exceed 10KB. No limit is placed on
1021
+ # the number of attributes in a map.
1022
+ # Corresponds to the JSON property `keyValuePairs`
1023
+ # @return [Hash<String,Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1CustomAttributeValue>]
1024
+ attr_accessor :key_value_pairs
1025
+
1026
+ # Output only. The time the client state data was last updated.
1027
+ # Corresponds to the JSON property `lastUpdateTime`
1028
+ # @return [String]
1029
+ attr_accessor :last_update_time
1030
+
1031
+ # The management state of the resource as specified by the API client.
1032
+ # Corresponds to the JSON property `managed`
1033
+ # @return [String]
1034
+ attr_accessor :managed
1035
+
1036
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
1037
+ # resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
1038
+ # `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
1039
+ # the partner storing the data. For partners belonging to the "BeyondCorp
1040
+ # Alliance", this is the partner ID specified to you by Google. For all other
1041
+ # callers, this is a string of the form: ``customer_id`-suffix`, where `
1042
+ # customer_id` is your customer ID. The *suffix* is any string the caller
1043
+ # specifies. This string will be displayed verbatim in the administration
1044
+ # console. This suffix is used in setting up Custom Access Levels in Context-
1045
+ # Aware Access. Your organization's customer ID can be obtained from the URL: `
1046
+ # GET https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `
1047
+ # id` field in the response contains the customer ID starting with the letter 'C'
1048
+ # . The customer ID to be used in this API is the string after the letter 'C' (
1049
+ # not including 'C')
1050
+ # Corresponds to the JSON property `name`
1051
+ # @return [String]
1052
+ attr_accessor :name
1053
+
1054
+ # Output only. The owner of the ClientState
1055
+ # Corresponds to the JSON property `ownerType`
1056
+ # @return [String]
1057
+ attr_accessor :owner_type
1058
+
1059
+ # A descriptive cause of the health score.
1060
+ # Corresponds to the JSON property `scoreReason`
1061
+ # @return [String]
1062
+ attr_accessor :score_reason
1063
+
1064
+ def initialize(**args)
1065
+ update!(**args)
1066
+ end
1067
+
1068
+ # Update properties of this object
1069
+ def update!(**args)
1070
+ @asset_tags = args[:asset_tags] if args.key?(:asset_tags)
1071
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1072
+ @create_time = args[:create_time] if args.key?(:create_time)
1073
+ @custom_id = args[:custom_id] if args.key?(:custom_id)
1074
+ @etag = args[:etag] if args.key?(:etag)
1075
+ @health_score = args[:health_score] if args.key?(:health_score)
1076
+ @key_value_pairs = args[:key_value_pairs] if args.key?(:key_value_pairs)
1077
+ @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
1078
+ @managed = args[:managed] if args.key?(:managed)
1079
+ @name = args[:name] if args.key?(:name)
1080
+ @owner_type = args[:owner_type] if args.key?(:owner_type)
1081
+ @score_reason = args[:score_reason] if args.key?(:score_reason)
1082
+ end
1083
+ end
1084
+
1085
+ # Additional custom attribute values may be one of these types
1086
+ class GoogleAppsCloudidentityDevicesV1CustomAttributeValue
1087
+ include Google::Apis::Core::Hashable
1088
+
1089
+ # Represents a boolean value.
1090
+ # Corresponds to the JSON property `boolValue`
1091
+ # @return [Boolean]
1092
+ attr_accessor :bool_value
1093
+ alias_method :bool_value?, :bool_value
1094
+
1095
+ # Represents a double value.
1096
+ # Corresponds to the JSON property `numberValue`
1097
+ # @return [Float]
1098
+ attr_accessor :number_value
1099
+
1100
+ # Represents a string value.
1101
+ # Corresponds to the JSON property `stringValue`
1102
+ # @return [String]
1103
+ attr_accessor :string_value
1104
+
1105
+ def initialize(**args)
1106
+ update!(**args)
1107
+ end
1108
+
1109
+ # Update properties of this object
1110
+ def update!(**args)
1111
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1112
+ @number_value = args[:number_value] if args.key?(:number_value)
1113
+ @string_value = args[:string_value] if args.key?(:string_value)
1114
+ end
1115
+ end
1116
+
1117
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
1118
+ # Google Cloud, independent of the device ownership, type, and whether it is
1119
+ # assigned or in use by a user.
1120
+ class GoogleAppsCloudidentityDevicesV1Device
1121
+ include Google::Apis::Core::Hashable
1122
+
1123
+ # Resource representing the Android specific attributes of a Device.
1124
+ # Corresponds to the JSON property `androidSpecificAttributes`
1125
+ # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1AndroidAttributes]
1126
+ attr_accessor :android_specific_attributes
1127
+
1128
+ # Asset tag of the device.
1129
+ # Corresponds to the JSON property `assetTag`
1130
+ # @return [String]
1131
+ attr_accessor :asset_tag
1132
+
1133
+ # Output only. Baseband version of the device.
1134
+ # Corresponds to the JSON property `basebandVersion`
1135
+ # @return [String]
1136
+ attr_accessor :baseband_version
1137
+
1138
+ # Output only. Device bootloader version. Example: 0.6.7.
1139
+ # Corresponds to the JSON property `bootloaderVersion`
1140
+ # @return [String]
1141
+ attr_accessor :bootloader_version
1142
+
1143
+ # Output only. Device brand. Example: Samsung.
1144
+ # Corresponds to the JSON property `brand`
1145
+ # @return [String]
1146
+ attr_accessor :brand
1147
+
1148
+ # Output only. Build number of the device.
1149
+ # Corresponds to the JSON property `buildNumber`
1150
+ # @return [String]
1151
+ attr_accessor :build_number
1152
+
1153
+ # Output only. Represents whether the Device is compromised.
1154
+ # Corresponds to the JSON property `compromisedState`
1155
+ # @return [String]
1156
+ attr_accessor :compromised_state
1157
+
1158
+ # Output only. When the Company-Owned device was imported. This field is empty
1159
+ # for BYOD devices.
1160
+ # Corresponds to the JSON property `createTime`
1161
+ # @return [String]
1162
+ attr_accessor :create_time
1163
+
1164
+ # Output only. Type of device.
1165
+ # Corresponds to the JSON property `deviceType`
1166
+ # @return [String]
1167
+ attr_accessor :device_type
1168
+
1169
+ # Output only. Whether developer options is enabled on device.
1170
+ # Corresponds to the JSON property `enabledDeveloperOptions`
1171
+ # @return [Boolean]
1172
+ attr_accessor :enabled_developer_options
1173
+ alias_method :enabled_developer_options?, :enabled_developer_options
1174
+
1175
+ # Output only. Whether USB debugging is enabled on device.
1176
+ # Corresponds to the JSON property `enabledUsbDebugging`
1177
+ # @return [Boolean]
1178
+ attr_accessor :enabled_usb_debugging
1179
+ alias_method :enabled_usb_debugging?, :enabled_usb_debugging
1180
+
1181
+ # Output only. Device encryption state.
1182
+ # Corresponds to the JSON property `encryptionState`
1183
+ # @return [String]
1184
+ attr_accessor :encryption_state
1185
+
1186
+ # Output only. IMEI number of device if GSM device; empty otherwise.
1187
+ # Corresponds to the JSON property `imei`
1188
+ # @return [String]
1189
+ attr_accessor :imei
1190
+
1191
+ # Output only. Kernel version of the device.
1192
+ # Corresponds to the JSON property `kernelVersion`
1193
+ # @return [String]
1194
+ attr_accessor :kernel_version
1195
+
1196
+ # Most recent time when device synced with this service.
1197
+ # Corresponds to the JSON property `lastSyncTime`
1198
+ # @return [String]
1199
+ attr_accessor :last_sync_time
1200
+
1201
+ # Output only. Management state of the device
1202
+ # Corresponds to the JSON property `managementState`
1203
+ # @return [String]
1204
+ attr_accessor :management_state
1205
+
1206
+ # Output only. Device manufacturer. Example: Motorola.
1207
+ # Corresponds to the JSON property `manufacturer`
1208
+ # @return [String]
1209
+ attr_accessor :manufacturer
1210
+
1211
+ # Output only. MEID number of device if CDMA device; empty otherwise.
1212
+ # Corresponds to the JSON property `meid`
1213
+ # @return [String]
1214
+ attr_accessor :meid
1215
+
1216
+ # Output only. Model name of device. Example: Pixel 3.
1217
+ # Corresponds to the JSON property `model`
1218
+ # @return [String]
1219
+ attr_accessor :model
1220
+
1221
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
1222
+ # resource_names) of the Device in format: `devices/`device_id``, where
1223
+ # device_id is the unique id assigned to the Device.
1224
+ # Corresponds to the JSON property `name`
1225
+ # @return [String]
1226
+ attr_accessor :name
1227
+
1228
+ # Output only. Mobile or network operator of device, if available.
1229
+ # Corresponds to the JSON property `networkOperator`
1230
+ # @return [String]
1231
+ attr_accessor :network_operator
1232
+
1233
+ # Output only. OS version of the device. Example: Android 8.1.0.
1234
+ # Corresponds to the JSON property `osVersion`
1235
+ # @return [String]
1236
+ attr_accessor :os_version
1237
+
1238
+ # Output only. Domain name for Google accounts on device. Type for other
1239
+ # accounts on device. On Android, will only be populated if |ownership_privilege|
1240
+ # is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
1241
+ # to the device policy app if that account's domain has only one account.
1242
+ # Examples: "com.example", "xyz.com".
1243
+ # Corresponds to the JSON property `otherAccounts`
1244
+ # @return [Array<String>]
1245
+ attr_accessor :other_accounts
1246
+
1247
+ # Output only. Whether the device is owned by the company or an individual
1248
+ # Corresponds to the JSON property `ownerType`
1249
+ # @return [String]
1250
+ attr_accessor :owner_type
1251
+
1252
+ # Output only. OS release version. Example: 6.0.
1253
+ # Corresponds to the JSON property `releaseVersion`
1254
+ # @return [String]
1255
+ attr_accessor :release_version
1256
+
1257
+ # Output only. OS security patch update time on device.
1258
+ # Corresponds to the JSON property `securityPatchTime`
1259
+ # @return [String]
1260
+ attr_accessor :security_patch_time
1261
+
1262
+ # Serial Number of device. Example: HT82V1A01076.
1263
+ # Corresponds to the JSON property `serialNumber`
1264
+ # @return [String]
1265
+ attr_accessor :serial_number
1266
+
1267
+ # WiFi MAC addresses of device.
1268
+ # Corresponds to the JSON property `wifiMacAddresses`
1269
+ # @return [Array<String>]
1270
+ attr_accessor :wifi_mac_addresses
1271
+
1272
+ def initialize(**args)
1273
+ update!(**args)
1274
+ end
1275
+
1276
+ # Update properties of this object
1277
+ def update!(**args)
1278
+ @android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes)
1279
+ @asset_tag = args[:asset_tag] if args.key?(:asset_tag)
1280
+ @baseband_version = args[:baseband_version] if args.key?(:baseband_version)
1281
+ @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
1282
+ @brand = args[:brand] if args.key?(:brand)
1283
+ @build_number = args[:build_number] if args.key?(:build_number)
1284
+ @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
1285
+ @create_time = args[:create_time] if args.key?(:create_time)
1286
+ @device_type = args[:device_type] if args.key?(:device_type)
1287
+ @enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
1288
+ @enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
1289
+ @encryption_state = args[:encryption_state] if args.key?(:encryption_state)
1290
+ @imei = args[:imei] if args.key?(:imei)
1291
+ @kernel_version = args[:kernel_version] if args.key?(:kernel_version)
1292
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
1293
+ @management_state = args[:management_state] if args.key?(:management_state)
1294
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
1295
+ @meid = args[:meid] if args.key?(:meid)
1296
+ @model = args[:model] if args.key?(:model)
1297
+ @name = args[:name] if args.key?(:name)
1298
+ @network_operator = args[:network_operator] if args.key?(:network_operator)
1299
+ @os_version = args[:os_version] if args.key?(:os_version)
1300
+ @other_accounts = args[:other_accounts] if args.key?(:other_accounts)
1301
+ @owner_type = args[:owner_type] if args.key?(:owner_type)
1302
+ @release_version = args[:release_version] if args.key?(:release_version)
1303
+ @security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
1304
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
1305
+ @wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
1306
+ end
1307
+ end
1308
+
1309
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
1310
+ # DeviceUser is a resource representing a user's use of a Device
1311
+ class GoogleAppsCloudidentityDevicesV1DeviceUser
1312
+ include Google::Apis::Core::Hashable
1313
+
1314
+ # Compromised State of the DeviceUser object
1315
+ # Corresponds to the JSON property `compromisedState`
1316
+ # @return [String]
1317
+ attr_accessor :compromised_state
1318
+
1319
+ # When the user first signed in to the device
1320
+ # Corresponds to the JSON property `createTime`
1321
+ # @return [String]
1322
+ attr_accessor :create_time
1323
+
1324
+ # Output only. Most recent time when user registered with this service.
1325
+ # Corresponds to the JSON property `firstSyncTime`
1326
+ # @return [String]
1327
+ attr_accessor :first_sync_time
1328
+
1329
+ # Output only. Default locale used on device, in IETF BCP-47 format.
1330
+ # Corresponds to the JSON property `languageCode`
1331
+ # @return [String]
1332
+ attr_accessor :language_code
1333
+
1334
+ # Output only. Last time when user synced with policies.
1335
+ # Corresponds to the JSON property `lastSyncTime`
1336
+ # @return [String]
1337
+ attr_accessor :last_sync_time
1338
+
1339
+ # Output only. Management state of the user on the device.
1340
+ # Corresponds to the JSON property `managementState`
1341
+ # @return [String]
1342
+ attr_accessor :management_state
1343
+
1344
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
1345
+ # resource_names) of the DeviceUser in format: `devices/`device_id`/deviceUsers/`
1346
+ # user_id``, where user_id is the ID of the user associated with the user
1347
+ # session.
1348
+ # Corresponds to the JSON property `name`
1349
+ # @return [String]
1350
+ attr_accessor :name
1351
+
1352
+ # Password state of the DeviceUser object
1353
+ # Corresponds to the JSON property `passwordState`
1354
+ # @return [String]
1355
+ attr_accessor :password_state
1356
+
1357
+ # Output only. User agent on the device for this specific user
1358
+ # Corresponds to the JSON property `userAgent`
1359
+ # @return [String]
1360
+ attr_accessor :user_agent
1361
+
1362
+ # Email address of the user registered on the device.
1363
+ # Corresponds to the JSON property `userEmail`
1364
+ # @return [String]
1365
+ attr_accessor :user_email
1366
+
1367
+ def initialize(**args)
1368
+ update!(**args)
1369
+ end
1370
+
1371
+ # Update properties of this object
1372
+ def update!(**args)
1373
+ @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
1374
+ @create_time = args[:create_time] if args.key?(:create_time)
1375
+ @first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
1376
+ @language_code = args[:language_code] if args.key?(:language_code)
1377
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
1378
+ @management_state = args[:management_state] if args.key?(:management_state)
1379
+ @name = args[:name] if args.key?(:name)
1380
+ @password_state = args[:password_state] if args.key?(:password_state)
1381
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
1382
+ @user_email = args[:user_email] if args.key?(:user_email)
1383
+ end
1384
+ end
1385
+
1386
+ # Response message for wiping all data on the device.
1387
+ class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
1388
+ include Google::Apis::Core::Hashable
1389
+
1390
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
1391
+ # Google Cloud, independent of the device ownership, type, and whether it is
1392
+ # assigned or in use by a user.
1393
+ # Corresponds to the JSON property `device`
1394
+ # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1Device]
1395
+ attr_accessor :device
1396
+
1397
+ def initialize(**args)
1398
+ update!(**args)
1399
+ end
1400
+
1401
+ # Update properties of this object
1402
+ def update!(**args)
1403
+ @device = args[:device] if args.key?(:device)
1404
+ end
1405
+ end
1406
+
1407
+ # Response message for wiping the user's account from the device.
1408
+ class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
1409
+ include Google::Apis::Core::Hashable
1410
+
1411
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
1412
+ # DeviceUser is a resource representing a user's use of a Device
1413
+ # Corresponds to the JSON property `deviceUser`
1414
+ # @return [Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1DeviceUser]
1415
+ attr_accessor :device_user
1416
+
1417
+ def initialize(**args)
1418
+ update!(**args)
1419
+ end
1420
+
1421
+ # Update properties of this object
1422
+ def update!(**args)
1423
+ @device_user = args[:device_user] if args.key?(:device_user)
1424
+ end
1425
+ end
1426
+
1427
+ # A group within the Cloud Identity Groups API. A `Group` is a collection of
1428
+ # entities, where each entity is either a user, another group, or a service
1429
+ # account.
1430
+ class Group
1431
+ include Google::Apis::Core::Hashable
1432
+
1433
+ # Additional entity key aliases for a Group.
1434
+ # Corresponds to the JSON property `additionalGroupKeys`
1435
+ # @return [Array<Google::Apis::CloudidentityV1beta1::EntityKey>]
1436
+ attr_accessor :additional_group_keys
1437
+
1438
+ # Output only. The time when the `Group` was created.
1439
+ # Corresponds to the JSON property `createTime`
1440
+ # @return [String]
1441
+ attr_accessor :create_time
1442
+
1443
+ # An extended description to help users determine the purpose of a `Group`. Must
1444
+ # not be longer than 4,096 characters.
1445
+ # Corresponds to the JSON property `description`
1446
+ # @return [String]
1447
+ attr_accessor :description
1448
+
1449
+ # The display name of the `Group`.
1450
+ # Corresponds to the JSON property `displayName`
1451
+ # @return [String]
1452
+ attr_accessor :display_name
1453
+
1454
+ # Dynamic group metadata like queries and status.
1455
+ # Corresponds to the JSON property `dynamicGroupMetadata`
1456
+ # @return [Google::Apis::CloudidentityV1beta1::DynamicGroupMetadata]
1457
+ attr_accessor :dynamic_group_metadata
1458
+
1459
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
1460
+ # can represent either a group with an optional `namespace` or a user without a `
1461
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
1462
+ # the same `id` can be used with different `namespace`s.
1463
+ # Corresponds to the JSON property `groupKey`
1464
+ # @return [Google::Apis::CloudidentityV1beta1::EntityKey]
1465
+ attr_accessor :group_key
1466
+
1467
+ # Required. One or more label entries that apply to the Group. Currently
1468
+ # supported labels contain a key with an empty value. Google Groups are the
1469
+ # default type of group and have a label with a key of `cloudidentity.googleapis.
1470
+ # com/groups.discussion_forum` and an empty value. Existing Google Groups can
1471
+ # have an additional label with a key of `cloudidentity.googleapis.com/groups.
1472
+ # security` and an empty value added to them. **This is an immutable change and
1473
+ # the security label cannot be removed once added.** Dynamic groups have a label
1474
+ # with a key of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped
1475
+ # groups for Cloud Search have a label with a key of `system/groups/external`
1476
+ # and an empty value. Examples: `"cloudidentity.googleapis.com/groups.
1477
+ # discussion_forum": ""` or `"system/groups/external": ""`.
1478
+ # Corresponds to the JSON property `labels`
1479
+ # @return [Hash<String,String>]
1480
+ attr_accessor :labels
1481
+
1482
+ # Output only. The [resource name](https://cloud.google.com/apis/design/
1483
+ # resource_names) of the `Group`. Shall be of the form `groups/`group_id``.
1484
+ # Corresponds to the JSON property `name`
1485
+ # @return [String]
1486
+ attr_accessor :name
1487
+
1488
+ # Required. Immutable. The resource name of the entity under which this `Group`
1489
+ # resides in the Cloud Identity resource hierarchy. Must be of the form `
1490
+ # identitysources/`identity_source_id`` for external- identity-mapped groups or `
1491
+ # customers/`customer_id`` for Google Groups.
1492
+ # Corresponds to the JSON property `parent`
1493
+ # @return [String]
1494
+ attr_accessor :parent
1495
+
1496
+ # Output only. The time when the `Group` was last updated.
1497
+ # Corresponds to the JSON property `updateTime`
1498
+ # @return [String]
1499
+ attr_accessor :update_time
1500
+
1501
+ def initialize(**args)
1502
+ update!(**args)
1503
+ end
1504
+
1505
+ # Update properties of this object
1506
+ def update!(**args)
1507
+ @additional_group_keys = args[:additional_group_keys] if args.key?(:additional_group_keys)
1508
+ @create_time = args[:create_time] if args.key?(:create_time)
1509
+ @description = args[:description] if args.key?(:description)
1510
+ @display_name = args[:display_name] if args.key?(:display_name)
1511
+ @dynamic_group_metadata = args[:dynamic_group_metadata] if args.key?(:dynamic_group_metadata)
1512
+ @group_key = args[:group_key] if args.key?(:group_key)
1513
+ @labels = args[:labels] if args.key?(:labels)
1514
+ @name = args[:name] if args.key?(:name)
1515
+ @parent = args[:parent] if args.key?(:parent)
1516
+ @update_time = args[:update_time] if args.key?(:update_time)
1517
+ end
1518
+ end
1519
+
1520
+ # Message representing a transitive group of a user or a group.
1521
+ class GroupRelation
1522
+ include Google::Apis::Core::Hashable
1523
+
1524
+ # Display name for this group.
1525
+ # Corresponds to the JSON property `displayName`
1526
+ # @return [String]
1527
+ attr_accessor :display_name
1528
+
1529
+ # Resource name for this group.
1530
+ # Corresponds to the JSON property `group`
1531
+ # @return [String]
1532
+ attr_accessor :group
1533
+
1534
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
1535
+ # can represent either a group with an optional `namespace` or a user without a `
1536
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
1537
+ # the same `id` can be used with different `namespace`s.
1538
+ # Corresponds to the JSON property `groupKey`
1539
+ # @return [Google::Apis::CloudidentityV1beta1::EntityKey]
1540
+ attr_accessor :group_key
1541
+
1542
+ # Labels for Group resource.
1543
+ # Corresponds to the JSON property `labels`
1544
+ # @return [Hash<String,String>]
1545
+ attr_accessor :labels
1546
+
1547
+ # The relation between the member and the transitive group.
1548
+ # Corresponds to the JSON property `relationType`
1549
+ # @return [String]
1550
+ attr_accessor :relation_type
1551
+
1552
+ # Membership roles of the member for the group.
1553
+ # Corresponds to the JSON property `roles`
1554
+ # @return [Array<Google::Apis::CloudidentityV1beta1::TransitiveMembershipRole>]
1555
+ attr_accessor :roles
1556
+
1557
+ def initialize(**args)
1558
+ update!(**args)
1559
+ end
1560
+
1561
+ # Update properties of this object
1562
+ def update!(**args)
1563
+ @display_name = args[:display_name] if args.key?(:display_name)
1564
+ @group = args[:group] if args.key?(:group)
1565
+ @group_key = args[:group_key] if args.key?(:group_key)
1566
+ @labels = args[:labels] if args.key?(:labels)
1567
+ @relation_type = args[:relation_type] if args.key?(:relation_type)
1568
+ @roles = args[:roles] if args.key?(:roles)
1569
+ end
1570
+ end
1571
+
1572
+ # Response message that is returned in LRO result of ListClientStates Operation.
1573
+ class ListClientStatesResponse
1574
+ include Google::Apis::Core::Hashable
1575
+
1576
+ # Client states meeting the list restrictions.
1577
+ # Corresponds to the JSON property `clientStates`
1578
+ # @return [Array<Google::Apis::CloudidentityV1beta1::ClientState>]
1579
+ attr_accessor :client_states
1580
+
1581
+ # Token to retrieve the next page of results. Empty if there are no more results.
1582
+ # Corresponds to the JSON property `nextPageToken`
1583
+ # @return [String]
1584
+ attr_accessor :next_page_token
1585
+
1586
+ def initialize(**args)
1587
+ update!(**args)
1588
+ end
1589
+
1590
+ # Update properties of this object
1591
+ def update!(**args)
1592
+ @client_states = args[:client_states] if args.key?(:client_states)
1593
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1594
+ end
1595
+ end
1596
+
1597
+ # Response message that is returned from the ListDeviceUsers method.
1598
+ class ListDeviceUsersResponse
1599
+ include Google::Apis::Core::Hashable
1600
+
1601
+ # Devices meeting the list restrictions.
1602
+ # Corresponds to the JSON property `deviceUsers`
1603
+ # @return [Array<Google::Apis::CloudidentityV1beta1::DeviceUser>]
1604
+ attr_accessor :device_users
1605
+
1606
+ # Token to retrieve the next page of results. Empty if there are no more results.
1607
+ # Corresponds to the JSON property `nextPageToken`
1608
+ # @return [String]
1609
+ attr_accessor :next_page_token
1610
+
1611
+ def initialize(**args)
1612
+ update!(**args)
1613
+ end
1614
+
1615
+ # Update properties of this object
1616
+ def update!(**args)
1617
+ @device_users = args[:device_users] if args.key?(:device_users)
1618
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1619
+ end
1620
+ end
1621
+
1622
+ # Response message that is returned from the ListDevices method.
1623
+ class ListDevicesResponse
1624
+ include Google::Apis::Core::Hashable
1625
+
1626
+ # Devices meeting the list restrictions.
1627
+ # Corresponds to the JSON property `devices`
1628
+ # @return [Array<Google::Apis::CloudidentityV1beta1::Device>]
1629
+ attr_accessor :devices
1630
+
1631
+ # Token to retrieve the next page of results. Empty if there are no more results.
1632
+ # Corresponds to the JSON property `nextPageToken`
1633
+ # @return [String]
1634
+ attr_accessor :next_page_token
1635
+
1636
+ def initialize(**args)
1637
+ update!(**args)
1638
+ end
1639
+
1640
+ # Update properties of this object
1641
+ def update!(**args)
1642
+ @devices = args[:devices] if args.key?(:devices)
1643
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1644
+ end
1645
+ end
1646
+
1647
+ # The response message for GroupsService.ListGroups.
1648
+ class ListGroupsResponse
1649
+ include Google::Apis::Core::Hashable
1650
+
1651
+ # The `Group`s under the specified `parent`.
1652
+ # Corresponds to the JSON property `groups`
1653
+ # @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
1654
+ attr_accessor :groups
1655
+
1656
+ # A continuation token to retrieve the next page of results, or empty if there
1657
+ # are no more results available.
1658
+ # Corresponds to the JSON property `nextPageToken`
1659
+ # @return [String]
1660
+ attr_accessor :next_page_token
1661
+
1662
+ def initialize(**args)
1663
+ update!(**args)
1664
+ end
1665
+
1666
+ # Update properties of this object
1667
+ def update!(**args)
1668
+ @groups = args[:groups] if args.key?(:groups)
1669
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1670
+ end
1671
+ end
1672
+
1673
+ # The response message for MembershipsService.ListMemberships.
1674
+ class ListMembershipsResponse
1675
+ include Google::Apis::Core::Hashable
1676
+
1677
+ # The `Membership`s under the specified `parent`.
1678
+ # Corresponds to the JSON property `memberships`
1679
+ # @return [Array<Google::Apis::CloudidentityV1beta1::Membership>]
1680
+ attr_accessor :memberships
1681
+
1682
+ # A continuation token to retrieve the next page of results, or empty if there
1683
+ # are no more results available.
1684
+ # Corresponds to the JSON property `nextPageToken`
1685
+ # @return [String]
1686
+ attr_accessor :next_page_token
1687
+
1688
+ def initialize(**args)
1689
+ update!(**args)
1690
+ end
1691
+
1692
+ # Update properties of this object
1693
+ def update!(**args)
1694
+ @memberships = args[:memberships] if args.key?(:memberships)
1695
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1696
+ end
1697
+ end
1698
+
1699
+ # The response message for GroupsService.LookupGroupName.
1700
+ class LookupGroupNameResponse
1701
+ include Google::Apis::Core::Hashable
1702
+
1703
+ # Output only. The [resource name](https://cloud.google.com/apis/design/
1704
+ # resource_names) of the looked-up `Group`.
1705
+ # Corresponds to the JSON property `name`
1706
+ # @return [String]
1707
+ attr_accessor :name
1708
+
1709
+ def initialize(**args)
1710
+ update!(**args)
1711
+ end
1712
+
1713
+ # Update properties of this object
1714
+ def update!(**args)
1715
+ @name = args[:name] if args.key?(:name)
1716
+ end
1717
+ end
1718
+
1719
+ # The response message for MembershipsService.LookupMembershipName.
1720
+ class LookupMembershipNameResponse
1721
+ include Google::Apis::Core::Hashable
1722
+
1723
+ # The [resource name](https://cloud.google.com/apis/design/resource_names) of
1724
+ # the looked-up `Membership`. Must be of the form `groups/`group_id`/memberships/
1725
+ # `membership_id``.
1726
+ # Corresponds to the JSON property `name`
1727
+ # @return [String]
1728
+ attr_accessor :name
1729
+
1730
+ def initialize(**args)
1731
+ update!(**args)
1732
+ end
1733
+
1734
+ # Update properties of this object
1735
+ def update!(**args)
1736
+ @name = args[:name] if args.key?(:name)
1737
+ end
1738
+ end
1739
+
1740
+ # Response containing resource names of the DeviceUsers associated with the
1741
+ # caller's credentials.
1742
+ class LookupSelfDeviceUsersResponse
1743
+ include Google::Apis::Core::Hashable
1744
+
1745
+ # The obfuscated customer Id that may be passed back to other Devices API
1746
+ # methods such as List, Get, etc.
1747
+ # Corresponds to the JSON property `customer`
1748
+ # @return [String]
1749
+ attr_accessor :customer
1750
+
1751
+ # [Resource names](https://cloud.google.com/apis/design/resource_names) of the
1752
+ # DeviceUsers in the format: `devices/`device_id`/deviceUsers/`user_resource_id``
1753
+ # , where device_id is the unique ID assigned to a Device and user_resource_id
1754
+ # is the unique user ID
1755
+ # Corresponds to the JSON property `names`
1756
+ # @return [Array<String>]
1757
+ attr_accessor :names
1758
+
1759
+ # Token to retrieve the next page of results. Empty if there are no more results.
1760
+ # Corresponds to the JSON property `nextPageToken`
1761
+ # @return [String]
1762
+ attr_accessor :next_page_token
1763
+
1764
+ def initialize(**args)
1765
+ update!(**args)
1766
+ end
1767
+
1768
+ # Update properties of this object
1769
+ def update!(**args)
1770
+ @customer = args[:customer] if args.key?(:customer)
1771
+ @names = args[:names] if args.key?(:names)
1772
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1773
+ end
1774
+ end
1775
+
1776
+ # Message representing a transitive membership of a group.
1777
+ class MemberRelation
1778
+ include Google::Apis::Core::Hashable
1779
+
1780
+ # Resource name for this member if member is a GROUP, otherwise it is empty.
1781
+ # Corresponds to the JSON property `member`
1782
+ # @return [String]
1783
+ attr_accessor :member
1784
+
1785
+ # Entity key has an id and a namespace. In case of discussion forums, the id
1786
+ # will be an email address without a namespace.
1787
+ # Corresponds to the JSON property `preferredMemberKey`
1788
+ # @return [Array<Google::Apis::CloudidentityV1beta1::EntityKey>]
1789
+ attr_accessor :preferred_member_key
1790
+
1791
+ # The relation between the group and the transitive member.
1792
+ # Corresponds to the JSON property `relationType`
1793
+ # @return [String]
1794
+ attr_accessor :relation_type
1795
+
1796
+ # The membership role details (i.e name of role and expiry time).
1797
+ # Corresponds to the JSON property `roles`
1798
+ # @return [Array<Google::Apis::CloudidentityV1beta1::TransitiveMembershipRole>]
1799
+ attr_accessor :roles
1800
+
1801
+ def initialize(**args)
1802
+ update!(**args)
1803
+ end
1804
+
1805
+ # Update properties of this object
1806
+ def update!(**args)
1807
+ @member = args[:member] if args.key?(:member)
1808
+ @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
1809
+ @relation_type = args[:relation_type] if args.key?(:relation_type)
1810
+ @roles = args[:roles] if args.key?(:roles)
1811
+ end
1812
+ end
1813
+
1814
+ # A membership within the Cloud Identity Groups API. A `Membership` defines a
1815
+ # relationship between a `Group` and an entity belonging to that `Group`,
1816
+ # referred to as a "member".
1817
+ class Membership
1818
+ include Google::Apis::Core::Hashable
1819
+
1820
+ # Output only. The time when the `Membership` was created.
1821
+ # Corresponds to the JSON property `createTime`
1822
+ # @return [String]
1823
+ attr_accessor :create_time
1824
+
1825
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
1826
+ # can represent either a group with an optional `namespace` or a user without a `
1827
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
1828
+ # the same `id` can be used with different `namespace`s.
1829
+ # Corresponds to the JSON property `memberKey`
1830
+ # @return [Google::Apis::CloudidentityV1beta1::EntityKey]
1831
+ attr_accessor :member_key
1832
+
1833
+ # Output only. The [resource name](https://cloud.google.com/apis/design/
1834
+ # resource_names) of the `Membership`. Shall be of the form `groups/`group_id`/
1835
+ # memberships/`membership_id``.
1836
+ # Corresponds to the JSON property `name`
1837
+ # @return [String]
1838
+ attr_accessor :name
1839
+
1840
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
1841
+ # can represent either a group with an optional `namespace` or a user without a `
1842
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
1843
+ # the same `id` can be used with different `namespace`s.
1844
+ # Corresponds to the JSON property `preferredMemberKey`
1845
+ # @return [Google::Apis::CloudidentityV1beta1::EntityKey]
1846
+ attr_accessor :preferred_member_key
1847
+
1848
+ # The `MembershipRole`s that apply to the `Membership`. If unspecified, defaults
1849
+ # to a single `MembershipRole` with `name` `MEMBER`. Must not contain duplicate `
1850
+ # MembershipRole`s with the same `name`.
1851
+ # Corresponds to the JSON property `roles`
1852
+ # @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
1853
+ attr_accessor :roles
1854
+
1855
+ # Output only. The type of the membership.
1856
+ # Corresponds to the JSON property `type`
1857
+ # @return [String]
1858
+ attr_accessor :type
1859
+
1860
+ # Output only. The time when the `Membership` was last updated.
1861
+ # Corresponds to the JSON property `updateTime`
1862
+ # @return [String]
1863
+ attr_accessor :update_time
1864
+
1865
+ def initialize(**args)
1866
+ update!(**args)
1867
+ end
1868
+
1869
+ # Update properties of this object
1870
+ def update!(**args)
1871
+ @create_time = args[:create_time] if args.key?(:create_time)
1872
+ @member_key = args[:member_key] if args.key?(:member_key)
1873
+ @name = args[:name] if args.key?(:name)
1874
+ @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
1875
+ @roles = args[:roles] if args.key?(:roles)
1876
+ @type = args[:type] if args.key?(:type)
1877
+ @update_time = args[:update_time] if args.key?(:update_time)
1878
+ end
1879
+ end
1880
+
1881
+ # Membership graph's path information as an adjacency list.
1882
+ class MembershipAdjacencyList
1883
+ include Google::Apis::Core::Hashable
1884
+
1885
+ # Each edge contains information about the member that belongs to this group.
1886
+ # Note: Fields returned here will help identify the specific Membership resource
1887
+ # (e.g name, preferred_member_key and role), but may not be a comprehensive list
1888
+ # of all fields.
1889
+ # Corresponds to the JSON property `edges`
1890
+ # @return [Array<Google::Apis::CloudidentityV1beta1::Membership>]
1891
+ attr_accessor :edges
1892
+
1893
+ # Resource name of the group that the members belong to.
1894
+ # Corresponds to the JSON property `group`
1895
+ # @return [String]
1896
+ attr_accessor :group
1897
+
1898
+ def initialize(**args)
1899
+ update!(**args)
1900
+ end
1901
+
1902
+ # Update properties of this object
1903
+ def update!(**args)
1904
+ @edges = args[:edges] if args.key?(:edges)
1905
+ @group = args[:group] if args.key?(:group)
1906
+ end
1907
+ end
1908
+
1909
+ # A membership role within the Cloud Identity Groups API. A `MembershipRole`
1910
+ # defines the privileges granted to a `Membership`.
1911
+ class MembershipRole
1912
+ include Google::Apis::Core::Hashable
1913
+
1914
+ # The `MembershipRole` expiry details.
1915
+ # Corresponds to the JSON property `expiryDetail`
1916
+ # @return [Google::Apis::CloudidentityV1beta1::ExpiryDetail]
1917
+ attr_accessor :expiry_detail
1918
+
1919
+ # The name of the `MembershipRole`. Must be one of `OWNER`, `MANAGER`, `MEMBER`.
1920
+ # Corresponds to the JSON property `name`
1921
+ # @return [String]
1922
+ attr_accessor :name
1923
+
1924
+ def initialize(**args)
1925
+ update!(**args)
1926
+ end
1927
+
1928
+ # Update properties of this object
1929
+ def update!(**args)
1930
+ @expiry_detail = args[:expiry_detail] if args.key?(:expiry_detail)
1931
+ @name = args[:name] if args.key?(:name)
1932
+ end
1933
+ end
1934
+
1935
+ # The request message for MembershipsService.ModifyMembershipRoles.
1936
+ class ModifyMembershipRolesRequest
1937
+ include Google::Apis::Core::Hashable
1938
+
1939
+ # The `MembershipRole`s to be added. Adding or removing roles in the same
1940
+ # request as updating roles is not supported. Must not be set if `
1941
+ # update_roles_params` is set.
1942
+ # Corresponds to the JSON property `addRoles`
1943
+ # @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
1944
+ attr_accessor :add_roles
1945
+
1946
+ # The `name`s of the `MembershipRole`s to be removed. Adding or removing roles
1947
+ # in the same request as updating roles is not supported. It is not possible to
1948
+ # remove the `MEMBER` `MembershipRole`. If you wish to delete a `Membership`,
1949
+ # call MembershipsService.DeleteMembership instead. Must not contain `MEMBER`.
1950
+ # Must not be set if `update_roles_params` is set.
1951
+ # Corresponds to the JSON property `removeRoles`
1952
+ # @return [Array<String>]
1953
+ attr_accessor :remove_roles
1954
+
1955
+ # The `MembershipRole`s to be updated. Updating roles in the same request as
1956
+ # adding or removing roles is not supported. Must not be set if either `
1957
+ # add_roles` or `remove_roles` is set.
1958
+ # Corresponds to the JSON property `updateRolesParams`
1959
+ # @return [Array<Google::Apis::CloudidentityV1beta1::UpdateMembershipRolesParams>]
1960
+ attr_accessor :update_roles_params
1961
+
1962
+ def initialize(**args)
1963
+ update!(**args)
1964
+ end
1965
+
1966
+ # Update properties of this object
1967
+ def update!(**args)
1968
+ @add_roles = args[:add_roles] if args.key?(:add_roles)
1969
+ @remove_roles = args[:remove_roles] if args.key?(:remove_roles)
1970
+ @update_roles_params = args[:update_roles_params] if args.key?(:update_roles_params)
1971
+ end
1972
+ end
1973
+
1974
+ # The response message for MembershipsService.ModifyMembershipRoles.
1975
+ class ModifyMembershipRolesResponse
1976
+ include Google::Apis::Core::Hashable
1977
+
1978
+ # A membership within the Cloud Identity Groups API. A `Membership` defines a
1979
+ # relationship between a `Group` and an entity belonging to that `Group`,
1980
+ # referred to as a "member".
1981
+ # Corresponds to the JSON property `membership`
1982
+ # @return [Google::Apis::CloudidentityV1beta1::Membership]
1983
+ attr_accessor :membership
1984
+
1985
+ def initialize(**args)
1986
+ update!(**args)
1987
+ end
1988
+
1989
+ # Update properties of this object
1990
+ def update!(**args)
1991
+ @membership = args[:membership] if args.key?(:membership)
1992
+ end
1993
+ end
1994
+
1995
+ # This resource represents a long-running operation that is the result of a
1996
+ # network API call.
1997
+ class Operation
1998
+ include Google::Apis::Core::Hashable
1999
+
2000
+ # If the value is `false`, it means the operation is still in progress. If `true`
2001
+ # , the operation is completed, and either `error` or `response` is available.
2002
+ # Corresponds to the JSON property `done`
2003
+ # @return [Boolean]
2004
+ attr_accessor :done
2005
+ alias_method :done?, :done
2006
+
2007
+ # The `Status` type defines a logical error model that is suitable for different
2008
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2009
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2010
+ # data: error code, error message, and error details. You can find out more
2011
+ # about this error model and how to work with it in the [API Design Guide](https:
2012
+ # //cloud.google.com/apis/design/errors).
2013
+ # Corresponds to the JSON property `error`
2014
+ # @return [Google::Apis::CloudidentityV1beta1::Status]
2015
+ attr_accessor :error
2016
+
2017
+ # Service-specific metadata associated with the operation. It typically contains
2018
+ # progress information and common metadata such as create time. Some services
2019
+ # might not provide such metadata. Any method that returns a long-running
2020
+ # operation should document the metadata type, if any.
2021
+ # Corresponds to the JSON property `metadata`
2022
+ # @return [Hash<String,Object>]
2023
+ attr_accessor :metadata
2024
+
2025
+ # The server-assigned name, which is only unique within the same service that
2026
+ # originally returns it. If you use the default HTTP mapping, the `name` should
2027
+ # be a resource name ending with `operations/`unique_id``.
2028
+ # Corresponds to the JSON property `name`
2029
+ # @return [String]
2030
+ attr_accessor :name
2031
+
2032
+ # The normal response of the operation in case of success. If the original
2033
+ # method returns no data on success, such as `Delete`, the response is `google.
2034
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
2035
+ # the response should be the resource. For other methods, the response should
2036
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
2037
+ # example, if the original method name is `TakeSnapshot()`, the inferred
2038
+ # response type is `TakeSnapshotResponse`.
2039
+ # Corresponds to the JSON property `response`
2040
+ # @return [Hash<String,Object>]
2041
+ attr_accessor :response
2042
+
2043
+ def initialize(**args)
2044
+ update!(**args)
2045
+ end
2046
+
2047
+ # Update properties of this object
2048
+ def update!(**args)
2049
+ @done = args[:done] if args.key?(:done)
2050
+ @error = args[:error] if args.key?(:error)
2051
+ @metadata = args[:metadata] if args.key?(:metadata)
2052
+ @name = args[:name] if args.key?(:name)
2053
+ @response = args[:response] if args.key?(:response)
2054
+ end
2055
+ end
2056
+
2057
+ # The response message for GroupsService.SearchGroups.
2058
+ class SearchGroupsResponse
2059
+ include Google::Apis::Core::Hashable
2060
+
2061
+ # The `Group`s that match the search query.
2062
+ # Corresponds to the JSON property `groups`
2063
+ # @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
2064
+ attr_accessor :groups
2065
+
2066
+ # A continuation token to retrieve the next page of results, or empty if there
2067
+ # are no more results available.
2068
+ # Corresponds to the JSON property `nextPageToken`
2069
+ # @return [String]
2070
+ attr_accessor :next_page_token
2071
+
2072
+ def initialize(**args)
2073
+ update!(**args)
2074
+ end
2075
+
2076
+ # Update properties of this object
2077
+ def update!(**args)
2078
+ @groups = args[:groups] if args.key?(:groups)
2079
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2080
+ end
2081
+ end
2082
+
2083
+ # The response message for MembershipsService.SearchTransitiveGroups.
2084
+ class SearchTransitiveGroupsResponse
2085
+ include Google::Apis::Core::Hashable
2086
+
2087
+ # List of transitive groups satisfying the query.
2088
+ # Corresponds to the JSON property `memberships`
2089
+ # @return [Array<Google::Apis::CloudidentityV1beta1::GroupRelation>]
2090
+ attr_accessor :memberships
2091
+
2092
+ # Token to retrieve the next page of results, or empty if there are no more
2093
+ # results available for listing.
2094
+ # Corresponds to the JSON property `nextPageToken`
2095
+ # @return [String]
2096
+ attr_accessor :next_page_token
2097
+
2098
+ def initialize(**args)
2099
+ update!(**args)
2100
+ end
2101
+
2102
+ # Update properties of this object
2103
+ def update!(**args)
2104
+ @memberships = args[:memberships] if args.key?(:memberships)
2105
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2106
+ end
2107
+ end
2108
+
2109
+ # The response message for MembershipsService.SearchTransitiveMemberships.
2110
+ class SearchTransitiveMembershipsResponse
2111
+ include Google::Apis::Core::Hashable
2112
+
2113
+ # List of transitive members satisfying the query.
2114
+ # Corresponds to the JSON property `memberships`
2115
+ # @return [Array<Google::Apis::CloudidentityV1beta1::MemberRelation>]
2116
+ attr_accessor :memberships
2117
+
2118
+ # Token to retrieve the next page of results, or empty if there are no more
2119
+ # results.
2120
+ # Corresponds to the JSON property `nextPageToken`
2121
+ # @return [String]
2122
+ attr_accessor :next_page_token
2123
+
2124
+ def initialize(**args)
2125
+ update!(**args)
2126
+ end
2127
+
2128
+ # Update properties of this object
2129
+ def update!(**args)
2130
+ @memberships = args[:memberships] if args.key?(:memberships)
2131
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2132
+ end
2133
+ end
2134
+
2135
+ # The `Status` type defines a logical error model that is suitable for different
2136
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2137
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2138
+ # data: error code, error message, and error details. You can find out more
2139
+ # about this error model and how to work with it in the [API Design Guide](https:
2140
+ # //cloud.google.com/apis/design/errors).
2141
+ class Status
2142
+ include Google::Apis::Core::Hashable
2143
+
2144
+ # The status code, which should be an enum value of google.rpc.Code.
2145
+ # Corresponds to the JSON property `code`
2146
+ # @return [Fixnum]
2147
+ attr_accessor :code
2148
+
2149
+ # A list of messages that carry the error details. There is a common set of
2150
+ # message types for APIs to use.
2151
+ # Corresponds to the JSON property `details`
2152
+ # @return [Array<Hash<String,Object>>]
2153
+ attr_accessor :details
2154
+
2155
+ # A developer-facing error message, which should be in English. Any user-facing
2156
+ # error message should be localized and sent in the google.rpc.Status.details
2157
+ # field, or localized by the client.
2158
+ # Corresponds to the JSON property `message`
2159
+ # @return [String]
2160
+ attr_accessor :message
2161
+
2162
+ def initialize(**args)
2163
+ update!(**args)
2164
+ end
2165
+
2166
+ # Update properties of this object
2167
+ def update!(**args)
2168
+ @code = args[:code] if args.key?(:code)
2169
+ @details = args[:details] if args.key?(:details)
2170
+ @message = args[:message] if args.key?(:message)
2171
+ end
2172
+ end
2173
+
2174
+ # Message representing the role of a TransitiveMembership.
2175
+ class TransitiveMembershipRole
2176
+ include Google::Apis::Core::Hashable
2177
+
2178
+ # TransitiveMembershipRole in string format. Currently supported
2179
+ # TransitiveMembershipRoles: `"MEMBER"`, `"OWNER"`, and `"MANAGER"`.
2180
+ # Corresponds to the JSON property `role`
2181
+ # @return [String]
2182
+ attr_accessor :role
2183
+
2184
+ def initialize(**args)
2185
+ update!(**args)
2186
+ end
2187
+
2188
+ # Update properties of this object
2189
+ def update!(**args)
2190
+ @role = args[:role] if args.key?(:role)
2191
+ end
2192
+ end
2193
+
2194
+ # The details of an update to a `MembershipRole`.
2195
+ class UpdateMembershipRolesParams
2196
+ include Google::Apis::Core::Hashable
2197
+
2198
+ # The fully-qualified names of fields to update. May only contain the field `
2199
+ # expiry_detail`.
2200
+ # Corresponds to the JSON property `fieldMask`
2201
+ # @return [String]
2202
+ attr_accessor :field_mask
2203
+
2204
+ # A membership role within the Cloud Identity Groups API. A `MembershipRole`
2205
+ # defines the privileges granted to a `Membership`.
2206
+ # Corresponds to the JSON property `membershipRole`
2207
+ # @return [Google::Apis::CloudidentityV1beta1::MembershipRole]
2208
+ attr_accessor :membership_role
2209
+
2210
+ def initialize(**args)
2211
+ update!(**args)
2212
+ end
2213
+
2214
+ # Update properties of this object
2215
+ def update!(**args)
2216
+ @field_mask = args[:field_mask] if args.key?(:field_mask)
2217
+ @membership_role = args[:membership_role] if args.key?(:membership_role)
2218
+ end
2219
+ end
2220
+
2221
+ # Request message for wiping all data on the device.
2222
+ class WipeDeviceRequest
2223
+ include Google::Apis::Core::Hashable
2224
+
2225
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
2226
+ # of the customer. If you're using this API for your own organization, use `
2227
+ # customers/my_customer` If you're using this API to manage another organization,
2228
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
2229
+ # device belongs.
2230
+ # Corresponds to the JSON property `customer`
2231
+ # @return [String]
2232
+ attr_accessor :customer
2233
+
2234
+ def initialize(**args)
2235
+ update!(**args)
2236
+ end
2237
+
2238
+ # Update properties of this object
2239
+ def update!(**args)
2240
+ @customer = args[:customer] if args.key?(:customer)
2241
+ end
2242
+ end
2243
+
2244
+ # Response message for wiping all data on the device.
2245
+ class WipeDeviceResponse
2246
+ include Google::Apis::Core::Hashable
2247
+
2248
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
2249
+ # Google Cloud, independent of the device ownership, type, and whether it is
2250
+ # assigned or in use by a user.
2251
+ # Corresponds to the JSON property `device`
2252
+ # @return [Google::Apis::CloudidentityV1beta1::Device]
2253
+ attr_accessor :device
2254
+
2255
+ def initialize(**args)
2256
+ update!(**args)
2257
+ end
2258
+
2259
+ # Update properties of this object
2260
+ def update!(**args)
2261
+ @device = args[:device] if args.key?(:device)
2262
+ end
2263
+ end
2264
+
2265
+ # Request message for starting an account wipe on device.
2266
+ class WipeDeviceUserRequest
2267
+ include Google::Apis::Core::Hashable
2268
+
2269
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
2270
+ # of the customer. If you're using this API for your own organization, use `
2271
+ # customers/my_customer` If you're using this API to manage another organization,
2272
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
2273
+ # device belongs.
2274
+ # Corresponds to the JSON property `customer`
2275
+ # @return [String]
2276
+ attr_accessor :customer
2277
+
2278
+ def initialize(**args)
2279
+ update!(**args)
2280
+ end
2281
+
2282
+ # Update properties of this object
2283
+ def update!(**args)
2284
+ @customer = args[:customer] if args.key?(:customer)
2285
+ end
2286
+ end
2287
+
2288
+ # Response message for wiping the user's account from the device.
2289
+ class WipeDeviceUserResponse
2290
+ include Google::Apis::Core::Hashable
2291
+
2292
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
2293
+ # DeviceUser is a resource representing a user's use of a Device
2294
+ # Corresponds to the JSON property `deviceUser`
2295
+ # @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
2296
+ attr_accessor :device_user
2297
+
2298
+ def initialize(**args)
2299
+ update!(**args)
2300
+ end
2301
+
2302
+ # Update properties of this object
2303
+ def update!(**args)
2304
+ @device_user = args[:device_user] if args.key?(:device_user)
2305
+ end
2306
+ end
2307
+ end
2308
+ end
2309
+ end