google-apis-binaryauthorization_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f75f9741cd6ab5896a6159ca971bb33a71f95e54ab722c5724240cdfcdaf938e
4
+ data.tar.gz: 5f2484b7d210c84a423bb08df455ac40da066f54dc8d9e25bb6a9d172dd370a5
5
+ SHA512:
6
+ metadata.gz: 004c52d5172f647bdcfcdcc9faa8d3c852558ecb7f237e1bc4ea306479536aed76af713394b76675ba499507d1dd1e2cba89007265661243453b00c83d24f76a
7
+ data.tar.gz: ad487e8c5f9e72e2e004860bda96cb2cad262b31c426d0cdeeee108142238834200356f3773a4d4495dfadeb8f1092ac47ce2ee269c096a87141ba4d05c2b596
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-binaryauthorization_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/binaryauthorization_v1beta1/*.rb
9
+ lib/google/apis/binaryauthorization_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-binaryauthorization_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201113
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Binary Authorization API
2
+
3
+ This is a simple client library for version V1beta1 of the Binary Authorization API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/binaryauthorization.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-binaryauthorization_v1beta1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-binaryauthorization_v1beta1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/binaryauthorization_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::BinaryauthorizationV1beta1::BinaryAuthorizationService.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 Binaryauthorization service in particular.)
67
+
68
+ For reference information on specific calls in the Binary Authorization API, see the {Google::Apis::BinaryauthorizationV1beta1::BinaryAuthorizationService 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-binaryauthorization_v1beta1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/binary-authorization/) 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/binaryauthorization_v1beta1"
@@ -0,0 +1,37 @@
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/binaryauthorization_v1beta1/service.rb'
16
+ require 'google/apis/binaryauthorization_v1beta1/classes.rb'
17
+ require 'google/apis/binaryauthorization_v1beta1/representations.rb'
18
+ require 'google/apis/binaryauthorization_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Binary Authorization API
23
+ #
24
+ # The management interface for Binary Authorization, a system providing policy
25
+ # control for images deployed to Kubernetes Engine clusters.
26
+ #
27
+ # @see https://cloud.google.com/binary-authorization/
28
+ module BinaryauthorizationV1beta1
29
+ # Version of the Binary Authorization API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta1'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,850 @@
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 BinaryauthorizationV1beta1
24
+
25
+ # An admission rule specifies either that all container images used in a pod
26
+ # creation request must be attested to by one or more attestors, that all pod
27
+ # creations will be allowed, or that all pod creations will be denied. Images
28
+ # matching an admission whitelist pattern are exempted from admission rules and
29
+ # will never block a pod creation.
30
+ class AdmissionRule
31
+ include Google::Apis::Core::Hashable
32
+
33
+ # Required. The action when a pod creation is denied by the admission rule.
34
+ # Corresponds to the JSON property `enforcementMode`
35
+ # @return [String]
36
+ attr_accessor :enforcement_mode
37
+
38
+ # Required. How this admission rule will be evaluated.
39
+ # Corresponds to the JSON property `evaluationMode`
40
+ # @return [String]
41
+ attr_accessor :evaluation_mode
42
+
43
+ # Optional. The resource names of the attestors that must attest to a container
44
+ # image, in the format `projects/*/attestors/*`. Each attestor must exist before
45
+ # a policy can reference it. To add an attestor to a policy the principal
46
+ # issuing the policy change request must be able to read the attestor resource.
47
+ # Note: this field must be non-empty when the evaluation_mode field specifies
48
+ # REQUIRE_ATTESTATION, otherwise it must be empty.
49
+ # Corresponds to the JSON property `requireAttestationsBy`
50
+ # @return [Array<String>]
51
+ attr_accessor :require_attestations_by
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @enforcement_mode = args[:enforcement_mode] if args.key?(:enforcement_mode)
60
+ @evaluation_mode = args[:evaluation_mode] if args.key?(:evaluation_mode)
61
+ @require_attestations_by = args[:require_attestations_by] if args.key?(:require_attestations_by)
62
+ end
63
+ end
64
+
65
+ # An admission whitelist pattern exempts images from checks by admission rules.
66
+ class AdmissionWhitelistPattern
67
+ include Google::Apis::Core::Hashable
68
+
69
+ # An image name pattern to allowlist, in the form `registry/path/to/image`. This
70
+ # supports a trailing `*` as a wildcard, but this is allowed only in text after
71
+ # the `registry/` part. Also wildcards do not match `/`, i.e., gcr.io/nginx*
72
+ # matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image.
73
+ # Corresponds to the JSON property `namePattern`
74
+ # @return [String]
75
+ attr_accessor :name_pattern
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @name_pattern = args[:name_pattern] if args.key?(:name_pattern)
84
+ end
85
+ end
86
+
87
+ # Occurrence that represents a single "attestation". The authenticity of an
88
+ # attestation can be verified using the attached signature. If the verifier
89
+ # trusts the public key of the signer, then verifying the signature is
90
+ # sufficient to establish trust. In this circumstance, the authority to which
91
+ # this attestation is attached is primarily useful for lookup (how to find this
92
+ # attestation if you already know the authority and artifact to be verified) and
93
+ # intent (for which authority this attestation was intended to sign.
94
+ class AttestationOccurrence
95
+ include Google::Apis::Core::Hashable
96
+
97
+ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the
98
+ # payload that it verifies within the JWT itself. Verifier implementation SHOULD
99
+ # ignore the `serialized_payload` field when verifying these JWTs. If only JWTs
100
+ # are present on this AttestationOccurrence, then the `serialized_payload`
101
+ # SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `
102
+ # resource_uri` of this Occurrence, but this is not validated by Grafeas
103
+ # metadata API implementations. The JWT itself is opaque to Grafeas.
104
+ # Corresponds to the JSON property `jwts`
105
+ # @return [Array<Google::Apis::BinaryauthorizationV1beta1::Jwt>]
106
+ attr_accessor :jwts
107
+
108
+ # Required. The serialized payload that is verified by one or more `signatures`.
109
+ # Corresponds to the JSON property `serializedPayload`
110
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
111
+ # @return [String]
112
+ attr_accessor :serialized_payload
113
+
114
+ # One or more signatures over `serialized_payload`. Verifier implementations
115
+ # should consider this attestation message verified if at least one `signature`
116
+ # verifies `serialized_payload`. See `Signature` in common.proto for more
117
+ # details on signature structure and verification.
118
+ # Corresponds to the JSON property `signatures`
119
+ # @return [Array<Google::Apis::BinaryauthorizationV1beta1::Signature>]
120
+ attr_accessor :signatures
121
+
122
+ def initialize(**args)
123
+ update!(**args)
124
+ end
125
+
126
+ # Update properties of this object
127
+ def update!(**args)
128
+ @jwts = args[:jwts] if args.key?(:jwts)
129
+ @serialized_payload = args[:serialized_payload] if args.key?(:serialized_payload)
130
+ @signatures = args[:signatures] if args.key?(:signatures)
131
+ end
132
+ end
133
+
134
+ # An attestor that attests to container image artifacts. An existing attestor
135
+ # cannot be modified except where indicated.
136
+ class Attestor
137
+ include Google::Apis::Core::Hashable
138
+
139
+ # Optional. A descriptive comment. This field may be updated. The field may be
140
+ # displayed in chooser dialogs.
141
+ # Corresponds to the JSON property `description`
142
+ # @return [String]
143
+ attr_accessor :description
144
+
145
+ # Required. The resource name, in the format: `projects/*/attestors/*`. This
146
+ # field may not be updated.
147
+ # Corresponds to the JSON property `name`
148
+ # @return [String]
149
+ attr_accessor :name
150
+
151
+ # Output only. Time when the attestor was last updated.
152
+ # Corresponds to the JSON property `updateTime`
153
+ # @return [String]
154
+ attr_accessor :update_time
155
+
156
+ # An user owned drydock note references a Drydock ATTESTATION_AUTHORITY Note
157
+ # created by the user.
158
+ # Corresponds to the JSON property `userOwnedDrydockNote`
159
+ # @return [Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote]
160
+ attr_accessor :user_owned_drydock_note
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @description = args[:description] if args.key?(:description)
169
+ @name = args[:name] if args.key?(:name)
170
+ @update_time = args[:update_time] if args.key?(:update_time)
171
+ @user_owned_drydock_note = args[:user_owned_drydock_note] if args.key?(:user_owned_drydock_note)
172
+ end
173
+ end
174
+
175
+ # An attestor public key that will be used to verify attestations signed by this
176
+ # attestor.
177
+ class AttestorPublicKey
178
+ include Google::Apis::Core::Hashable
179
+
180
+ # ASCII-armored representation of a PGP public key, as the entire output by the
181
+ # command `gpg --export --armor foo@example.com` (either LF or CRLF line endings)
182
+ # . When using this field, `id` should be left blank. The BinAuthz API handlers
183
+ # will calculate the ID and fill it in automatically. BinAuthz computes this ID
184
+ # as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If `id`
185
+ # is provided by the caller, it will be overwritten by the API-calculated ID.
186
+ # Corresponds to the JSON property `asciiArmoredPgpPublicKey`
187
+ # @return [String]
188
+ attr_accessor :ascii_armored_pgp_public_key
189
+
190
+ # Optional. A descriptive comment. This field may be updated.
191
+ # Corresponds to the JSON property `comment`
192
+ # @return [String]
193
+ attr_accessor :comment
194
+
195
+ # The ID of this public key. Signatures verified by BinAuthz must include the ID
196
+ # of the public key that can be used to verify them, and that ID must match the
197
+ # contents of this field exactly. Additional restrictions on this field can be
198
+ # imposed based on which public key type is encapsulated. See the documentation
199
+ # on `public_key` cases below for details.
200
+ # Corresponds to the JSON property `id`
201
+ # @return [String]
202
+ attr_accessor :id
203
+
204
+ # A public key in the PkixPublicKey format (see https://tools.ietf.org/html/
205
+ # rfc5280#section-4.1.2.7 for details). Public keys of this type are typically
206
+ # textually encoded using the PEM format.
207
+ # Corresponds to the JSON property `pkixPublicKey`
208
+ # @return [Google::Apis::BinaryauthorizationV1beta1::PkixPublicKey]
209
+ attr_accessor :pkix_public_key
210
+
211
+ def initialize(**args)
212
+ update!(**args)
213
+ end
214
+
215
+ # Update properties of this object
216
+ def update!(**args)
217
+ @ascii_armored_pgp_public_key = args[:ascii_armored_pgp_public_key] if args.key?(:ascii_armored_pgp_public_key)
218
+ @comment = args[:comment] if args.key?(:comment)
219
+ @id = args[:id] if args.key?(:id)
220
+ @pkix_public_key = args[:pkix_public_key] if args.key?(:pkix_public_key)
221
+ end
222
+ end
223
+
224
+ # Associates `members` with a `role`.
225
+ class Binding
226
+ include Google::Apis::Core::Hashable
227
+
228
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
229
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
230
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
231
+ # "Summary size limit" description: "Determines if a summary is less than 100
232
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
233
+ # Requestor is owner" description: "Determines if requestor is the document
234
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
235
+ # Logic): title: "Public documents" description: "Determine whether the document
236
+ # should be publicly visible" expression: "document.type != 'private' &&
237
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
238
+ # string" description: "Create a notification string with a timestamp."
239
+ # expression: "'New message received at ' + string(document.create_time)" The
240
+ # exact variables and functions that may be referenced within an expression are
241
+ # determined by the service that evaluates it. See the service documentation for
242
+ # additional information.
243
+ # Corresponds to the JSON property `condition`
244
+ # @return [Google::Apis::BinaryauthorizationV1beta1::Expr]
245
+ attr_accessor :condition
246
+
247
+ # Specifies the identities requesting access for a Cloud Platform resource. `
248
+ # members` can have the following values: * `allUsers`: A special identifier
249
+ # that represents anyone who is on the internet; with or without a Google
250
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
251
+ # anyone who is authenticated with a Google account or a service account. * `
252
+ # user:`emailid``: An email address that represents a specific Google account.
253
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
254
+ # address that represents a service account. For example, `my-other-app@appspot.
255
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
256
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
257
+ # `uniqueid``: An email address (plus unique identifier) representing a user
258
+ # that has been recently deleted. For example, `alice@example.com?uid=
259
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
260
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
261
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
262
+ # identifier) representing a service account that has been recently deleted. For
263
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
264
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
265
+ # emailid`` and the undeleted service account retains the role in the binding. *
266
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
267
+ # identifier) representing a Google group that has been recently deleted. For
268
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
269
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
270
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
271
+ # primary) that represents all the users of that domain. For example, `google.
272
+ # com` or `example.com`.
273
+ # Corresponds to the JSON property `members`
274
+ # @return [Array<String>]
275
+ attr_accessor :members
276
+
277
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
278
+ # , or `roles/owner`.
279
+ # Corresponds to the JSON property `role`
280
+ # @return [String]
281
+ attr_accessor :role
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @condition = args[:condition] if args.key?(:condition)
290
+ @members = args[:members] if args.key?(:members)
291
+ @role = args[:role] if args.key?(:role)
292
+ end
293
+ end
294
+
295
+ # A generic empty message that you can re-use to avoid defining duplicated empty
296
+ # messages in your APIs. A typical example is to use it as the request or the
297
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
298
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
299
+ # `Empty` is empty JSON object ````.
300
+ class Empty
301
+ include Google::Apis::Core::Hashable
302
+
303
+ def initialize(**args)
304
+ update!(**args)
305
+ end
306
+
307
+ # Update properties of this object
308
+ def update!(**args)
309
+ end
310
+ end
311
+
312
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
313
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
314
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
315
+ # "Summary size limit" description: "Determines if a summary is less than 100
316
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
317
+ # Requestor is owner" description: "Determines if requestor is the document
318
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
319
+ # Logic): title: "Public documents" description: "Determine whether the document
320
+ # should be publicly visible" expression: "document.type != 'private' &&
321
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
322
+ # string" description: "Create a notification string with a timestamp."
323
+ # expression: "'New message received at ' + string(document.create_time)" The
324
+ # exact variables and functions that may be referenced within an expression are
325
+ # determined by the service that evaluates it. See the service documentation for
326
+ # additional information.
327
+ class Expr
328
+ include Google::Apis::Core::Hashable
329
+
330
+ # Optional. Description of the expression. This is a longer text which describes
331
+ # the expression, e.g. when hovered over it in a UI.
332
+ # Corresponds to the JSON property `description`
333
+ # @return [String]
334
+ attr_accessor :description
335
+
336
+ # Textual representation of an expression in Common Expression Language syntax.
337
+ # Corresponds to the JSON property `expression`
338
+ # @return [String]
339
+ attr_accessor :expression
340
+
341
+ # Optional. String indicating the location of the expression for error reporting,
342
+ # e.g. a file name and a position in the file.
343
+ # Corresponds to the JSON property `location`
344
+ # @return [String]
345
+ attr_accessor :location
346
+
347
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
348
+ # This can be used e.g. in UIs which allow to enter the expression.
349
+ # Corresponds to the JSON property `title`
350
+ # @return [String]
351
+ attr_accessor :title
352
+
353
+ def initialize(**args)
354
+ update!(**args)
355
+ end
356
+
357
+ # Update properties of this object
358
+ def update!(**args)
359
+ @description = args[:description] if args.key?(:description)
360
+ @expression = args[:expression] if args.key?(:expression)
361
+ @location = args[:location] if args.key?(:location)
362
+ @title = args[:title] if args.key?(:title)
363
+ end
364
+ end
365
+
366
+ # An Identity and Access Management (IAM) policy, which specifies access
367
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
368
+ # A `binding` binds one or more `members` to a single `role`. Members can be
369
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
370
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
371
+ # role or a user-created custom role. For some types of Google Cloud resources,
372
+ # a `binding` can also specify a `condition`, which is a logical expression that
373
+ # allows access to a resource only if the expression evaluates to `true`. A
374
+ # condition can add constraints based on attributes of the request, the resource,
375
+ # or both. To learn which resources support conditions in their IAM policies,
376
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
377
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
378
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
379
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
380
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
381
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
382
+ # title": "expirable access", "description": "Does not grant access after Sep
383
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
384
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
385
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
386
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
387
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
388
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
389
+ # description: Does not grant access after Sep 2020 expression: request.time <
390
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
391
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
392
+ # google.com/iam/docs/).
393
+ class IamPolicy
394
+ include Google::Apis::Core::Hashable
395
+
396
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
397
+ # condition` that determines how and when the `bindings` are applied. Each of
398
+ # the `bindings` must contain at least one member.
399
+ # Corresponds to the JSON property `bindings`
400
+ # @return [Array<Google::Apis::BinaryauthorizationV1beta1::Binding>]
401
+ attr_accessor :bindings
402
+
403
+ # `etag` is used for optimistic concurrency control as a way to help prevent
404
+ # simultaneous updates of a policy from overwriting each other. It is strongly
405
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
406
+ # to perform policy updates in order to avoid race conditions: An `etag` is
407
+ # returned in the response to `getIamPolicy`, and systems are expected to put
408
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
409
+ # applied to the same version of the policy. **Important:** If you use IAM
410
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
411
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
412
+ # with a version `1` policy, and all of the conditions in the version `3` policy
413
+ # are lost.
414
+ # Corresponds to the JSON property `etag`
415
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
416
+ # @return [String]
417
+ attr_accessor :etag
418
+
419
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
420
+ # Requests that specify an invalid value are rejected. Any operation that
421
+ # affects conditional role bindings must specify version `3`. This requirement
422
+ # applies to the following operations: * Getting a policy that includes a
423
+ # conditional role binding * Adding a conditional role binding to a policy *
424
+ # Changing a conditional role binding in a policy * Removing any role binding,
425
+ # with or without a condition, from a policy that includes conditions **
426
+ # Important:** If you use IAM Conditions, you must include the `etag` field
427
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
428
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
429
+ # conditions in the version `3` policy are lost. If a policy does not include
430
+ # any conditions, operations on that policy may specify any valid version or
431
+ # leave the field unset. To learn which resources support conditions in their
432
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
433
+ # conditions/resource-policies).
434
+ # Corresponds to the JSON property `version`
435
+ # @return [Fixnum]
436
+ attr_accessor :version
437
+
438
+ def initialize(**args)
439
+ update!(**args)
440
+ end
441
+
442
+ # Update properties of this object
443
+ def update!(**args)
444
+ @bindings = args[:bindings] if args.key?(:bindings)
445
+ @etag = args[:etag] if args.key?(:etag)
446
+ @version = args[:version] if args.key?(:version)
447
+ end
448
+ end
449
+
450
+ #
451
+ class Jwt
452
+ include Google::Apis::Core::Hashable
453
+
454
+ # The compact encoding of a JWS, which is always three base64 encoded strings
455
+ # joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#
456
+ # section-3.1
457
+ # Corresponds to the JSON property `compactJwt`
458
+ # @return [String]
459
+ attr_accessor :compact_jwt
460
+
461
+ def initialize(**args)
462
+ update!(**args)
463
+ end
464
+
465
+ # Update properties of this object
466
+ def update!(**args)
467
+ @compact_jwt = args[:compact_jwt] if args.key?(:compact_jwt)
468
+ end
469
+ end
470
+
471
+ # Response message for BinauthzManagementService.ListAttestors.
472
+ class ListAttestorsResponse
473
+ include Google::Apis::Core::Hashable
474
+
475
+ # The list of attestors.
476
+ # Corresponds to the JSON property `attestors`
477
+ # @return [Array<Google::Apis::BinaryauthorizationV1beta1::Attestor>]
478
+ attr_accessor :attestors
479
+
480
+ # A token to retrieve the next page of results. Pass this value in the
481
+ # ListAttestorsRequest.page_token field in the subsequent call to the `
482
+ # ListAttestors` method to retrieve the next page of results.
483
+ # Corresponds to the JSON property `nextPageToken`
484
+ # @return [String]
485
+ attr_accessor :next_page_token
486
+
487
+ def initialize(**args)
488
+ update!(**args)
489
+ end
490
+
491
+ # Update properties of this object
492
+ def update!(**args)
493
+ @attestors = args[:attestors] if args.key?(:attestors)
494
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
495
+ end
496
+ end
497
+
498
+ # A public key in the PkixPublicKey format (see https://tools.ietf.org/html/
499
+ # rfc5280#section-4.1.2.7 for details). Public keys of this type are typically
500
+ # textually encoded using the PEM format.
501
+ class PkixPublicKey
502
+ include Google::Apis::Core::Hashable
503
+
504
+ # A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#
505
+ # section-13
506
+ # Corresponds to the JSON property `publicKeyPem`
507
+ # @return [String]
508
+ attr_accessor :public_key_pem
509
+
510
+ # The signature algorithm used to verify a message against a signature using
511
+ # this key. These signature algorithm must match the structure and any object
512
+ # identifiers encoded in `public_key_pem` (i.e. this algorithm must match that
513
+ # of the public key).
514
+ # Corresponds to the JSON property `signatureAlgorithm`
515
+ # @return [String]
516
+ attr_accessor :signature_algorithm
517
+
518
+ def initialize(**args)
519
+ update!(**args)
520
+ end
521
+
522
+ # Update properties of this object
523
+ def update!(**args)
524
+ @public_key_pem = args[:public_key_pem] if args.key?(:public_key_pem)
525
+ @signature_algorithm = args[:signature_algorithm] if args.key?(:signature_algorithm)
526
+ end
527
+ end
528
+
529
+ # A policy for container image binary authorization.
530
+ class Policy
531
+ include Google::Apis::Core::Hashable
532
+
533
+ # Optional. Admission policy allowlisting. A matching admission request will
534
+ # always be permitted. This feature is typically used to exclude Google or third-
535
+ # party infrastructure images from Binary Authorization policies.
536
+ # Corresponds to the JSON property `admissionWhitelistPatterns`
537
+ # @return [Array<Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern>]
538
+ attr_accessor :admission_whitelist_patterns
539
+
540
+ # Optional. Per-cluster admission rules. Cluster spec format: `location.
541
+ # clusterId`. There can be at most one admission rule per cluster spec. A `
542
+ # location` is either a compute zone (e.g. us-central1-a) or a region (e.g. us-
543
+ # central1). For `clusterId` syntax restrictions see https://cloud.google.com/
544
+ # container-engine/reference/rest/v1/projects.zones.clusters.
545
+ # Corresponds to the JSON property `clusterAdmissionRules`
546
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1beta1::AdmissionRule>]
547
+ attr_accessor :cluster_admission_rules
548
+
549
+ # An admission rule specifies either that all container images used in a pod
550
+ # creation request must be attested to by one or more attestors, that all pod
551
+ # creations will be allowed, or that all pod creations will be denied. Images
552
+ # matching an admission whitelist pattern are exempted from admission rules and
553
+ # will never block a pod creation.
554
+ # Corresponds to the JSON property `defaultAdmissionRule`
555
+ # @return [Google::Apis::BinaryauthorizationV1beta1::AdmissionRule]
556
+ attr_accessor :default_admission_rule
557
+
558
+ # Optional. A descriptive comment.
559
+ # Corresponds to the JSON property `description`
560
+ # @return [String]
561
+ attr_accessor :description
562
+
563
+ # Optional. Controls the evaluation of a Google-maintained global admission
564
+ # policy for common system-level images. Images not covered by the global policy
565
+ # will be subject to the project admission policy. This setting has no effect
566
+ # when specified inside a global admission policy.
567
+ # Corresponds to the JSON property `globalPolicyEvaluationMode`
568
+ # @return [String]
569
+ attr_accessor :global_policy_evaluation_mode
570
+
571
+ # Output only. The resource name, in the format `projects/*/policy`. There is at
572
+ # most one policy per project.
573
+ # Corresponds to the JSON property `name`
574
+ # @return [String]
575
+ attr_accessor :name
576
+
577
+ # Output only. Time when the policy was last updated.
578
+ # Corresponds to the JSON property `updateTime`
579
+ # @return [String]
580
+ attr_accessor :update_time
581
+
582
+ def initialize(**args)
583
+ update!(**args)
584
+ end
585
+
586
+ # Update properties of this object
587
+ def update!(**args)
588
+ @admission_whitelist_patterns = args[:admission_whitelist_patterns] if args.key?(:admission_whitelist_patterns)
589
+ @cluster_admission_rules = args[:cluster_admission_rules] if args.key?(:cluster_admission_rules)
590
+ @default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule)
591
+ @description = args[:description] if args.key?(:description)
592
+ @global_policy_evaluation_mode = args[:global_policy_evaluation_mode] if args.key?(:global_policy_evaluation_mode)
593
+ @name = args[:name] if args.key?(:name)
594
+ @update_time = args[:update_time] if args.key?(:update_time)
595
+ end
596
+ end
597
+
598
+ # Request message for `SetIamPolicy` method.
599
+ class SetIamPolicyRequest
600
+ include Google::Apis::Core::Hashable
601
+
602
+ # An Identity and Access Management (IAM) policy, which specifies access
603
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
604
+ # A `binding` binds one or more `members` to a single `role`. Members can be
605
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
606
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
607
+ # role or a user-created custom role. For some types of Google Cloud resources,
608
+ # a `binding` can also specify a `condition`, which is a logical expression that
609
+ # allows access to a resource only if the expression evaluates to `true`. A
610
+ # condition can add constraints based on attributes of the request, the resource,
611
+ # or both. To learn which resources support conditions in their IAM policies,
612
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
613
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
614
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
615
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
616
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
617
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
618
+ # title": "expirable access", "description": "Does not grant access after Sep
619
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
620
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
621
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
622
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
623
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
624
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
625
+ # description: Does not grant access after Sep 2020 expression: request.time <
626
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
627
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
628
+ # google.com/iam/docs/).
629
+ # Corresponds to the JSON property `policy`
630
+ # @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy]
631
+ attr_accessor :policy
632
+
633
+ def initialize(**args)
634
+ update!(**args)
635
+ end
636
+
637
+ # Update properties of this object
638
+ def update!(**args)
639
+ @policy = args[:policy] if args.key?(:policy)
640
+ end
641
+ end
642
+
643
+ # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
644
+ # the trust anchors defined in policy (e.g. a Kritis policy). Typically this
645
+ # means that the verifier has been configured with a map from `public_key_id` to
646
+ # public key material (and any required parameters, e.g. signing algorithm). In
647
+ # particular, verification implementations MUST NOT treat the signature `
648
+ # public_key_id` as anything more than a key lookup hint. The `public_key_id`
649
+ # DOES NOT validate or authenticate a public key; it only provides a mechanism
650
+ # for quickly selecting a public key ALREADY CONFIGURED on the verifier through
651
+ # a trusted channel. Verification implementations MUST reject signatures in any
652
+ # of the following circumstances: * The `public_key_id` is not recognized by the
653
+ # verifier. * The public key that `public_key_id` refers to does not verify the
654
+ # signature with respect to the payload. The `signature` contents SHOULD NOT be "
655
+ # attached" (where the payload is included with the serialized `signature` bytes)
656
+ # . Verifiers MUST ignore any "attached" payload and only verify signatures with
657
+ # respect to explicitly provided payload (e.g. a `payload` field on the proto
658
+ # message that holds this Signature, or the canonical serialization of the proto
659
+ # message that holds this signature).
660
+ class Signature
661
+ include Google::Apis::Core::Hashable
662
+
663
+ # The identifier for the public key that verifies this signature. * The `
664
+ # public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986
665
+ # conformant URI. * When possible, the `public_key_id` SHOULD be an immutable
666
+ # reference, such as a cryptographic digest. Examples of valid `public_key_id`s:
667
+ # OpenPGP V4 public key fingerprint: * "openpgp4fpr:
668
+ # 74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See https://www.iana.org/assignments/
669
+ # uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-
670
+ # named SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256;
671
+ # cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;
672
+ # 703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
673
+ # Corresponds to the JSON property `publicKeyId`
674
+ # @return [String]
675
+ attr_accessor :public_key_id
676
+
677
+ # The content of the signature, an opaque bytestring. The payload that this
678
+ # signature verifies MUST be unambiguously provided with the Signature during
679
+ # verification. A wrapper message might provide the payload explicitly.
680
+ # Alternatively, a message might have a canonical serialization that can always
681
+ # be unambiguously computed to derive the payload.
682
+ # Corresponds to the JSON property `signature`
683
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
684
+ # @return [String]
685
+ attr_accessor :signature
686
+
687
+ def initialize(**args)
688
+ update!(**args)
689
+ end
690
+
691
+ # Update properties of this object
692
+ def update!(**args)
693
+ @public_key_id = args[:public_key_id] if args.key?(:public_key_id)
694
+ @signature = args[:signature] if args.key?(:signature)
695
+ end
696
+ end
697
+
698
+ # Request message for `TestIamPermissions` method.
699
+ class TestIamPermissionsRequest
700
+ include Google::Apis::Core::Hashable
701
+
702
+ # The set of permissions to check for the `resource`. Permissions with wildcards
703
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
704
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
705
+ # Corresponds to the JSON property `permissions`
706
+ # @return [Array<String>]
707
+ attr_accessor :permissions
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @permissions = args[:permissions] if args.key?(:permissions)
716
+ end
717
+ end
718
+
719
+ # Response message for `TestIamPermissions` method.
720
+ class TestIamPermissionsResponse
721
+ include Google::Apis::Core::Hashable
722
+
723
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
724
+ # Corresponds to the JSON property `permissions`
725
+ # @return [Array<String>]
726
+ attr_accessor :permissions
727
+
728
+ def initialize(**args)
729
+ update!(**args)
730
+ end
731
+
732
+ # Update properties of this object
733
+ def update!(**args)
734
+ @permissions = args[:permissions] if args.key?(:permissions)
735
+ end
736
+ end
737
+
738
+ # An user owned drydock note references a Drydock ATTESTATION_AUTHORITY Note
739
+ # created by the user.
740
+ class UserOwnedDrydockNote
741
+ include Google::Apis::Core::Hashable
742
+
743
+ # Output only. This field will contain the service account email address that
744
+ # this Attestor will use as the principal when querying Container Analysis.
745
+ # Attestor administrators must grant this service account the IAM role needed to
746
+ # read attestations from the note_reference in Container Analysis (`
747
+ # containeranalysis.notes.occurrences.viewer`). This email address is fixed for
748
+ # the lifetime of the Attestor, but callers should not make any other
749
+ # assumptions about the service account email; future versions may use an email
750
+ # based on a different naming pattern.
751
+ # Corresponds to the JSON property `delegationServiceAccountEmail`
752
+ # @return [String]
753
+ attr_accessor :delegation_service_account_email
754
+
755
+ # Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note, created
756
+ # by the user, in the format: `projects/*/notes/*` (or the legacy `providers/*/
757
+ # notes/*`). This field may not be updated. An attestation by this attestor is
758
+ # stored as a Drydock ATTESTATION_AUTHORITY Occurrence that names a container
759
+ # image and that links to this Note. Drydock is an external dependency.
760
+ # Corresponds to the JSON property `noteReference`
761
+ # @return [String]
762
+ attr_accessor :note_reference
763
+
764
+ # Optional. Public keys that verify attestations signed by this attestor. This
765
+ # field may be updated. If this field is non-empty, one of the specified public
766
+ # keys must verify that an attestation was signed by this attestor for the image
767
+ # specified in the admission request. If this field is empty, this attestor
768
+ # always returns that no valid attestations exist.
769
+ # Corresponds to the JSON property `publicKeys`
770
+ # @return [Array<Google::Apis::BinaryauthorizationV1beta1::AttestorPublicKey>]
771
+ attr_accessor :public_keys
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @delegation_service_account_email = args[:delegation_service_account_email] if args.key?(:delegation_service_account_email)
780
+ @note_reference = args[:note_reference] if args.key?(:note_reference)
781
+ @public_keys = args[:public_keys] if args.key?(:public_keys)
782
+ end
783
+ end
784
+
785
+ # Request message for ValidationHelperV1.ValidateAttestationOccurrence.
786
+ class ValidateAttestationOccurrenceRequest
787
+ include Google::Apis::Core::Hashable
788
+
789
+ # Occurrence that represents a single "attestation". The authenticity of an
790
+ # attestation can be verified using the attached signature. If the verifier
791
+ # trusts the public key of the signer, then verifying the signature is
792
+ # sufficient to establish trust. In this circumstance, the authority to which
793
+ # this attestation is attached is primarily useful for lookup (how to find this
794
+ # attestation if you already know the authority and artifact to be verified) and
795
+ # intent (for which authority this attestation was intended to sign.
796
+ # Corresponds to the JSON property `attestation`
797
+ # @return [Google::Apis::BinaryauthorizationV1beta1::AttestationOccurrence]
798
+ attr_accessor :attestation
799
+
800
+ # Required. The resource name of the Note to which the containing Occurrence is
801
+ # associated.
802
+ # Corresponds to the JSON property `occurrenceNote`
803
+ # @return [String]
804
+ attr_accessor :occurrence_note
805
+
806
+ # Required. The URI of the artifact (e.g. container image) that is the subject
807
+ # of the containing Occurrence.
808
+ # Corresponds to the JSON property `occurrenceResourceUri`
809
+ # @return [String]
810
+ attr_accessor :occurrence_resource_uri
811
+
812
+ def initialize(**args)
813
+ update!(**args)
814
+ end
815
+
816
+ # Update properties of this object
817
+ def update!(**args)
818
+ @attestation = args[:attestation] if args.key?(:attestation)
819
+ @occurrence_note = args[:occurrence_note] if args.key?(:occurrence_note)
820
+ @occurrence_resource_uri = args[:occurrence_resource_uri] if args.key?(:occurrence_resource_uri)
821
+ end
822
+ end
823
+
824
+ # Response message for ValidationHelperV1.ValidateAttestationOccurrence.
825
+ class ValidateAttestationOccurrenceResponse
826
+ include Google::Apis::Core::Hashable
827
+
828
+ # The reason for denial if the Attestation couldn't be validated.
829
+ # Corresponds to the JSON property `denialReason`
830
+ # @return [String]
831
+ attr_accessor :denial_reason
832
+
833
+ # The result of the Attestation validation.
834
+ # Corresponds to the JSON property `result`
835
+ # @return [String]
836
+ attr_accessor :result
837
+
838
+ def initialize(**args)
839
+ update!(**args)
840
+ end
841
+
842
+ # Update properties of this object
843
+ def update!(**args)
844
+ @denial_reason = args[:denial_reason] if args.key?(:denial_reason)
845
+ @result = args[:result] if args.key?(:result)
846
+ end
847
+ end
848
+ end
849
+ end
850
+ end