google-apis-cloudidentity_v1 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: bbde5fa16b87c88394e688744ad642450fd0c2936979e061edbb6373ebc1ed7d
4
+ data.tar.gz: 9664b292e9ffa7cb54cf1efe9a104b3134e228a727c15419f2fc6b917adb7bc9
5
+ SHA512:
6
+ metadata.gz: 12e98aa22ce50a97e0e7dabec07e7e96de51e831323fa55c362514df65c4bfe5a8834879af22dacf75547c4bc0a6555a113e668211d431d08c2842be2bd1f52d
7
+ data.tar.gz: 56a8779c385142aaa0cf039c792dd93be44ea8fd24ff6d73f67f28aa8dd3023aa08685fcbb00483bcfac9783ca481d94ff1acb39a9917e4095413b4dc8f3421b
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudidentity_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudidentity_v1/*.rb
9
+ lib/google/apis/cloudidentity_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudidentity_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201208
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 V1 of the Cloud Identity API
2
+
3
+ This is a simple client library for version V1 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_v1', '~> 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_v1
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_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudidentityV1::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::CloudidentityV1::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_v1`, 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_v1"
@@ -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_v1/service.rb'
16
+ require 'google/apis/cloudidentity_v1/classes.rb'
17
+ require 'google/apis/cloudidentity_v1/representations.rb'
18
+ require 'google/apis/cloudidentity_v1/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 CloudidentityV1
28
+ # Version of the Cloud Identity API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
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,1554 @@
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 CloudidentityV1
24
+
25
+ # The response message for MembershipsService.CheckTransitiveMembership.
26
+ class CheckTransitiveMembershipResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Response does not include the possible roles of a member since the behavior of
30
+ # this rpc is not all-or-nothing unlike the other rpcs. So, it may not be
31
+ # possible to list all the roles definitively, due to possible lack of
32
+ # authorization in some of the paths.
33
+ # Corresponds to the JSON property `hasMembership`
34
+ # @return [Boolean]
35
+ attr_accessor :has_membership
36
+ alias_method :has_membership?, :has_membership
37
+
38
+ def initialize(**args)
39
+ update!(**args)
40
+ end
41
+
42
+ # Update properties of this object
43
+ def update!(**args)
44
+ @has_membership = args[:has_membership] if args.key?(:has_membership)
45
+ end
46
+ end
47
+
48
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
49
+ # can represent either a group with an optional `namespace` or a user without a `
50
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
51
+ # the same `id` can be used with different `namespace`s.
52
+ class EntityKey
53
+ include Google::Apis::Core::Hashable
54
+
55
+ # The ID of the entity. For Google-managed entities, the `id` should be the
56
+ # email address of an existing group or user. For external-identity-mapped
57
+ # entities, the `id` must be a string conforming to the Identity Source's
58
+ # requirements. Must be unique within a `namespace`.
59
+ # Corresponds to the JSON property `id`
60
+ # @return [String]
61
+ attr_accessor :id
62
+
63
+ # The namespace in which the entity exists. If not specified, the `EntityKey`
64
+ # represents a Google-managed entity such as a Google user or a Google Group. If
65
+ # specified, the `EntityKey` represents an external-identity-mapped group. The
66
+ # namespace must correspond to an identity source created in Admin Console and
67
+ # must be in the form of `identitysources/`identity_source_id`.
68
+ # Corresponds to the JSON property `namespace`
69
+ # @return [String]
70
+ attr_accessor :namespace
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ @id = args[:id] if args.key?(:id)
79
+ @namespace = args[:namespace] if args.key?(:namespace)
80
+ end
81
+ end
82
+
83
+ # The response message for MembershipsService.GetMembershipGraph.
84
+ class GetMembershipGraphResponse
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # The membership graph's path information represented as an adjacency list.
88
+ # Corresponds to the JSON property `adjacencyList`
89
+ # @return [Array<Google::Apis::CloudidentityV1::MembershipAdjacencyList>]
90
+ attr_accessor :adjacency_list
91
+
92
+ # The resources representing each group in the adjacency list. Each group in
93
+ # this list can be correlated to a 'group' of the MembershipAdjacencyList using
94
+ # the 'name' of the Group resource.
95
+ # Corresponds to the JSON property `groups`
96
+ # @return [Array<Google::Apis::CloudidentityV1::Group>]
97
+ attr_accessor :groups
98
+
99
+ def initialize(**args)
100
+ update!(**args)
101
+ end
102
+
103
+ # Update properties of this object
104
+ def update!(**args)
105
+ @adjacency_list = args[:adjacency_list] if args.key?(:adjacency_list)
106
+ @groups = args[:groups] if args.key?(:groups)
107
+ end
108
+ end
109
+
110
+ # Resource representing the Android specific attributes of a Device.
111
+ class GoogleAppsCloudidentityDevicesV1AndroidAttributes
112
+ include Google::Apis::Core::Hashable
113
+
114
+ # Whether applications from unknown sources can be installed on device.
115
+ # Corresponds to the JSON property `enabledUnknownSources`
116
+ # @return [Boolean]
117
+ attr_accessor :enabled_unknown_sources
118
+ alias_method :enabled_unknown_sources?, :enabled_unknown_sources
119
+
120
+ # Whether this account is on an owner/primary profile. For phones, only true for
121
+ # owner profiles. Android 4+ devices can have secondary or restricted user
122
+ # profiles.
123
+ # Corresponds to the JSON property `ownerProfileAccount`
124
+ # @return [Boolean]
125
+ attr_accessor :owner_profile_account
126
+ alias_method :owner_profile_account?, :owner_profile_account
127
+
128
+ # Ownership privileges on device.
129
+ # Corresponds to the JSON property `ownershipPrivilege`
130
+ # @return [String]
131
+ attr_accessor :ownership_privilege
132
+
133
+ # Whether device supports Android work profiles. If false, this service will not
134
+ # block access to corp data even if an administrator turns on the "Enforce Work
135
+ # Profile" policy.
136
+ # Corresponds to the JSON property `supportsWorkProfile`
137
+ # @return [Boolean]
138
+ attr_accessor :supports_work_profile
139
+ alias_method :supports_work_profile?, :supports_work_profile
140
+
141
+ def initialize(**args)
142
+ update!(**args)
143
+ end
144
+
145
+ # Update properties of this object
146
+ def update!(**args)
147
+ @enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources)
148
+ @owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account)
149
+ @ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege)
150
+ @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
151
+ end
152
+ end
153
+
154
+ # Request message for approving the device to access user data.
155
+ class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest
156
+ include Google::Apis::Core::Hashable
157
+
158
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
159
+ # of the customer. If you're using this API for your own organization, use `
160
+ # customers/my_customer` If you're using this API to manage another organization,
161
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
162
+ # device belongs.
163
+ # Corresponds to the JSON property `customer`
164
+ # @return [String]
165
+ attr_accessor :customer
166
+
167
+ def initialize(**args)
168
+ update!(**args)
169
+ end
170
+
171
+ # Update properties of this object
172
+ def update!(**args)
173
+ @customer = args[:customer] if args.key?(:customer)
174
+ end
175
+ end
176
+
177
+ # Response message for approving the device to access user data.
178
+ class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
179
+ include Google::Apis::Core::Hashable
180
+
181
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
182
+ # DeviceUser is a resource representing a user's use of a Device
183
+ # Corresponds to the JSON property `deviceUser`
184
+ # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser]
185
+ attr_accessor :device_user
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @device_user = args[:device_user] if args.key?(:device_user)
194
+ end
195
+ end
196
+
197
+ # Request message for blocking account on device.
198
+ class GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest
199
+ include Google::Apis::Core::Hashable
200
+
201
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
202
+ # of the customer. If you're using this API for your own organization, use `
203
+ # customers/my_customer` If you're using this API to manage another organization,
204
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
205
+ # device belongs.
206
+ # Corresponds to the JSON property `customer`
207
+ # @return [String]
208
+ attr_accessor :customer
209
+
210
+ def initialize(**args)
211
+ update!(**args)
212
+ end
213
+
214
+ # Update properties of this object
215
+ def update!(**args)
216
+ @customer = args[:customer] if args.key?(:customer)
217
+ end
218
+ end
219
+
220
+ # Response message for blocking the device from accessing user data.
221
+ class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
222
+ include Google::Apis::Core::Hashable
223
+
224
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
225
+ # DeviceUser is a resource representing a user's use of a Device
226
+ # Corresponds to the JSON property `deviceUser`
227
+ # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser]
228
+ attr_accessor :device_user
229
+
230
+ def initialize(**args)
231
+ update!(**args)
232
+ end
233
+
234
+ # Update properties of this object
235
+ def update!(**args)
236
+ @device_user = args[:device_user] if args.key?(:device_user)
237
+ end
238
+ end
239
+
240
+ # Request message for cancelling an unfinished device wipe.
241
+ class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest
242
+ include Google::Apis::Core::Hashable
243
+
244
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
245
+ # of the customer. If you're using this API for your own organization, use `
246
+ # customers/my_customer` If you're using this API to manage another organization,
247
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
248
+ # device belongs.
249
+ # Corresponds to the JSON property `customer`
250
+ # @return [String]
251
+ attr_accessor :customer
252
+
253
+ def initialize(**args)
254
+ update!(**args)
255
+ end
256
+
257
+ # Update properties of this object
258
+ def update!(**args)
259
+ @customer = args[:customer] if args.key?(:customer)
260
+ end
261
+ end
262
+
263
+ # Response message for cancelling an unfinished device wipe.
264
+ class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
265
+ include Google::Apis::Core::Hashable
266
+
267
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
268
+ # Google Cloud, independent of the device ownership, type, and whether it is
269
+ # assigned or in use by a user.
270
+ # Corresponds to the JSON property `device`
271
+ # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device]
272
+ attr_accessor :device
273
+
274
+ def initialize(**args)
275
+ update!(**args)
276
+ end
277
+
278
+ # Update properties of this object
279
+ def update!(**args)
280
+ @device = args[:device] if args.key?(:device)
281
+ end
282
+ end
283
+
284
+ # Request message for cancelling an unfinished user account wipe.
285
+ class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest
286
+ include Google::Apis::Core::Hashable
287
+
288
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
289
+ # of the customer. If you're using this API for your own organization, use `
290
+ # customers/my_customer` If you're using this API to manage another organization,
291
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
292
+ # device belongs.
293
+ # Corresponds to the JSON property `customer`
294
+ # @return [String]
295
+ attr_accessor :customer
296
+
297
+ def initialize(**args)
298
+ update!(**args)
299
+ end
300
+
301
+ # Update properties of this object
302
+ def update!(**args)
303
+ @customer = args[:customer] if args.key?(:customer)
304
+ end
305
+ end
306
+
307
+ # Response message for cancelling an unfinished user account wipe.
308
+ class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
309
+ include Google::Apis::Core::Hashable
310
+
311
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
312
+ # DeviceUser is a resource representing a user's use of a Device
313
+ # Corresponds to the JSON property `deviceUser`
314
+ # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser]
315
+ attr_accessor :device_user
316
+
317
+ def initialize(**args)
318
+ update!(**args)
319
+ end
320
+
321
+ # Update properties of this object
322
+ def update!(**args)
323
+ @device_user = args[:device_user] if args.key?(:device_user)
324
+ end
325
+ end
326
+
327
+ # Represents the state associated with an API client calling the Devices API.
328
+ # Resource representing ClientState and supports updates from API users
329
+ class GoogleAppsCloudidentityDevicesV1ClientState
330
+ include Google::Apis::Core::Hashable
331
+
332
+ # The caller can specify asset tags for this resource
333
+ # Corresponds to the JSON property `assetTags`
334
+ # @return [Array<String>]
335
+ attr_accessor :asset_tags
336
+
337
+ # The compliance state of the resource as specified by the API client.
338
+ # Corresponds to the JSON property `complianceState`
339
+ # @return [String]
340
+ attr_accessor :compliance_state
341
+
342
+ # Output only. The time the client state data was created.
343
+ # Corresponds to the JSON property `createTime`
344
+ # @return [String]
345
+ attr_accessor :create_time
346
+
347
+ # This field may be used to store a unique identifier for the API resource
348
+ # within which these CustomAttributes are a field.
349
+ # Corresponds to the JSON property `customId`
350
+ # @return [String]
351
+ attr_accessor :custom_id
352
+
353
+ # The token that needs to be passed back for concurrency control in updates.
354
+ # Token needs to be passed back in UpdateRequest
355
+ # Corresponds to the JSON property `etag`
356
+ # @return [String]
357
+ attr_accessor :etag
358
+
359
+ # The Health score of the resource. The Health score is the callers
360
+ # specification of the condition of the device from a usability point of view.
361
+ # For example, a third-party device management provider may specify a health
362
+ # score based on its compliance with organizational policies.
363
+ # Corresponds to the JSON property `healthScore`
364
+ # @return [String]
365
+ attr_accessor :health_score
366
+
367
+ # The map of key-value attributes stored by callers specific to a device. The
368
+ # total serialized length of this map may not exceed 10KB. No limit is placed on
369
+ # the number of attributes in a map.
370
+ # Corresponds to the JSON property `keyValuePairs`
371
+ # @return [Hash<String,Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1CustomAttributeValue>]
372
+ attr_accessor :key_value_pairs
373
+
374
+ # Output only. The time the client state data was last updated.
375
+ # Corresponds to the JSON property `lastUpdateTime`
376
+ # @return [String]
377
+ attr_accessor :last_update_time
378
+
379
+ # The management state of the resource as specified by the API client.
380
+ # Corresponds to the JSON property `managed`
381
+ # @return [String]
382
+ attr_accessor :managed
383
+
384
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
385
+ # resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
386
+ # `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
387
+ # the partner storing the data. For partners belonging to the "BeyondCorp
388
+ # Alliance", this is the partner ID specified to you by Google. For all other
389
+ # callers, this is a string of the form: ``customer_id`-suffix`, where `
390
+ # customer_id` is your customer ID. The *suffix* is any string the caller
391
+ # specifies. This string will be displayed verbatim in the administration
392
+ # console. This suffix is used in setting up Custom Access Levels in Context-
393
+ # Aware Access. Your organization's customer ID can be obtained from the URL: `
394
+ # GET https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `
395
+ # id` field in the response contains the customer ID starting with the letter 'C'
396
+ # . The customer ID to be used in this API is the string after the letter 'C' (
397
+ # not including 'C')
398
+ # Corresponds to the JSON property `name`
399
+ # @return [String]
400
+ attr_accessor :name
401
+
402
+ # Output only. The owner of the ClientState
403
+ # Corresponds to the JSON property `ownerType`
404
+ # @return [String]
405
+ attr_accessor :owner_type
406
+
407
+ # A descriptive cause of the health score.
408
+ # Corresponds to the JSON property `scoreReason`
409
+ # @return [String]
410
+ attr_accessor :score_reason
411
+
412
+ def initialize(**args)
413
+ update!(**args)
414
+ end
415
+
416
+ # Update properties of this object
417
+ def update!(**args)
418
+ @asset_tags = args[:asset_tags] if args.key?(:asset_tags)
419
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
420
+ @create_time = args[:create_time] if args.key?(:create_time)
421
+ @custom_id = args[:custom_id] if args.key?(:custom_id)
422
+ @etag = args[:etag] if args.key?(:etag)
423
+ @health_score = args[:health_score] if args.key?(:health_score)
424
+ @key_value_pairs = args[:key_value_pairs] if args.key?(:key_value_pairs)
425
+ @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
426
+ @managed = args[:managed] if args.key?(:managed)
427
+ @name = args[:name] if args.key?(:name)
428
+ @owner_type = args[:owner_type] if args.key?(:owner_type)
429
+ @score_reason = args[:score_reason] if args.key?(:score_reason)
430
+ end
431
+ end
432
+
433
+ # Additional custom attribute values may be one of these types
434
+ class GoogleAppsCloudidentityDevicesV1CustomAttributeValue
435
+ include Google::Apis::Core::Hashable
436
+
437
+ # Represents a boolean value.
438
+ # Corresponds to the JSON property `boolValue`
439
+ # @return [Boolean]
440
+ attr_accessor :bool_value
441
+ alias_method :bool_value?, :bool_value
442
+
443
+ # Represents a double value.
444
+ # Corresponds to the JSON property `numberValue`
445
+ # @return [Float]
446
+ attr_accessor :number_value
447
+
448
+ # Represents a string value.
449
+ # Corresponds to the JSON property `stringValue`
450
+ # @return [String]
451
+ attr_accessor :string_value
452
+
453
+ def initialize(**args)
454
+ update!(**args)
455
+ end
456
+
457
+ # Update properties of this object
458
+ def update!(**args)
459
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
460
+ @number_value = args[:number_value] if args.key?(:number_value)
461
+ @string_value = args[:string_value] if args.key?(:string_value)
462
+ end
463
+ end
464
+
465
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
466
+ # Google Cloud, independent of the device ownership, type, and whether it is
467
+ # assigned or in use by a user.
468
+ class GoogleAppsCloudidentityDevicesV1Device
469
+ include Google::Apis::Core::Hashable
470
+
471
+ # Resource representing the Android specific attributes of a Device.
472
+ # Corresponds to the JSON property `androidSpecificAttributes`
473
+ # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1AndroidAttributes]
474
+ attr_accessor :android_specific_attributes
475
+
476
+ # Asset tag of the device.
477
+ # Corresponds to the JSON property `assetTag`
478
+ # @return [String]
479
+ attr_accessor :asset_tag
480
+
481
+ # Output only. Baseband version of the device.
482
+ # Corresponds to the JSON property `basebandVersion`
483
+ # @return [String]
484
+ attr_accessor :baseband_version
485
+
486
+ # Output only. Device bootloader version. Example: 0.6.7.
487
+ # Corresponds to the JSON property `bootloaderVersion`
488
+ # @return [String]
489
+ attr_accessor :bootloader_version
490
+
491
+ # Output only. Device brand. Example: Samsung.
492
+ # Corresponds to the JSON property `brand`
493
+ # @return [String]
494
+ attr_accessor :brand
495
+
496
+ # Output only. Build number of the device.
497
+ # Corresponds to the JSON property `buildNumber`
498
+ # @return [String]
499
+ attr_accessor :build_number
500
+
501
+ # Output only. Represents whether the Device is compromised.
502
+ # Corresponds to the JSON property `compromisedState`
503
+ # @return [String]
504
+ attr_accessor :compromised_state
505
+
506
+ # Output only. When the Company-Owned device was imported. This field is empty
507
+ # for BYOD devices.
508
+ # Corresponds to the JSON property `createTime`
509
+ # @return [String]
510
+ attr_accessor :create_time
511
+
512
+ # Output only. Type of device.
513
+ # Corresponds to the JSON property `deviceType`
514
+ # @return [String]
515
+ attr_accessor :device_type
516
+
517
+ # Output only. Whether developer options is enabled on device.
518
+ # Corresponds to the JSON property `enabledDeveloperOptions`
519
+ # @return [Boolean]
520
+ attr_accessor :enabled_developer_options
521
+ alias_method :enabled_developer_options?, :enabled_developer_options
522
+
523
+ # Output only. Whether USB debugging is enabled on device.
524
+ # Corresponds to the JSON property `enabledUsbDebugging`
525
+ # @return [Boolean]
526
+ attr_accessor :enabled_usb_debugging
527
+ alias_method :enabled_usb_debugging?, :enabled_usb_debugging
528
+
529
+ # Output only. Device encryption state.
530
+ # Corresponds to the JSON property `encryptionState`
531
+ # @return [String]
532
+ attr_accessor :encryption_state
533
+
534
+ # Output only. IMEI number of device if GSM device; empty otherwise.
535
+ # Corresponds to the JSON property `imei`
536
+ # @return [String]
537
+ attr_accessor :imei
538
+
539
+ # Output only. Kernel version of the device.
540
+ # Corresponds to the JSON property `kernelVersion`
541
+ # @return [String]
542
+ attr_accessor :kernel_version
543
+
544
+ # Most recent time when device synced with this service.
545
+ # Corresponds to the JSON property `lastSyncTime`
546
+ # @return [String]
547
+ attr_accessor :last_sync_time
548
+
549
+ # Output only. Management state of the device
550
+ # Corresponds to the JSON property `managementState`
551
+ # @return [String]
552
+ attr_accessor :management_state
553
+
554
+ # Output only. Device manufacturer. Example: Motorola.
555
+ # Corresponds to the JSON property `manufacturer`
556
+ # @return [String]
557
+ attr_accessor :manufacturer
558
+
559
+ # Output only. MEID number of device if CDMA device; empty otherwise.
560
+ # Corresponds to the JSON property `meid`
561
+ # @return [String]
562
+ attr_accessor :meid
563
+
564
+ # Output only. Model name of device. Example: Pixel 3.
565
+ # Corresponds to the JSON property `model`
566
+ # @return [String]
567
+ attr_accessor :model
568
+
569
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
570
+ # resource_names) of the Device in format: `devices/`device_id``, where
571
+ # device_id is the unique id assigned to the Device.
572
+ # Corresponds to the JSON property `name`
573
+ # @return [String]
574
+ attr_accessor :name
575
+
576
+ # Output only. Mobile or network operator of device, if available.
577
+ # Corresponds to the JSON property `networkOperator`
578
+ # @return [String]
579
+ attr_accessor :network_operator
580
+
581
+ # Output only. OS version of the device. Example: Android 8.1.0.
582
+ # Corresponds to the JSON property `osVersion`
583
+ # @return [String]
584
+ attr_accessor :os_version
585
+
586
+ # Output only. Domain name for Google accounts on device. Type for other
587
+ # accounts on device. On Android, will only be populated if |ownership_privilege|
588
+ # is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
589
+ # to the device policy app if that account's domain has only one account.
590
+ # Examples: "com.example", "xyz.com".
591
+ # Corresponds to the JSON property `otherAccounts`
592
+ # @return [Array<String>]
593
+ attr_accessor :other_accounts
594
+
595
+ # Output only. Whether the device is owned by the company or an individual
596
+ # Corresponds to the JSON property `ownerType`
597
+ # @return [String]
598
+ attr_accessor :owner_type
599
+
600
+ # Output only. OS release version. Example: 6.0.
601
+ # Corresponds to the JSON property `releaseVersion`
602
+ # @return [String]
603
+ attr_accessor :release_version
604
+
605
+ # Output only. OS security patch update time on device.
606
+ # Corresponds to the JSON property `securityPatchTime`
607
+ # @return [String]
608
+ attr_accessor :security_patch_time
609
+
610
+ # Serial Number of device. Example: HT82V1A01076.
611
+ # Corresponds to the JSON property `serialNumber`
612
+ # @return [String]
613
+ attr_accessor :serial_number
614
+
615
+ # WiFi MAC addresses of device.
616
+ # Corresponds to the JSON property `wifiMacAddresses`
617
+ # @return [Array<String>]
618
+ attr_accessor :wifi_mac_addresses
619
+
620
+ def initialize(**args)
621
+ update!(**args)
622
+ end
623
+
624
+ # Update properties of this object
625
+ def update!(**args)
626
+ @android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes)
627
+ @asset_tag = args[:asset_tag] if args.key?(:asset_tag)
628
+ @baseband_version = args[:baseband_version] if args.key?(:baseband_version)
629
+ @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
630
+ @brand = args[:brand] if args.key?(:brand)
631
+ @build_number = args[:build_number] if args.key?(:build_number)
632
+ @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
633
+ @create_time = args[:create_time] if args.key?(:create_time)
634
+ @device_type = args[:device_type] if args.key?(:device_type)
635
+ @enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
636
+ @enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
637
+ @encryption_state = args[:encryption_state] if args.key?(:encryption_state)
638
+ @imei = args[:imei] if args.key?(:imei)
639
+ @kernel_version = args[:kernel_version] if args.key?(:kernel_version)
640
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
641
+ @management_state = args[:management_state] if args.key?(:management_state)
642
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
643
+ @meid = args[:meid] if args.key?(:meid)
644
+ @model = args[:model] if args.key?(:model)
645
+ @name = args[:name] if args.key?(:name)
646
+ @network_operator = args[:network_operator] if args.key?(:network_operator)
647
+ @os_version = args[:os_version] if args.key?(:os_version)
648
+ @other_accounts = args[:other_accounts] if args.key?(:other_accounts)
649
+ @owner_type = args[:owner_type] if args.key?(:owner_type)
650
+ @release_version = args[:release_version] if args.key?(:release_version)
651
+ @security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
652
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
653
+ @wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
654
+ end
655
+ end
656
+
657
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
658
+ # DeviceUser is a resource representing a user's use of a Device
659
+ class GoogleAppsCloudidentityDevicesV1DeviceUser
660
+ include Google::Apis::Core::Hashable
661
+
662
+ # Compromised State of the DeviceUser object
663
+ # Corresponds to the JSON property `compromisedState`
664
+ # @return [String]
665
+ attr_accessor :compromised_state
666
+
667
+ # When the user first signed in to the device
668
+ # Corresponds to the JSON property `createTime`
669
+ # @return [String]
670
+ attr_accessor :create_time
671
+
672
+ # Output only. Most recent time when user registered with this service.
673
+ # Corresponds to the JSON property `firstSyncTime`
674
+ # @return [String]
675
+ attr_accessor :first_sync_time
676
+
677
+ # Output only. Default locale used on device, in IETF BCP-47 format.
678
+ # Corresponds to the JSON property `languageCode`
679
+ # @return [String]
680
+ attr_accessor :language_code
681
+
682
+ # Output only. Last time when user synced with policies.
683
+ # Corresponds to the JSON property `lastSyncTime`
684
+ # @return [String]
685
+ attr_accessor :last_sync_time
686
+
687
+ # Output only. Management state of the user on the device.
688
+ # Corresponds to the JSON property `managementState`
689
+ # @return [String]
690
+ attr_accessor :management_state
691
+
692
+ # Output only. [Resource name](https://cloud.google.com/apis/design/
693
+ # resource_names) of the DeviceUser in format: `devices/`device_id`/deviceUsers/`
694
+ # user_id``, where user_id is the ID of the user associated with the user
695
+ # session.
696
+ # Corresponds to the JSON property `name`
697
+ # @return [String]
698
+ attr_accessor :name
699
+
700
+ # Password state of the DeviceUser object
701
+ # Corresponds to the JSON property `passwordState`
702
+ # @return [String]
703
+ attr_accessor :password_state
704
+
705
+ # Output only. User agent on the device for this specific user
706
+ # Corresponds to the JSON property `userAgent`
707
+ # @return [String]
708
+ attr_accessor :user_agent
709
+
710
+ # Email address of the user registered on the device.
711
+ # Corresponds to the JSON property `userEmail`
712
+ # @return [String]
713
+ attr_accessor :user_email
714
+
715
+ def initialize(**args)
716
+ update!(**args)
717
+ end
718
+
719
+ # Update properties of this object
720
+ def update!(**args)
721
+ @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
722
+ @create_time = args[:create_time] if args.key?(:create_time)
723
+ @first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
724
+ @language_code = args[:language_code] if args.key?(:language_code)
725
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
726
+ @management_state = args[:management_state] if args.key?(:management_state)
727
+ @name = args[:name] if args.key?(:name)
728
+ @password_state = args[:password_state] if args.key?(:password_state)
729
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
730
+ @user_email = args[:user_email] if args.key?(:user_email)
731
+ end
732
+ end
733
+
734
+ # Response message that is returned in ListClientStates.
735
+ class GoogleAppsCloudidentityDevicesV1ListClientStatesResponse
736
+ include Google::Apis::Core::Hashable
737
+
738
+ # Client states meeting the list restrictions.
739
+ # Corresponds to the JSON property `clientStates`
740
+ # @return [Array<Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState>]
741
+ attr_accessor :client_states
742
+
743
+ # Token to retrieve the next page of results. Empty if there are no more results.
744
+ # Corresponds to the JSON property `nextPageToken`
745
+ # @return [String]
746
+ attr_accessor :next_page_token
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @client_states = args[:client_states] if args.key?(:client_states)
755
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
756
+ end
757
+ end
758
+
759
+ # Response message that is returned from the ListDeviceUsers method.
760
+ class GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # Devices meeting the list restrictions.
764
+ # Corresponds to the JSON property `deviceUsers`
765
+ # @return [Array<Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser>]
766
+ attr_accessor :device_users
767
+
768
+ # Token to retrieve the next page of results. Empty if there are no more results.
769
+ # Corresponds to the JSON property `nextPageToken`
770
+ # @return [String]
771
+ attr_accessor :next_page_token
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @device_users = args[:device_users] if args.key?(:device_users)
780
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
781
+ end
782
+ end
783
+
784
+ # Response message that is returned from the ListDevices method.
785
+ class GoogleAppsCloudidentityDevicesV1ListDevicesResponse
786
+ include Google::Apis::Core::Hashable
787
+
788
+ # Devices meeting the list restrictions.
789
+ # Corresponds to the JSON property `devices`
790
+ # @return [Array<Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device>]
791
+ attr_accessor :devices
792
+
793
+ # Token to retrieve the next page of results. Empty if there are no more results.
794
+ # Corresponds to the JSON property `nextPageToken`
795
+ # @return [String]
796
+ attr_accessor :next_page_token
797
+
798
+ def initialize(**args)
799
+ update!(**args)
800
+ end
801
+
802
+ # Update properties of this object
803
+ def update!(**args)
804
+ @devices = args[:devices] if args.key?(:devices)
805
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
806
+ end
807
+ end
808
+
809
+ # Response containing resource names of the DeviceUsers associated with the
810
+ # caller's credentials.
811
+ class GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse
812
+ include Google::Apis::Core::Hashable
813
+
814
+ # The obfuscated customer Id that may be passed back to other Devices API
815
+ # methods such as List, Get, etc.
816
+ # Corresponds to the JSON property `customer`
817
+ # @return [String]
818
+ attr_accessor :customer
819
+
820
+ # [Resource names](https://cloud.google.com/apis/design/resource_names) of the
821
+ # DeviceUsers in the format: `devices/`device_id`/deviceUsers/`user_resource_id``
822
+ # , where device_id is the unique ID assigned to a Device and user_resource_id
823
+ # is the unique user ID
824
+ # Corresponds to the JSON property `names`
825
+ # @return [Array<String>]
826
+ attr_accessor :names
827
+
828
+ # Token to retrieve the next page of results. Empty if there are no more results.
829
+ # Corresponds to the JSON property `nextPageToken`
830
+ # @return [String]
831
+ attr_accessor :next_page_token
832
+
833
+ def initialize(**args)
834
+ update!(**args)
835
+ end
836
+
837
+ # Update properties of this object
838
+ def update!(**args)
839
+ @customer = args[:customer] if args.key?(:customer)
840
+ @names = args[:names] if args.key?(:names)
841
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
842
+ end
843
+ end
844
+
845
+ # Request message for wiping all data on the device.
846
+ class GoogleAppsCloudidentityDevicesV1WipeDeviceRequest
847
+ include Google::Apis::Core::Hashable
848
+
849
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
850
+ # of the customer. If you're using this API for your own organization, use `
851
+ # customers/my_customer` If you're using this API to manage another organization,
852
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
853
+ # device belongs.
854
+ # Corresponds to the JSON property `customer`
855
+ # @return [String]
856
+ attr_accessor :customer
857
+
858
+ def initialize(**args)
859
+ update!(**args)
860
+ end
861
+
862
+ # Update properties of this object
863
+ def update!(**args)
864
+ @customer = args[:customer] if args.key?(:customer)
865
+ end
866
+ end
867
+
868
+ # Response message for wiping all data on the device.
869
+ class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
870
+ include Google::Apis::Core::Hashable
871
+
872
+ # A Device within the Cloud Identity Devices API. Represents a Device known to
873
+ # Google Cloud, independent of the device ownership, type, and whether it is
874
+ # assigned or in use by a user.
875
+ # Corresponds to the JSON property `device`
876
+ # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device]
877
+ attr_accessor :device
878
+
879
+ def initialize(**args)
880
+ update!(**args)
881
+ end
882
+
883
+ # Update properties of this object
884
+ def update!(**args)
885
+ @device = args[:device] if args.key?(:device)
886
+ end
887
+ end
888
+
889
+ # Request message for starting an account wipe on device.
890
+ class GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest
891
+ include Google::Apis::Core::Hashable
892
+
893
+ # Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
894
+ # of the customer. If you're using this API for your own organization, use `
895
+ # customers/my_customer` If you're using this API to manage another organization,
896
+ # use `customers/`customer_id``, where customer_id is the customer to whom the
897
+ # device belongs.
898
+ # Corresponds to the JSON property `customer`
899
+ # @return [String]
900
+ attr_accessor :customer
901
+
902
+ def initialize(**args)
903
+ update!(**args)
904
+ end
905
+
906
+ # Update properties of this object
907
+ def update!(**args)
908
+ @customer = args[:customer] if args.key?(:customer)
909
+ end
910
+ end
911
+
912
+ # Response message for wiping the user's account from the device.
913
+ class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
914
+ include Google::Apis::Core::Hashable
915
+
916
+ # Represents a user's use of a Device in the Cloud Identity Devices API. A
917
+ # DeviceUser is a resource representing a user's use of a Device
918
+ # Corresponds to the JSON property `deviceUser`
919
+ # @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser]
920
+ attr_accessor :device_user
921
+
922
+ def initialize(**args)
923
+ update!(**args)
924
+ end
925
+
926
+ # Update properties of this object
927
+ def update!(**args)
928
+ @device_user = args[:device_user] if args.key?(:device_user)
929
+ end
930
+ end
931
+
932
+ # A group within the Cloud Identity Groups API. A `Group` is a collection of
933
+ # entities, where each entity is either a user, another group, or a service
934
+ # account.
935
+ class Group
936
+ include Google::Apis::Core::Hashable
937
+
938
+ # Output only. The time when the `Group` was created.
939
+ # Corresponds to the JSON property `createTime`
940
+ # @return [String]
941
+ attr_accessor :create_time
942
+
943
+ # An extended description to help users determine the purpose of a `Group`. Must
944
+ # not be longer than 4,096 characters.
945
+ # Corresponds to the JSON property `description`
946
+ # @return [String]
947
+ attr_accessor :description
948
+
949
+ # The display name of the `Group`.
950
+ # Corresponds to the JSON property `displayName`
951
+ # @return [String]
952
+ attr_accessor :display_name
953
+
954
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
955
+ # can represent either a group with an optional `namespace` or a user without a `
956
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
957
+ # the same `id` can be used with different `namespace`s.
958
+ # Corresponds to the JSON property `groupKey`
959
+ # @return [Google::Apis::CloudidentityV1::EntityKey]
960
+ attr_accessor :group_key
961
+
962
+ # Required. One or more label entries that apply to the Group. Currently
963
+ # supported labels contain a key with an empty value. Google Groups are the
964
+ # default type of group and have a label with a key of `cloudidentity.googleapis.
965
+ # com/groups.discussion_forum` and an empty value. Existing Google Groups can
966
+ # have an additional label with a key of `cloudidentity.googleapis.com/groups.
967
+ # security` and an empty value added to them. **This is an immutable change and
968
+ # the security label cannot be removed once added.** Dynamic groups have a label
969
+ # with a key of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped
970
+ # groups for Cloud Search have a label with a key of `system/groups/external`
971
+ # and an empty value. Examples: `"cloudidentity.googleapis.com/groups.
972
+ # discussion_forum": ""` or `"system/groups/external": ""`.
973
+ # Corresponds to the JSON property `labels`
974
+ # @return [Hash<String,String>]
975
+ attr_accessor :labels
976
+
977
+ # Output only. The [resource name](https://cloud.google.com/apis/design/
978
+ # resource_names) of the `Group`. Shall be of the form `groups/`group_id``.
979
+ # Corresponds to the JSON property `name`
980
+ # @return [String]
981
+ attr_accessor :name
982
+
983
+ # Required. Immutable. The resource name of the entity under which this `Group`
984
+ # resides in the Cloud Identity resource hierarchy. Must be of the form `
985
+ # identitysources/`identity_source_id`` for external- identity-mapped groups or `
986
+ # customers/`customer_id`` for Google Groups.
987
+ # Corresponds to the JSON property `parent`
988
+ # @return [String]
989
+ attr_accessor :parent
990
+
991
+ # Output only. The time when the `Group` was last updated.
992
+ # Corresponds to the JSON property `updateTime`
993
+ # @return [String]
994
+ attr_accessor :update_time
995
+
996
+ def initialize(**args)
997
+ update!(**args)
998
+ end
999
+
1000
+ # Update properties of this object
1001
+ def update!(**args)
1002
+ @create_time = args[:create_time] if args.key?(:create_time)
1003
+ @description = args[:description] if args.key?(:description)
1004
+ @display_name = args[:display_name] if args.key?(:display_name)
1005
+ @group_key = args[:group_key] if args.key?(:group_key)
1006
+ @labels = args[:labels] if args.key?(:labels)
1007
+ @name = args[:name] if args.key?(:name)
1008
+ @parent = args[:parent] if args.key?(:parent)
1009
+ @update_time = args[:update_time] if args.key?(:update_time)
1010
+ end
1011
+ end
1012
+
1013
+ # Message representing a transitive group of a user or a group.
1014
+ class GroupRelation
1015
+ include Google::Apis::Core::Hashable
1016
+
1017
+ # Display name for this group.
1018
+ # Corresponds to the JSON property `displayName`
1019
+ # @return [String]
1020
+ attr_accessor :display_name
1021
+
1022
+ # Resource name for this group.
1023
+ # Corresponds to the JSON property `group`
1024
+ # @return [String]
1025
+ attr_accessor :group
1026
+
1027
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
1028
+ # can represent either a group with an optional `namespace` or a user without a `
1029
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
1030
+ # the same `id` can be used with different `namespace`s.
1031
+ # Corresponds to the JSON property `groupKey`
1032
+ # @return [Google::Apis::CloudidentityV1::EntityKey]
1033
+ attr_accessor :group_key
1034
+
1035
+ # Labels for Group resource.
1036
+ # Corresponds to the JSON property `labels`
1037
+ # @return [Hash<String,String>]
1038
+ attr_accessor :labels
1039
+
1040
+ # The relation between the member and the transitive group.
1041
+ # Corresponds to the JSON property `relationType`
1042
+ # @return [String]
1043
+ attr_accessor :relation_type
1044
+
1045
+ # Membership roles of the member for the group.
1046
+ # Corresponds to the JSON property `roles`
1047
+ # @return [Array<Google::Apis::CloudidentityV1::TransitiveMembershipRole>]
1048
+ attr_accessor :roles
1049
+
1050
+ def initialize(**args)
1051
+ update!(**args)
1052
+ end
1053
+
1054
+ # Update properties of this object
1055
+ def update!(**args)
1056
+ @display_name = args[:display_name] if args.key?(:display_name)
1057
+ @group = args[:group] if args.key?(:group)
1058
+ @group_key = args[:group_key] if args.key?(:group_key)
1059
+ @labels = args[:labels] if args.key?(:labels)
1060
+ @relation_type = args[:relation_type] if args.key?(:relation_type)
1061
+ @roles = args[:roles] if args.key?(:roles)
1062
+ end
1063
+ end
1064
+
1065
+ # Response message for ListGroups operation.
1066
+ class ListGroupsResponse
1067
+ include Google::Apis::Core::Hashable
1068
+
1069
+ # Groups returned in response to list request. The results are not sorted.
1070
+ # Corresponds to the JSON property `groups`
1071
+ # @return [Array<Google::Apis::CloudidentityV1::Group>]
1072
+ attr_accessor :groups
1073
+
1074
+ # Token to retrieve the next page of results, or empty if there are no more
1075
+ # results available for listing.
1076
+ # Corresponds to the JSON property `nextPageToken`
1077
+ # @return [String]
1078
+ attr_accessor :next_page_token
1079
+
1080
+ def initialize(**args)
1081
+ update!(**args)
1082
+ end
1083
+
1084
+ # Update properties of this object
1085
+ def update!(**args)
1086
+ @groups = args[:groups] if args.key?(:groups)
1087
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1088
+ end
1089
+ end
1090
+
1091
+ # The response message for MembershipsService.ListMemberships.
1092
+ class ListMembershipsResponse
1093
+ include Google::Apis::Core::Hashable
1094
+
1095
+ # The `Membership`s under the specified `parent`.
1096
+ # Corresponds to the JSON property `memberships`
1097
+ # @return [Array<Google::Apis::CloudidentityV1::Membership>]
1098
+ attr_accessor :memberships
1099
+
1100
+ # A continuation token to retrieve the next page of results, or empty if there
1101
+ # are no more results available.
1102
+ # Corresponds to the JSON property `nextPageToken`
1103
+ # @return [String]
1104
+ attr_accessor :next_page_token
1105
+
1106
+ def initialize(**args)
1107
+ update!(**args)
1108
+ end
1109
+
1110
+ # Update properties of this object
1111
+ def update!(**args)
1112
+ @memberships = args[:memberships] if args.key?(:memberships)
1113
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1114
+ end
1115
+ end
1116
+
1117
+ # The response message for GroupsService.LookupGroupName.
1118
+ class LookupGroupNameResponse
1119
+ include Google::Apis::Core::Hashable
1120
+
1121
+ # The [resource name](https://cloud.google.com/apis/design/resource_names) of
1122
+ # the looked-up `Group`.
1123
+ # Corresponds to the JSON property `name`
1124
+ # @return [String]
1125
+ attr_accessor :name
1126
+
1127
+ def initialize(**args)
1128
+ update!(**args)
1129
+ end
1130
+
1131
+ # Update properties of this object
1132
+ def update!(**args)
1133
+ @name = args[:name] if args.key?(:name)
1134
+ end
1135
+ end
1136
+
1137
+ # The response message for MembershipsService.LookupMembershipName.
1138
+ class LookupMembershipNameResponse
1139
+ include Google::Apis::Core::Hashable
1140
+
1141
+ # The [resource name](https://cloud.google.com/apis/design/resource_names) of
1142
+ # the looked-up `Membership`. Must be of the form `groups/`group_id`/memberships/
1143
+ # `membership_id``.
1144
+ # Corresponds to the JSON property `name`
1145
+ # @return [String]
1146
+ attr_accessor :name
1147
+
1148
+ def initialize(**args)
1149
+ update!(**args)
1150
+ end
1151
+
1152
+ # Update properties of this object
1153
+ def update!(**args)
1154
+ @name = args[:name] if args.key?(:name)
1155
+ end
1156
+ end
1157
+
1158
+ # Message representing a transitive membership of a group.
1159
+ class MemberRelation
1160
+ include Google::Apis::Core::Hashable
1161
+
1162
+ # Resource name for this member if member is a GROUP, otherwise it is empty.
1163
+ # Corresponds to the JSON property `member`
1164
+ # @return [String]
1165
+ attr_accessor :member
1166
+
1167
+ # Entity key has an id and a namespace. In case of discussion forums, the id
1168
+ # will be an email address without a namespace.
1169
+ # Corresponds to the JSON property `preferredMemberKey`
1170
+ # @return [Array<Google::Apis::CloudidentityV1::EntityKey>]
1171
+ attr_accessor :preferred_member_key
1172
+
1173
+ # The relation between the group and the transitive member.
1174
+ # Corresponds to the JSON property `relationType`
1175
+ # @return [String]
1176
+ attr_accessor :relation_type
1177
+
1178
+ # The membership role details (i.e name of role and expiry time).
1179
+ # Corresponds to the JSON property `roles`
1180
+ # @return [Array<Google::Apis::CloudidentityV1::TransitiveMembershipRole>]
1181
+ attr_accessor :roles
1182
+
1183
+ def initialize(**args)
1184
+ update!(**args)
1185
+ end
1186
+
1187
+ # Update properties of this object
1188
+ def update!(**args)
1189
+ @member = args[:member] if args.key?(:member)
1190
+ @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
1191
+ @relation_type = args[:relation_type] if args.key?(:relation_type)
1192
+ @roles = args[:roles] if args.key?(:roles)
1193
+ end
1194
+ end
1195
+
1196
+ # A membership within the Cloud Identity Groups API. A `Membership` defines a
1197
+ # relationship between a `Group` and an entity belonging to that `Group`,
1198
+ # referred to as a "member".
1199
+ class Membership
1200
+ include Google::Apis::Core::Hashable
1201
+
1202
+ # Output only. The time when the `Membership` was created.
1203
+ # Corresponds to the JSON property `createTime`
1204
+ # @return [String]
1205
+ attr_accessor :create_time
1206
+
1207
+ # Output only. The [resource name](https://cloud.google.com/apis/design/
1208
+ # resource_names) of the `Membership`. Shall be of the form `groups/`group_id`/
1209
+ # memberships/`membership_id``.
1210
+ # Corresponds to the JSON property `name`
1211
+ # @return [String]
1212
+ attr_accessor :name
1213
+
1214
+ # A unique identifier for an entity in the Cloud Identity Groups API. An entity
1215
+ # can represent either a group with an optional `namespace` or a user without a `
1216
+ # namespace`. The combination of `id` and `namespace` must be unique; however,
1217
+ # the same `id` can be used with different `namespace`s.
1218
+ # Corresponds to the JSON property `preferredMemberKey`
1219
+ # @return [Google::Apis::CloudidentityV1::EntityKey]
1220
+ attr_accessor :preferred_member_key
1221
+
1222
+ # The `MembershipRole`s that apply to the `Membership`. If unspecified, defaults
1223
+ # to a single `MembershipRole` with `name` `MEMBER`. Must not contain duplicate `
1224
+ # MembershipRole`s with the same `name`.
1225
+ # Corresponds to the JSON property `roles`
1226
+ # @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
1227
+ attr_accessor :roles
1228
+
1229
+ # Output only. The type of the membership.
1230
+ # Corresponds to the JSON property `type`
1231
+ # @return [String]
1232
+ attr_accessor :type
1233
+
1234
+ # Output only. The time when the `Membership` was last updated.
1235
+ # Corresponds to the JSON property `updateTime`
1236
+ # @return [String]
1237
+ attr_accessor :update_time
1238
+
1239
+ def initialize(**args)
1240
+ update!(**args)
1241
+ end
1242
+
1243
+ # Update properties of this object
1244
+ def update!(**args)
1245
+ @create_time = args[:create_time] if args.key?(:create_time)
1246
+ @name = args[:name] if args.key?(:name)
1247
+ @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
1248
+ @roles = args[:roles] if args.key?(:roles)
1249
+ @type = args[:type] if args.key?(:type)
1250
+ @update_time = args[:update_time] if args.key?(:update_time)
1251
+ end
1252
+ end
1253
+
1254
+ # Membership graph's path information as an adjacency list.
1255
+ class MembershipAdjacencyList
1256
+ include Google::Apis::Core::Hashable
1257
+
1258
+ # Each edge contains information about the member that belongs to this group.
1259
+ # Note: Fields returned here will help identify the specific Membership resource
1260
+ # (e.g name, preferred_member_key and role), but may not be a comprehensive list
1261
+ # of all fields.
1262
+ # Corresponds to the JSON property `edges`
1263
+ # @return [Array<Google::Apis::CloudidentityV1::Membership>]
1264
+ attr_accessor :edges
1265
+
1266
+ # Resource name of the group that the members belong to.
1267
+ # Corresponds to the JSON property `group`
1268
+ # @return [String]
1269
+ attr_accessor :group
1270
+
1271
+ def initialize(**args)
1272
+ update!(**args)
1273
+ end
1274
+
1275
+ # Update properties of this object
1276
+ def update!(**args)
1277
+ @edges = args[:edges] if args.key?(:edges)
1278
+ @group = args[:group] if args.key?(:group)
1279
+ end
1280
+ end
1281
+
1282
+ # A membership role within the Cloud Identity Groups API. A `MembershipRole`
1283
+ # defines the privileges granted to a `Membership`.
1284
+ class MembershipRole
1285
+ include Google::Apis::Core::Hashable
1286
+
1287
+ # The name of the `MembershipRole`. Must be one of `OWNER`, `MANAGER`, `MEMBER`.
1288
+ # Corresponds to the JSON property `name`
1289
+ # @return [String]
1290
+ attr_accessor :name
1291
+
1292
+ def initialize(**args)
1293
+ update!(**args)
1294
+ end
1295
+
1296
+ # Update properties of this object
1297
+ def update!(**args)
1298
+ @name = args[:name] if args.key?(:name)
1299
+ end
1300
+ end
1301
+
1302
+ # The request message for MembershipsService.ModifyMembershipRoles.
1303
+ class ModifyMembershipRolesRequest
1304
+ include Google::Apis::Core::Hashable
1305
+
1306
+ # The `MembershipRole`s to be added. Adding or removing roles in the same
1307
+ # request as updating roles is not supported. Must not be set if `
1308
+ # update_roles_params` is set.
1309
+ # Corresponds to the JSON property `addRoles`
1310
+ # @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
1311
+ attr_accessor :add_roles
1312
+
1313
+ # The `name`s of the `MembershipRole`s to be removed. Adding or removing roles
1314
+ # in the same request as updating roles is not supported. It is not possible to
1315
+ # remove the `MEMBER` `MembershipRole`. If you wish to delete a `Membership`,
1316
+ # call MembershipsService.DeleteMembership instead. Must not contain `MEMBER`.
1317
+ # Must not be set if `update_roles_params` is set.
1318
+ # Corresponds to the JSON property `removeRoles`
1319
+ # @return [Array<String>]
1320
+ attr_accessor :remove_roles
1321
+
1322
+ def initialize(**args)
1323
+ update!(**args)
1324
+ end
1325
+
1326
+ # Update properties of this object
1327
+ def update!(**args)
1328
+ @add_roles = args[:add_roles] if args.key?(:add_roles)
1329
+ @remove_roles = args[:remove_roles] if args.key?(:remove_roles)
1330
+ end
1331
+ end
1332
+
1333
+ # The response message for MembershipsService.ModifyMembershipRoles.
1334
+ class ModifyMembershipRolesResponse
1335
+ include Google::Apis::Core::Hashable
1336
+
1337
+ # A membership within the Cloud Identity Groups API. A `Membership` defines a
1338
+ # relationship between a `Group` and an entity belonging to that `Group`,
1339
+ # referred to as a "member".
1340
+ # Corresponds to the JSON property `membership`
1341
+ # @return [Google::Apis::CloudidentityV1::Membership]
1342
+ attr_accessor :membership
1343
+
1344
+ def initialize(**args)
1345
+ update!(**args)
1346
+ end
1347
+
1348
+ # Update properties of this object
1349
+ def update!(**args)
1350
+ @membership = args[:membership] if args.key?(:membership)
1351
+ end
1352
+ end
1353
+
1354
+ # This resource represents a long-running operation that is the result of a
1355
+ # network API call.
1356
+ class Operation
1357
+ include Google::Apis::Core::Hashable
1358
+
1359
+ # If the value is `false`, it means the operation is still in progress. If `true`
1360
+ # , the operation is completed, and either `error` or `response` is available.
1361
+ # Corresponds to the JSON property `done`
1362
+ # @return [Boolean]
1363
+ attr_accessor :done
1364
+ alias_method :done?, :done
1365
+
1366
+ # The `Status` type defines a logical error model that is suitable for different
1367
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1368
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1369
+ # data: error code, error message, and error details. You can find out more
1370
+ # about this error model and how to work with it in the [API Design Guide](https:
1371
+ # //cloud.google.com/apis/design/errors).
1372
+ # Corresponds to the JSON property `error`
1373
+ # @return [Google::Apis::CloudidentityV1::Status]
1374
+ attr_accessor :error
1375
+
1376
+ # Service-specific metadata associated with the operation. It typically contains
1377
+ # progress information and common metadata such as create time. Some services
1378
+ # might not provide such metadata. Any method that returns a long-running
1379
+ # operation should document the metadata type, if any.
1380
+ # Corresponds to the JSON property `metadata`
1381
+ # @return [Hash<String,Object>]
1382
+ attr_accessor :metadata
1383
+
1384
+ # The server-assigned name, which is only unique within the same service that
1385
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1386
+ # be a resource name ending with `operations/`unique_id``.
1387
+ # Corresponds to the JSON property `name`
1388
+ # @return [String]
1389
+ attr_accessor :name
1390
+
1391
+ # The normal response of the operation in case of success. If the original
1392
+ # method returns no data on success, such as `Delete`, the response is `google.
1393
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1394
+ # the response should be the resource. For other methods, the response should
1395
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1396
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1397
+ # response type is `TakeSnapshotResponse`.
1398
+ # Corresponds to the JSON property `response`
1399
+ # @return [Hash<String,Object>]
1400
+ attr_accessor :response
1401
+
1402
+ def initialize(**args)
1403
+ update!(**args)
1404
+ end
1405
+
1406
+ # Update properties of this object
1407
+ def update!(**args)
1408
+ @done = args[:done] if args.key?(:done)
1409
+ @error = args[:error] if args.key?(:error)
1410
+ @metadata = args[:metadata] if args.key?(:metadata)
1411
+ @name = args[:name] if args.key?(:name)
1412
+ @response = args[:response] if args.key?(:response)
1413
+ end
1414
+ end
1415
+
1416
+ # The response message for GroupsService.SearchGroups.
1417
+ class SearchGroupsResponse
1418
+ include Google::Apis::Core::Hashable
1419
+
1420
+ # The `Group`s that match the search query.
1421
+ # Corresponds to the JSON property `groups`
1422
+ # @return [Array<Google::Apis::CloudidentityV1::Group>]
1423
+ attr_accessor :groups
1424
+
1425
+ # A continuation token to retrieve the next page of results, or empty if there
1426
+ # are no more results available.
1427
+ # Corresponds to the JSON property `nextPageToken`
1428
+ # @return [String]
1429
+ attr_accessor :next_page_token
1430
+
1431
+ def initialize(**args)
1432
+ update!(**args)
1433
+ end
1434
+
1435
+ # Update properties of this object
1436
+ def update!(**args)
1437
+ @groups = args[:groups] if args.key?(:groups)
1438
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1439
+ end
1440
+ end
1441
+
1442
+ # The response message for MembershipsService.SearchTransitiveGroups.
1443
+ class SearchTransitiveGroupsResponse
1444
+ include Google::Apis::Core::Hashable
1445
+
1446
+ # List of transitive groups satisfying the query.
1447
+ # Corresponds to the JSON property `memberships`
1448
+ # @return [Array<Google::Apis::CloudidentityV1::GroupRelation>]
1449
+ attr_accessor :memberships
1450
+
1451
+ # Token to retrieve the next page of results, or empty if there are no more
1452
+ # results available for listing.
1453
+ # Corresponds to the JSON property `nextPageToken`
1454
+ # @return [String]
1455
+ attr_accessor :next_page_token
1456
+
1457
+ def initialize(**args)
1458
+ update!(**args)
1459
+ end
1460
+
1461
+ # Update properties of this object
1462
+ def update!(**args)
1463
+ @memberships = args[:memberships] if args.key?(:memberships)
1464
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1465
+ end
1466
+ end
1467
+
1468
+ # The response message for MembershipsService.SearchTransitiveMemberships.
1469
+ class SearchTransitiveMembershipsResponse
1470
+ include Google::Apis::Core::Hashable
1471
+
1472
+ # List of transitive members satisfying the query.
1473
+ # Corresponds to the JSON property `memberships`
1474
+ # @return [Array<Google::Apis::CloudidentityV1::MemberRelation>]
1475
+ attr_accessor :memberships
1476
+
1477
+ # Token to retrieve the next page of results, or empty if there are no more
1478
+ # results.
1479
+ # Corresponds to the JSON property `nextPageToken`
1480
+ # @return [String]
1481
+ attr_accessor :next_page_token
1482
+
1483
+ def initialize(**args)
1484
+ update!(**args)
1485
+ end
1486
+
1487
+ # Update properties of this object
1488
+ def update!(**args)
1489
+ @memberships = args[:memberships] if args.key?(:memberships)
1490
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1491
+ end
1492
+ end
1493
+
1494
+ # The `Status` type defines a logical error model that is suitable for different
1495
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1496
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1497
+ # data: error code, error message, and error details. You can find out more
1498
+ # about this error model and how to work with it in the [API Design Guide](https:
1499
+ # //cloud.google.com/apis/design/errors).
1500
+ class Status
1501
+ include Google::Apis::Core::Hashable
1502
+
1503
+ # The status code, which should be an enum value of google.rpc.Code.
1504
+ # Corresponds to the JSON property `code`
1505
+ # @return [Fixnum]
1506
+ attr_accessor :code
1507
+
1508
+ # A list of messages that carry the error details. There is a common set of
1509
+ # message types for APIs to use.
1510
+ # Corresponds to the JSON property `details`
1511
+ # @return [Array<Hash<String,Object>>]
1512
+ attr_accessor :details
1513
+
1514
+ # A developer-facing error message, which should be in English. Any user-facing
1515
+ # error message should be localized and sent in the google.rpc.Status.details
1516
+ # field, or localized by the client.
1517
+ # Corresponds to the JSON property `message`
1518
+ # @return [String]
1519
+ attr_accessor :message
1520
+
1521
+ def initialize(**args)
1522
+ update!(**args)
1523
+ end
1524
+
1525
+ # Update properties of this object
1526
+ def update!(**args)
1527
+ @code = args[:code] if args.key?(:code)
1528
+ @details = args[:details] if args.key?(:details)
1529
+ @message = args[:message] if args.key?(:message)
1530
+ end
1531
+ end
1532
+
1533
+ # Message representing the role of a TransitiveMembership.
1534
+ class TransitiveMembershipRole
1535
+ include Google::Apis::Core::Hashable
1536
+
1537
+ # TransitiveMembershipRole in string format. Currently supported
1538
+ # TransitiveMembershipRoles: `"MEMBER"`, `"OWNER"`, and `"MANAGER"`.
1539
+ # Corresponds to the JSON property `role`
1540
+ # @return [String]
1541
+ attr_accessor :role
1542
+
1543
+ def initialize(**args)
1544
+ update!(**args)
1545
+ end
1546
+
1547
+ # Update properties of this object
1548
+ def update!(**args)
1549
+ @role = args[:role] if args.key?(:role)
1550
+ end
1551
+ end
1552
+ end
1553
+ end
1554
+ end