google-apis-artifactregistry_v1beta2 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: 015f9ce1d5b7b8f5f58a45e31d1452e0c3cbe294fbd40d3afaa4a60914c4cd93
4
+ data.tar.gz: 72daff3cda45d207e8640cbe5b7a8dea5816917cd591a3fd070e217b9c0d82ee
5
+ SHA512:
6
+ metadata.gz: dc380d7b6acc76fa89e2f5effdc7a447c01ccfa6680e05dacaa105c3e2bac0f5602ad65be449326057d4fd5119826573c4c1665c7e040be8d4c9f73ab3875903
7
+ data.tar.gz: 0ca5f4dc6e4c80a09e2faa0bfff601fe695241daae09c438e95c075483796c570d44cda625cdfaa065e5a1c0a67f740f337a71066daf1d7a03e371c23ee58737
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-artifactregistry_v1beta2
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/artifactregistry_v1beta2/*.rb
9
+ lib/google/apis/artifactregistry_v1beta2.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-artifactregistry_v1beta2
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201215
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 V1beta2 of the Artifact Registry API
2
+
3
+ This is a simple client library for version V1beta2 of the Artifact Registry 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/artifactregistry.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-artifactregistry_v1beta2', '~> 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-artifactregistry_v1beta2
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/artifactregistry_v1beta2"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::ArtifactregistryV1beta2::ArtifactRegistryService.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 Artifactregistry service in particular.)
67
+
68
+ For reference information on specific calls in the Artifact Registry API, see the {Google::Apis::ArtifactregistryV1beta2::ArtifactRegistryService 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-artifactregistry_v1beta2`, 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/artifacts/docs/) 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/artifactregistry_v1beta2"
@@ -0,0 +1,40 @@
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/artifactregistry_v1beta2/service.rb'
16
+ require 'google/apis/artifactregistry_v1beta2/classes.rb'
17
+ require 'google/apis/artifactregistry_v1beta2/representations.rb'
18
+ require 'google/apis/artifactregistry_v1beta2/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Artifact Registry API
23
+ #
24
+ # Store and manage build artifacts in a scalable and integrated service built on
25
+ # Google infrastructure.
26
+ #
27
+ # @see https://cloud.google.com/artifacts/docs/
28
+ module ArtifactregistryV1beta2
29
+ # Version of the Artifact Registry API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta2'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+
36
+ # View your data across Google Cloud Platform services
37
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,917 @@
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 ArtifactregistryV1beta2
24
+
25
+ # Associates `members` with a `role`.
26
+ class Binding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
30
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
31
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
32
+ # "Summary size limit" description: "Determines if a summary is less than 100
33
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
34
+ # Requestor is owner" description: "Determines if requestor is the document
35
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
36
+ # Logic): title: "Public documents" description: "Determine whether the document
37
+ # should be publicly visible" expression: "document.type != 'private' &&
38
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
39
+ # string" description: "Create a notification string with a timestamp."
40
+ # expression: "'New message received at ' + string(document.create_time)" The
41
+ # exact variables and functions that may be referenced within an expression are
42
+ # determined by the service that evaluates it. See the service documentation for
43
+ # additional information.
44
+ # Corresponds to the JSON property `condition`
45
+ # @return [Google::Apis::ArtifactregistryV1beta2::Expr]
46
+ attr_accessor :condition
47
+
48
+ # Specifies the identities requesting access for a Cloud Platform resource. `
49
+ # members` can have the following values: * `allUsers`: A special identifier
50
+ # that represents anyone who is on the internet; with or without a Google
51
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
52
+ # anyone who is authenticated with a Google account or a service account. * `
53
+ # user:`emailid``: An email address that represents a specific Google account.
54
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
55
+ # address that represents a service account. For example, `my-other-app@appspot.
56
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
57
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
58
+ # `uniqueid``: An email address (plus unique identifier) representing a user
59
+ # that has been recently deleted. For example, `alice@example.com?uid=
60
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
61
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
62
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
63
+ # identifier) representing a service account that has been recently deleted. For
64
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
65
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
66
+ # emailid`` and the undeleted service account retains the role in the binding. *
67
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
68
+ # identifier) representing a Google group that has been recently deleted. For
69
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
70
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
71
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
72
+ # primary) that represents all the users of that domain. For example, `google.
73
+ # com` or `example.com`.
74
+ # Corresponds to the JSON property `members`
75
+ # @return [Array<String>]
76
+ attr_accessor :members
77
+
78
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
79
+ # , or `roles/owner`.
80
+ # Corresponds to the JSON property `role`
81
+ # @return [String]
82
+ attr_accessor :role
83
+
84
+ def initialize(**args)
85
+ update!(**args)
86
+ end
87
+
88
+ # Update properties of this object
89
+ def update!(**args)
90
+ @condition = args[:condition] if args.key?(:condition)
91
+ @members = args[:members] if args.key?(:members)
92
+ @role = args[:role] if args.key?(:role)
93
+ end
94
+ end
95
+
96
+ # A generic empty message that you can re-use to avoid defining duplicated empty
97
+ # messages in your APIs. A typical example is to use it as the request or the
98
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
99
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
100
+ # `Empty` is empty JSON object ````.
101
+ class Empty
102
+ include Google::Apis::Core::Hashable
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ end
111
+ end
112
+
113
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
114
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
115
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
116
+ # "Summary size limit" description: "Determines if a summary is less than 100
117
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
118
+ # Requestor is owner" description: "Determines if requestor is the document
119
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
120
+ # Logic): title: "Public documents" description: "Determine whether the document
121
+ # should be publicly visible" expression: "document.type != 'private' &&
122
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
123
+ # string" description: "Create a notification string with a timestamp."
124
+ # expression: "'New message received at ' + string(document.create_time)" The
125
+ # exact variables and functions that may be referenced within an expression are
126
+ # determined by the service that evaluates it. See the service documentation for
127
+ # additional information.
128
+ class Expr
129
+ include Google::Apis::Core::Hashable
130
+
131
+ # Optional. Description of the expression. This is a longer text which describes
132
+ # the expression, e.g. when hovered over it in a UI.
133
+ # Corresponds to the JSON property `description`
134
+ # @return [String]
135
+ attr_accessor :description
136
+
137
+ # Textual representation of an expression in Common Expression Language syntax.
138
+ # Corresponds to the JSON property `expression`
139
+ # @return [String]
140
+ attr_accessor :expression
141
+
142
+ # Optional. String indicating the location of the expression for error reporting,
143
+ # e.g. a file name and a position in the file.
144
+ # Corresponds to the JSON property `location`
145
+ # @return [String]
146
+ attr_accessor :location
147
+
148
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
149
+ # This can be used e.g. in UIs which allow to enter the expression.
150
+ # Corresponds to the JSON property `title`
151
+ # @return [String]
152
+ attr_accessor :title
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @description = args[:description] if args.key?(:description)
161
+ @expression = args[:expression] if args.key?(:expression)
162
+ @location = args[:location] if args.key?(:location)
163
+ @title = args[:title] if args.key?(:title)
164
+ end
165
+ end
166
+
167
+ # Files store content that is potentially associated with Packages or Versions.
168
+ class File
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The time when the File was created.
172
+ # Corresponds to the JSON property `createTime`
173
+ # @return [String]
174
+ attr_accessor :create_time
175
+
176
+ # The hashes of the file content.
177
+ # Corresponds to the JSON property `hashes`
178
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::HashProp>]
179
+ attr_accessor :hashes
180
+
181
+ # The name of the file, for example: "projects/p1/locations/us-central1/
182
+ # repositories/repo1/files/a/b/c.txt".
183
+ # Corresponds to the JSON property `name`
184
+ # @return [String]
185
+ attr_accessor :name
186
+
187
+ # The name of the Package or Version that owns this file, if any.
188
+ # Corresponds to the JSON property `owner`
189
+ # @return [String]
190
+ attr_accessor :owner
191
+
192
+ # The size of the File in bytes.
193
+ # Corresponds to the JSON property `sizeBytes`
194
+ # @return [Fixnum]
195
+ attr_accessor :size_bytes
196
+
197
+ # The time when the File was last updated.
198
+ # Corresponds to the JSON property `updateTime`
199
+ # @return [String]
200
+ attr_accessor :update_time
201
+
202
+ def initialize(**args)
203
+ update!(**args)
204
+ end
205
+
206
+ # Update properties of this object
207
+ def update!(**args)
208
+ @create_time = args[:create_time] if args.key?(:create_time)
209
+ @hashes = args[:hashes] if args.key?(:hashes)
210
+ @name = args[:name] if args.key?(:name)
211
+ @owner = args[:owner] if args.key?(:owner)
212
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
213
+ @update_time = args[:update_time] if args.key?(:update_time)
214
+ end
215
+ end
216
+
217
+ # A hash of file content.
218
+ class HashProp
219
+ include Google::Apis::Core::Hashable
220
+
221
+ # The algorithm used to compute the hash value.
222
+ # Corresponds to the JSON property `type`
223
+ # @return [String]
224
+ attr_accessor :type
225
+
226
+ # The hash value.
227
+ # Corresponds to the JSON property `value`
228
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
229
+ # @return [String]
230
+ attr_accessor :value
231
+
232
+ def initialize(**args)
233
+ update!(**args)
234
+ end
235
+
236
+ # Update properties of this object
237
+ def update!(**args)
238
+ @type = args[:type] if args.key?(:type)
239
+ @value = args[:value] if args.key?(:value)
240
+ end
241
+ end
242
+
243
+ # The response from listing files.
244
+ class ListFilesResponse
245
+ include Google::Apis::Core::Hashable
246
+
247
+ # The files returned.
248
+ # Corresponds to the JSON property `files`
249
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::File>]
250
+ attr_accessor :files
251
+
252
+ # The token to retrieve the next page of files, or empty if there are no more
253
+ # files to return.
254
+ # Corresponds to the JSON property `nextPageToken`
255
+ # @return [String]
256
+ attr_accessor :next_page_token
257
+
258
+ def initialize(**args)
259
+ update!(**args)
260
+ end
261
+
262
+ # Update properties of this object
263
+ def update!(**args)
264
+ @files = args[:files] if args.key?(:files)
265
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
266
+ end
267
+ end
268
+
269
+ # The response message for Locations.ListLocations.
270
+ class ListLocationsResponse
271
+ include Google::Apis::Core::Hashable
272
+
273
+ # A list of locations that matches the specified filter in the request.
274
+ # Corresponds to the JSON property `locations`
275
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Location>]
276
+ attr_accessor :locations
277
+
278
+ # The standard List next-page token.
279
+ # Corresponds to the JSON property `nextPageToken`
280
+ # @return [String]
281
+ attr_accessor :next_page_token
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @locations = args[:locations] if args.key?(:locations)
290
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
291
+ end
292
+ end
293
+
294
+ # The response message for Operations.ListOperations.
295
+ class ListOperationsResponse
296
+ include Google::Apis::Core::Hashable
297
+
298
+ # The standard List next-page token.
299
+ # Corresponds to the JSON property `nextPageToken`
300
+ # @return [String]
301
+ attr_accessor :next_page_token
302
+
303
+ # A list of operations that matches the specified filter in the request.
304
+ # Corresponds to the JSON property `operations`
305
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Operation>]
306
+ attr_accessor :operations
307
+
308
+ def initialize(**args)
309
+ update!(**args)
310
+ end
311
+
312
+ # Update properties of this object
313
+ def update!(**args)
314
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
315
+ @operations = args[:operations] if args.key?(:operations)
316
+ end
317
+ end
318
+
319
+ # The response from listing packages.
320
+ class ListPackagesResponse
321
+ include Google::Apis::Core::Hashable
322
+
323
+ # The token to retrieve the next page of packages, or empty if there are no more
324
+ # packages to return.
325
+ # Corresponds to the JSON property `nextPageToken`
326
+ # @return [String]
327
+ attr_accessor :next_page_token
328
+
329
+ # The packages returned.
330
+ # Corresponds to the JSON property `packages`
331
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Package>]
332
+ attr_accessor :packages
333
+
334
+ def initialize(**args)
335
+ update!(**args)
336
+ end
337
+
338
+ # Update properties of this object
339
+ def update!(**args)
340
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
341
+ @packages = args[:packages] if args.key?(:packages)
342
+ end
343
+ end
344
+
345
+ # The response from listing repositories.
346
+ class ListRepositoriesResponse
347
+ include Google::Apis::Core::Hashable
348
+
349
+ # The token to retrieve the next page of repositories, or empty if there are no
350
+ # more repositories to return.
351
+ # Corresponds to the JSON property `nextPageToken`
352
+ # @return [String]
353
+ attr_accessor :next_page_token
354
+
355
+ # The repositories returned.
356
+ # Corresponds to the JSON property `repositories`
357
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Repository>]
358
+ attr_accessor :repositories
359
+
360
+ def initialize(**args)
361
+ update!(**args)
362
+ end
363
+
364
+ # Update properties of this object
365
+ def update!(**args)
366
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
367
+ @repositories = args[:repositories] if args.key?(:repositories)
368
+ end
369
+ end
370
+
371
+ # The response from listing tags.
372
+ class ListTagsResponse
373
+ include Google::Apis::Core::Hashable
374
+
375
+ # The token to retrieve the next page of tags, or empty if there are no more
376
+ # tags to return.
377
+ # Corresponds to the JSON property `nextPageToken`
378
+ # @return [String]
379
+ attr_accessor :next_page_token
380
+
381
+ # The tags returned.
382
+ # Corresponds to the JSON property `tags`
383
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Tag>]
384
+ attr_accessor :tags
385
+
386
+ def initialize(**args)
387
+ update!(**args)
388
+ end
389
+
390
+ # Update properties of this object
391
+ def update!(**args)
392
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
393
+ @tags = args[:tags] if args.key?(:tags)
394
+ end
395
+ end
396
+
397
+ # The response from listing versions.
398
+ class ListVersionsResponse
399
+ include Google::Apis::Core::Hashable
400
+
401
+ # The token to retrieve the next page of versions, or empty if there are no more
402
+ # versions to return.
403
+ # Corresponds to the JSON property `nextPageToken`
404
+ # @return [String]
405
+ attr_accessor :next_page_token
406
+
407
+ # The versions returned.
408
+ # Corresponds to the JSON property `versions`
409
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Version>]
410
+ attr_accessor :versions
411
+
412
+ def initialize(**args)
413
+ update!(**args)
414
+ end
415
+
416
+ # Update properties of this object
417
+ def update!(**args)
418
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
419
+ @versions = args[:versions] if args.key?(:versions)
420
+ end
421
+ end
422
+
423
+ # A resource that represents Google Cloud Platform location.
424
+ class Location
425
+ include Google::Apis::Core::Hashable
426
+
427
+ # The friendly name for this location, typically a nearby city name. For example,
428
+ # "Tokyo".
429
+ # Corresponds to the JSON property `displayName`
430
+ # @return [String]
431
+ attr_accessor :display_name
432
+
433
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
434
+ # region": "us-east1"`
435
+ # Corresponds to the JSON property `labels`
436
+ # @return [Hash<String,String>]
437
+ attr_accessor :labels
438
+
439
+ # The canonical id for this location. For example: `"us-east1"`.
440
+ # Corresponds to the JSON property `locationId`
441
+ # @return [String]
442
+ attr_accessor :location_id
443
+
444
+ # Service-specific metadata. For example the available capacity at the given
445
+ # location.
446
+ # Corresponds to the JSON property `metadata`
447
+ # @return [Hash<String,Object>]
448
+ attr_accessor :metadata
449
+
450
+ # Resource name for the location, which may vary between implementations. For
451
+ # example: `"projects/example-project/locations/us-east1"`
452
+ # Corresponds to the JSON property `name`
453
+ # @return [String]
454
+ attr_accessor :name
455
+
456
+ def initialize(**args)
457
+ update!(**args)
458
+ end
459
+
460
+ # Update properties of this object
461
+ def update!(**args)
462
+ @display_name = args[:display_name] if args.key?(:display_name)
463
+ @labels = args[:labels] if args.key?(:labels)
464
+ @location_id = args[:location_id] if args.key?(:location_id)
465
+ @metadata = args[:metadata] if args.key?(:metadata)
466
+ @name = args[:name] if args.key?(:name)
467
+ end
468
+ end
469
+
470
+ # This resource represents a long-running operation that is the result of a
471
+ # network API call.
472
+ class Operation
473
+ include Google::Apis::Core::Hashable
474
+
475
+ # If the value is `false`, it means the operation is still in progress. If `true`
476
+ # , the operation is completed, and either `error` or `response` is available.
477
+ # Corresponds to the JSON property `done`
478
+ # @return [Boolean]
479
+ attr_accessor :done
480
+ alias_method :done?, :done
481
+
482
+ # The `Status` type defines a logical error model that is suitable for different
483
+ # programming environments, including REST APIs and RPC APIs. It is used by [
484
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
485
+ # data: error code, error message, and error details. You can find out more
486
+ # about this error model and how to work with it in the [API Design Guide](https:
487
+ # //cloud.google.com/apis/design/errors).
488
+ # Corresponds to the JSON property `error`
489
+ # @return [Google::Apis::ArtifactregistryV1beta2::Status]
490
+ attr_accessor :error
491
+
492
+ # Service-specific metadata associated with the operation. It typically contains
493
+ # progress information and common metadata such as create time. Some services
494
+ # might not provide such metadata. Any method that returns a long-running
495
+ # operation should document the metadata type, if any.
496
+ # Corresponds to the JSON property `metadata`
497
+ # @return [Hash<String,Object>]
498
+ attr_accessor :metadata
499
+
500
+ # The server-assigned name, which is only unique within the same service that
501
+ # originally returns it. If you use the default HTTP mapping, the `name` should
502
+ # be a resource name ending with `operations/`unique_id``.
503
+ # Corresponds to the JSON property `name`
504
+ # @return [String]
505
+ attr_accessor :name
506
+
507
+ # The normal response of the operation in case of success. If the original
508
+ # method returns no data on success, such as `Delete`, the response is `google.
509
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
510
+ # the response should be the resource. For other methods, the response should
511
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
512
+ # example, if the original method name is `TakeSnapshot()`, the inferred
513
+ # response type is `TakeSnapshotResponse`.
514
+ # Corresponds to the JSON property `response`
515
+ # @return [Hash<String,Object>]
516
+ attr_accessor :response
517
+
518
+ def initialize(**args)
519
+ update!(**args)
520
+ end
521
+
522
+ # Update properties of this object
523
+ def update!(**args)
524
+ @done = args[:done] if args.key?(:done)
525
+ @error = args[:error] if args.key?(:error)
526
+ @metadata = args[:metadata] if args.key?(:metadata)
527
+ @name = args[:name] if args.key?(:name)
528
+ @response = args[:response] if args.key?(:response)
529
+ end
530
+ end
531
+
532
+ # Packages are named collections of versions.
533
+ class Package
534
+ include Google::Apis::Core::Hashable
535
+
536
+ # The time when the package was created.
537
+ # Corresponds to the JSON property `createTime`
538
+ # @return [String]
539
+ attr_accessor :create_time
540
+
541
+ # The display name of the package.
542
+ # Corresponds to the JSON property `displayName`
543
+ # @return [String]
544
+ attr_accessor :display_name
545
+
546
+ # The name of the package, for example: "projects/p1/locations/us-central1/
547
+ # repositories/repo1/packages/pkg1".
548
+ # Corresponds to the JSON property `name`
549
+ # @return [String]
550
+ attr_accessor :name
551
+
552
+ # The time when the package was last updated. This includes publishing a new
553
+ # version of the package.
554
+ # Corresponds to the JSON property `updateTime`
555
+ # @return [String]
556
+ attr_accessor :update_time
557
+
558
+ def initialize(**args)
559
+ update!(**args)
560
+ end
561
+
562
+ # Update properties of this object
563
+ def update!(**args)
564
+ @create_time = args[:create_time] if args.key?(:create_time)
565
+ @display_name = args[:display_name] if args.key?(:display_name)
566
+ @name = args[:name] if args.key?(:name)
567
+ @update_time = args[:update_time] if args.key?(:update_time)
568
+ end
569
+ end
570
+
571
+ # An Identity and Access Management (IAM) policy, which specifies access
572
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
573
+ # A `binding` binds one or more `members` to a single `role`. Members can be
574
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
575
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
576
+ # role or a user-created custom role. For some types of Google Cloud resources,
577
+ # a `binding` can also specify a `condition`, which is a logical expression that
578
+ # allows access to a resource only if the expression evaluates to `true`. A
579
+ # condition can add constraints based on attributes of the request, the resource,
580
+ # or both. To learn which resources support conditions in their IAM policies,
581
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
582
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
583
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
584
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
585
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
586
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
587
+ # title": "expirable access", "description": "Does not grant access after Sep
588
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
589
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
590
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
591
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
592
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
593
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
594
+ # description: Does not grant access after Sep 2020 expression: request.time <
595
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
596
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
597
+ # google.com/iam/docs/).
598
+ class Policy
599
+ include Google::Apis::Core::Hashable
600
+
601
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
602
+ # condition` that determines how and when the `bindings` are applied. Each of
603
+ # the `bindings` must contain at least one member.
604
+ # Corresponds to the JSON property `bindings`
605
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Binding>]
606
+ attr_accessor :bindings
607
+
608
+ # `etag` is used for optimistic concurrency control as a way to help prevent
609
+ # simultaneous updates of a policy from overwriting each other. It is strongly
610
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
611
+ # to perform policy updates in order to avoid race conditions: An `etag` is
612
+ # returned in the response to `getIamPolicy`, and systems are expected to put
613
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
614
+ # applied to the same version of the policy. **Important:** If you use IAM
615
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
616
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
617
+ # with a version `1` policy, and all of the conditions in the version `3` policy
618
+ # are lost.
619
+ # Corresponds to the JSON property `etag`
620
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
621
+ # @return [String]
622
+ attr_accessor :etag
623
+
624
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
625
+ # Requests that specify an invalid value are rejected. Any operation that
626
+ # affects conditional role bindings must specify version `3`. This requirement
627
+ # applies to the following operations: * Getting a policy that includes a
628
+ # conditional role binding * Adding a conditional role binding to a policy *
629
+ # Changing a conditional role binding in a policy * Removing any role binding,
630
+ # with or without a condition, from a policy that includes conditions **
631
+ # Important:** If you use IAM Conditions, you must include the `etag` field
632
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
633
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
634
+ # conditions in the version `3` policy are lost. If a policy does not include
635
+ # any conditions, operations on that policy may specify any valid version or
636
+ # leave the field unset. To learn which resources support conditions in their
637
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
638
+ # conditions/resource-policies).
639
+ # Corresponds to the JSON property `version`
640
+ # @return [Fixnum]
641
+ attr_accessor :version
642
+
643
+ def initialize(**args)
644
+ update!(**args)
645
+ end
646
+
647
+ # Update properties of this object
648
+ def update!(**args)
649
+ @bindings = args[:bindings] if args.key?(:bindings)
650
+ @etag = args[:etag] if args.key?(:etag)
651
+ @version = args[:version] if args.key?(:version)
652
+ end
653
+ end
654
+
655
+ # A Repository for storing artifacts with a specific format.
656
+ class Repository
657
+ include Google::Apis::Core::Hashable
658
+
659
+ # The time when the repository was created.
660
+ # Corresponds to the JSON property `createTime`
661
+ # @return [String]
662
+ attr_accessor :create_time
663
+
664
+ # The user-provided description of the repository.
665
+ # Corresponds to the JSON property `description`
666
+ # @return [String]
667
+ attr_accessor :description
668
+
669
+ # The format of packages that are stored in the repository.
670
+ # Corresponds to the JSON property `format`
671
+ # @return [String]
672
+ attr_accessor :format
673
+
674
+ # The Cloud KMS resource name of the customer managed encryption key that’s used
675
+ # to encrypt the contents of the Repository. Has the form: `projects/my-project/
676
+ # locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be
677
+ # changed after the Repository has been created.
678
+ # Corresponds to the JSON property `kmsKeyName`
679
+ # @return [String]
680
+ attr_accessor :kms_key_name
681
+
682
+ # Labels with user-defined metadata. This field may contain up to 64 entries.
683
+ # Label keys and values may be no longer than 63 characters. Label keys must
684
+ # begin with a lowercase letter and may only contain lowercase letters, numeric
685
+ # characters, underscores, and dashes.
686
+ # Corresponds to the JSON property `labels`
687
+ # @return [Hash<String,String>]
688
+ attr_accessor :labels
689
+
690
+ # The name of the repository, for example: "projects/p1/locations/us-central1/
691
+ # repositories/repo1".
692
+ # Corresponds to the JSON property `name`
693
+ # @return [String]
694
+ attr_accessor :name
695
+
696
+ # The time when the repository was last updated.
697
+ # Corresponds to the JSON property `updateTime`
698
+ # @return [String]
699
+ attr_accessor :update_time
700
+
701
+ def initialize(**args)
702
+ update!(**args)
703
+ end
704
+
705
+ # Update properties of this object
706
+ def update!(**args)
707
+ @create_time = args[:create_time] if args.key?(:create_time)
708
+ @description = args[:description] if args.key?(:description)
709
+ @format = args[:format] if args.key?(:format)
710
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
711
+ @labels = args[:labels] if args.key?(:labels)
712
+ @name = args[:name] if args.key?(:name)
713
+ @update_time = args[:update_time] if args.key?(:update_time)
714
+ end
715
+ end
716
+
717
+ # Request message for `SetIamPolicy` method.
718
+ class SetIamPolicyRequest
719
+ include Google::Apis::Core::Hashable
720
+
721
+ # An Identity and Access Management (IAM) policy, which specifies access
722
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
723
+ # A `binding` binds one or more `members` to a single `role`. Members can be
724
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
725
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
726
+ # role or a user-created custom role. For some types of Google Cloud resources,
727
+ # a `binding` can also specify a `condition`, which is a logical expression that
728
+ # allows access to a resource only if the expression evaluates to `true`. A
729
+ # condition can add constraints based on attributes of the request, the resource,
730
+ # or both. To learn which resources support conditions in their IAM policies,
731
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
732
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
733
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
734
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
735
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
736
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
737
+ # title": "expirable access", "description": "Does not grant access after Sep
738
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
739
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
740
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
741
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
742
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
743
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
744
+ # description: Does not grant access after Sep 2020 expression: request.time <
745
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
746
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
747
+ # google.com/iam/docs/).
748
+ # Corresponds to the JSON property `policy`
749
+ # @return [Google::Apis::ArtifactregistryV1beta2::Policy]
750
+ attr_accessor :policy
751
+
752
+ def initialize(**args)
753
+ update!(**args)
754
+ end
755
+
756
+ # Update properties of this object
757
+ def update!(**args)
758
+ @policy = args[:policy] if args.key?(:policy)
759
+ end
760
+ end
761
+
762
+ # The `Status` type defines a logical error model that is suitable for different
763
+ # programming environments, including REST APIs and RPC APIs. It is used by [
764
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
765
+ # data: error code, error message, and error details. You can find out more
766
+ # about this error model and how to work with it in the [API Design Guide](https:
767
+ # //cloud.google.com/apis/design/errors).
768
+ class Status
769
+ include Google::Apis::Core::Hashable
770
+
771
+ # The status code, which should be an enum value of google.rpc.Code.
772
+ # Corresponds to the JSON property `code`
773
+ # @return [Fixnum]
774
+ attr_accessor :code
775
+
776
+ # A list of messages that carry the error details. There is a common set of
777
+ # message types for APIs to use.
778
+ # Corresponds to the JSON property `details`
779
+ # @return [Array<Hash<String,Object>>]
780
+ attr_accessor :details
781
+
782
+ # A developer-facing error message, which should be in English. Any user-facing
783
+ # error message should be localized and sent in the google.rpc.Status.details
784
+ # field, or localized by the client.
785
+ # Corresponds to the JSON property `message`
786
+ # @return [String]
787
+ attr_accessor :message
788
+
789
+ def initialize(**args)
790
+ update!(**args)
791
+ end
792
+
793
+ # Update properties of this object
794
+ def update!(**args)
795
+ @code = args[:code] if args.key?(:code)
796
+ @details = args[:details] if args.key?(:details)
797
+ @message = args[:message] if args.key?(:message)
798
+ end
799
+ end
800
+
801
+ # Tags point to a version and represent an alternative name that can be used to
802
+ # access the version.
803
+ class Tag
804
+ include Google::Apis::Core::Hashable
805
+
806
+ # The name of the tag, for example: "projects/p1/locations/us-central1/
807
+ # repositories/repo1/packages/pkg1/tags/tag1".
808
+ # Corresponds to the JSON property `name`
809
+ # @return [String]
810
+ attr_accessor :name
811
+
812
+ # The name of the version the tag refers to, for example: "projects/p1/locations/
813
+ # us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
814
+ # Corresponds to the JSON property `version`
815
+ # @return [String]
816
+ attr_accessor :version
817
+
818
+ def initialize(**args)
819
+ update!(**args)
820
+ end
821
+
822
+ # Update properties of this object
823
+ def update!(**args)
824
+ @name = args[:name] if args.key?(:name)
825
+ @version = args[:version] if args.key?(:version)
826
+ end
827
+ end
828
+
829
+ # Request message for `TestIamPermissions` method.
830
+ class TestIamPermissionsRequest
831
+ include Google::Apis::Core::Hashable
832
+
833
+ # The set of permissions to check for the `resource`. Permissions with wildcards
834
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
835
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
836
+ # Corresponds to the JSON property `permissions`
837
+ # @return [Array<String>]
838
+ attr_accessor :permissions
839
+
840
+ def initialize(**args)
841
+ update!(**args)
842
+ end
843
+
844
+ # Update properties of this object
845
+ def update!(**args)
846
+ @permissions = args[:permissions] if args.key?(:permissions)
847
+ end
848
+ end
849
+
850
+ # Response message for `TestIamPermissions` method.
851
+ class TestIamPermissionsResponse
852
+ include Google::Apis::Core::Hashable
853
+
854
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
855
+ # Corresponds to the JSON property `permissions`
856
+ # @return [Array<String>]
857
+ attr_accessor :permissions
858
+
859
+ def initialize(**args)
860
+ update!(**args)
861
+ end
862
+
863
+ # Update properties of this object
864
+ def update!(**args)
865
+ @permissions = args[:permissions] if args.key?(:permissions)
866
+ end
867
+ end
868
+
869
+ # The body of a version resource. A version resource represents a collection of
870
+ # components, such as files and other data. This may correspond to a version in
871
+ # many package management schemes.
872
+ class Version
873
+ include Google::Apis::Core::Hashable
874
+
875
+ # The time when the version was created.
876
+ # Corresponds to the JSON property `createTime`
877
+ # @return [String]
878
+ attr_accessor :create_time
879
+
880
+ # Optional. Description of the version, as specified in its metadata.
881
+ # Corresponds to the JSON property `description`
882
+ # @return [String]
883
+ attr_accessor :description
884
+
885
+ # The name of the version, for example: "projects/p1/locations/us-central1/
886
+ # repositories/repo1/packages/pkg1/versions/art1".
887
+ # Corresponds to the JSON property `name`
888
+ # @return [String]
889
+ attr_accessor :name
890
+
891
+ # Output only. A list of related tags. Will contain up to 100 tags that
892
+ # reference this version.
893
+ # Corresponds to the JSON property `relatedTags`
894
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::Tag>]
895
+ attr_accessor :related_tags
896
+
897
+ # The time when the version was last updated.
898
+ # Corresponds to the JSON property `updateTime`
899
+ # @return [String]
900
+ attr_accessor :update_time
901
+
902
+ def initialize(**args)
903
+ update!(**args)
904
+ end
905
+
906
+ # Update properties of this object
907
+ def update!(**args)
908
+ @create_time = args[:create_time] if args.key?(:create_time)
909
+ @description = args[:description] if args.key?(:description)
910
+ @name = args[:name] if args.key?(:name)
911
+ @related_tags = args[:related_tags] if args.key?(:related_tags)
912
+ @update_time = args[:update_time] if args.key?(:update_time)
913
+ end
914
+ end
915
+ end
916
+ end
917
+ end