google-apis-accesscontextmanager_v1beta 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: e6594d29fc3974e0bedf1dc271b22c4cbc88a3d009b502b30c1aa384d4bdcf5d
4
+ data.tar.gz: fd82b7c7a3a81477b40e85122b19fc6cb6013936d6726ad829aa2e0d9158ab3b
5
+ SHA512:
6
+ metadata.gz: 9f189cf29890b1e5973879e0d2750038d93d02f3ef92191ea07fb23925a624347ba553b7b2283e0c813f43f5383db61446dae61a4b7a4da300b16e7c8b2a236f
7
+ data.tar.gz: 5bb8c4c553a420a0caf198f7fe4ef7aa35628b6120e52d5dc4e5222ba34381669d292d40bddc9ff2834bf2fcbec06081a360c0b743a563c5f8dc0dfcf5095f5a
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-accesscontextmanager_v1beta
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/accesscontextmanager_v1beta/*.rb
9
+ lib/google/apis/accesscontextmanager_v1beta.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-accesscontextmanager_v1beta
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20200825
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 V1beta of the Access Context Manager API
2
+
3
+ This is a simple client library for version V1beta of the Access Context Manager 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/accesscontextmanager.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-accesscontextmanager_v1beta', '~> 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-accesscontextmanager_v1beta
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/accesscontextmanager_v1beta"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::AccesscontextmanagerV1beta::AccessContextManagerService.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 Accesscontextmanager service in particular.)
67
+
68
+ For reference information on specific calls in the Access Context Manager API, see the {Google::Apis::AccesscontextmanagerV1beta::AccessContextManagerService 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-accesscontextmanager_v1beta`, 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/access-context-manager/docs/reference/rest/) 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/accesscontextmanager_v1beta"
@@ -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/accesscontextmanager_v1beta/service.rb'
16
+ require 'google/apis/accesscontextmanager_v1beta/classes.rb'
17
+ require 'google/apis/accesscontextmanager_v1beta/representations.rb'
18
+ require 'google/apis/accesscontextmanager_v1beta/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Access Context Manager API
23
+ #
24
+ # An API for setting attribute based access control to requests to GCP services.
25
+ #
26
+ # @see https://cloud.google.com/access-context-manager/docs/reference/rest/
27
+ module AccesscontextmanagerV1beta
28
+ # Version of the Access Context Manager API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1beta'
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,727 @@
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 AccesscontextmanagerV1beta
24
+
25
+ # An `AccessLevel` is a label that can be applied to requests to Google Cloud
26
+ # services, along with a list of requirements necessary for the label to be
27
+ # applied.
28
+ class AccessLevel
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # `BasicLevel` is an `AccessLevel` using a set of recommended features.
32
+ # Corresponds to the JSON property `basic`
33
+ # @return [Google::Apis::AccesscontextmanagerV1beta::BasicLevel]
34
+ attr_accessor :basic
35
+
36
+ # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
37
+ # to represent the necessary conditions for the level to apply to a request. See
38
+ # CEL spec at: https://github.com/google/cel-spec
39
+ # Corresponds to the JSON property `custom`
40
+ # @return [Google::Apis::AccesscontextmanagerV1beta::CustomLevel]
41
+ attr_accessor :custom
42
+
43
+ # Description of the `AccessLevel` and its use. Does not affect behavior.
44
+ # Corresponds to the JSON property `description`
45
+ # @return [String]
46
+ attr_accessor :description
47
+
48
+ # Required. Resource name for the Access Level. The `short_name` component must
49
+ # begin with a letter and only include alphanumeric and '_'. Format: `
50
+ # accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length //
51
+ # of the `short_name` component is 50 characters.
52
+ # Corresponds to the JSON property `name`
53
+ # @return [String]
54
+ attr_accessor :name
55
+
56
+ # Human readable title. Must be unique within the Policy.
57
+ # Corresponds to the JSON property `title`
58
+ # @return [String]
59
+ attr_accessor :title
60
+
61
+ def initialize(**args)
62
+ update!(**args)
63
+ end
64
+
65
+ # Update properties of this object
66
+ def update!(**args)
67
+ @basic = args[:basic] if args.key?(:basic)
68
+ @custom = args[:custom] if args.key?(:custom)
69
+ @description = args[:description] if args.key?(:description)
70
+ @name = args[:name] if args.key?(:name)
71
+ @title = args[:title] if args.key?(:title)
72
+ end
73
+ end
74
+
75
+ # `AccessPolicy` is a container for `AccessLevels` (which define the necessary
76
+ # attributes to use Google Cloud services) and `ServicePerimeters` (which define
77
+ # regions of services able to freely pass data within a perimeter). An access
78
+ # policy is globally visible within an organization, and the restrictions it
79
+ # specifies apply to all projects within an organization.
80
+ class AccessPolicy
81
+ include Google::Apis::Core::Hashable
82
+
83
+ # Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
84
+ # policy_id``
85
+ # Corresponds to the JSON property `name`
86
+ # @return [String]
87
+ attr_accessor :name
88
+
89
+ # Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy.
90
+ # Currently immutable once created. Format: `organizations/`organization_id``
91
+ # Corresponds to the JSON property `parent`
92
+ # @return [String]
93
+ attr_accessor :parent
94
+
95
+ # Required. Human readable title. Does not affect behavior.
96
+ # Corresponds to the JSON property `title`
97
+ # @return [String]
98
+ attr_accessor :title
99
+
100
+ def initialize(**args)
101
+ update!(**args)
102
+ end
103
+
104
+ # Update properties of this object
105
+ def update!(**args)
106
+ @name = args[:name] if args.key?(:name)
107
+ @parent = args[:parent] if args.key?(:parent)
108
+ @title = args[:title] if args.key?(:title)
109
+ end
110
+ end
111
+
112
+ # `BasicLevel` is an `AccessLevel` using a set of recommended features.
113
+ class BasicLevel
114
+ include Google::Apis::Core::Hashable
115
+
116
+ # How the `conditions` list should be combined to determine if a request is
117
+ # granted this `AccessLevel`. If AND is used, each `Condition` in `conditions`
118
+ # must be satisfied for the `AccessLevel` to be applied. If OR is used, at least
119
+ # one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be
120
+ # applied. Default behavior is AND.
121
+ # Corresponds to the JSON property `combiningFunction`
122
+ # @return [String]
123
+ attr_accessor :combining_function
124
+
125
+ # Required. A list of requirements for the `AccessLevel` to be granted.
126
+ # Corresponds to the JSON property `conditions`
127
+ # @return [Array<Google::Apis::AccesscontextmanagerV1beta::Condition>]
128
+ attr_accessor :conditions
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @combining_function = args[:combining_function] if args.key?(:combining_function)
137
+ @conditions = args[:conditions] if args.key?(:conditions)
138
+ end
139
+ end
140
+
141
+ # A condition necessary for an `AccessLevel` to be granted. The Condition is an
142
+ # AND over its fields. So a Condition is true if: 1) the request IP is from one
143
+ # of the listed subnetworks AND 2) the originating device complies with the
144
+ # listed device policy AND 3) all listed access levels are granted AND 4) the
145
+ # request was sent at a time allowed by the DateTimeRestriction.
146
+ class Condition
147
+ include Google::Apis::Core::Hashable
148
+
149
+ # `DevicePolicy` specifies device specific restrictions necessary to acquire a
150
+ # given access level. A `DevicePolicy` specifies requirements for requests from
151
+ # devices to be granted access levels, it does not do any enforcement on the
152
+ # device. `DevicePolicy` acts as an AND over all specified fields, and each
153
+ # repeated field is an OR over its elements. Any unset fields are ignored. For
154
+ # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX,
155
+ # encryption_status: ENCRYPTED`, then the DevicePolicy will be true for requests
156
+ # originating from encrypted Linux desktops and encrypted Windows desktops.
157
+ # Corresponds to the JSON property `devicePolicy`
158
+ # @return [Google::Apis::AccesscontextmanagerV1beta::DevicePolicy]
159
+ attr_accessor :device_policy
160
+
161
+ # CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a
162
+ # CIDR IP address block, the specified IP address portion must be properly
163
+ # truncated (i.e. all the host bits must be zero) or the input is considered
164
+ # malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is not.
165
+ # Similarly, for IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is
166
+ # not. The originating IP of a request must be in one of the listed subnets in
167
+ # order for this Condition to be true. If empty, all IP addresses are allowed.
168
+ # Corresponds to the JSON property `ipSubnetworks`
169
+ # @return [Array<String>]
170
+ attr_accessor :ip_subnetworks
171
+
172
+ # The request must be made by one of the provided user or service accounts.
173
+ # Groups are not supported. Syntax: `user:`emailid`` `serviceAccount:`emailid``
174
+ # If not specified, a request may come from any user.
175
+ # Corresponds to the JSON property `members`
176
+ # @return [Array<String>]
177
+ attr_accessor :members
178
+
179
+ # Whether to negate the Condition. If true, the Condition becomes a NAND over
180
+ # its non-empty fields, each field must be false for the Condition overall to be
181
+ # satisfied. Defaults to false.
182
+ # Corresponds to the JSON property `negate`
183
+ # @return [Boolean]
184
+ attr_accessor :negate
185
+ alias_method :negate?, :negate
186
+
187
+ # The request must originate from one of the provided countries/regions. Must be
188
+ # valid ISO 3166-1 alpha-2 codes.
189
+ # Corresponds to the JSON property `regions`
190
+ # @return [Array<String>]
191
+ attr_accessor :regions
192
+
193
+ # A list of other access levels defined in the same `Policy`, referenced by
194
+ # resource name. Referencing an `AccessLevel` which does not exist is an error.
195
+ # All access levels listed must be granted for the Condition to be true. Example:
196
+ # "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`
197
+ # Corresponds to the JSON property `requiredAccessLevels`
198
+ # @return [Array<String>]
199
+ attr_accessor :required_access_levels
200
+
201
+ def initialize(**args)
202
+ update!(**args)
203
+ end
204
+
205
+ # Update properties of this object
206
+ def update!(**args)
207
+ @device_policy = args[:device_policy] if args.key?(:device_policy)
208
+ @ip_subnetworks = args[:ip_subnetworks] if args.key?(:ip_subnetworks)
209
+ @members = args[:members] if args.key?(:members)
210
+ @negate = args[:negate] if args.key?(:negate)
211
+ @regions = args[:regions] if args.key?(:regions)
212
+ @required_access_levels = args[:required_access_levels] if args.key?(:required_access_levels)
213
+ end
214
+ end
215
+
216
+ # `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
217
+ # to represent the necessary conditions for the level to apply to a request. See
218
+ # CEL spec at: https://github.com/google/cel-spec
219
+ class CustomLevel
220
+ include Google::Apis::Core::Hashable
221
+
222
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
223
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
224
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
225
+ # "Summary size limit" description: "Determines if a summary is less than 100
226
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
227
+ # Requestor is owner" description: "Determines if requestor is the document
228
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
229
+ # Logic): title: "Public documents" description: "Determine whether the document
230
+ # should be publicly visible" expression: "document.type != 'private' &&
231
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
232
+ # string" description: "Create a notification string with a timestamp."
233
+ # expression: "'New message received at ' + string(document.create_time)" The
234
+ # exact variables and functions that may be referenced within an expression are
235
+ # determined by the service that evaluates it. See the service documentation for
236
+ # additional information.
237
+ # Corresponds to the JSON property `expr`
238
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Expr]
239
+ attr_accessor :expr
240
+
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
244
+
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @expr = args[:expr] if args.key?(:expr)
248
+ end
249
+ end
250
+
251
+ # `DevicePolicy` specifies device specific restrictions necessary to acquire a
252
+ # given access level. A `DevicePolicy` specifies requirements for requests from
253
+ # devices to be granted access levels, it does not do any enforcement on the
254
+ # device. `DevicePolicy` acts as an AND over all specified fields, and each
255
+ # repeated field is an OR over its elements. Any unset fields are ignored. For
256
+ # example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX,
257
+ # encryption_status: ENCRYPTED`, then the DevicePolicy will be true for requests
258
+ # originating from encrypted Linux desktops and encrypted Windows desktops.
259
+ class DevicePolicy
260
+ include Google::Apis::Core::Hashable
261
+
262
+ # Allowed device management levels, an empty list allows all management levels.
263
+ # Corresponds to the JSON property `allowedDeviceManagementLevels`
264
+ # @return [Array<String>]
265
+ attr_accessor :allowed_device_management_levels
266
+
267
+ # Allowed encryptions statuses, an empty list allows all statuses.
268
+ # Corresponds to the JSON property `allowedEncryptionStatuses`
269
+ # @return [Array<String>]
270
+ attr_accessor :allowed_encryption_statuses
271
+
272
+ # Allowed OS versions, an empty list allows all types and all versions.
273
+ # Corresponds to the JSON property `osConstraints`
274
+ # @return [Array<Google::Apis::AccesscontextmanagerV1beta::OsConstraint>]
275
+ attr_accessor :os_constraints
276
+
277
+ # Whether the device needs to be approved by the customer admin.
278
+ # Corresponds to the JSON property `requireAdminApproval`
279
+ # @return [Boolean]
280
+ attr_accessor :require_admin_approval
281
+ alias_method :require_admin_approval?, :require_admin_approval
282
+
283
+ # Whether the device needs to be corp owned.
284
+ # Corresponds to the JSON property `requireCorpOwned`
285
+ # @return [Boolean]
286
+ attr_accessor :require_corp_owned
287
+ alias_method :require_corp_owned?, :require_corp_owned
288
+
289
+ # Whether or not screenlock is required for the DevicePolicy to be true.
290
+ # Defaults to `false`.
291
+ # Corresponds to the JSON property `requireScreenlock`
292
+ # @return [Boolean]
293
+ attr_accessor :require_screenlock
294
+ alias_method :require_screenlock?, :require_screenlock
295
+
296
+ def initialize(**args)
297
+ update!(**args)
298
+ end
299
+
300
+ # Update properties of this object
301
+ def update!(**args)
302
+ @allowed_device_management_levels = args[:allowed_device_management_levels] if args.key?(:allowed_device_management_levels)
303
+ @allowed_encryption_statuses = args[:allowed_encryption_statuses] if args.key?(:allowed_encryption_statuses)
304
+ @os_constraints = args[:os_constraints] if args.key?(:os_constraints)
305
+ @require_admin_approval = args[:require_admin_approval] if args.key?(:require_admin_approval)
306
+ @require_corp_owned = args[:require_corp_owned] if args.key?(:require_corp_owned)
307
+ @require_screenlock = args[:require_screenlock] if args.key?(:require_screenlock)
308
+ end
309
+ end
310
+
311
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
312
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
313
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
314
+ # "Summary size limit" description: "Determines if a summary is less than 100
315
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
316
+ # Requestor is owner" description: "Determines if requestor is the document
317
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
318
+ # Logic): title: "Public documents" description: "Determine whether the document
319
+ # should be publicly visible" expression: "document.type != 'private' &&
320
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
321
+ # string" description: "Create a notification string with a timestamp."
322
+ # expression: "'New message received at ' + string(document.create_time)" The
323
+ # exact variables and functions that may be referenced within an expression are
324
+ # determined by the service that evaluates it. See the service documentation for
325
+ # additional information.
326
+ class Expr
327
+ include Google::Apis::Core::Hashable
328
+
329
+ # Optional. Description of the expression. This is a longer text which describes
330
+ # the expression, e.g. when hovered over it in a UI.
331
+ # Corresponds to the JSON property `description`
332
+ # @return [String]
333
+ attr_accessor :description
334
+
335
+ # Textual representation of an expression in Common Expression Language syntax.
336
+ # Corresponds to the JSON property `expression`
337
+ # @return [String]
338
+ attr_accessor :expression
339
+
340
+ # Optional. String indicating the location of the expression for error reporting,
341
+ # e.g. a file name and a position in the file.
342
+ # Corresponds to the JSON property `location`
343
+ # @return [String]
344
+ attr_accessor :location
345
+
346
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
347
+ # This can be used e.g. in UIs which allow to enter the expression.
348
+ # Corresponds to the JSON property `title`
349
+ # @return [String]
350
+ attr_accessor :title
351
+
352
+ def initialize(**args)
353
+ update!(**args)
354
+ end
355
+
356
+ # Update properties of this object
357
+ def update!(**args)
358
+ @description = args[:description] if args.key?(:description)
359
+ @expression = args[:expression] if args.key?(:expression)
360
+ @location = args[:location] if args.key?(:location)
361
+ @title = args[:title] if args.key?(:title)
362
+ end
363
+ end
364
+
365
+ # A response to `ListAccessLevelsRequest`.
366
+ class ListAccessLevelsResponse
367
+ include Google::Apis::Core::Hashable
368
+
369
+ # List of the Access Level instances.
370
+ # Corresponds to the JSON property `accessLevels`
371
+ # @return [Array<Google::Apis::AccesscontextmanagerV1beta::AccessLevel>]
372
+ attr_accessor :access_levels
373
+
374
+ # The pagination token to retrieve the next page of results. If the value is
375
+ # empty, no further results remain.
376
+ # Corresponds to the JSON property `nextPageToken`
377
+ # @return [String]
378
+ attr_accessor :next_page_token
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @access_levels = args[:access_levels] if args.key?(:access_levels)
387
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
388
+ end
389
+ end
390
+
391
+ # A response to `ListAccessPoliciesRequest`.
392
+ class ListAccessPoliciesResponse
393
+ include Google::Apis::Core::Hashable
394
+
395
+ # List of the AccessPolicy instances.
396
+ # Corresponds to the JSON property `accessPolicies`
397
+ # @return [Array<Google::Apis::AccesscontextmanagerV1beta::AccessPolicy>]
398
+ attr_accessor :access_policies
399
+
400
+ # The pagination token to retrieve the next page of results. If the value is
401
+ # empty, no further results remain.
402
+ # Corresponds to the JSON property `nextPageToken`
403
+ # @return [String]
404
+ attr_accessor :next_page_token
405
+
406
+ def initialize(**args)
407
+ update!(**args)
408
+ end
409
+
410
+ # Update properties of this object
411
+ def update!(**args)
412
+ @access_policies = args[:access_policies] if args.key?(:access_policies)
413
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
414
+ end
415
+ end
416
+
417
+ # A response to `ListServicePerimetersRequest`.
418
+ class ListServicePerimetersResponse
419
+ include Google::Apis::Core::Hashable
420
+
421
+ # The pagination token to retrieve the next page of results. If the value is
422
+ # empty, no further results remain.
423
+ # Corresponds to the JSON property `nextPageToken`
424
+ # @return [String]
425
+ attr_accessor :next_page_token
426
+
427
+ # List of the Service Perimeter instances.
428
+ # Corresponds to the JSON property `servicePerimeters`
429
+ # @return [Array<Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter>]
430
+ attr_accessor :service_perimeters
431
+
432
+ def initialize(**args)
433
+ update!(**args)
434
+ end
435
+
436
+ # Update properties of this object
437
+ def update!(**args)
438
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
439
+ @service_perimeters = args[:service_perimeters] if args.key?(:service_perimeters)
440
+ end
441
+ end
442
+
443
+ # This resource represents a long-running operation that is the result of a
444
+ # network API call.
445
+ class Operation
446
+ include Google::Apis::Core::Hashable
447
+
448
+ # If the value is `false`, it means the operation is still in progress. If `true`
449
+ # , the operation is completed, and either `error` or `response` is available.
450
+ # Corresponds to the JSON property `done`
451
+ # @return [Boolean]
452
+ attr_accessor :done
453
+ alias_method :done?, :done
454
+
455
+ # The `Status` type defines a logical error model that is suitable for different
456
+ # programming environments, including REST APIs and RPC APIs. It is used by [
457
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
458
+ # data: error code, error message, and error details. You can find out more
459
+ # about this error model and how to work with it in the [API Design Guide](https:
460
+ # //cloud.google.com/apis/design/errors).
461
+ # Corresponds to the JSON property `error`
462
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Status]
463
+ attr_accessor :error
464
+
465
+ # Service-specific metadata associated with the operation. It typically contains
466
+ # progress information and common metadata such as create time. Some services
467
+ # might not provide such metadata. Any method that returns a long-running
468
+ # operation should document the metadata type, if any.
469
+ # Corresponds to the JSON property `metadata`
470
+ # @return [Hash<String,Object>]
471
+ attr_accessor :metadata
472
+
473
+ # The server-assigned name, which is only unique within the same service that
474
+ # originally returns it. If you use the default HTTP mapping, the `name` should
475
+ # be a resource name ending with `operations/`unique_id``.
476
+ # Corresponds to the JSON property `name`
477
+ # @return [String]
478
+ attr_accessor :name
479
+
480
+ # The normal response of the operation in case of success. If the original
481
+ # method returns no data on success, such as `Delete`, the response is `google.
482
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
483
+ # the response should be the resource. For other methods, the response should
484
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
485
+ # example, if the original method name is `TakeSnapshot()`, the inferred
486
+ # response type is `TakeSnapshotResponse`.
487
+ # Corresponds to the JSON property `response`
488
+ # @return [Hash<String,Object>]
489
+ attr_accessor :response
490
+
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
494
+
495
+ # Update properties of this object
496
+ def update!(**args)
497
+ @done = args[:done] if args.key?(:done)
498
+ @error = args[:error] if args.key?(:error)
499
+ @metadata = args[:metadata] if args.key?(:metadata)
500
+ @name = args[:name] if args.key?(:name)
501
+ @response = args[:response] if args.key?(:response)
502
+ end
503
+ end
504
+
505
+ # A restriction on the OS type and version of devices making requests.
506
+ class OsConstraint
507
+ include Google::Apis::Core::Hashable
508
+
509
+ # The minimum allowed OS version. If not set, any version of this OS satisfies
510
+ # the constraint. Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"
511
+ # `.
512
+ # Corresponds to the JSON property `minimumVersion`
513
+ # @return [String]
514
+ attr_accessor :minimum_version
515
+
516
+ # Required. The allowed OS type.
517
+ # Corresponds to the JSON property `osType`
518
+ # @return [String]
519
+ attr_accessor :os_type
520
+
521
+ # Only allows requests from devices with a verified Chrome OS. Verifications
522
+ # includes requirements that the device is enterprise-managed, conformant to
523
+ # domain policies, and the caller has permission to call the API targeted by the
524
+ # request.
525
+ # Corresponds to the JSON property `requireVerifiedChromeOs`
526
+ # @return [Boolean]
527
+ attr_accessor :require_verified_chrome_os
528
+ alias_method :require_verified_chrome_os?, :require_verified_chrome_os
529
+
530
+ def initialize(**args)
531
+ update!(**args)
532
+ end
533
+
534
+ # Update properties of this object
535
+ def update!(**args)
536
+ @minimum_version = args[:minimum_version] if args.key?(:minimum_version)
537
+ @os_type = args[:os_type] if args.key?(:os_type)
538
+ @require_verified_chrome_os = args[:require_verified_chrome_os] if args.key?(:require_verified_chrome_os)
539
+ end
540
+ end
541
+
542
+ # `ServicePerimeter` describes a set of Google Cloud resources which can freely
543
+ # import and export data amongst themselves, but not export outside of the `
544
+ # ServicePerimeter`. If a request with a source within this `ServicePerimeter`
545
+ # has a target outside of the `ServicePerimeter`, the request will be blocked.
546
+ # Otherwise the request is allowed. There are two types of Service Perimeter -
547
+ # Regular and Bridge. Regular Service Perimeters cannot overlap, a single Google
548
+ # Cloud project can only belong to a single regular Service Perimeter. Service
549
+ # Perimeter Bridges can contain only Google Cloud projects as members, a single
550
+ # Google Cloud project may belong to multiple Service Perimeter Bridges.
551
+ class ServicePerimeter
552
+ include Google::Apis::Core::Hashable
553
+
554
+ # Description of the `ServicePerimeter` and its use. Does not affect behavior.
555
+ # Corresponds to the JSON property `description`
556
+ # @return [String]
557
+ attr_accessor :description
558
+
559
+ # Required. Resource name for the ServicePerimeter. The `short_name` component
560
+ # must begin with a letter and only include alphanumeric and '_'. Format: `
561
+ # accessPolicies/`policy_id`/servicePerimeters/`short_name``
562
+ # Corresponds to the JSON property `name`
563
+ # @return [String]
564
+ attr_accessor :name
565
+
566
+ # Perimeter type indicator. A single project is allowed to be a member of single
567
+ # regular perimeter, but multiple service perimeter bridges. A project cannot be
568
+ # a included in a perimeter bridge without being included in regular perimeter.
569
+ # For perimeter bridges, restricted/unrestricted service lists as well as access
570
+ # lists must be empty.
571
+ # Corresponds to the JSON property `perimeterType`
572
+ # @return [String]
573
+ attr_accessor :perimeter_type
574
+
575
+ # `ServicePerimeterConfig` specifies a set of Google Cloud resources that
576
+ # describe specific Service Perimeter configuration.
577
+ # Corresponds to the JSON property `status`
578
+ # @return [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeterConfig]
579
+ attr_accessor :status
580
+
581
+ # Human readable title. Must be unique within the Policy.
582
+ # Corresponds to the JSON property `title`
583
+ # @return [String]
584
+ attr_accessor :title
585
+
586
+ def initialize(**args)
587
+ update!(**args)
588
+ end
589
+
590
+ # Update properties of this object
591
+ def update!(**args)
592
+ @description = args[:description] if args.key?(:description)
593
+ @name = args[:name] if args.key?(:name)
594
+ @perimeter_type = args[:perimeter_type] if args.key?(:perimeter_type)
595
+ @status = args[:status] if args.key?(:status)
596
+ @title = args[:title] if args.key?(:title)
597
+ end
598
+ end
599
+
600
+ # `ServicePerimeterConfig` specifies a set of Google Cloud resources that
601
+ # describe specific Service Perimeter configuration.
602
+ class ServicePerimeterConfig
603
+ include Google::Apis::Core::Hashable
604
+
605
+ # A list of `AccessLevel` resource names that allow resources within the `
606
+ # ServicePerimeter` to be accessed from the internet. `AccessLevels` listed must
607
+ # be in the same policy as this `ServicePerimeter`. Referencing a nonexistent `
608
+ # AccessLevel` is a syntax error. If no `AccessLevel` names are listed,
609
+ # resources within the perimeter can only be accessed via Google Cloud calls
610
+ # with request origins within the perimeter. Example: `"accessPolicies/MY_POLICY/
611
+ # accessLevels/MY_LEVEL"`. For Service Perimeter Bridge, must be empty.
612
+ # Corresponds to the JSON property `accessLevels`
613
+ # @return [Array<String>]
614
+ attr_accessor :access_levels
615
+
616
+ # A list of Google Cloud resources that are inside of the service perimeter.
617
+ # Currently only projects are allowed. Format: `projects/`project_number``
618
+ # Corresponds to the JSON property `resources`
619
+ # @return [Array<String>]
620
+ attr_accessor :resources
621
+
622
+ # Google Cloud services that are subject to the Service Perimeter restrictions.
623
+ # Must contain a list of services. For example, if `storage.googleapis.com` is
624
+ # specified, access to the storage buckets inside the perimeter must meet the
625
+ # perimeter's access restrictions.
626
+ # Corresponds to the JSON property `restrictedServices`
627
+ # @return [Array<String>]
628
+ attr_accessor :restricted_services
629
+
630
+ # Google Cloud services that are not subject to the Service Perimeter
631
+ # restrictions. Deprecated. Must be set to a single wildcard "*". The wildcard
632
+ # means that unless explicitly specified by "restricted_services" list, any
633
+ # service is treated as unrestricted.
634
+ # Corresponds to the JSON property `unrestrictedServices`
635
+ # @return [Array<String>]
636
+ attr_accessor :unrestricted_services
637
+
638
+ # Specifies how APIs are allowed to communicate within the Service Perimeter.
639
+ # Corresponds to the JSON property `vpcAccessibleServices`
640
+ # @return [Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices]
641
+ attr_accessor :vpc_accessible_services
642
+
643
+ def initialize(**args)
644
+ update!(**args)
645
+ end
646
+
647
+ # Update properties of this object
648
+ def update!(**args)
649
+ @access_levels = args[:access_levels] if args.key?(:access_levels)
650
+ @resources = args[:resources] if args.key?(:resources)
651
+ @restricted_services = args[:restricted_services] if args.key?(:restricted_services)
652
+ @unrestricted_services = args[:unrestricted_services] if args.key?(:unrestricted_services)
653
+ @vpc_accessible_services = args[:vpc_accessible_services] if args.key?(:vpc_accessible_services)
654
+ end
655
+ end
656
+
657
+ # The `Status` type defines a logical error model that is suitable for different
658
+ # programming environments, including REST APIs and RPC APIs. It is used by [
659
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
660
+ # data: error code, error message, and error details. You can find out more
661
+ # about this error model and how to work with it in the [API Design Guide](https:
662
+ # //cloud.google.com/apis/design/errors).
663
+ class Status
664
+ include Google::Apis::Core::Hashable
665
+
666
+ # The status code, which should be an enum value of google.rpc.Code.
667
+ # Corresponds to the JSON property `code`
668
+ # @return [Fixnum]
669
+ attr_accessor :code
670
+
671
+ # A list of messages that carry the error details. There is a common set of
672
+ # message types for APIs to use.
673
+ # Corresponds to the JSON property `details`
674
+ # @return [Array<Hash<String,Object>>]
675
+ attr_accessor :details
676
+
677
+ # A developer-facing error message, which should be in English. Any user-facing
678
+ # error message should be localized and sent in the google.rpc.Status.details
679
+ # field, or localized by the client.
680
+ # Corresponds to the JSON property `message`
681
+ # @return [String]
682
+ attr_accessor :message
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @code = args[:code] if args.key?(:code)
691
+ @details = args[:details] if args.key?(:details)
692
+ @message = args[:message] if args.key?(:message)
693
+ end
694
+ end
695
+
696
+ # Specifies how APIs are allowed to communicate within the Service Perimeter.
697
+ class VpcAccessibleServices
698
+ include Google::Apis::Core::Hashable
699
+
700
+ # The list of APIs usable within the Service Perimeter. Must be empty unless '
701
+ # enable_restriction' is True. You can specify a list of individual services, as
702
+ # well as include the 'RESTRICTED-SERVICES' value, which automatically includes
703
+ # all of the services protected by the perimeter.
704
+ # Corresponds to the JSON property `allowedServices`
705
+ # @return [Array<String>]
706
+ attr_accessor :allowed_services
707
+
708
+ # Whether to restrict API calls within the Service Perimeter to the list of APIs
709
+ # specified in 'allowed_services'.
710
+ # Corresponds to the JSON property `enableRestriction`
711
+ # @return [Boolean]
712
+ attr_accessor :enable_restriction
713
+ alias_method :enable_restriction?, :enable_restriction
714
+
715
+ def initialize(**args)
716
+ update!(**args)
717
+ end
718
+
719
+ # Update properties of this object
720
+ def update!(**args)
721
+ @allowed_services = args[:allowed_services] if args.key?(:allowed_services)
722
+ @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction)
723
+ end
724
+ end
725
+ end
726
+ end
727
+ end