google-apis-gkehub_v1alpha 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fe26675d905ac64784201c2589238e9aa77b533a1cbbec6a812559a9fb6436d6
4
+ data.tar.gz: 0fd937f0652d864b7708c4734217eabf9a27714b9489c2aee83e50f28f768aad
5
+ SHA512:
6
+ metadata.gz: 6fad0c698e2fee6c9859499b9e227e79763ad8455ba75625bd80efed4d45c11542db199f1c630e3d2e2692687c2b9c51829cbc05c7aba666adbcb659d24ae350
7
+ data.tar.gz: 86fcca5b859da3b9f7b400cc996389488c1cb1ebaf17b07f0de916ef2ab3e5d633cd5d4bf609591f4f25803d57f8e0060123a0e276360a7115ebab51fb09197e
data/.yardopts ADDED
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-gkehub_v1alpha
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/gkehub_v1alpha/*.rb
9
+ lib/google/apis/gkehub_v1alpha.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-gkehub_v1alpha
2
+
3
+ ### v0.1.0 (2021-03-21)
4
+
5
+ * Regenerated from discovery document revision 20210315
6
+ * Regenerated using generator version 0.2.0
7
+
data/LICENSE.md ADDED
@@ -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.
data/OVERVIEW.md ADDED
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1alpha of the GKE Hub
2
+
3
+ This is a simple client library for version V1alpha of the GKE Hub. 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/gkehub.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-gkehub_v1alpha', '~> 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-gkehub_v1alpha
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/gkehub_v1alpha"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::GkehubV1alpha::GKEHubService.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 Gkehub service in particular.)
67
+
68
+ For reference information on specific calls in the GKE Hub, see the {Google::Apis::GkehubV1alpha::GKEHubService 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-gkehub_v1alpha`, 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/anthos/multicluster-management/connect/registering-a-cluster) 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/gkehub_v1alpha"
@@ -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/gkehub_v1alpha/service.rb'
16
+ require 'google/apis/gkehub_v1alpha/classes.rb'
17
+ require 'google/apis/gkehub_v1alpha/representations.rb'
18
+ require 'google/apis/gkehub_v1alpha/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # GKE Hub
23
+ #
24
+ #
25
+ #
26
+ # @see https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster
27
+ module GkehubV1alpha
28
+ # Version of the GKE Hub this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1alpha'
31
+
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,2020 @@
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 GkehubV1alpha
24
+
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
28
+ # are AuditConfigs for both `allServices` and a specific service, the union of
29
+ # the two AuditConfigs is used for that service: the log_types specified in each
30
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
31
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
32
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
33
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
34
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
35
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
36
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
37
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
38
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
39
+ # DATA_WRITE logging.
40
+ class AuditConfig
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The configuration for logging of each type of permission.
44
+ # Corresponds to the JSON property `auditLogConfigs`
45
+ # @return [Array<Google::Apis::GkehubV1alpha::AuditLogConfig>]
46
+ attr_accessor :audit_log_configs
47
+
48
+ # Specifies a service that will be enabled for audit logging. For example, `
49
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
50
+ # value that covers all services.
51
+ # Corresponds to the JSON property `service`
52
+ # @return [String]
53
+ attr_accessor :service
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
62
+ @service = args[:service] if args.key?(:service)
63
+ end
64
+ end
65
+
66
+ # Provides the configuration for logging a type of permissions. Example: ` "
67
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
68
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
69
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
70
+ # DATA_READ logging.
71
+ class AuditLogConfig
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Specifies the identities that do not cause logging for this type of permission.
75
+ # Follows the same format of Binding.members.
76
+ # Corresponds to the JSON property `exemptedMembers`
77
+ # @return [Array<String>]
78
+ attr_accessor :exempted_members
79
+
80
+ # The log type that this config enables.
81
+ # Corresponds to the JSON property `logType`
82
+ # @return [String]
83
+ attr_accessor :log_type
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
92
+ @log_type = args[:log_type] if args.key?(:log_type)
93
+ end
94
+ end
95
+
96
+ # Associates `members` with a `role`.
97
+ class Binding
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
101
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
102
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
103
+ # "Summary size limit" description: "Determines if a summary is less than 100
104
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
105
+ # Requestor is owner" description: "Determines if requestor is the document
106
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
107
+ # Logic): title: "Public documents" description: "Determine whether the document
108
+ # should be publicly visible" expression: "document.type != 'private' &&
109
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
110
+ # string" description: "Create a notification string with a timestamp."
111
+ # expression: "'New message received at ' + string(document.create_time)" The
112
+ # exact variables and functions that may be referenced within an expression are
113
+ # determined by the service that evaluates it. See the service documentation for
114
+ # additional information.
115
+ # Corresponds to the JSON property `condition`
116
+ # @return [Google::Apis::GkehubV1alpha::Expr]
117
+ attr_accessor :condition
118
+
119
+ # Specifies the identities requesting access for a Cloud Platform resource. `
120
+ # members` can have the following values: * `allUsers`: A special identifier
121
+ # that represents anyone who is on the internet; with or without a Google
122
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
123
+ # anyone who is authenticated with a Google account or a service account. * `
124
+ # user:`emailid``: An email address that represents a specific Google account.
125
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
126
+ # address that represents a service account. For example, `my-other-app@appspot.
127
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
128
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
129
+ # `uniqueid``: An email address (plus unique identifier) representing a user
130
+ # that has been recently deleted. For example, `alice@example.com?uid=
131
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
132
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
133
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
134
+ # identifier) representing a service account that has been recently deleted. For
135
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
136
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
137
+ # emailid`` and the undeleted service account retains the role in the binding. *
138
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
139
+ # identifier) representing a Google group that has been recently deleted. For
140
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
141
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
142
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
143
+ # primary) that represents all the users of that domain. For example, `google.
144
+ # com` or `example.com`.
145
+ # Corresponds to the JSON property `members`
146
+ # @return [Array<String>]
147
+ attr_accessor :members
148
+
149
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
150
+ # , or `roles/owner`.
151
+ # Corresponds to the JSON property `role`
152
+ # @return [String]
153
+ attr_accessor :role
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @condition = args[:condition] if args.key?(:condition)
162
+ @members = args[:members] if args.key?(:members)
163
+ @role = args[:role] if args.key?(:role)
164
+ end
165
+ end
166
+
167
+ # The request message for Operations.CancelOperation.
168
+ class CancelOperationRequest
169
+ include Google::Apis::Core::Hashable
170
+
171
+ def initialize(**args)
172
+ update!(**args)
173
+ end
174
+
175
+ # Update properties of this object
176
+ def update!(**args)
177
+ end
178
+ end
179
+
180
+ # Spec for Audit Logging Allowlisting.
181
+ class CloudAuditLoggingFeatureSpec
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # Service account that should be allowlisted to send the audit logs; eg
185
+ # cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
186
+ # already exist, but do not need to have any permissions granted to them. The
187
+ # customer's entitlements will be checked prior to allowlisting (i.e. the
188
+ # customer must be an Anthos customer.)
189
+ # Corresponds to the JSON property `allowlistedServiceAccounts`
190
+ # @return [Array<String>]
191
+ attr_accessor :allowlisted_service_accounts
192
+
193
+ def initialize(**args)
194
+ update!(**args)
195
+ end
196
+
197
+ # Update properties of this object
198
+ def update!(**args)
199
+ @allowlisted_service_accounts = args[:allowlisted_service_accounts] if args.key?(:allowlisted_service_accounts)
200
+ end
201
+ end
202
+
203
+ # CommonFeatureSpec contains Hub-wide configuration information
204
+ class CommonFeatureSpec
205
+ include Google::Apis::Core::Hashable
206
+
207
+ # Spec for Audit Logging Allowlisting.
208
+ # Corresponds to the JSON property `cloudauditlogging`
209
+ # @return [Google::Apis::GkehubV1alpha::CloudAuditLoggingFeatureSpec]
210
+ attr_accessor :cloudauditlogging
211
+
212
+ # FeatureSpec contains the input for the MultiClusterIngress feature.
213
+ # Corresponds to the JSON property `multiclusteringress`
214
+ # @return [Google::Apis::GkehubV1alpha::MultiClusterIngressFeatureSpec]
215
+ attr_accessor :multiclusteringress
216
+
217
+ def initialize(**args)
218
+ update!(**args)
219
+ end
220
+
221
+ # Update properties of this object
222
+ def update!(**args)
223
+ @cloudauditlogging = args[:cloudauditlogging] if args.key?(:cloudauditlogging)
224
+ @multiclusteringress = args[:multiclusteringress] if args.key?(:multiclusteringress)
225
+ end
226
+ end
227
+
228
+ # CommonFeatureState contains Hub-wide Feature status information.
229
+ class CommonFeatureState
230
+ include Google::Apis::Core::Hashable
231
+
232
+ # FeatureState describes the state of the Service Mesh Hub Feature as analyzed
233
+ # by the Service Mesh Hub Controller, for the whole Hub.
234
+ # Corresponds to the JSON property `servicemesh`
235
+ # @return [Google::Apis::GkehubV1alpha::ServiceMeshFeatureState]
236
+ attr_accessor :servicemesh
237
+
238
+ # FeatureState describes the high-level state of a Feature. It may be used to
239
+ # describe a Feature's state at the environ-level, or per-membershop, depending
240
+ # on the context.
241
+ # Corresponds to the JSON property `state`
242
+ # @return [Google::Apis::GkehubV1alpha::FeatureState]
243
+ attr_accessor :state
244
+
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
248
+
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @servicemesh = args[:servicemesh] if args.key?(:servicemesh)
252
+ @state = args[:state] if args.key?(:state)
253
+ end
254
+ end
255
+
256
+ # Configuration for Binauthz
257
+ class ConfigManagementBinauthzConfig
258
+ include Google::Apis::Core::Hashable
259
+
260
+ # Whether binauthz is enabled in this cluster.
261
+ # Corresponds to the JSON property `enabled`
262
+ # @return [Boolean]
263
+ attr_accessor :enabled
264
+ alias_method :enabled?, :enabled
265
+
266
+ def initialize(**args)
267
+ update!(**args)
268
+ end
269
+
270
+ # Update properties of this object
271
+ def update!(**args)
272
+ @enabled = args[:enabled] if args.key?(:enabled)
273
+ end
274
+ end
275
+
276
+ # State for Binauthz
277
+ class ConfigManagementBinauthzState
278
+ include Google::Apis::Core::Hashable
279
+
280
+ # The version of binauthz.
281
+ # Corresponds to the JSON property `version`
282
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementBinauthzVersion]
283
+ attr_accessor :version
284
+
285
+ # The state of the binauthz webhook.
286
+ # Corresponds to the JSON property `webhook`
287
+ # @return [String]
288
+ attr_accessor :webhook
289
+
290
+ def initialize(**args)
291
+ update!(**args)
292
+ end
293
+
294
+ # Update properties of this object
295
+ def update!(**args)
296
+ @version = args[:version] if args.key?(:version)
297
+ @webhook = args[:webhook] if args.key?(:webhook)
298
+ end
299
+ end
300
+
301
+ # The version of binauthz.
302
+ class ConfigManagementBinauthzVersion
303
+ include Google::Apis::Core::Hashable
304
+
305
+ # The version of the binauthz webhook.
306
+ # Corresponds to the JSON property `webhookVersion`
307
+ # @return [String]
308
+ attr_accessor :webhook_version
309
+
310
+ def initialize(**args)
311
+ update!(**args)
312
+ end
313
+
314
+ # Update properties of this object
315
+ def update!(**args)
316
+ @webhook_version = args[:webhook_version] if args.key?(:webhook_version)
317
+ end
318
+ end
319
+
320
+ # Configuration for Config Sync
321
+ class ConfigManagementConfigSync
322
+ include Google::Apis::Core::Hashable
323
+
324
+ # Git repo configuration for a single cluster.
325
+ # Corresponds to the JSON property `git`
326
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementGitConfig]
327
+ attr_accessor :git
328
+
329
+ # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured”
330
+ # mode.
331
+ # Corresponds to the JSON property `sourceFormat`
332
+ # @return [String]
333
+ attr_accessor :source_format
334
+
335
+ def initialize(**args)
336
+ update!(**args)
337
+ end
338
+
339
+ # Update properties of this object
340
+ def update!(**args)
341
+ @git = args[:git] if args.key?(:git)
342
+ @source_format = args[:source_format] if args.key?(:source_format)
343
+ end
344
+ end
345
+
346
+ # The state of ConfigSync's deployment on a cluster
347
+ class ConfigManagementConfigSyncDeploymentState
348
+ include Google::Apis::Core::Hashable
349
+
350
+ # Deployment state of the git-sync pod
351
+ # Corresponds to the JSON property `gitSync`
352
+ # @return [String]
353
+ attr_accessor :git_sync
354
+
355
+ # Deployment state of the importer pod
356
+ # Corresponds to the JSON property `importer`
357
+ # @return [String]
358
+ attr_accessor :importer
359
+
360
+ # Deployment state of the monitor pod
361
+ # Corresponds to the JSON property `monitor`
362
+ # @return [String]
363
+ attr_accessor :monitor
364
+
365
+ # Deployment state of reconciler-manager pod
366
+ # Corresponds to the JSON property `reconcilerManager`
367
+ # @return [String]
368
+ attr_accessor :reconciler_manager
369
+
370
+ # Deployment state of root-reconciler
371
+ # Corresponds to the JSON property `rootReconciler`
372
+ # @return [String]
373
+ attr_accessor :root_reconciler
374
+
375
+ # Deployment state of the syncer pod
376
+ # Corresponds to the JSON property `syncer`
377
+ # @return [String]
378
+ attr_accessor :syncer
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @git_sync = args[:git_sync] if args.key?(:git_sync)
387
+ @importer = args[:importer] if args.key?(:importer)
388
+ @monitor = args[:monitor] if args.key?(:monitor)
389
+ @reconciler_manager = args[:reconciler_manager] if args.key?(:reconciler_manager)
390
+ @root_reconciler = args[:root_reconciler] if args.key?(:root_reconciler)
391
+ @syncer = args[:syncer] if args.key?(:syncer)
392
+ end
393
+ end
394
+
395
+ # State information for ConfigSync
396
+ class ConfigManagementConfigSyncState
397
+ include Google::Apis::Core::Hashable
398
+
399
+ # The state of ConfigSync's deployment on a cluster
400
+ # Corresponds to the JSON property `deploymentState`
401
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncDeploymentState]
402
+ attr_accessor :deployment_state
403
+
404
+ # State indicating an ACM's progress syncing configurations to a cluster
405
+ # Corresponds to the JSON property `syncState`
406
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementSyncState]
407
+ attr_accessor :sync_state
408
+
409
+ # Specific versioning information pertaining to ConfigSync's Pods
410
+ # Corresponds to the JSON property `version`
411
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncVersion]
412
+ attr_accessor :version
413
+
414
+ def initialize(**args)
415
+ update!(**args)
416
+ end
417
+
418
+ # Update properties of this object
419
+ def update!(**args)
420
+ @deployment_state = args[:deployment_state] if args.key?(:deployment_state)
421
+ @sync_state = args[:sync_state] if args.key?(:sync_state)
422
+ @version = args[:version] if args.key?(:version)
423
+ end
424
+ end
425
+
426
+ # Specific versioning information pertaining to ConfigSync's Pods
427
+ class ConfigManagementConfigSyncVersion
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # Version of the deployed git-sync pod
431
+ # Corresponds to the JSON property `gitSync`
432
+ # @return [String]
433
+ attr_accessor :git_sync
434
+
435
+ # Version of the deployed importer pod
436
+ # Corresponds to the JSON property `importer`
437
+ # @return [String]
438
+ attr_accessor :importer
439
+
440
+ # Version of the deployed monitor pod
441
+ # Corresponds to the JSON property `monitor`
442
+ # @return [String]
443
+ attr_accessor :monitor
444
+
445
+ # Version of the deployed reconciler-manager pod
446
+ # Corresponds to the JSON property `reconcilerManager`
447
+ # @return [String]
448
+ attr_accessor :reconciler_manager
449
+
450
+ # Version of the deployed reconciler container in root-reconciler pod
451
+ # Corresponds to the JSON property `rootReconciler`
452
+ # @return [String]
453
+ attr_accessor :root_reconciler
454
+
455
+ # Version of the deployed syncer pod
456
+ # Corresponds to the JSON property `syncer`
457
+ # @return [String]
458
+ attr_accessor :syncer
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @git_sync = args[:git_sync] if args.key?(:git_sync)
467
+ @importer = args[:importer] if args.key?(:importer)
468
+ @monitor = args[:monitor] if args.key?(:monitor)
469
+ @reconciler_manager = args[:reconciler_manager] if args.key?(:reconciler_manager)
470
+ @root_reconciler = args[:root_reconciler] if args.key?(:root_reconciler)
471
+ @syncer = args[:syncer] if args.key?(:syncer)
472
+ end
473
+ end
474
+
475
+ # Model for a config file in the git repo with an associated Sync error
476
+ class ConfigManagementErrorResource
477
+ include Google::Apis::Core::Hashable
478
+
479
+ # A Kubernetes object's GVK
480
+ # Corresponds to the JSON property `resourceGvk`
481
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementGroupVersionKind]
482
+ attr_accessor :resource_gvk
483
+
484
+ # Metadata name of the resource that is causing an error
485
+ # Corresponds to the JSON property `resourceName`
486
+ # @return [String]
487
+ attr_accessor :resource_name
488
+
489
+ # Namespace of the resource that is causing an error
490
+ # Corresponds to the JSON property `resourceNamespace`
491
+ # @return [String]
492
+ attr_accessor :resource_namespace
493
+
494
+ # Path in the git repo of the erroneous config
495
+ # Corresponds to the JSON property `sourcePath`
496
+ # @return [String]
497
+ attr_accessor :source_path
498
+
499
+ def initialize(**args)
500
+ update!(**args)
501
+ end
502
+
503
+ # Update properties of this object
504
+ def update!(**args)
505
+ @resource_gvk = args[:resource_gvk] if args.key?(:resource_gvk)
506
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
507
+ @resource_namespace = args[:resource_namespace] if args.key?(:resource_namespace)
508
+ @source_path = args[:source_path] if args.key?(:source_path)
509
+ end
510
+ end
511
+
512
+ # State of Policy Controller installation.
513
+ class ConfigManagementGatekeeperDeploymentState
514
+ include Google::Apis::Core::Hashable
515
+
516
+ # Status of gatekeeper-audit deployment.
517
+ # Corresponds to the JSON property `gatekeeperAudit`
518
+ # @return [String]
519
+ attr_accessor :gatekeeper_audit
520
+
521
+ # Status of gatekeeper-controller-manager pod.
522
+ # Corresponds to the JSON property `gatekeeperControllerManagerState`
523
+ # @return [String]
524
+ attr_accessor :gatekeeper_controller_manager_state
525
+
526
+ def initialize(**args)
527
+ update!(**args)
528
+ end
529
+
530
+ # Update properties of this object
531
+ def update!(**args)
532
+ @gatekeeper_audit = args[:gatekeeper_audit] if args.key?(:gatekeeper_audit)
533
+ @gatekeeper_controller_manager_state = args[:gatekeeper_controller_manager_state] if args.key?(:gatekeeper_controller_manager_state)
534
+ end
535
+ end
536
+
537
+ # Git repo configuration for a single cluster.
538
+ class ConfigManagementGitConfig
539
+ include Google::Apis::Core::Hashable
540
+
541
+ # URL for the HTTPS proxy to be used when communicating with the Git repo.
542
+ # Corresponds to the JSON property `httpsProxy`
543
+ # @return [String]
544
+ attr_accessor :https_proxy
545
+
546
+ # The path within the Git repository that represents the top level of the repo
547
+ # to sync. Default: the root directory of the repository.
548
+ # Corresponds to the JSON property `policyDir`
549
+ # @return [String]
550
+ attr_accessor :policy_dir
551
+
552
+ # Type of secret configured for access to the Git repo.
553
+ # Corresponds to the JSON property `secretType`
554
+ # @return [String]
555
+ attr_accessor :secret_type
556
+
557
+ # The branch of the repository to sync from. Default: master.
558
+ # Corresponds to the JSON property `syncBranch`
559
+ # @return [String]
560
+ attr_accessor :sync_branch
561
+
562
+ # The URL of the Git repository to use as the source of truth.
563
+ # Corresponds to the JSON property `syncRepo`
564
+ # @return [String]
565
+ attr_accessor :sync_repo
566
+
567
+ # Git revision (tag or hash) to check out. Default HEAD.
568
+ # Corresponds to the JSON property `syncRev`
569
+ # @return [String]
570
+ attr_accessor :sync_rev
571
+
572
+ # Period in seconds between consecutive syncs. Default: 15.
573
+ # Corresponds to the JSON property `syncWaitSecs`
574
+ # @return [Fixnum]
575
+ attr_accessor :sync_wait_secs
576
+
577
+ def initialize(**args)
578
+ update!(**args)
579
+ end
580
+
581
+ # Update properties of this object
582
+ def update!(**args)
583
+ @https_proxy = args[:https_proxy] if args.key?(:https_proxy)
584
+ @policy_dir = args[:policy_dir] if args.key?(:policy_dir)
585
+ @secret_type = args[:secret_type] if args.key?(:secret_type)
586
+ @sync_branch = args[:sync_branch] if args.key?(:sync_branch)
587
+ @sync_repo = args[:sync_repo] if args.key?(:sync_repo)
588
+ @sync_rev = args[:sync_rev] if args.key?(:sync_rev)
589
+ @sync_wait_secs = args[:sync_wait_secs] if args.key?(:sync_wait_secs)
590
+ end
591
+ end
592
+
593
+ # A Kubernetes object's GVK
594
+ class ConfigManagementGroupVersionKind
595
+ include Google::Apis::Core::Hashable
596
+
597
+ # Kubernetes Group
598
+ # Corresponds to the JSON property `group`
599
+ # @return [String]
600
+ attr_accessor :group
601
+
602
+ # Kubernetes Kind
603
+ # Corresponds to the JSON property `kind`
604
+ # @return [String]
605
+ attr_accessor :kind
606
+
607
+ # Kubernetes Version
608
+ # Corresponds to the JSON property `version`
609
+ # @return [String]
610
+ attr_accessor :version
611
+
612
+ def initialize(**args)
613
+ update!(**args)
614
+ end
615
+
616
+ # Update properties of this object
617
+ def update!(**args)
618
+ @group = args[:group] if args.key?(:group)
619
+ @kind = args[:kind] if args.key?(:kind)
620
+ @version = args[:version] if args.key?(:version)
621
+ end
622
+ end
623
+
624
+ # Configuration for Hierarchy Controller
625
+ class ConfigManagementHierarchyControllerConfig
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # Whether hierarchical resource quota is enabled in this cluster.
629
+ # Corresponds to the JSON property `enableHierarchicalResourceQuota`
630
+ # @return [Boolean]
631
+ attr_accessor :enable_hierarchical_resource_quota
632
+ alias_method :enable_hierarchical_resource_quota?, :enable_hierarchical_resource_quota
633
+
634
+ # Whether pod tree labels are enabled in this cluster.
635
+ # Corresponds to the JSON property `enablePodTreeLabels`
636
+ # @return [Boolean]
637
+ attr_accessor :enable_pod_tree_labels
638
+ alias_method :enable_pod_tree_labels?, :enable_pod_tree_labels
639
+
640
+ # Whether Hierarchy Controller is enabled in this cluster.
641
+ # Corresponds to the JSON property `enabled`
642
+ # @return [Boolean]
643
+ attr_accessor :enabled
644
+ alias_method :enabled?, :enabled
645
+
646
+ def initialize(**args)
647
+ update!(**args)
648
+ end
649
+
650
+ # Update properties of this object
651
+ def update!(**args)
652
+ @enable_hierarchical_resource_quota = args[:enable_hierarchical_resource_quota] if args.key?(:enable_hierarchical_resource_quota)
653
+ @enable_pod_tree_labels = args[:enable_pod_tree_labels] if args.key?(:enable_pod_tree_labels)
654
+ @enabled = args[:enabled] if args.key?(:enabled)
655
+ end
656
+ end
657
+
658
+ # Deployment state for Hierarchy Controller
659
+ class ConfigManagementHierarchyControllerDeploymentState
660
+ include Google::Apis::Core::Hashable
661
+
662
+ # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
663
+ # Corresponds to the JSON property `extension`
664
+ # @return [String]
665
+ attr_accessor :extension
666
+
667
+ # The deployment state for open source HNC (e.g. v0.7.0-hc.0)
668
+ # Corresponds to the JSON property `hnc`
669
+ # @return [String]
670
+ attr_accessor :hnc
671
+
672
+ def initialize(**args)
673
+ update!(**args)
674
+ end
675
+
676
+ # Update properties of this object
677
+ def update!(**args)
678
+ @extension = args[:extension] if args.key?(:extension)
679
+ @hnc = args[:hnc] if args.key?(:hnc)
680
+ end
681
+ end
682
+
683
+ # State for Hierarchy Controller
684
+ class ConfigManagementHierarchyControllerState
685
+ include Google::Apis::Core::Hashable
686
+
687
+ # Deployment state for Hierarchy Controller
688
+ # Corresponds to the JSON property `state`
689
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerDeploymentState]
690
+ attr_accessor :state
691
+
692
+ # Version for Hierarchy Controller
693
+ # Corresponds to the JSON property `version`
694
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerVersion]
695
+ attr_accessor :version
696
+
697
+ def initialize(**args)
698
+ update!(**args)
699
+ end
700
+
701
+ # Update properties of this object
702
+ def update!(**args)
703
+ @state = args[:state] if args.key?(:state)
704
+ @version = args[:version] if args.key?(:version)
705
+ end
706
+ end
707
+
708
+ # Version for Hierarchy Controller
709
+ class ConfigManagementHierarchyControllerVersion
710
+ include Google::Apis::Core::Hashable
711
+
712
+ # Version for Hierarchy Controller extension
713
+ # Corresponds to the JSON property `extension`
714
+ # @return [String]
715
+ attr_accessor :extension
716
+
717
+ # Version for open source HNC
718
+ # Corresponds to the JSON property `hnc`
719
+ # @return [String]
720
+ attr_accessor :hnc
721
+
722
+ def initialize(**args)
723
+ update!(**args)
724
+ end
725
+
726
+ # Update properties of this object
727
+ def update!(**args)
728
+ @extension = args[:extension] if args.key?(:extension)
729
+ @hnc = args[:hnc] if args.key?(:hnc)
730
+ end
731
+ end
732
+
733
+ # Errors pertaining to the installation of ACM
734
+ class ConfigManagementInstallError
735
+ include Google::Apis::Core::Hashable
736
+
737
+ # A string representing the user facing error message
738
+ # Corresponds to the JSON property `errorMessage`
739
+ # @return [String]
740
+ attr_accessor :error_message
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @error_message = args[:error_message] if args.key?(:error_message)
749
+ end
750
+ end
751
+
752
+ # Configuration for a single cluster. Intended to parallel the ConfigManagement
753
+ # CR.
754
+ class ConfigManagementMembershipSpec
755
+ include Google::Apis::Core::Hashable
756
+
757
+ # Configuration for Binauthz
758
+ # Corresponds to the JSON property `binauthz`
759
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementBinauthzConfig]
760
+ attr_accessor :binauthz
761
+
762
+ # Configuration for Config Sync
763
+ # Corresponds to the JSON property `configSync`
764
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSync]
765
+ attr_accessor :config_sync
766
+
767
+ # Configuration for Hierarchy Controller
768
+ # Corresponds to the JSON property `hierarchyController`
769
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerConfig]
770
+ attr_accessor :hierarchy_controller
771
+
772
+ # Configuration for Policy Controller
773
+ # Corresponds to the JSON property `policyController`
774
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementPolicyController]
775
+ attr_accessor :policy_controller
776
+
777
+ # Version of ACM installed.
778
+ # Corresponds to the JSON property `version`
779
+ # @return [String]
780
+ attr_accessor :version
781
+
782
+ def initialize(**args)
783
+ update!(**args)
784
+ end
785
+
786
+ # Update properties of this object
787
+ def update!(**args)
788
+ @binauthz = args[:binauthz] if args.key?(:binauthz)
789
+ @config_sync = args[:config_sync] if args.key?(:config_sync)
790
+ @hierarchy_controller = args[:hierarchy_controller] if args.key?(:hierarchy_controller)
791
+ @policy_controller = args[:policy_controller] if args.key?(:policy_controller)
792
+ @version = args[:version] if args.key?(:version)
793
+ end
794
+ end
795
+
796
+ # State for Anthos Config Management
797
+ class ConfigManagementMembershipState
798
+ include Google::Apis::Core::Hashable
799
+
800
+ # State for Binauthz
801
+ # Corresponds to the JSON property `binauthzState`
802
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementBinauthzState]
803
+ attr_accessor :binauthz_state
804
+
805
+ # The user-defined name for the cluster used by ClusterSelectors to group
806
+ # clusters together. This should match Membership's membership_name, unless the
807
+ # user installed ACM on the cluster manually prior to enabling the ACM hub
808
+ # feature. Unique within a Anthos Config Management installation.
809
+ # Corresponds to the JSON property `clusterName`
810
+ # @return [String]
811
+ attr_accessor :cluster_name
812
+
813
+ # State information for ConfigSync
814
+ # Corresponds to the JSON property `configSyncState`
815
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementConfigSyncState]
816
+ attr_accessor :config_sync_state
817
+
818
+ # State for Hierarchy Controller
819
+ # Corresponds to the JSON property `hierarchyControllerState`
820
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerState]
821
+ attr_accessor :hierarchy_controller_state
822
+
823
+ # Configuration for a single cluster. Intended to parallel the ConfigManagement
824
+ # CR.
825
+ # Corresponds to the JSON property `membershipSpec`
826
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
827
+ attr_accessor :membership_spec
828
+
829
+ # State information for an ACM's Operator
830
+ # Corresponds to the JSON property `operatorState`
831
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementOperatorState]
832
+ attr_accessor :operator_state
833
+
834
+ # State for PolicyControllerState.
835
+ # Corresponds to the JSON property `policyControllerState`
836
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementPolicyControllerState]
837
+ attr_accessor :policy_controller_state
838
+
839
+ def initialize(**args)
840
+ update!(**args)
841
+ end
842
+
843
+ # Update properties of this object
844
+ def update!(**args)
845
+ @binauthz_state = args[:binauthz_state] if args.key?(:binauthz_state)
846
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
847
+ @config_sync_state = args[:config_sync_state] if args.key?(:config_sync_state)
848
+ @hierarchy_controller_state = args[:hierarchy_controller_state] if args.key?(:hierarchy_controller_state)
849
+ @membership_spec = args[:membership_spec] if args.key?(:membership_spec)
850
+ @operator_state = args[:operator_state] if args.key?(:operator_state)
851
+ @policy_controller_state = args[:policy_controller_state] if args.key?(:policy_controller_state)
852
+ end
853
+ end
854
+
855
+ # State information for an ACM's Operator
856
+ class ConfigManagementOperatorState
857
+ include Google::Apis::Core::Hashable
858
+
859
+ # The state of the Operator's deployment
860
+ # Corresponds to the JSON property `deploymentState`
861
+ # @return [String]
862
+ attr_accessor :deployment_state
863
+
864
+ # Install errors.
865
+ # Corresponds to the JSON property `errors`
866
+ # @return [Array<Google::Apis::GkehubV1alpha::ConfigManagementInstallError>]
867
+ attr_accessor :errors
868
+
869
+ # The semenatic version number of the operator
870
+ # Corresponds to the JSON property `version`
871
+ # @return [String]
872
+ attr_accessor :version
873
+
874
+ def initialize(**args)
875
+ update!(**args)
876
+ end
877
+
878
+ # Update properties of this object
879
+ def update!(**args)
880
+ @deployment_state = args[:deployment_state] if args.key?(:deployment_state)
881
+ @errors = args[:errors] if args.key?(:errors)
882
+ @version = args[:version] if args.key?(:version)
883
+ end
884
+ end
885
+
886
+ # Configuration for Policy Controller
887
+ class ConfigManagementPolicyController
888
+ include Google::Apis::Core::Hashable
889
+
890
+ # Sets the interval for Policy Controller Audit Scans (in seconds). When set to
891
+ # 0, this disables audit functionality altogether.
892
+ # Corresponds to the JSON property `auditIntervalSeconds`
893
+ # @return [Fixnum]
894
+ attr_accessor :audit_interval_seconds
895
+
896
+ # Enables the installation of Policy Controller. If false, the rest of
897
+ # PolicyController fields take no effect.
898
+ # Corresponds to the JSON property `enabled`
899
+ # @return [Boolean]
900
+ attr_accessor :enabled
901
+ alias_method :enabled?, :enabled
902
+
903
+ # The set of namespaces that are excluded from Policy Controller checks.
904
+ # Namespaces do not need to currently exist on the cluster.
905
+ # Corresponds to the JSON property `exemptableNamespaces`
906
+ # @return [Array<String>]
907
+ attr_accessor :exemptable_namespaces
908
+
909
+ # Logs all denies and dry run failures.
910
+ # Corresponds to the JSON property `logDeniesEnabled`
911
+ # @return [Boolean]
912
+ attr_accessor :log_denies_enabled
913
+ alias_method :log_denies_enabled?, :log_denies_enabled
914
+
915
+ # Enables the ability to use Constraint Templates that reference to objects
916
+ # other than the object currently being evaluated.
917
+ # Corresponds to the JSON property `referentialRulesEnabled`
918
+ # @return [Boolean]
919
+ attr_accessor :referential_rules_enabled
920
+ alias_method :referential_rules_enabled?, :referential_rules_enabled
921
+
922
+ # Installs the default template library along with Policy Controller.
923
+ # Corresponds to the JSON property `templateLibraryInstalled`
924
+ # @return [Boolean]
925
+ attr_accessor :template_library_installed
926
+ alias_method :template_library_installed?, :template_library_installed
927
+
928
+ def initialize(**args)
929
+ update!(**args)
930
+ end
931
+
932
+ # Update properties of this object
933
+ def update!(**args)
934
+ @audit_interval_seconds = args[:audit_interval_seconds] if args.key?(:audit_interval_seconds)
935
+ @enabled = args[:enabled] if args.key?(:enabled)
936
+ @exemptable_namespaces = args[:exemptable_namespaces] if args.key?(:exemptable_namespaces)
937
+ @log_denies_enabled = args[:log_denies_enabled] if args.key?(:log_denies_enabled)
938
+ @referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
939
+ @template_library_installed = args[:template_library_installed] if args.key?(:template_library_installed)
940
+ end
941
+ end
942
+
943
+ # State for PolicyControllerState.
944
+ class ConfigManagementPolicyControllerState
945
+ include Google::Apis::Core::Hashable
946
+
947
+ # State of Policy Controller installation.
948
+ # Corresponds to the JSON property `deploymentState`
949
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementGatekeeperDeploymentState]
950
+ attr_accessor :deployment_state
951
+
952
+ # The build version of Gatekeeper Policy Controller is using.
953
+ # Corresponds to the JSON property `version`
954
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementPolicyControllerVersion]
955
+ attr_accessor :version
956
+
957
+ def initialize(**args)
958
+ update!(**args)
959
+ end
960
+
961
+ # Update properties of this object
962
+ def update!(**args)
963
+ @deployment_state = args[:deployment_state] if args.key?(:deployment_state)
964
+ @version = args[:version] if args.key?(:version)
965
+ end
966
+ end
967
+
968
+ # The build version of Gatekeeper Policy Controller is using.
969
+ class ConfigManagementPolicyControllerVersion
970
+ include Google::Apis::Core::Hashable
971
+
972
+ # The gatekeeper image tag that is composed of ACM version, git tag, build
973
+ # number.
974
+ # Corresponds to the JSON property `version`
975
+ # @return [String]
976
+ attr_accessor :version
977
+
978
+ def initialize(**args)
979
+ update!(**args)
980
+ end
981
+
982
+ # Update properties of this object
983
+ def update!(**args)
984
+ @version = args[:version] if args.key?(:version)
985
+ end
986
+ end
987
+
988
+ # An ACM created error representing a problem syncing configurations
989
+ class ConfigManagementSyncError
990
+ include Google::Apis::Core::Hashable
991
+
992
+ # An ACM defined error code
993
+ # Corresponds to the JSON property `code`
994
+ # @return [String]
995
+ attr_accessor :code
996
+
997
+ # A description of the error
998
+ # Corresponds to the JSON property `errorMessage`
999
+ # @return [String]
1000
+ attr_accessor :error_message
1001
+
1002
+ # A list of config(s) associated with the error, if any
1003
+ # Corresponds to the JSON property `errorResources`
1004
+ # @return [Array<Google::Apis::GkehubV1alpha::ConfigManagementErrorResource>]
1005
+ attr_accessor :error_resources
1006
+
1007
+ def initialize(**args)
1008
+ update!(**args)
1009
+ end
1010
+
1011
+ # Update properties of this object
1012
+ def update!(**args)
1013
+ @code = args[:code] if args.key?(:code)
1014
+ @error_message = args[:error_message] if args.key?(:error_message)
1015
+ @error_resources = args[:error_resources] if args.key?(:error_resources)
1016
+ end
1017
+ end
1018
+
1019
+ # State indicating an ACM's progress syncing configurations to a cluster
1020
+ class ConfigManagementSyncState
1021
+ include Google::Apis::Core::Hashable
1022
+
1023
+ # Sync status code
1024
+ # Corresponds to the JSON property `code`
1025
+ # @return [String]
1026
+ attr_accessor :code
1027
+
1028
+ # A list of errors resulting from problematic configs. This list will be
1029
+ # truncated after 100 errors, although it is unlikely for that many errors to
1030
+ # simultaneously exist.
1031
+ # Corresponds to the JSON property `errors`
1032
+ # @return [Array<Google::Apis::GkehubV1alpha::ConfigManagementSyncError>]
1033
+ attr_accessor :errors
1034
+
1035
+ # Token indicating the state of the importer.
1036
+ # Corresponds to the JSON property `importToken`
1037
+ # @return [String]
1038
+ attr_accessor :import_token
1039
+
1040
+ # Timestamp of when ACM last successfully synced the repo The time format is
1041
+ # specified in https://golang.org/pkg/time/#Time.String This field is being
1042
+ # deprecated. Use last_sync_time instead. (b/154053616)
1043
+ # Corresponds to the JSON property `lastSync`
1044
+ # @return [String]
1045
+ attr_accessor :last_sync
1046
+
1047
+ # Timestamp type of when ACM last successfully synced the repo
1048
+ # Corresponds to the JSON property `lastSyncTime`
1049
+ # @return [String]
1050
+ attr_accessor :last_sync_time
1051
+
1052
+ # Token indicating the state of the repo.
1053
+ # Corresponds to the JSON property `sourceToken`
1054
+ # @return [String]
1055
+ attr_accessor :source_token
1056
+
1057
+ # Token indicating the state of the syncer.
1058
+ # Corresponds to the JSON property `syncToken`
1059
+ # @return [String]
1060
+ attr_accessor :sync_token
1061
+
1062
+ def initialize(**args)
1063
+ update!(**args)
1064
+ end
1065
+
1066
+ # Update properties of this object
1067
+ def update!(**args)
1068
+ @code = args[:code] if args.key?(:code)
1069
+ @errors = args[:errors] if args.key?(:errors)
1070
+ @import_token = args[:import_token] if args.key?(:import_token)
1071
+ @last_sync = args[:last_sync] if args.key?(:last_sync)
1072
+ @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
1073
+ @source_token = args[:source_token] if args.key?(:source_token)
1074
+ @sync_token = args[:sync_token] if args.key?(:sync_token)
1075
+ end
1076
+ end
1077
+
1078
+ # A generic empty message that you can re-use to avoid defining duplicated empty
1079
+ # messages in your APIs. A typical example is to use it as the request or the
1080
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
1081
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
1082
+ # `Empty` is empty JSON object ````.
1083
+ class Empty
1084
+ include Google::Apis::Core::Hashable
1085
+
1086
+ def initialize(**args)
1087
+ update!(**args)
1088
+ end
1089
+
1090
+ # Update properties of this object
1091
+ def update!(**args)
1092
+ end
1093
+ end
1094
+
1095
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
1096
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
1097
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
1098
+ # "Summary size limit" description: "Determines if a summary is less than 100
1099
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
1100
+ # Requestor is owner" description: "Determines if requestor is the document
1101
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
1102
+ # Logic): title: "Public documents" description: "Determine whether the document
1103
+ # should be publicly visible" expression: "document.type != 'private' &&
1104
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
1105
+ # string" description: "Create a notification string with a timestamp."
1106
+ # expression: "'New message received at ' + string(document.create_time)" The
1107
+ # exact variables and functions that may be referenced within an expression are
1108
+ # determined by the service that evaluates it. See the service documentation for
1109
+ # additional information.
1110
+ class Expr
1111
+ include Google::Apis::Core::Hashable
1112
+
1113
+ # Optional. Description of the expression. This is a longer text which describes
1114
+ # the expression, e.g. when hovered over it in a UI.
1115
+ # Corresponds to the JSON property `description`
1116
+ # @return [String]
1117
+ attr_accessor :description
1118
+
1119
+ # Textual representation of an expression in Common Expression Language syntax.
1120
+ # Corresponds to the JSON property `expression`
1121
+ # @return [String]
1122
+ attr_accessor :expression
1123
+
1124
+ # Optional. String indicating the location of the expression for error reporting,
1125
+ # e.g. a file name and a position in the file.
1126
+ # Corresponds to the JSON property `location`
1127
+ # @return [String]
1128
+ attr_accessor :location
1129
+
1130
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
1131
+ # This can be used e.g. in UIs which allow to enter the expression.
1132
+ # Corresponds to the JSON property `title`
1133
+ # @return [String]
1134
+ attr_accessor :title
1135
+
1136
+ def initialize(**args)
1137
+ update!(**args)
1138
+ end
1139
+
1140
+ # Update properties of this object
1141
+ def update!(**args)
1142
+ @description = args[:description] if args.key?(:description)
1143
+ @expression = args[:expression] if args.key?(:expression)
1144
+ @location = args[:location] if args.key?(:location)
1145
+ @title = args[:title] if args.key?(:title)
1146
+ end
1147
+ end
1148
+
1149
+ # Feature represents the settings and status of any Hub Feature.
1150
+ class Feature
1151
+ include Google::Apis::Core::Hashable
1152
+
1153
+ # Output only. When the Feature resource was created.
1154
+ # Corresponds to the JSON property `createTime`
1155
+ # @return [String]
1156
+ attr_accessor :create_time
1157
+
1158
+ # Output only. When the Feature resource was deleted.
1159
+ # Corresponds to the JSON property `deleteTime`
1160
+ # @return [String]
1161
+ attr_accessor :delete_time
1162
+
1163
+ # GCP labels for this Feature.
1164
+ # Corresponds to the JSON property `labels`
1165
+ # @return [Hash<String,String>]
1166
+ attr_accessor :labels
1167
+
1168
+ # Optional. Membership-specific configuration for this Feature. If this Feature
1169
+ # does not support any per-Membership configuration, this field may be unused.
1170
+ # The keys indicate which Membership the configuration is for, in the form:
1171
+ # projects/`p`/locations/`l`/memberships/`m` Where `p` is the project number, `l`
1172
+ # is a valid location and `m` is a valid Membership in this project at that
1173
+ # location. `p` MUST match the Feature's project number.
1174
+ # Corresponds to the JSON property `membershipSpecs`
1175
+ # @return [Hash<String,Google::Apis::GkehubV1alpha::MembershipFeatureSpec>]
1176
+ attr_accessor :membership_specs
1177
+
1178
+ # Output only. Membership-specific Feature status. If this Feature does report
1179
+ # any per-Membership status, this field may be unused. The keys indicate which
1180
+ # Membership the state is for, in the form: projects/`p`/locations/`l`/
1181
+ # memberships/`m` Where `p` is the project number, `l` is a valid location and `
1182
+ # m` is a valid Membership in this project at that location. `p` MUST match the
1183
+ # Feature's project number.
1184
+ # Corresponds to the JSON property `membershipStates`
1185
+ # @return [Hash<String,Google::Apis::GkehubV1alpha::MembershipFeatureState>]
1186
+ attr_accessor :membership_states
1187
+
1188
+ # Output only. The full, unique name of this Feature resource in the format `
1189
+ # projects/*/locations/global/features/*`.
1190
+ # Corresponds to the JSON property `name`
1191
+ # @return [String]
1192
+ attr_accessor :name
1193
+
1194
+ # FeatureResourceState describes the state of a Feature *resource* in the GkeHub
1195
+ # API. See `FeatureState` for the "running state" of the Feature in the Hub and
1196
+ # across Memberships.
1197
+ # Corresponds to the JSON property `resourceState`
1198
+ # @return [Google::Apis::GkehubV1alpha::FeatureResourceState]
1199
+ attr_accessor :resource_state
1200
+
1201
+ # CommonFeatureSpec contains Hub-wide configuration information
1202
+ # Corresponds to the JSON property `spec`
1203
+ # @return [Google::Apis::GkehubV1alpha::CommonFeatureSpec]
1204
+ attr_accessor :spec
1205
+
1206
+ # CommonFeatureState contains Hub-wide Feature status information.
1207
+ # Corresponds to the JSON property `state`
1208
+ # @return [Google::Apis::GkehubV1alpha::CommonFeatureState]
1209
+ attr_accessor :state
1210
+
1211
+ # Output only. When the Feature resource was last updated.
1212
+ # Corresponds to the JSON property `updateTime`
1213
+ # @return [String]
1214
+ attr_accessor :update_time
1215
+
1216
+ def initialize(**args)
1217
+ update!(**args)
1218
+ end
1219
+
1220
+ # Update properties of this object
1221
+ def update!(**args)
1222
+ @create_time = args[:create_time] if args.key?(:create_time)
1223
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1224
+ @labels = args[:labels] if args.key?(:labels)
1225
+ @membership_specs = args[:membership_specs] if args.key?(:membership_specs)
1226
+ @membership_states = args[:membership_states] if args.key?(:membership_states)
1227
+ @name = args[:name] if args.key?(:name)
1228
+ @resource_state = args[:resource_state] if args.key?(:resource_state)
1229
+ @spec = args[:spec] if args.key?(:spec)
1230
+ @state = args[:state] if args.key?(:state)
1231
+ @update_time = args[:update_time] if args.key?(:update_time)
1232
+ end
1233
+ end
1234
+
1235
+ # FeatureResourceState describes the state of a Feature *resource* in the GkeHub
1236
+ # API. See `FeatureState` for the "running state" of the Feature in the Hub and
1237
+ # across Memberships.
1238
+ class FeatureResourceState
1239
+ include Google::Apis::Core::Hashable
1240
+
1241
+ # The current state of the Feature resource in the Hub API.
1242
+ # Corresponds to the JSON property `state`
1243
+ # @return [String]
1244
+ attr_accessor :state
1245
+
1246
+ def initialize(**args)
1247
+ update!(**args)
1248
+ end
1249
+
1250
+ # Update properties of this object
1251
+ def update!(**args)
1252
+ @state = args[:state] if args.key?(:state)
1253
+ end
1254
+ end
1255
+
1256
+ # FeatureState describes the high-level state of a Feature. It may be used to
1257
+ # describe a Feature's state at the environ-level, or per-membershop, depending
1258
+ # on the context.
1259
+ class FeatureState
1260
+ include Google::Apis::Core::Hashable
1261
+
1262
+ # The high-level, machine-readable status of this Feature.
1263
+ # Corresponds to the JSON property `code`
1264
+ # @return [String]
1265
+ attr_accessor :code
1266
+
1267
+ # A human-readable description of the current status.
1268
+ # Corresponds to the JSON property `description`
1269
+ # @return [String]
1270
+ attr_accessor :description
1271
+
1272
+ # The time this status and any related Feature-specific details were updated.
1273
+ # Corresponds to the JSON property `updateTime`
1274
+ # @return [String]
1275
+ attr_accessor :update_time
1276
+
1277
+ def initialize(**args)
1278
+ update!(**args)
1279
+ end
1280
+
1281
+ # Update properties of this object
1282
+ def update!(**args)
1283
+ @code = args[:code] if args.key?(:code)
1284
+ @description = args[:description] if args.key?(:description)
1285
+ @update_time = args[:update_time] if args.key?(:update_time)
1286
+ end
1287
+ end
1288
+
1289
+ # The `Status` type defines a logical error model that is suitable for different
1290
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1291
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1292
+ # data: error code, error message, and error details. You can find out more
1293
+ # about this error model and how to work with it in the [API Design Guide](https:
1294
+ # //cloud.google.com/apis/design/errors).
1295
+ class GoogleRpcStatus
1296
+ include Google::Apis::Core::Hashable
1297
+
1298
+ # The status code, which should be an enum value of google.rpc.Code.
1299
+ # Corresponds to the JSON property `code`
1300
+ # @return [Fixnum]
1301
+ attr_accessor :code
1302
+
1303
+ # A list of messages that carry the error details. There is a common set of
1304
+ # message types for APIs to use.
1305
+ # Corresponds to the JSON property `details`
1306
+ # @return [Array<Hash<String,Object>>]
1307
+ attr_accessor :details
1308
+
1309
+ # A developer-facing error message, which should be in English. Any user-facing
1310
+ # error message should be localized and sent in the google.rpc.Status.details
1311
+ # field, or localized by the client.
1312
+ # Corresponds to the JSON property `message`
1313
+ # @return [String]
1314
+ attr_accessor :message
1315
+
1316
+ def initialize(**args)
1317
+ update!(**args)
1318
+ end
1319
+
1320
+ # Update properties of this object
1321
+ def update!(**args)
1322
+ @code = args[:code] if args.key?(:code)
1323
+ @details = args[:details] if args.key?(:details)
1324
+ @message = args[:message] if args.key?(:message)
1325
+ end
1326
+ end
1327
+
1328
+ # Response message for the `GkeHub.ListFeatures` method.
1329
+ class ListFeaturesResponse
1330
+ include Google::Apis::Core::Hashable
1331
+
1332
+ # A token to request the next page of resources from the `ListFeatures` method.
1333
+ # The value of an empty string means that there are no more resources to return.
1334
+ # Corresponds to the JSON property `nextPageToken`
1335
+ # @return [String]
1336
+ attr_accessor :next_page_token
1337
+
1338
+ # The list of matching Features
1339
+ # Corresponds to the JSON property `resources`
1340
+ # @return [Array<Google::Apis::GkehubV1alpha::Feature>]
1341
+ attr_accessor :resources
1342
+
1343
+ def initialize(**args)
1344
+ update!(**args)
1345
+ end
1346
+
1347
+ # Update properties of this object
1348
+ def update!(**args)
1349
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1350
+ @resources = args[:resources] if args.key?(:resources)
1351
+ end
1352
+ end
1353
+
1354
+ # The response message for Locations.ListLocations.
1355
+ class ListLocationsResponse
1356
+ include Google::Apis::Core::Hashable
1357
+
1358
+ # A list of locations that matches the specified filter in the request.
1359
+ # Corresponds to the JSON property `locations`
1360
+ # @return [Array<Google::Apis::GkehubV1alpha::Location>]
1361
+ attr_accessor :locations
1362
+
1363
+ # The standard List next-page token.
1364
+ # Corresponds to the JSON property `nextPageToken`
1365
+ # @return [String]
1366
+ attr_accessor :next_page_token
1367
+
1368
+ def initialize(**args)
1369
+ update!(**args)
1370
+ end
1371
+
1372
+ # Update properties of this object
1373
+ def update!(**args)
1374
+ @locations = args[:locations] if args.key?(:locations)
1375
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1376
+ end
1377
+ end
1378
+
1379
+ # The response message for Operations.ListOperations.
1380
+ class ListOperationsResponse
1381
+ include Google::Apis::Core::Hashable
1382
+
1383
+ # The standard List next-page token.
1384
+ # Corresponds to the JSON property `nextPageToken`
1385
+ # @return [String]
1386
+ attr_accessor :next_page_token
1387
+
1388
+ # A list of operations that matches the specified filter in the request.
1389
+ # Corresponds to the JSON property `operations`
1390
+ # @return [Array<Google::Apis::GkehubV1alpha::Operation>]
1391
+ attr_accessor :operations
1392
+
1393
+ def initialize(**args)
1394
+ update!(**args)
1395
+ end
1396
+
1397
+ # Update properties of this object
1398
+ def update!(**args)
1399
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1400
+ @operations = args[:operations] if args.key?(:operations)
1401
+ end
1402
+ end
1403
+
1404
+ # A resource that represents Google Cloud Platform location.
1405
+ class Location
1406
+ include Google::Apis::Core::Hashable
1407
+
1408
+ # The friendly name for this location, typically a nearby city name. For example,
1409
+ # "Tokyo".
1410
+ # Corresponds to the JSON property `displayName`
1411
+ # @return [String]
1412
+ attr_accessor :display_name
1413
+
1414
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
1415
+ # region": "us-east1"`
1416
+ # Corresponds to the JSON property `labels`
1417
+ # @return [Hash<String,String>]
1418
+ attr_accessor :labels
1419
+
1420
+ # The canonical id for this location. For example: `"us-east1"`.
1421
+ # Corresponds to the JSON property `locationId`
1422
+ # @return [String]
1423
+ attr_accessor :location_id
1424
+
1425
+ # Service-specific metadata. For example the available capacity at the given
1426
+ # location.
1427
+ # Corresponds to the JSON property `metadata`
1428
+ # @return [Hash<String,Object>]
1429
+ attr_accessor :metadata
1430
+
1431
+ # Resource name for the location, which may vary between implementations. For
1432
+ # example: `"projects/example-project/locations/us-east1"`
1433
+ # Corresponds to the JSON property `name`
1434
+ # @return [String]
1435
+ attr_accessor :name
1436
+
1437
+ def initialize(**args)
1438
+ update!(**args)
1439
+ end
1440
+
1441
+ # Update properties of this object
1442
+ def update!(**args)
1443
+ @display_name = args[:display_name] if args.key?(:display_name)
1444
+ @labels = args[:labels] if args.key?(:labels)
1445
+ @location_id = args[:location_id] if args.key?(:location_id)
1446
+ @metadata = args[:metadata] if args.key?(:metadata)
1447
+ @name = args[:name] if args.key?(:name)
1448
+ end
1449
+ end
1450
+
1451
+ # MembershipFeatureSpec contains configuration information for a single
1452
+ # Membership.
1453
+ class MembershipFeatureSpec
1454
+ include Google::Apis::Core::Hashable
1455
+
1456
+ # Configuration for a single cluster. Intended to parallel the ConfigManagement
1457
+ # CR.
1458
+ # Corresponds to the JSON property `configmanagement`
1459
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
1460
+ attr_accessor :configmanagement
1461
+
1462
+ def initialize(**args)
1463
+ update!(**args)
1464
+ end
1465
+
1466
+ # Update properties of this object
1467
+ def update!(**args)
1468
+ @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
1469
+ end
1470
+ end
1471
+
1472
+ # MembershipFeatureState contains Feature status information for a single
1473
+ # Membership.
1474
+ class MembershipFeatureState
1475
+ include Google::Apis::Core::Hashable
1476
+
1477
+ # State for Anthos Config Management
1478
+ # Corresponds to the JSON property `configmanagement`
1479
+ # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipState]
1480
+ attr_accessor :configmanagement
1481
+
1482
+ # Metering per-Membership Feature State.
1483
+ # Corresponds to the JSON property `metering`
1484
+ # @return [Google::Apis::GkehubV1alpha::MeteringMembershipState]
1485
+ attr_accessor :metering
1486
+
1487
+ # MembershipState describes the state of the Service Mesh Hub Feature as
1488
+ # analyzed by the Service Mesh Hub Controller, for single Membership.
1489
+ # Corresponds to the JSON property `servicemesh`
1490
+ # @return [Google::Apis::GkehubV1alpha::ServiceMeshMembershipState]
1491
+ attr_accessor :servicemesh
1492
+
1493
+ # FeatureState describes the high-level state of a Feature. It may be used to
1494
+ # describe a Feature's state at the environ-level, or per-membershop, depending
1495
+ # on the context.
1496
+ # Corresponds to the JSON property `state`
1497
+ # @return [Google::Apis::GkehubV1alpha::FeatureState]
1498
+ attr_accessor :state
1499
+
1500
+ def initialize(**args)
1501
+ update!(**args)
1502
+ end
1503
+
1504
+ # Update properties of this object
1505
+ def update!(**args)
1506
+ @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
1507
+ @metering = args[:metering] if args.key?(:metering)
1508
+ @servicemesh = args[:servicemesh] if args.key?(:servicemesh)
1509
+ @state = args[:state] if args.key?(:state)
1510
+ end
1511
+ end
1512
+
1513
+ # Metering per-Membership Feature State.
1514
+ class MeteringMembershipState
1515
+ include Google::Apis::Core::Hashable
1516
+
1517
+ # The time stamp of the most recent measurement of the number of vCPUs in the
1518
+ # cluster.
1519
+ # Corresponds to the JSON property `lastMeasurementTime`
1520
+ # @return [String]
1521
+ attr_accessor :last_measurement_time
1522
+
1523
+ # The vCPUs capacity in the cluster according to the most recent measurement (1/
1524
+ # 1000 precision).
1525
+ # Corresponds to the JSON property `preciseLastMeasuredClusterVcpuCapacity`
1526
+ # @return [Float]
1527
+ attr_accessor :precise_last_measured_cluster_vcpu_capacity
1528
+
1529
+ def initialize(**args)
1530
+ update!(**args)
1531
+ end
1532
+
1533
+ # Update properties of this object
1534
+ def update!(**args)
1535
+ @last_measurement_time = args[:last_measurement_time] if args.key?(:last_measurement_time)
1536
+ @precise_last_measured_cluster_vcpu_capacity = args[:precise_last_measured_cluster_vcpu_capacity] if args.key?(:precise_last_measured_cluster_vcpu_capacity)
1537
+ end
1538
+ end
1539
+
1540
+ # FeatureSpec contains the input for the MultiClusterIngress feature.
1541
+ class MultiClusterIngressFeatureSpec
1542
+ include Google::Apis::Core::Hashable
1543
+
1544
+ # Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
1545
+ # Example: `projects/foo-proj/locations/global/memberships/bar`
1546
+ # Corresponds to the JSON property `configMembership`
1547
+ # @return [String]
1548
+ attr_accessor :config_membership
1549
+
1550
+ def initialize(**args)
1551
+ update!(**args)
1552
+ end
1553
+
1554
+ # Update properties of this object
1555
+ def update!(**args)
1556
+ @config_membership = args[:config_membership] if args.key?(:config_membership)
1557
+ end
1558
+ end
1559
+
1560
+ # This resource represents a long-running operation that is the result of a
1561
+ # network API call.
1562
+ class Operation
1563
+ include Google::Apis::Core::Hashable
1564
+
1565
+ # If the value is `false`, it means the operation is still in progress. If `true`
1566
+ # , the operation is completed, and either `error` or `response` is available.
1567
+ # Corresponds to the JSON property `done`
1568
+ # @return [Boolean]
1569
+ attr_accessor :done
1570
+ alias_method :done?, :done
1571
+
1572
+ # The `Status` type defines a logical error model that is suitable for different
1573
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1574
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1575
+ # data: error code, error message, and error details. You can find out more
1576
+ # about this error model and how to work with it in the [API Design Guide](https:
1577
+ # //cloud.google.com/apis/design/errors).
1578
+ # Corresponds to the JSON property `error`
1579
+ # @return [Google::Apis::GkehubV1alpha::GoogleRpcStatus]
1580
+ attr_accessor :error
1581
+
1582
+ # Service-specific metadata associated with the operation. It typically contains
1583
+ # progress information and common metadata such as create time. Some services
1584
+ # might not provide such metadata. Any method that returns a long-running
1585
+ # operation should document the metadata type, if any.
1586
+ # Corresponds to the JSON property `metadata`
1587
+ # @return [Hash<String,Object>]
1588
+ attr_accessor :metadata
1589
+
1590
+ # The server-assigned name, which is only unique within the same service that
1591
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1592
+ # be a resource name ending with `operations/`unique_id``.
1593
+ # Corresponds to the JSON property `name`
1594
+ # @return [String]
1595
+ attr_accessor :name
1596
+
1597
+ # The normal response of the operation in case of success. If the original
1598
+ # method returns no data on success, such as `Delete`, the response is `google.
1599
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1600
+ # the response should be the resource. For other methods, the response should
1601
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1602
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1603
+ # response type is `TakeSnapshotResponse`.
1604
+ # Corresponds to the JSON property `response`
1605
+ # @return [Hash<String,Object>]
1606
+ attr_accessor :response
1607
+
1608
+ def initialize(**args)
1609
+ update!(**args)
1610
+ end
1611
+
1612
+ # Update properties of this object
1613
+ def update!(**args)
1614
+ @done = args[:done] if args.key?(:done)
1615
+ @error = args[:error] if args.key?(:error)
1616
+ @metadata = args[:metadata] if args.key?(:metadata)
1617
+ @name = args[:name] if args.key?(:name)
1618
+ @response = args[:response] if args.key?(:response)
1619
+ end
1620
+ end
1621
+
1622
+ # Represents the metadata of the long-running operation.
1623
+ class OperationMetadata
1624
+ include Google::Apis::Core::Hashable
1625
+
1626
+ # Output only. API version used to start the operation.
1627
+ # Corresponds to the JSON property `apiVersion`
1628
+ # @return [String]
1629
+ attr_accessor :api_version
1630
+
1631
+ # Output only. Identifies whether the user has requested cancellation of the
1632
+ # operation. Operations that have successfully been cancelled have Operation.
1633
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1634
+ # CANCELLED`.
1635
+ # Corresponds to the JSON property `cancelRequested`
1636
+ # @return [Boolean]
1637
+ attr_accessor :cancel_requested
1638
+ alias_method :cancel_requested?, :cancel_requested
1639
+
1640
+ # Output only. The time the operation was created.
1641
+ # Corresponds to the JSON property `createTime`
1642
+ # @return [String]
1643
+ attr_accessor :create_time
1644
+
1645
+ # Output only. The time the operation finished running.
1646
+ # Corresponds to the JSON property `endTime`
1647
+ # @return [String]
1648
+ attr_accessor :end_time
1649
+
1650
+ # Output only. Human-readable status of the operation, if any.
1651
+ # Corresponds to the JSON property `statusDetail`
1652
+ # @return [String]
1653
+ attr_accessor :status_detail
1654
+
1655
+ # Output only. Server-defined resource path for the target of the operation.
1656
+ # Corresponds to the JSON property `target`
1657
+ # @return [String]
1658
+ attr_accessor :target
1659
+
1660
+ # Output only. Name of the verb executed by the operation.
1661
+ # Corresponds to the JSON property `verb`
1662
+ # @return [String]
1663
+ attr_accessor :verb
1664
+
1665
+ def initialize(**args)
1666
+ update!(**args)
1667
+ end
1668
+
1669
+ # Update properties of this object
1670
+ def update!(**args)
1671
+ @api_version = args[:api_version] if args.key?(:api_version)
1672
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1673
+ @create_time = args[:create_time] if args.key?(:create_time)
1674
+ @end_time = args[:end_time] if args.key?(:end_time)
1675
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1676
+ @target = args[:target] if args.key?(:target)
1677
+ @verb = args[:verb] if args.key?(:verb)
1678
+ end
1679
+ end
1680
+
1681
+ # An Identity and Access Management (IAM) policy, which specifies access
1682
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1683
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1684
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1685
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1686
+ # role or a user-created custom role. For some types of Google Cloud resources,
1687
+ # a `binding` can also specify a `condition`, which is a logical expression that
1688
+ # allows access to a resource only if the expression evaluates to `true`. A
1689
+ # condition can add constraints based on attributes of the request, the resource,
1690
+ # or both. To learn which resources support conditions in their IAM policies,
1691
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1692
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1693
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1694
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1695
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1696
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1697
+ # title": "expirable access", "description": "Does not grant access after Sep
1698
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1699
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1700
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1701
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1702
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1703
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1704
+ # description: Does not grant access after Sep 2020 expression: request.time <
1705
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1706
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1707
+ # google.com/iam/docs/).
1708
+ class Policy
1709
+ include Google::Apis::Core::Hashable
1710
+
1711
+ # Specifies cloud audit logging configuration for this policy.
1712
+ # Corresponds to the JSON property `auditConfigs`
1713
+ # @return [Array<Google::Apis::GkehubV1alpha::AuditConfig>]
1714
+ attr_accessor :audit_configs
1715
+
1716
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1717
+ # condition` that determines how and when the `bindings` are applied. Each of
1718
+ # the `bindings` must contain at least one member.
1719
+ # Corresponds to the JSON property `bindings`
1720
+ # @return [Array<Google::Apis::GkehubV1alpha::Binding>]
1721
+ attr_accessor :bindings
1722
+
1723
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1724
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1725
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1726
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1727
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1728
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1729
+ # applied to the same version of the policy. **Important:** If you use IAM
1730
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1731
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1732
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1733
+ # are lost.
1734
+ # Corresponds to the JSON property `etag`
1735
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1736
+ # @return [String]
1737
+ attr_accessor :etag
1738
+
1739
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1740
+ # Requests that specify an invalid value are rejected. Any operation that
1741
+ # affects conditional role bindings must specify version `3`. This requirement
1742
+ # applies to the following operations: * Getting a policy that includes a
1743
+ # conditional role binding * Adding a conditional role binding to a policy *
1744
+ # Changing a conditional role binding in a policy * Removing any role binding,
1745
+ # with or without a condition, from a policy that includes conditions **
1746
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1747
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1748
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1749
+ # conditions in the version `3` policy are lost. If a policy does not include
1750
+ # any conditions, operations on that policy may specify any valid version or
1751
+ # leave the field unset. To learn which resources support conditions in their
1752
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1753
+ # conditions/resource-policies).
1754
+ # Corresponds to the JSON property `version`
1755
+ # @return [Fixnum]
1756
+ attr_accessor :version
1757
+
1758
+ def initialize(**args)
1759
+ update!(**args)
1760
+ end
1761
+
1762
+ # Update properties of this object
1763
+ def update!(**args)
1764
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1765
+ @bindings = args[:bindings] if args.key?(:bindings)
1766
+ @etag = args[:etag] if args.key?(:etag)
1767
+ @version = args[:version] if args.key?(:version)
1768
+ end
1769
+ end
1770
+
1771
+ # AnalysisMessage is a single message produced by an analyzer, and it used to
1772
+ # communicate to the end user about the state of their Service Mesh
1773
+ # configuration.
1774
+ class ServiceMeshAnalysisMessage
1775
+ include Google::Apis::Core::Hashable
1776
+
1777
+ # A UI can combine these args with a template (based on message_base.type) to
1778
+ # produce an internationalized message.
1779
+ # Corresponds to the JSON property `args`
1780
+ # @return [Hash<String,Object>]
1781
+ attr_accessor :args
1782
+
1783
+ # A human readable description of what the error means. It is suitable for non-
1784
+ # internationalize display purposes.
1785
+ # Corresponds to the JSON property `description`
1786
+ # @return [String]
1787
+ attr_accessor :description
1788
+
1789
+ # AnalysisMessageBase describes some common information that is needed for all
1790
+ # messages.
1791
+ # Corresponds to the JSON property `messageBase`
1792
+ # @return [Google::Apis::GkehubV1alpha::ServiceMeshAnalysisMessageBase]
1793
+ attr_accessor :message_base
1794
+
1795
+ # A list of strings specifying the resource identifiers that were the cause of
1796
+ # message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a
1797
+ # specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the
1798
+ # cause is a resource in a cluster
1799
+ # Corresponds to the JSON property `resourcePaths`
1800
+ # @return [Array<String>]
1801
+ attr_accessor :resource_paths
1802
+
1803
+ def initialize(**args)
1804
+ update!(**args)
1805
+ end
1806
+
1807
+ # Update properties of this object
1808
+ def update!(**args)
1809
+ @args = args[:args] if args.key?(:args)
1810
+ @description = args[:description] if args.key?(:description)
1811
+ @message_base = args[:message_base] if args.key?(:message_base)
1812
+ @resource_paths = args[:resource_paths] if args.key?(:resource_paths)
1813
+ end
1814
+ end
1815
+
1816
+ # AnalysisMessageBase describes some common information that is needed for all
1817
+ # messages.
1818
+ class ServiceMeshAnalysisMessageBase
1819
+ include Google::Apis::Core::Hashable
1820
+
1821
+ # A url pointing to the Service Mesh or Istio documentation for this specific
1822
+ # error type.
1823
+ # Corresponds to the JSON property `documentationUrl`
1824
+ # @return [String]
1825
+ attr_accessor :documentation_url
1826
+
1827
+ # Represents how severe a message is.
1828
+ # Corresponds to the JSON property `level`
1829
+ # @return [String]
1830
+ attr_accessor :level
1831
+
1832
+ # A unique identifier for the type of message. Display_name is intended to be
1833
+ # human-readable, code is intended to be machine readable. There should be a one-
1834
+ # to-one mapping between display_name and code. (i.e. do not re-use
1835
+ # display_names or codes between message types.) See istio.analysis.v1alpha1.
1836
+ # AnalysisMessageBase.Type
1837
+ # Corresponds to the JSON property `type`
1838
+ # @return [Google::Apis::GkehubV1alpha::ServiceMeshType]
1839
+ attr_accessor :type
1840
+
1841
+ def initialize(**args)
1842
+ update!(**args)
1843
+ end
1844
+
1845
+ # Update properties of this object
1846
+ def update!(**args)
1847
+ @documentation_url = args[:documentation_url] if args.key?(:documentation_url)
1848
+ @level = args[:level] if args.key?(:level)
1849
+ @type = args[:type] if args.key?(:type)
1850
+ end
1851
+ end
1852
+
1853
+ # FeatureState describes the state of the Service Mesh Hub Feature as analyzed
1854
+ # by the Service Mesh Hub Controller, for the whole Hub.
1855
+ class ServiceMeshFeatureState
1856
+ include Google::Apis::Core::Hashable
1857
+
1858
+ # Output only. Results of running Service Mesh analyzers.
1859
+ # Corresponds to the JSON property `analysisMessages`
1860
+ # @return [Array<Google::Apis::GkehubV1alpha::ServiceMeshAnalysisMessage>]
1861
+ attr_accessor :analysis_messages
1862
+
1863
+ def initialize(**args)
1864
+ update!(**args)
1865
+ end
1866
+
1867
+ # Update properties of this object
1868
+ def update!(**args)
1869
+ @analysis_messages = args[:analysis_messages] if args.key?(:analysis_messages)
1870
+ end
1871
+ end
1872
+
1873
+ # MembershipState describes the state of the Service Mesh Hub Feature as
1874
+ # analyzed by the Service Mesh Hub Controller, for single Membership.
1875
+ class ServiceMeshMembershipState
1876
+ include Google::Apis::Core::Hashable
1877
+
1878
+ # Output only. Results of running Service Mesh analyzers.
1879
+ # Corresponds to the JSON property `analysisMessages`
1880
+ # @return [Array<Google::Apis::GkehubV1alpha::ServiceMeshAnalysisMessage>]
1881
+ attr_accessor :analysis_messages
1882
+
1883
+ def initialize(**args)
1884
+ update!(**args)
1885
+ end
1886
+
1887
+ # Update properties of this object
1888
+ def update!(**args)
1889
+ @analysis_messages = args[:analysis_messages] if args.key?(:analysis_messages)
1890
+ end
1891
+ end
1892
+
1893
+ # A unique identifier for the type of message. Display_name is intended to be
1894
+ # human-readable, code is intended to be machine readable. There should be a one-
1895
+ # to-one mapping between display_name and code. (i.e. do not re-use
1896
+ # display_names or codes between message types.) See istio.analysis.v1alpha1.
1897
+ # AnalysisMessageBase.Type
1898
+ class ServiceMeshType
1899
+ include Google::Apis::Core::Hashable
1900
+
1901
+ # A 7 character code matching `^IST[0-9]`4`$` or `^ASM[0-9]`4`$`, intended to
1902
+ # uniquely identify the message type. (e.g. "IST0001" is mapped to the "
1903
+ # InternalError" message type.)
1904
+ # Corresponds to the JSON property `code`
1905
+ # @return [String]
1906
+ attr_accessor :code
1907
+
1908
+ # A human-readable name for the message type. e.g. "InternalError", "
1909
+ # PodMissingProxy". This should be the same for all messages of the same type. (
1910
+ # This corresponds to the `name` field in open-source Istio.)
1911
+ # Corresponds to the JSON property `displayName`
1912
+ # @return [String]
1913
+ attr_accessor :display_name
1914
+
1915
+ def initialize(**args)
1916
+ update!(**args)
1917
+ end
1918
+
1919
+ # Update properties of this object
1920
+ def update!(**args)
1921
+ @code = args[:code] if args.key?(:code)
1922
+ @display_name = args[:display_name] if args.key?(:display_name)
1923
+ end
1924
+ end
1925
+
1926
+ # Request message for `SetIamPolicy` method.
1927
+ class SetIamPolicyRequest
1928
+ include Google::Apis::Core::Hashable
1929
+
1930
+ # An Identity and Access Management (IAM) policy, which specifies access
1931
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1932
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1933
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1934
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1935
+ # role or a user-created custom role. For some types of Google Cloud resources,
1936
+ # a `binding` can also specify a `condition`, which is a logical expression that
1937
+ # allows access to a resource only if the expression evaluates to `true`. A
1938
+ # condition can add constraints based on attributes of the request, the resource,
1939
+ # or both. To learn which resources support conditions in their IAM policies,
1940
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1941
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1942
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1943
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1944
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1945
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1946
+ # title": "expirable access", "description": "Does not grant access after Sep
1947
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1948
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1949
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1950
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1951
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1952
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1953
+ # description: Does not grant access after Sep 2020 expression: request.time <
1954
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1955
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1956
+ # google.com/iam/docs/).
1957
+ # Corresponds to the JSON property `policy`
1958
+ # @return [Google::Apis::GkehubV1alpha::Policy]
1959
+ attr_accessor :policy
1960
+
1961
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1962
+ # the fields in the mask will be modified. If no mask is provided, the following
1963
+ # default mask is used: `paths: "bindings, etag"`
1964
+ # Corresponds to the JSON property `updateMask`
1965
+ # @return [String]
1966
+ attr_accessor :update_mask
1967
+
1968
+ def initialize(**args)
1969
+ update!(**args)
1970
+ end
1971
+
1972
+ # Update properties of this object
1973
+ def update!(**args)
1974
+ @policy = args[:policy] if args.key?(:policy)
1975
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1976
+ end
1977
+ end
1978
+
1979
+ # Request message for `TestIamPermissions` method.
1980
+ class TestIamPermissionsRequest
1981
+ include Google::Apis::Core::Hashable
1982
+
1983
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1984
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1985
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1986
+ # Corresponds to the JSON property `permissions`
1987
+ # @return [Array<String>]
1988
+ attr_accessor :permissions
1989
+
1990
+ def initialize(**args)
1991
+ update!(**args)
1992
+ end
1993
+
1994
+ # Update properties of this object
1995
+ def update!(**args)
1996
+ @permissions = args[:permissions] if args.key?(:permissions)
1997
+ end
1998
+ end
1999
+
2000
+ # Response message for `TestIamPermissions` method.
2001
+ class TestIamPermissionsResponse
2002
+ include Google::Apis::Core::Hashable
2003
+
2004
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2005
+ # Corresponds to the JSON property `permissions`
2006
+ # @return [Array<String>]
2007
+ attr_accessor :permissions
2008
+
2009
+ def initialize(**args)
2010
+ update!(**args)
2011
+ end
2012
+
2013
+ # Update properties of this object
2014
+ def update!(**args)
2015
+ @permissions = args[:permissions] if args.key?(:permissions)
2016
+ end
2017
+ end
2018
+ end
2019
+ end
2020
+ end