google-apis-iap_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: ab9ed1f2c09c975030bdc632967b778fe388fe298c5b0c9975eafe9b7fac2e80
4
+ data.tar.gz: 3191567058667e0d2d56c6d592a1b6505e1a7fda81f466be6c813f6a8acf6b92
5
+ SHA512:
6
+ metadata.gz: de2ce515e9b5ff3b4547e7ce53699c9218334441fa1df9bef11df6fbe468f2f2af96280a871bf5910db0244cffa3e7bd39100eb0c0a446deb8d60087432d281b
7
+ data.tar.gz: 6aceabd1eb49044968342b20e8af716b6d36580ba64f5d7caeec9aa91e6e597e6c28d592d7c72e44ba7e6eadfdcbb638534571a1d7c4d91a2b1e33d6b8baba97
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-iap_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/iap_v1/*.rb
9
+ lib/google/apis/iap_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-iap_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201204
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-Aware Proxy API
2
+
3
+ This is a simple client library for version V1 of the Cloud Identity-Aware Proxy 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/iap.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-iap_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-iap_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/iap_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::IapV1::CloudIAPService.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 Iap service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Identity-Aware Proxy API, see the {Google::Apis::IapV1::CloudIAPService 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-iap_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/iap) 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/iap_v1"
@@ -0,0 +1,36 @@
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/iap_v1/service.rb'
16
+ require 'google/apis/iap_v1/classes.rb'
17
+ require 'google/apis/iap_v1/representations.rb'
18
+ require 'google/apis/iap_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Identity-Aware Proxy API
23
+ #
24
+ # Controls access to cloud applications running on Google Cloud Platform.
25
+ #
26
+ # @see https://cloud.google.com/iap
27
+ module IapV1
28
+ # Version of the Cloud Identity-Aware Proxy API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,888 @@
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 IapV1
24
+
25
+ # Custom content configuration for access denied page. IAP allows customers to
26
+ # define a custom URI to use as the error page when access is denied to users.
27
+ # If IAP prevents access to this page, the default IAP error page will be
28
+ # displayed instead.
29
+ class AccessDeniedPageSettings
30
+ include Google::Apis::Core::Hashable
31
+
32
+ # The URI to be redirected to when access is denied.
33
+ # Corresponds to the JSON property `accessDeniedPageUri`
34
+ # @return [String]
35
+ attr_accessor :access_denied_page_uri
36
+
37
+ def initialize(**args)
38
+ update!(**args)
39
+ end
40
+
41
+ # Update properties of this object
42
+ def update!(**args)
43
+ @access_denied_page_uri = args[:access_denied_page_uri] if args.key?(:access_denied_page_uri)
44
+ end
45
+ end
46
+
47
+ # Access related settings for IAP protected apps.
48
+ class AccessSettings
49
+ include Google::Apis::Core::Hashable
50
+
51
+ # Allows customers to configure HTTP request paths that'll allow HTTP OPTIONS
52
+ # call to bypass authentication and authorization.
53
+ # Corresponds to the JSON property `corsSettings`
54
+ # @return [Google::Apis::IapV1::CorsSettings]
55
+ attr_accessor :cors_settings
56
+
57
+ # Allows customers to configure tenant_id for GCIP instance per-app.
58
+ # Corresponds to the JSON property `gcipSettings`
59
+ # @return [Google::Apis::IapV1::GcipSettings]
60
+ attr_accessor :gcip_settings
61
+
62
+ # Configuration for OAuth login&consent flow behavior as well as for OAuth
63
+ # Credentials.
64
+ # Corresponds to the JSON property `oauthSettings`
65
+ # @return [Google::Apis::IapV1::OAuthSettings]
66
+ attr_accessor :oauth_settings
67
+
68
+ # PolicyDelegationConfig allows google-internal teams to use IAP for apps hosted
69
+ # in a tenant project. Using these settings, the app can delegate permission
70
+ # check to happen against the linked customer project. This is only ever
71
+ # supposed to be used by google internal teams, hence the restriction on the
72
+ # proto.
73
+ # Corresponds to the JSON property `policyDelegationSettings`
74
+ # @return [Google::Apis::IapV1::PolicyDelegationSettings]
75
+ attr_accessor :policy_delegation_settings
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @cors_settings = args[:cors_settings] if args.key?(:cors_settings)
84
+ @gcip_settings = args[:gcip_settings] if args.key?(:gcip_settings)
85
+ @oauth_settings = args[:oauth_settings] if args.key?(:oauth_settings)
86
+ @policy_delegation_settings = args[:policy_delegation_settings] if args.key?(:policy_delegation_settings)
87
+ end
88
+ end
89
+
90
+ # Wrapper over application specific settings for IAP.
91
+ class ApplicationSettings
92
+ include Google::Apis::Core::Hashable
93
+
94
+ # Custom content configuration for access denied page. IAP allows customers to
95
+ # define a custom URI to use as the error page when access is denied to users.
96
+ # If IAP prevents access to this page, the default IAP error page will be
97
+ # displayed instead.
98
+ # Corresponds to the JSON property `accessDeniedPageSettings`
99
+ # @return [Google::Apis::IapV1::AccessDeniedPageSettings]
100
+ attr_accessor :access_denied_page_settings
101
+
102
+ # The Domain value to set for cookies generated by IAP. This value is not
103
+ # validated by the API, but will be ignored at runtime if invalid.
104
+ # Corresponds to the JSON property `cookieDomain`
105
+ # @return [String]
106
+ attr_accessor :cookie_domain
107
+
108
+ # Configuration for RCTokens generated for CSM workloads protected by IAP.
109
+ # RCTokens are IAP generated JWTs that can be verified at the application. The
110
+ # RCToken is primarily used for ISTIO deployments, and can be scoped to a single
111
+ # mesh by configuring the audience field accordingly
112
+ # Corresponds to the JSON property `csmSettings`
113
+ # @return [Google::Apis::IapV1::CsmSettings]
114
+ attr_accessor :csm_settings
115
+
116
+ def initialize(**args)
117
+ update!(**args)
118
+ end
119
+
120
+ # Update properties of this object
121
+ def update!(**args)
122
+ @access_denied_page_settings = args[:access_denied_page_settings] if args.key?(:access_denied_page_settings)
123
+ @cookie_domain = args[:cookie_domain] if args.key?(:cookie_domain)
124
+ @csm_settings = args[:csm_settings] if args.key?(:csm_settings)
125
+ end
126
+ end
127
+
128
+ # Associates `members` with a `role`.
129
+ class Binding
130
+ include Google::Apis::Core::Hashable
131
+
132
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
133
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
134
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
135
+ # "Summary size limit" description: "Determines if a summary is less than 100
136
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
137
+ # Requestor is owner" description: "Determines if requestor is the document
138
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
139
+ # Logic): title: "Public documents" description: "Determine whether the document
140
+ # should be publicly visible" expression: "document.type != 'private' &&
141
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
142
+ # string" description: "Create a notification string with a timestamp."
143
+ # expression: "'New message received at ' + string(document.create_time)" The
144
+ # exact variables and functions that may be referenced within an expression are
145
+ # determined by the service that evaluates it. See the service documentation for
146
+ # additional information.
147
+ # Corresponds to the JSON property `condition`
148
+ # @return [Google::Apis::IapV1::Expr]
149
+ attr_accessor :condition
150
+
151
+ # Specifies the identities requesting access for a Cloud Platform resource. `
152
+ # members` can have the following values: * `allUsers`: A special identifier
153
+ # that represents anyone who is on the internet; with or without a Google
154
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
155
+ # anyone who is authenticated with a Google account or a service account. * `
156
+ # user:`emailid``: An email address that represents a specific Google account.
157
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
158
+ # address that represents a service account. For example, `my-other-app@appspot.
159
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
160
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
161
+ # `uniqueid``: An email address (plus unique identifier) representing a user
162
+ # that has been recently deleted. For example, `alice@example.com?uid=
163
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
164
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
165
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
166
+ # identifier) representing a service account that has been recently deleted. For
167
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
168
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
169
+ # emailid`` and the undeleted service account retains the role in the binding. *
170
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
171
+ # identifier) representing a Google group that has been recently deleted. For
172
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
173
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
174
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
175
+ # primary) that represents all the users of that domain. For example, `google.
176
+ # com` or `example.com`.
177
+ # Corresponds to the JSON property `members`
178
+ # @return [Array<String>]
179
+ attr_accessor :members
180
+
181
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
182
+ # , or `roles/owner`.
183
+ # Corresponds to the JSON property `role`
184
+ # @return [String]
185
+ attr_accessor :role
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @condition = args[:condition] if args.key?(:condition)
194
+ @members = args[:members] if args.key?(:members)
195
+ @role = args[:role] if args.key?(:role)
196
+ end
197
+ end
198
+
199
+ # OAuth brand data. NOTE: Only contains a portion of the data that describes a
200
+ # brand.
201
+ class Brand
202
+ include Google::Apis::Core::Hashable
203
+
204
+ # Application name displayed on OAuth consent screen.
205
+ # Corresponds to the JSON property `applicationTitle`
206
+ # @return [String]
207
+ attr_accessor :application_title
208
+
209
+ # Output only. Identifier of the brand. NOTE: GCP project number achieves the
210
+ # same brand identification purpose as only one brand per project can be created.
211
+ # Corresponds to the JSON property `name`
212
+ # @return [String]
213
+ attr_accessor :name
214
+
215
+ # Output only. Whether the brand is only intended for usage inside the G Suite
216
+ # organization only.
217
+ # Corresponds to the JSON property `orgInternalOnly`
218
+ # @return [Boolean]
219
+ attr_accessor :org_internal_only
220
+ alias_method :org_internal_only?, :org_internal_only
221
+
222
+ # Support email displayed on the OAuth consent screen.
223
+ # Corresponds to the JSON property `supportEmail`
224
+ # @return [String]
225
+ attr_accessor :support_email
226
+
227
+ def initialize(**args)
228
+ update!(**args)
229
+ end
230
+
231
+ # Update properties of this object
232
+ def update!(**args)
233
+ @application_title = args[:application_title] if args.key?(:application_title)
234
+ @name = args[:name] if args.key?(:name)
235
+ @org_internal_only = args[:org_internal_only] if args.key?(:org_internal_only)
236
+ @support_email = args[:support_email] if args.key?(:support_email)
237
+ end
238
+ end
239
+
240
+ # Allows customers to configure HTTP request paths that'll allow HTTP OPTIONS
241
+ # call to bypass authentication and authorization.
242
+ class CorsSettings
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # Configuration to allow HTTP OPTIONS calls to skip authorization. If undefined,
246
+ # IAP will not apply any special logic to OPTIONS requests.
247
+ # Corresponds to the JSON property `allowHttpOptions`
248
+ # @return [Boolean]
249
+ attr_accessor :allow_http_options
250
+ alias_method :allow_http_options?, :allow_http_options
251
+
252
+ def initialize(**args)
253
+ update!(**args)
254
+ end
255
+
256
+ # Update properties of this object
257
+ def update!(**args)
258
+ @allow_http_options = args[:allow_http_options] if args.key?(:allow_http_options)
259
+ end
260
+ end
261
+
262
+ # Configuration for RCTokens generated for CSM workloads protected by IAP.
263
+ # RCTokens are IAP generated JWTs that can be verified at the application. The
264
+ # RCToken is primarily used for ISTIO deployments, and can be scoped to a single
265
+ # mesh by configuring the audience field accordingly
266
+ class CsmSettings
267
+ include Google::Apis::Core::Hashable
268
+
269
+ # Audience claim set in the generated RCToken. This value is not validated by
270
+ # IAP.
271
+ # Corresponds to the JSON property `rctokenAud`
272
+ # @return [String]
273
+ attr_accessor :rctoken_aud
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ @rctoken_aud = args[:rctoken_aud] if args.key?(:rctoken_aud)
282
+ end
283
+ end
284
+
285
+ # A generic empty message that you can re-use to avoid defining duplicated empty
286
+ # messages in your APIs. A typical example is to use it as the request or the
287
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
288
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
289
+ # `Empty` is empty JSON object ````.
290
+ class Empty
291
+ include Google::Apis::Core::Hashable
292
+
293
+ def initialize(**args)
294
+ update!(**args)
295
+ end
296
+
297
+ # Update properties of this object
298
+ def update!(**args)
299
+ end
300
+ end
301
+
302
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
303
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
304
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
305
+ # "Summary size limit" description: "Determines if a summary is less than 100
306
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
307
+ # Requestor is owner" description: "Determines if requestor is the document
308
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
309
+ # Logic): title: "Public documents" description: "Determine whether the document
310
+ # should be publicly visible" expression: "document.type != 'private' &&
311
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
312
+ # string" description: "Create a notification string with a timestamp."
313
+ # expression: "'New message received at ' + string(document.create_time)" The
314
+ # exact variables and functions that may be referenced within an expression are
315
+ # determined by the service that evaluates it. See the service documentation for
316
+ # additional information.
317
+ class Expr
318
+ include Google::Apis::Core::Hashable
319
+
320
+ # Optional. Description of the expression. This is a longer text which describes
321
+ # the expression, e.g. when hovered over it in a UI.
322
+ # Corresponds to the JSON property `description`
323
+ # @return [String]
324
+ attr_accessor :description
325
+
326
+ # Textual representation of an expression in Common Expression Language syntax.
327
+ # Corresponds to the JSON property `expression`
328
+ # @return [String]
329
+ attr_accessor :expression
330
+
331
+ # Optional. String indicating the location of the expression for error reporting,
332
+ # e.g. a file name and a position in the file.
333
+ # Corresponds to the JSON property `location`
334
+ # @return [String]
335
+ attr_accessor :location
336
+
337
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
338
+ # This can be used e.g. in UIs which allow to enter the expression.
339
+ # Corresponds to the JSON property `title`
340
+ # @return [String]
341
+ attr_accessor :title
342
+
343
+ def initialize(**args)
344
+ update!(**args)
345
+ end
346
+
347
+ # Update properties of this object
348
+ def update!(**args)
349
+ @description = args[:description] if args.key?(:description)
350
+ @expression = args[:expression] if args.key?(:expression)
351
+ @location = args[:location] if args.key?(:location)
352
+ @title = args[:title] if args.key?(:title)
353
+ end
354
+ end
355
+
356
+ # Allows customers to configure tenant_id for GCIP instance per-app.
357
+ class GcipSettings
358
+ include Google::Apis::Core::Hashable
359
+
360
+ # Login page URI associated with the GCIP tenants. Typically, all resources
361
+ # within the same project share the same login page, though it could be
362
+ # overridden at the sub resource level.
363
+ # Corresponds to the JSON property `loginPageUri`
364
+ # @return [String]
365
+ attr_accessor :login_page_uri
366
+
367
+ # GCIP tenant ids that are linked to the IAP resource. tenant_ids could be a
368
+ # string beginning with a number character to indicate authenticating with GCIP
369
+ # tenant flow, or in the format of _ to indicate authenticating with GCIP agent
370
+ # flow. If agent flow is used, tenant_ids should only contain one single element,
371
+ # while for tenant flow, tenant_ids can contain multiple elements.
372
+ # Corresponds to the JSON property `tenantIds`
373
+ # @return [Array<String>]
374
+ attr_accessor :tenant_ids
375
+
376
+ def initialize(**args)
377
+ update!(**args)
378
+ end
379
+
380
+ # Update properties of this object
381
+ def update!(**args)
382
+ @login_page_uri = args[:login_page_uri] if args.key?(:login_page_uri)
383
+ @tenant_ids = args[:tenant_ids] if args.key?(:tenant_ids)
384
+ end
385
+ end
386
+
387
+ # Request message for `GetIamPolicy` method.
388
+ class GetIamPolicyRequest
389
+ include Google::Apis::Core::Hashable
390
+
391
+ # Encapsulates settings provided to GetIamPolicy.
392
+ # Corresponds to the JSON property `options`
393
+ # @return [Google::Apis::IapV1::GetPolicyOptions]
394
+ attr_accessor :options
395
+
396
+ def initialize(**args)
397
+ update!(**args)
398
+ end
399
+
400
+ # Update properties of this object
401
+ def update!(**args)
402
+ @options = args[:options] if args.key?(:options)
403
+ end
404
+ end
405
+
406
+ # Encapsulates settings provided to GetIamPolicy.
407
+ class GetPolicyOptions
408
+ include Google::Apis::Core::Hashable
409
+
410
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
411
+ # 3. Requests specifying an invalid value will be rejected. Requests for
412
+ # policies with any conditional bindings must specify version 3. Policies
413
+ # without any conditional bindings may specify any valid value or leave the
414
+ # field unset. To learn which resources support conditions in their IAM policies,
415
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
416
+ # resource-policies).
417
+ # Corresponds to the JSON property `requestedPolicyVersion`
418
+ # @return [Fixnum]
419
+ attr_accessor :requested_policy_version
420
+
421
+ def initialize(**args)
422
+ update!(**args)
423
+ end
424
+
425
+ # Update properties of this object
426
+ def update!(**args)
427
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
428
+ end
429
+ end
430
+
431
+ # The IAP configurable settings.
432
+ class IapSettings
433
+ include Google::Apis::Core::Hashable
434
+
435
+ # Access related settings for IAP protected apps.
436
+ # Corresponds to the JSON property `accessSettings`
437
+ # @return [Google::Apis::IapV1::AccessSettings]
438
+ attr_accessor :access_settings
439
+
440
+ # Wrapper over application specific settings for IAP.
441
+ # Corresponds to the JSON property `applicationSettings`
442
+ # @return [Google::Apis::IapV1::ApplicationSettings]
443
+ attr_accessor :application_settings
444
+
445
+ # Required. The resource name of the IAP protected resource.
446
+ # Corresponds to the JSON property `name`
447
+ # @return [String]
448
+ attr_accessor :name
449
+
450
+ def initialize(**args)
451
+ update!(**args)
452
+ end
453
+
454
+ # Update properties of this object
455
+ def update!(**args)
456
+ @access_settings = args[:access_settings] if args.key?(:access_settings)
457
+ @application_settings = args[:application_settings] if args.key?(:application_settings)
458
+ @name = args[:name] if args.key?(:name)
459
+ end
460
+ end
461
+
462
+ # Contains the data that describes an Identity Aware Proxy owned client.
463
+ class IdentityAwareProxyClient
464
+ include Google::Apis::Core::Hashable
465
+
466
+ # Human-friendly name given to the OAuth client.
467
+ # Corresponds to the JSON property `displayName`
468
+ # @return [String]
469
+ attr_accessor :display_name
470
+
471
+ # Output only. Unique identifier of the OAuth client.
472
+ # Corresponds to the JSON property `name`
473
+ # @return [String]
474
+ attr_accessor :name
475
+
476
+ # Output only. Client secret of the OAuth client.
477
+ # Corresponds to the JSON property `secret`
478
+ # @return [String]
479
+ attr_accessor :secret
480
+
481
+ def initialize(**args)
482
+ update!(**args)
483
+ end
484
+
485
+ # Update properties of this object
486
+ def update!(**args)
487
+ @display_name = args[:display_name] if args.key?(:display_name)
488
+ @name = args[:name] if args.key?(:name)
489
+ @secret = args[:secret] if args.key?(:secret)
490
+ end
491
+ end
492
+
493
+ # Response message for ListBrands.
494
+ class ListBrandsResponse
495
+ include Google::Apis::Core::Hashable
496
+
497
+ # Brands existing in the project.
498
+ # Corresponds to the JSON property `brands`
499
+ # @return [Array<Google::Apis::IapV1::Brand>]
500
+ attr_accessor :brands
501
+
502
+ def initialize(**args)
503
+ update!(**args)
504
+ end
505
+
506
+ # Update properties of this object
507
+ def update!(**args)
508
+ @brands = args[:brands] if args.key?(:brands)
509
+ end
510
+ end
511
+
512
+ # Response message for ListIdentityAwareProxyClients.
513
+ class ListIdentityAwareProxyClientsResponse
514
+ include Google::Apis::Core::Hashable
515
+
516
+ # Clients existing in the brand.
517
+ # Corresponds to the JSON property `identityAwareProxyClients`
518
+ # @return [Array<Google::Apis::IapV1::IdentityAwareProxyClient>]
519
+ attr_accessor :identity_aware_proxy_clients
520
+
521
+ # A token, which can be send as `page_token` to retrieve the next page. If this
522
+ # field is omitted, there are no subsequent pages.
523
+ # Corresponds to the JSON property `nextPageToken`
524
+ # @return [String]
525
+ attr_accessor :next_page_token
526
+
527
+ def initialize(**args)
528
+ update!(**args)
529
+ end
530
+
531
+ # Update properties of this object
532
+ def update!(**args)
533
+ @identity_aware_proxy_clients = args[:identity_aware_proxy_clients] if args.key?(:identity_aware_proxy_clients)
534
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
535
+ end
536
+ end
537
+
538
+ # Configuration for OAuth login&consent flow behavior as well as for OAuth
539
+ # Credentials.
540
+ class OAuthSettings
541
+ include Google::Apis::Core::Hashable
542
+
543
+ # Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect
544
+ # to primary IDP by skipping Google's login screen. https://developers.google.
545
+ # com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that
546
+ # the id token's hd claim matches this value since access behavior is managed by
547
+ # IAM policies.
548
+ # Corresponds to the JSON property `loginHint`
549
+ # @return [String]
550
+ attr_accessor :login_hint
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @login_hint = args[:login_hint] if args.key?(:login_hint)
559
+ end
560
+ end
561
+
562
+ # An Identity and Access Management (IAM) policy, which specifies access
563
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
564
+ # A `binding` binds one or more `members` to a single `role`. Members can be
565
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
566
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
567
+ # role or a user-created custom role. For some types of Google Cloud resources,
568
+ # a `binding` can also specify a `condition`, which is a logical expression that
569
+ # allows access to a resource only if the expression evaluates to `true`. A
570
+ # condition can add constraints based on attributes of the request, the resource,
571
+ # or both. To learn which resources support conditions in their IAM policies,
572
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
573
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
574
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
575
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
576
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
577
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
578
+ # title": "expirable access", "description": "Does not grant access after Sep
579
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
580
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
581
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
582
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
583
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
584
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
585
+ # description: Does not grant access after Sep 2020 expression: request.time <
586
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
587
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
588
+ # google.com/iam/docs/).
589
+ class Policy
590
+ include Google::Apis::Core::Hashable
591
+
592
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
593
+ # condition` that determines how and when the `bindings` are applied. Each of
594
+ # the `bindings` must contain at least one member.
595
+ # Corresponds to the JSON property `bindings`
596
+ # @return [Array<Google::Apis::IapV1::Binding>]
597
+ attr_accessor :bindings
598
+
599
+ # `etag` is used for optimistic concurrency control as a way to help prevent
600
+ # simultaneous updates of a policy from overwriting each other. It is strongly
601
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
602
+ # to perform policy updates in order to avoid race conditions: An `etag` is
603
+ # returned in the response to `getIamPolicy`, and systems are expected to put
604
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
605
+ # applied to the same version of the policy. **Important:** If you use IAM
606
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
607
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
608
+ # with a version `1` policy, and all of the conditions in the version `3` policy
609
+ # are lost.
610
+ # Corresponds to the JSON property `etag`
611
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
612
+ # @return [String]
613
+ attr_accessor :etag
614
+
615
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
616
+ # Requests that specify an invalid value are rejected. Any operation that
617
+ # affects conditional role bindings must specify version `3`. This requirement
618
+ # applies to the following operations: * Getting a policy that includes a
619
+ # conditional role binding * Adding a conditional role binding to a policy *
620
+ # Changing a conditional role binding in a policy * Removing any role binding,
621
+ # with or without a condition, from a policy that includes conditions **
622
+ # Important:** If you use IAM Conditions, you must include the `etag` field
623
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
624
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
625
+ # conditions in the version `3` policy are lost. If a policy does not include
626
+ # any conditions, operations on that policy may specify any valid version or
627
+ # leave the field unset. To learn which resources support conditions in their
628
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
629
+ # conditions/resource-policies).
630
+ # Corresponds to the JSON property `version`
631
+ # @return [Fixnum]
632
+ attr_accessor :version
633
+
634
+ def initialize(**args)
635
+ update!(**args)
636
+ end
637
+
638
+ # Update properties of this object
639
+ def update!(**args)
640
+ @bindings = args[:bindings] if args.key?(:bindings)
641
+ @etag = args[:etag] if args.key?(:etag)
642
+ @version = args[:version] if args.key?(:version)
643
+ end
644
+ end
645
+
646
+ # PolicyDelegationConfig allows google-internal teams to use IAP for apps hosted
647
+ # in a tenant project. Using these settings, the app can delegate permission
648
+ # check to happen against the linked customer project. This is only ever
649
+ # supposed to be used by google internal teams, hence the restriction on the
650
+ # proto.
651
+ class PolicyDelegationSettings
652
+ include Google::Apis::Core::Hashable
653
+
654
+ # Permission to check in IAM.
655
+ # Corresponds to the JSON property `iamPermission`
656
+ # @return [String]
657
+ attr_accessor :iam_permission
658
+
659
+ # The DNS name of the service (e.g. "resourcemanager.googleapis.com"). This
660
+ # should be the domain name part of the full resource names (see https://aip.dev/
661
+ # 122#full-resource-names), which is usually the same as IamServiceSpec.service
662
+ # of the service where the resource type is defined.
663
+ # Corresponds to the JSON property `iamServiceName`
664
+ # @return [String]
665
+ attr_accessor :iam_service_name
666
+
667
+ # Policy name to be checked
668
+ # Corresponds to the JSON property `policyName`
669
+ # @return [Google::Apis::IapV1::PolicyName]
670
+ attr_accessor :policy_name
671
+
672
+ # IAM resource to check permission on
673
+ # Corresponds to the JSON property `resource`
674
+ # @return [Google::Apis::IapV1::Resource]
675
+ attr_accessor :resource
676
+
677
+ def initialize(**args)
678
+ update!(**args)
679
+ end
680
+
681
+ # Update properties of this object
682
+ def update!(**args)
683
+ @iam_permission = args[:iam_permission] if args.key?(:iam_permission)
684
+ @iam_service_name = args[:iam_service_name] if args.key?(:iam_service_name)
685
+ @policy_name = args[:policy_name] if args.key?(:policy_name)
686
+ @resource = args[:resource] if args.key?(:resource)
687
+ end
688
+ end
689
+
690
+ #
691
+ class PolicyName
692
+ include Google::Apis::Core::Hashable
693
+
694
+ #
695
+ # Corresponds to the JSON property `id`
696
+ # @return [String]
697
+ attr_accessor :id
698
+
699
+ # For Cloud IAM: The location of the Policy. Must be empty or "global" for
700
+ # Policies owned by global IAM. Must name a region from prodspec/cloud-iam-
701
+ # cloudspec for Regional IAM Policies, see go/iam-faq#where-is-iam-currently-
702
+ # deployed. For Local IAM: This field should be set to "local".
703
+ # Corresponds to the JSON property `region`
704
+ # @return [String]
705
+ attr_accessor :region
706
+
707
+ # Valid values for type might be 'gce', 'gcs', 'project', 'account' etc.
708
+ # Corresponds to the JSON property `type`
709
+ # @return [String]
710
+ attr_accessor :type
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @id = args[:id] if args.key?(:id)
719
+ @region = args[:region] if args.key?(:region)
720
+ @type = args[:type] if args.key?(:type)
721
+ end
722
+ end
723
+
724
+ # The request sent to ResetIdentityAwareProxyClientSecret.
725
+ class ResetIdentityAwareProxyClientSecretRequest
726
+ include Google::Apis::Core::Hashable
727
+
728
+ def initialize(**args)
729
+ update!(**args)
730
+ end
731
+
732
+ # Update properties of this object
733
+ def update!(**args)
734
+ end
735
+ end
736
+
737
+ #
738
+ class Resource
739
+ include Google::Apis::Core::Hashable
740
+
741
+ # The service defined labels of the resource on which the conditions will be
742
+ # evaluated. The semantics - including the key names - are vague to IAM. If the
743
+ # effective condition has a reference to a `resource.labels[foo]` construct, IAM
744
+ # consults with this map to retrieve the values associated with `foo` key for
745
+ # Conditions evaluation. If the provided key is not found in the labels map, the
746
+ # condition would evaluate to false. This field is in limited use. If your
747
+ # intended use case is not expected to express resource.labels attribute in IAM
748
+ # Conditions, leave this field empty. Before planning on using this attribute
749
+ # please: * Read go/iam-conditions-labels-comm and ensure your service can meet
750
+ # the data availability and management requirements. * Talk to iam-conditions-
751
+ # eng@ about your use case.
752
+ # Corresponds to the JSON property `labels`
753
+ # @return [Hash<String,String>]
754
+ attr_accessor :labels
755
+
756
+ # Name of the resource on which conditions will be evaluated. Must use the
757
+ # Relative Resource Name of the resource, which is the URI path of the resource
758
+ # without the leading "/". Examples are "projects/_/buckets/[BUCKET-ID]" for
759
+ # storage buckets or "projects/[PROJECT-ID]/global/firewalls/[FIREWALL-ID]" for
760
+ # a firewall. This field is required for evaluating conditions with rules on
761
+ # resource names. For a `list` permission check, the resource.name value must be
762
+ # set to the parent resource. If the parent resource is a project, this field
763
+ # should be left unset.
764
+ # Corresponds to the JSON property `name`
765
+ # @return [String]
766
+ attr_accessor :name
767
+
768
+ # The name of the service this resource belongs to. It is configured using the
769
+ # official_service_name of the Service as defined in service configurations
770
+ # under //configs/cloud/resourcetypes. For example, the official_service_name of
771
+ # cloud resource manager service is set as 'cloudresourcemanager.googleapis.com'
772
+ # according to //configs/cloud/resourcetypes/google/cloud/resourcemanager/prod.
773
+ # yaml
774
+ # Corresponds to the JSON property `service`
775
+ # @return [String]
776
+ attr_accessor :service
777
+
778
+ # The public resource type name of the resource on which conditions will be
779
+ # evaluated. It is configured using the official_name of the ResourceType as
780
+ # defined in service configurations under //configs/cloud/resourcetypes. For
781
+ # example, the official_name for GCP projects is set as 'cloudresourcemanager.
782
+ # googleapis.com/Project' according to //configs/cloud/resourcetypes/google/
783
+ # cloud/resourcemanager/prod.yaml For details see go/iam-conditions-integration-
784
+ # guide.
785
+ # Corresponds to the JSON property `type`
786
+ # @return [String]
787
+ attr_accessor :type
788
+
789
+ def initialize(**args)
790
+ update!(**args)
791
+ end
792
+
793
+ # Update properties of this object
794
+ def update!(**args)
795
+ @labels = args[:labels] if args.key?(:labels)
796
+ @name = args[:name] if args.key?(:name)
797
+ @service = args[:service] if args.key?(:service)
798
+ @type = args[:type] if args.key?(:type)
799
+ end
800
+ end
801
+
802
+ # Request message for `SetIamPolicy` method.
803
+ class SetIamPolicyRequest
804
+ include Google::Apis::Core::Hashable
805
+
806
+ # An Identity and Access Management (IAM) policy, which specifies access
807
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
808
+ # A `binding` binds one or more `members` to a single `role`. Members can be
809
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
810
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
811
+ # role or a user-created custom role. For some types of Google Cloud resources,
812
+ # a `binding` can also specify a `condition`, which is a logical expression that
813
+ # allows access to a resource only if the expression evaluates to `true`. A
814
+ # condition can add constraints based on attributes of the request, the resource,
815
+ # or both. To learn which resources support conditions in their IAM policies,
816
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
817
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
818
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
819
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
820
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
821
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
822
+ # title": "expirable access", "description": "Does not grant access after Sep
823
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
824
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
825
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
826
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
827
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
828
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
829
+ # description: Does not grant access after Sep 2020 expression: request.time <
830
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
831
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
832
+ # google.com/iam/docs/).
833
+ # Corresponds to the JSON property `policy`
834
+ # @return [Google::Apis::IapV1::Policy]
835
+ attr_accessor :policy
836
+
837
+ def initialize(**args)
838
+ update!(**args)
839
+ end
840
+
841
+ # Update properties of this object
842
+ def update!(**args)
843
+ @policy = args[:policy] if args.key?(:policy)
844
+ end
845
+ end
846
+
847
+ # Request message for `TestIamPermissions` method.
848
+ class TestIamPermissionsRequest
849
+ include Google::Apis::Core::Hashable
850
+
851
+ # The set of permissions to check for the `resource`. Permissions with wildcards
852
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
853
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
854
+ # Corresponds to the JSON property `permissions`
855
+ # @return [Array<String>]
856
+ attr_accessor :permissions
857
+
858
+ def initialize(**args)
859
+ update!(**args)
860
+ end
861
+
862
+ # Update properties of this object
863
+ def update!(**args)
864
+ @permissions = args[:permissions] if args.key?(:permissions)
865
+ end
866
+ end
867
+
868
+ # Response message for `TestIamPermissions` method.
869
+ class TestIamPermissionsResponse
870
+ include Google::Apis::Core::Hashable
871
+
872
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
873
+ # Corresponds to the JSON property `permissions`
874
+ # @return [Array<String>]
875
+ attr_accessor :permissions
876
+
877
+ def initialize(**args)
878
+ update!(**args)
879
+ end
880
+
881
+ # Update properties of this object
882
+ def update!(**args)
883
+ @permissions = args[:permissions] if args.key?(:permissions)
884
+ end
885
+ end
886
+ end
887
+ end
888
+ end