google-apis-artifactregistry_v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-artifactregistry_v1beta1.rb +15 -0
- data/lib/google/apis/artifactregistry_v1beta1.rb +40 -0
- data/lib/google/apis/artifactregistry_v1beta1/classes.rb +917 -0
- data/lib/google/apis/artifactregistry_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/artifactregistry_v1beta1/representations.rb +381 -0
- data/lib/google/apis/artifactregistry_v1beta1/service.rb +949 -0
- metadata +76 -0
@@ -0,0 +1,28 @@
|
|
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
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module ArtifactregistryV1beta1
|
18
|
+
# Version of the google-apis-artifactregistry_v1beta1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20201215"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,381 @@
|
|
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 ArtifactregistryV1beta1
|
24
|
+
|
25
|
+
class Binding
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Empty
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Expr
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class File
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class HashProp
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ListFilesResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ListLocationsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class ListOperationsResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListPackagesResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListRepositoriesResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListTagsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class ListVersionsResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class Location
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class Operation
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Package
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Policy
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class Repository
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class SetIamPolicyRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class Status
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class Tag
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class TestIamPermissionsRequest
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class TestIamPermissionsResponse
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class Version
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class Binding
|
164
|
+
# @private
|
165
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
166
|
+
property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1beta1::Expr, decorator: Google::Apis::ArtifactregistryV1beta1::Expr::Representation
|
167
|
+
|
168
|
+
collection :members, as: 'members'
|
169
|
+
property :role, as: 'role'
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
class Empty
|
174
|
+
# @private
|
175
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class Expr
|
180
|
+
# @private
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
+
property :description, as: 'description'
|
183
|
+
property :expression, as: 'expression'
|
184
|
+
property :location, as: 'location'
|
185
|
+
property :title, as: 'title'
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
class File
|
190
|
+
# @private
|
191
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
192
|
+
property :create_time, as: 'createTime'
|
193
|
+
collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1beta1::HashProp, decorator: Google::Apis::ArtifactregistryV1beta1::HashProp::Representation
|
194
|
+
|
195
|
+
property :name, as: 'name'
|
196
|
+
property :owner, as: 'owner'
|
197
|
+
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
198
|
+
property :update_time, as: 'updateTime'
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class HashProp
|
203
|
+
# @private
|
204
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
205
|
+
property :type, as: 'type'
|
206
|
+
property :value, :base64 => true, as: 'value'
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class ListFilesResponse
|
211
|
+
# @private
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
213
|
+
collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta1::File, decorator: Google::Apis::ArtifactregistryV1beta1::File::Representation
|
214
|
+
|
215
|
+
property :next_page_token, as: 'nextPageToken'
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
class ListLocationsResponse
|
220
|
+
# @private
|
221
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
222
|
+
collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta1::Location, decorator: Google::Apis::ArtifactregistryV1beta1::Location::Representation
|
223
|
+
|
224
|
+
property :next_page_token, as: 'nextPageToken'
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
class ListOperationsResponse
|
229
|
+
# @private
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
231
|
+
property :next_page_token, as: 'nextPageToken'
|
232
|
+
collection :operations, as: 'operations', class: Google::Apis::ArtifactregistryV1beta1::Operation, decorator: Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
233
|
+
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
class ListPackagesResponse
|
238
|
+
# @private
|
239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
240
|
+
property :next_page_token, as: 'nextPageToken'
|
241
|
+
collection :packages, as: 'packages', class: Google::Apis::ArtifactregistryV1beta1::Package, decorator: Google::Apis::ArtifactregistryV1beta1::Package::Representation
|
242
|
+
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
class ListRepositoriesResponse
|
247
|
+
# @private
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
249
|
+
property :next_page_token, as: 'nextPageToken'
|
250
|
+
collection :repositories, as: 'repositories', class: Google::Apis::ArtifactregistryV1beta1::Repository, decorator: Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
251
|
+
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
class ListTagsResponse
|
256
|
+
# @private
|
257
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
258
|
+
property :next_page_token, as: 'nextPageToken'
|
259
|
+
collection :tags, as: 'tags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
260
|
+
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
class ListVersionsResponse
|
265
|
+
# @private
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
267
|
+
property :next_page_token, as: 'nextPageToken'
|
268
|
+
collection :versions, as: 'versions', class: Google::Apis::ArtifactregistryV1beta1::Version, decorator: Google::Apis::ArtifactregistryV1beta1::Version::Representation
|
269
|
+
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
class Location
|
274
|
+
# @private
|
275
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
276
|
+
property :display_name, as: 'displayName'
|
277
|
+
hash :labels, as: 'labels'
|
278
|
+
property :location_id, as: 'locationId'
|
279
|
+
hash :metadata, as: 'metadata'
|
280
|
+
property :name, as: 'name'
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
class Operation
|
285
|
+
# @private
|
286
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
287
|
+
property :done, as: 'done'
|
288
|
+
property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta1::Status, decorator: Google::Apis::ArtifactregistryV1beta1::Status::Representation
|
289
|
+
|
290
|
+
hash :metadata, as: 'metadata'
|
291
|
+
property :name, as: 'name'
|
292
|
+
hash :response, as: 'response'
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
class Package
|
297
|
+
# @private
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
property :create_time, as: 'createTime'
|
300
|
+
property :display_name, as: 'displayName'
|
301
|
+
property :name, as: 'name'
|
302
|
+
property :update_time, as: 'updateTime'
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
class Policy
|
307
|
+
# @private
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
+
collection :bindings, as: 'bindings', class: Google::Apis::ArtifactregistryV1beta1::Binding, decorator: Google::Apis::ArtifactregistryV1beta1::Binding::Representation
|
310
|
+
|
311
|
+
property :etag, :base64 => true, as: 'etag'
|
312
|
+
property :version, as: 'version'
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
class Repository
|
317
|
+
# @private
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
+
property :create_time, as: 'createTime'
|
320
|
+
property :description, as: 'description'
|
321
|
+
property :format, as: 'format'
|
322
|
+
property :kms_key_name, as: 'kmsKeyName'
|
323
|
+
hash :labels, as: 'labels'
|
324
|
+
property :name, as: 'name'
|
325
|
+
property :update_time, as: 'updateTime'
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
class SetIamPolicyRequest
|
330
|
+
# @private
|
331
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
332
|
+
property :policy, as: 'policy', class: Google::Apis::ArtifactregistryV1beta1::Policy, decorator: Google::Apis::ArtifactregistryV1beta1::Policy::Representation
|
333
|
+
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
class Status
|
338
|
+
# @private
|
339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
340
|
+
property :code, as: 'code'
|
341
|
+
collection :details, as: 'details'
|
342
|
+
property :message, as: 'message'
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
class Tag
|
347
|
+
# @private
|
348
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
349
|
+
property :name, as: 'name'
|
350
|
+
property :version, as: 'version'
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
class TestIamPermissionsRequest
|
355
|
+
# @private
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
357
|
+
collection :permissions, as: 'permissions'
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
361
|
+
class TestIamPermissionsResponse
|
362
|
+
# @private
|
363
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
364
|
+
collection :permissions, as: 'permissions'
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
class Version
|
369
|
+
# @private
|
370
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
371
|
+
property :create_time, as: 'createTime'
|
372
|
+
property :description, as: 'description'
|
373
|
+
property :name, as: 'name'
|
374
|
+
collection :related_tags, as: 'relatedTags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
375
|
+
|
376
|
+
property :update_time, as: 'updateTime'
|
377
|
+
end
|
378
|
+
end
|
379
|
+
end
|
380
|
+
end
|
381
|
+
end
|
@@ -0,0 +1,949 @@
|
|
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/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module ArtifactregistryV1beta1
|
23
|
+
# Artifact Registry API
|
24
|
+
#
|
25
|
+
# Store and manage build artifacts in a scalable and integrated service built on
|
26
|
+
# Google infrastructure.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/artifactregistry_v1beta1'
|
30
|
+
#
|
31
|
+
# Artifactregistry = Google::Apis::ArtifactregistryV1beta1 # Alias the module
|
32
|
+
# service = Artifactregistry::ArtifactRegistryService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/artifacts/docs/
|
35
|
+
class ArtifactRegistryService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://artifactregistry.googleapis.com/', '',
|
48
|
+
client_name: 'google-apis-artifactregistry_v1beta1',
|
49
|
+
client_version: Google::Apis::ArtifactregistryV1beta1::GEM_VERSION)
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Gets information about a location.
|
54
|
+
# @param [String] name
|
55
|
+
# Resource name for the location.
|
56
|
+
# @param [String] fields
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
58
|
+
# @param [String] quota_user
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
62
|
+
# Request-specific options
|
63
|
+
#
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
65
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Location] parsed result object
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Location]
|
69
|
+
#
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
75
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Location::Representation
|
76
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Location
|
77
|
+
command.params['name'] = name unless name.nil?
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
|
+
execute_or_queue_command(command, &block)
|
81
|
+
end
|
82
|
+
|
83
|
+
# Lists information about the supported locations for this service.
|
84
|
+
# @param [String] name
|
85
|
+
# The resource that owns the locations collection, if applicable.
|
86
|
+
# @param [String] filter
|
87
|
+
# The standard list filter.
|
88
|
+
# @param [Fixnum] page_size
|
89
|
+
# The standard list page size.
|
90
|
+
# @param [String] page_token
|
91
|
+
# The standard list page token.
|
92
|
+
# @param [String] fields
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
94
|
+
# @param [String] quota_user
|
95
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
96
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
97
|
+
# @param [Google::Apis::RequestOptions] options
|
98
|
+
# Request-specific options
|
99
|
+
#
|
100
|
+
# @yield [result, err] Result & error if block supplied
|
101
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse] parsed result object
|
102
|
+
# @yieldparam err [StandardError] error object if request failed
|
103
|
+
#
|
104
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse]
|
105
|
+
#
|
106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
109
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
111
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse::Representation
|
112
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse
|
113
|
+
command.params['name'] = name unless name.nil?
|
114
|
+
command.query['filter'] = filter unless filter.nil?
|
115
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
116
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
117
|
+
command.query['fields'] = fields unless fields.nil?
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
+
execute_or_queue_command(command, &block)
|
120
|
+
end
|
121
|
+
|
122
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
123
|
+
# to poll the operation result at intervals as recommended by the API service.
|
124
|
+
# @param [String] name
|
125
|
+
# The name of the operation resource.
|
126
|
+
# @param [String] fields
|
127
|
+
# Selector specifying which fields to include in a partial response.
|
128
|
+
# @param [String] quota_user
|
129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
131
|
+
# @param [Google::Apis::RequestOptions] options
|
132
|
+
# Request-specific options
|
133
|
+
#
|
134
|
+
# @yield [result, err] Result & error if block supplied
|
135
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
|
136
|
+
# @yieldparam err [StandardError] error object if request failed
|
137
|
+
#
|
138
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
139
|
+
#
|
140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
143
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
144
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
145
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
146
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
147
|
+
command.params['name'] = name unless name.nil?
|
148
|
+
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
execute_or_queue_command(command, &block)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Lists operations that match the specified filter in the request. If the server
|
154
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
155
|
+
# binding allows API services to override the binding to use different resource
|
156
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
157
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
158
|
+
# service configuration. For backwards compatibility, the default name includes
|
159
|
+
# the operations collection id, however overriding users must ensure the name
|
160
|
+
# binding is the parent resource, without the operations collection id.
|
161
|
+
# @param [String] name
|
162
|
+
# The name of the operation's parent resource.
|
163
|
+
# @param [String] filter
|
164
|
+
# The standard list filter.
|
165
|
+
# @param [Fixnum] page_size
|
166
|
+
# The standard list page size.
|
167
|
+
# @param [String] page_token
|
168
|
+
# The standard list page token.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
188
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse::Representation
|
189
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse
|
190
|
+
command.params['name'] = name unless name.nil?
|
191
|
+
command.query['filter'] = filter unless filter.nil?
|
192
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
193
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
194
|
+
command.query['fields'] = fields unless fields.nil?
|
195
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
196
|
+
execute_or_queue_command(command, &block)
|
197
|
+
end
|
198
|
+
|
199
|
+
# Creates a repository. The returned Operation will finish once the repository
|
200
|
+
# has been created. Its response will be the created Repository.
|
201
|
+
# @param [String] parent
|
202
|
+
# The name of the parent resource where the repository will be created.
|
203
|
+
# @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
|
204
|
+
# @param [String] repository_id
|
205
|
+
# The repository id to use for this repository.
|
206
|
+
# @param [String] fields
|
207
|
+
# Selector specifying which fields to include in a partial response.
|
208
|
+
# @param [String] quota_user
|
209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
211
|
+
# @param [Google::Apis::RequestOptions] options
|
212
|
+
# Request-specific options
|
213
|
+
#
|
214
|
+
# @yield [result, err] Result & error if block supplied
|
215
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
|
216
|
+
# @yieldparam err [StandardError] error object if request failed
|
217
|
+
#
|
218
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
219
|
+
#
|
220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
223
|
+
def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
224
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/repositories', options)
|
225
|
+
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
226
|
+
command.request_object = repository_object
|
227
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
228
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
229
|
+
command.params['parent'] = parent unless parent.nil?
|
230
|
+
command.query['repositoryId'] = repository_id unless repository_id.nil?
|
231
|
+
command.query['fields'] = fields unless fields.nil?
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
+
execute_or_queue_command(command, &block)
|
234
|
+
end
|
235
|
+
|
236
|
+
# Deletes a repository and all of its contents. The returned Operation will
|
237
|
+
# finish once the repository has been deleted. It will not have any Operation
|
238
|
+
# metadata and will return a google.protobuf.Empty response.
|
239
|
+
# @param [String] name
|
240
|
+
# The name of the repository to delete.
|
241
|
+
# @param [String] fields
|
242
|
+
# Selector specifying which fields to include in a partial response.
|
243
|
+
# @param [String] quota_user
|
244
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
245
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
246
|
+
# @param [Google::Apis::RequestOptions] options
|
247
|
+
# Request-specific options
|
248
|
+
#
|
249
|
+
# @yield [result, err] Result & error if block supplied
|
250
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
|
251
|
+
# @yieldparam err [StandardError] error object if request failed
|
252
|
+
#
|
253
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
254
|
+
#
|
255
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
256
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
257
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
258
|
+
def delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
|
259
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
260
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
261
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
262
|
+
command.params['name'] = name unless name.nil?
|
263
|
+
command.query['fields'] = fields unless fields.nil?
|
264
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
265
|
+
execute_or_queue_command(command, &block)
|
266
|
+
end
|
267
|
+
|
268
|
+
# Gets a repository.
|
269
|
+
# @param [String] name
|
270
|
+
# The name of the repository to retrieve.
|
271
|
+
# @param [String] fields
|
272
|
+
# Selector specifying which fields to include in a partial response.
|
273
|
+
# @param [String] quota_user
|
274
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
275
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
276
|
+
# @param [Google::Apis::RequestOptions] options
|
277
|
+
# Request-specific options
|
278
|
+
#
|
279
|
+
# @yield [result, err] Result & error if block supplied
|
280
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Repository] parsed result object
|
281
|
+
# @yieldparam err [StandardError] error object if request failed
|
282
|
+
#
|
283
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Repository]
|
284
|
+
#
|
285
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
286
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
287
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
288
|
+
def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
290
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
291
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
|
292
|
+
command.params['name'] = name unless name.nil?
|
293
|
+
command.query['fields'] = fields unless fields.nil?
|
294
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
295
|
+
execute_or_queue_command(command, &block)
|
296
|
+
end
|
297
|
+
|
298
|
+
# Gets the IAM policy for a given resource.
|
299
|
+
# @param [String] resource
|
300
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
301
|
+
# operation documentation for the appropriate value for this field.
|
302
|
+
# @param [Fixnum] options_requested_policy_version
|
303
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
304
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
305
|
+
# policies with any conditional bindings must specify version 3. Policies
|
306
|
+
# without any conditional bindings may specify any valid value or leave the
|
307
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
308
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
309
|
+
# resource-policies).
|
310
|
+
# @param [String] fields
|
311
|
+
# Selector specifying which fields to include in a partial response.
|
312
|
+
# @param [String] quota_user
|
313
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
314
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
315
|
+
# @param [Google::Apis::RequestOptions] options
|
316
|
+
# Request-specific options
|
317
|
+
#
|
318
|
+
# @yield [result, err] Result & error if block supplied
|
319
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Policy] parsed result object
|
320
|
+
# @yieldparam err [StandardError] error object if request failed
|
321
|
+
#
|
322
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Policy]
|
323
|
+
#
|
324
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
+
def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
328
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
329
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
|
330
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
|
331
|
+
command.params['resource'] = resource unless resource.nil?
|
332
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
333
|
+
command.query['fields'] = fields unless fields.nil?
|
334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
+
execute_or_queue_command(command, &block)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Lists repositories.
|
339
|
+
# @param [String] parent
|
340
|
+
# The name of the parent resource whose repositories will be listed.
|
341
|
+
# @param [Fixnum] page_size
|
342
|
+
# The maximum number of repositories to return.
|
343
|
+
# @param [String] page_token
|
344
|
+
# The next_page_token value returned from a previous list request, if any.
|
345
|
+
# @param [String] fields
|
346
|
+
# Selector specifying which fields to include in a partial response.
|
347
|
+
# @param [String] quota_user
|
348
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
349
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
350
|
+
# @param [Google::Apis::RequestOptions] options
|
351
|
+
# Request-specific options
|
352
|
+
#
|
353
|
+
# @yield [result, err] Result & error if block supplied
|
354
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse] parsed result object
|
355
|
+
# @yieldparam err [StandardError] error object if request failed
|
356
|
+
#
|
357
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse]
|
358
|
+
#
|
359
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
360
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
361
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
362
|
+
def list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
363
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/repositories', options)
|
364
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse::Representation
|
365
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse
|
366
|
+
command.params['parent'] = parent unless parent.nil?
|
367
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
368
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
374
|
+
# Updates a repository.
|
375
|
+
# @param [String] name
|
376
|
+
# The name of the repository, for example: "projects/p1/locations/us-central1/
|
377
|
+
# repositories/repo1".
|
378
|
+
# @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
|
379
|
+
# @param [String] update_mask
|
380
|
+
# The update mask applies to the resource. For the `FieldMask` definition, see
|
381
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
382
|
+
# fieldmask
|
383
|
+
# @param [String] fields
|
384
|
+
# Selector specifying which fields to include in a partial response.
|
385
|
+
# @param [String] quota_user
|
386
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
387
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
388
|
+
# @param [Google::Apis::RequestOptions] options
|
389
|
+
# Request-specific options
|
390
|
+
#
|
391
|
+
# @yield [result, err] Result & error if block supplied
|
392
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Repository] parsed result object
|
393
|
+
# @yieldparam err [StandardError] error object if request failed
|
394
|
+
#
|
395
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Repository]
|
396
|
+
#
|
397
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
398
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
399
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
400
|
+
def patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
401
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
402
|
+
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
403
|
+
command.request_object = repository_object
|
404
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
405
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
|
406
|
+
command.params['name'] = name unless name.nil?
|
407
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
408
|
+
command.query['fields'] = fields unless fields.nil?
|
409
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
410
|
+
execute_or_queue_command(command, &block)
|
411
|
+
end
|
412
|
+
|
413
|
+
# Updates the IAM policy for a given resource.
|
414
|
+
# @param [String] resource
|
415
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
416
|
+
# operation documentation for the appropriate value for this field.
|
417
|
+
# @param [Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
418
|
+
# @param [String] fields
|
419
|
+
# Selector specifying which fields to include in a partial response.
|
420
|
+
# @param [String] quota_user
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
423
|
+
# @param [Google::Apis::RequestOptions] options
|
424
|
+
# Request-specific options
|
425
|
+
#
|
426
|
+
# @yield [result, err] Result & error if block supplied
|
427
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Policy] parsed result object
|
428
|
+
# @yieldparam err [StandardError] error object if request failed
|
429
|
+
#
|
430
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Policy]
|
431
|
+
#
|
432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
435
|
+
def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
436
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
437
|
+
command.request_representation = Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest::Representation
|
438
|
+
command.request_object = set_iam_policy_request_object
|
439
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
|
440
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
|
441
|
+
command.params['resource'] = resource unless resource.nil?
|
442
|
+
command.query['fields'] = fields unless fields.nil?
|
443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
444
|
+
execute_or_queue_command(command, &block)
|
445
|
+
end
|
446
|
+
|
447
|
+
# Tests if the caller has a list of permissions on a resource.
|
448
|
+
# @param [String] resource
|
449
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
450
|
+
# operation documentation for the appropriate value for this field.
|
451
|
+
# @param [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
452
|
+
# @param [String] fields
|
453
|
+
# Selector specifying which fields to include in a partial response.
|
454
|
+
# @param [String] quota_user
|
455
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
456
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
457
|
+
# @param [Google::Apis::RequestOptions] options
|
458
|
+
# Request-specific options
|
459
|
+
#
|
460
|
+
# @yield [result, err] Result & error if block supplied
|
461
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse] parsed result object
|
462
|
+
# @yieldparam err [StandardError] error object if request failed
|
463
|
+
#
|
464
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse]
|
465
|
+
#
|
466
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
467
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
468
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
469
|
+
def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
470
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
471
|
+
command.request_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest::Representation
|
472
|
+
command.request_object = test_iam_permissions_request_object
|
473
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse::Representation
|
474
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse
|
475
|
+
command.params['resource'] = resource unless resource.nil?
|
476
|
+
command.query['fields'] = fields unless fields.nil?
|
477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
478
|
+
execute_or_queue_command(command, &block)
|
479
|
+
end
|
480
|
+
|
481
|
+
# Gets a file.
|
482
|
+
# @param [String] name
|
483
|
+
# The name of the file to retrieve.
|
484
|
+
# @param [String] fields
|
485
|
+
# Selector specifying which fields to include in a partial response.
|
486
|
+
# @param [String] quota_user
|
487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
489
|
+
# @param [Google::Apis::RequestOptions] options
|
490
|
+
# Request-specific options
|
491
|
+
#
|
492
|
+
# @yield [result, err] Result & error if block supplied
|
493
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::File] parsed result object
|
494
|
+
# @yieldparam err [StandardError] error object if request failed
|
495
|
+
#
|
496
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::File]
|
497
|
+
#
|
498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
501
|
+
def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
502
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
503
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::File::Representation
|
504
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::File
|
505
|
+
command.params['name'] = name unless name.nil?
|
506
|
+
command.query['fields'] = fields unless fields.nil?
|
507
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
508
|
+
execute_or_queue_command(command, &block)
|
509
|
+
end
|
510
|
+
|
511
|
+
# Lists files.
|
512
|
+
# @param [String] parent
|
513
|
+
# The name of the parent resource whose files will be listed.
|
514
|
+
# @param [String] filter
|
515
|
+
# An expression for filtering the results of the request. Filter rules are case
|
516
|
+
# insensitive. The fields eligible for filtering are: * `name` * `owner` An
|
517
|
+
# example of using a filter: * `name="projects/p1/locations/us-central1/
|
518
|
+
# repositories/repo1/files/a/b/*"` --> Files with an ID starting with "a/b/". * `
|
519
|
+
# owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
|
520
|
+
# versions/1.0"` --> Files owned by the version `1.0` in package `pkg1`.
|
521
|
+
# @param [Fixnum] page_size
|
522
|
+
# The maximum number of files to return.
|
523
|
+
# @param [String] page_token
|
524
|
+
# The next_page_token value returned from a previous list request, if any.
|
525
|
+
# @param [String] fields
|
526
|
+
# Selector specifying which fields to include in a partial response.
|
527
|
+
# @param [String] quota_user
|
528
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
529
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
530
|
+
# @param [Google::Apis::RequestOptions] options
|
531
|
+
# Request-specific options
|
532
|
+
#
|
533
|
+
# @yield [result, err] Result & error if block supplied
|
534
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListFilesResponse] parsed result object
|
535
|
+
# @yieldparam err [StandardError] error object if request failed
|
536
|
+
#
|
537
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::ListFilesResponse]
|
538
|
+
#
|
539
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
540
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
541
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
542
|
+
def list_project_location_repository_files(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
543
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
|
544
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse::Representation
|
545
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse
|
546
|
+
command.params['parent'] = parent unless parent.nil?
|
547
|
+
command.query['filter'] = filter unless filter.nil?
|
548
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
549
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
550
|
+
command.query['fields'] = fields unless fields.nil?
|
551
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
552
|
+
execute_or_queue_command(command, &block)
|
553
|
+
end
|
554
|
+
|
555
|
+
# Deletes a package and all of its versions and tags. The returned operation
|
556
|
+
# will complete once the package has been deleted.
|
557
|
+
# @param [String] name
|
558
|
+
# The name of the package to delete.
|
559
|
+
# @param [String] fields
|
560
|
+
# Selector specifying which fields to include in a partial response.
|
561
|
+
# @param [String] quota_user
|
562
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
563
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
564
|
+
# @param [Google::Apis::RequestOptions] options
|
565
|
+
# Request-specific options
|
566
|
+
#
|
567
|
+
# @yield [result, err] Result & error if block supplied
|
568
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
|
569
|
+
# @yieldparam err [StandardError] error object if request failed
|
570
|
+
#
|
571
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
572
|
+
#
|
573
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
574
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
575
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
576
|
+
def delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
|
577
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
578
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
579
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
580
|
+
command.params['name'] = name unless name.nil?
|
581
|
+
command.query['fields'] = fields unless fields.nil?
|
582
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
583
|
+
execute_or_queue_command(command, &block)
|
584
|
+
end
|
585
|
+
|
586
|
+
# Gets a package.
|
587
|
+
# @param [String] name
|
588
|
+
# The name of the package to retrieve.
|
589
|
+
# @param [String] fields
|
590
|
+
# Selector specifying which fields to include in a partial response.
|
591
|
+
# @param [String] quota_user
|
592
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
593
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
594
|
+
# @param [Google::Apis::RequestOptions] options
|
595
|
+
# Request-specific options
|
596
|
+
#
|
597
|
+
# @yield [result, err] Result & error if block supplied
|
598
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Package] parsed result object
|
599
|
+
# @yieldparam err [StandardError] error object if request failed
|
600
|
+
#
|
601
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Package]
|
602
|
+
#
|
603
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
604
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
605
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
606
|
+
def get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
|
607
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
608
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Package::Representation
|
609
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Package
|
610
|
+
command.params['name'] = name unless name.nil?
|
611
|
+
command.query['fields'] = fields unless fields.nil?
|
612
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
613
|
+
execute_or_queue_command(command, &block)
|
614
|
+
end
|
615
|
+
|
616
|
+
# Lists packages.
|
617
|
+
# @param [String] parent
|
618
|
+
# The name of the parent resource whose packages will be listed.
|
619
|
+
# @param [Fixnum] page_size
|
620
|
+
# The maximum number of packages to return.
|
621
|
+
# @param [String] page_token
|
622
|
+
# The next_page_token value returned from a previous list request, if any.
|
623
|
+
# @param [String] fields
|
624
|
+
# Selector specifying which fields to include in a partial response.
|
625
|
+
# @param [String] quota_user
|
626
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
627
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
628
|
+
# @param [Google::Apis::RequestOptions] options
|
629
|
+
# Request-specific options
|
630
|
+
#
|
631
|
+
# @yield [result, err] Result & error if block supplied
|
632
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse] parsed result object
|
633
|
+
# @yieldparam err [StandardError] error object if request failed
|
634
|
+
#
|
635
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse]
|
636
|
+
#
|
637
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
638
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
639
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
640
|
+
def list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
641
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/packages', options)
|
642
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse::Representation
|
643
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse
|
644
|
+
command.params['parent'] = parent unless parent.nil?
|
645
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
646
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
647
|
+
command.query['fields'] = fields unless fields.nil?
|
648
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
649
|
+
execute_or_queue_command(command, &block)
|
650
|
+
end
|
651
|
+
|
652
|
+
# Creates a tag.
|
653
|
+
# @param [String] parent
|
654
|
+
# The name of the parent resource where the tag will be created.
|
655
|
+
# @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
|
656
|
+
# @param [String] tag_id
|
657
|
+
# The tag id to use for this repository.
|
658
|
+
# @param [String] fields
|
659
|
+
# Selector specifying which fields to include in a partial response.
|
660
|
+
# @param [String] quota_user
|
661
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
662
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
663
|
+
# @param [Google::Apis::RequestOptions] options
|
664
|
+
# Request-specific options
|
665
|
+
#
|
666
|
+
# @yield [result, err] Result & error if block supplied
|
667
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
|
668
|
+
# @yieldparam err [StandardError] error object if request failed
|
669
|
+
#
|
670
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Tag]
|
671
|
+
#
|
672
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
673
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
674
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
675
|
+
def create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
676
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/tags', options)
|
677
|
+
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
678
|
+
command.request_object = tag_object
|
679
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
680
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
|
681
|
+
command.params['parent'] = parent unless parent.nil?
|
682
|
+
command.query['tagId'] = tag_id unless tag_id.nil?
|
683
|
+
command.query['fields'] = fields unless fields.nil?
|
684
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
685
|
+
execute_or_queue_command(command, &block)
|
686
|
+
end
|
687
|
+
|
688
|
+
# Deletes a tag.
|
689
|
+
# @param [String] name
|
690
|
+
# The name of the tag to delete.
|
691
|
+
# @param [String] fields
|
692
|
+
# Selector specifying which fields to include in a partial response.
|
693
|
+
# @param [String] quota_user
|
694
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
695
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
696
|
+
# @param [Google::Apis::RequestOptions] options
|
697
|
+
# Request-specific options
|
698
|
+
#
|
699
|
+
# @yield [result, err] Result & error if block supplied
|
700
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Empty] parsed result object
|
701
|
+
# @yieldparam err [StandardError] error object if request failed
|
702
|
+
#
|
703
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Empty]
|
704
|
+
#
|
705
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
706
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
707
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
708
|
+
def delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
709
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
710
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Empty::Representation
|
711
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Empty
|
712
|
+
command.params['name'] = name unless name.nil?
|
713
|
+
command.query['fields'] = fields unless fields.nil?
|
714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
715
|
+
execute_or_queue_command(command, &block)
|
716
|
+
end
|
717
|
+
|
718
|
+
# Gets a tag.
|
719
|
+
# @param [String] name
|
720
|
+
# The name of the tag to retrieve.
|
721
|
+
# @param [String] fields
|
722
|
+
# Selector specifying which fields to include in a partial response.
|
723
|
+
# @param [String] quota_user
|
724
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
725
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
726
|
+
# @param [Google::Apis::RequestOptions] options
|
727
|
+
# Request-specific options
|
728
|
+
#
|
729
|
+
# @yield [result, err] Result & error if block supplied
|
730
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
|
731
|
+
# @yieldparam err [StandardError] error object if request failed
|
732
|
+
#
|
733
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Tag]
|
734
|
+
#
|
735
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
736
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
737
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
738
|
+
def get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
739
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
740
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
741
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
|
742
|
+
command.params['name'] = name unless name.nil?
|
743
|
+
command.query['fields'] = fields unless fields.nil?
|
744
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
745
|
+
execute_or_queue_command(command, &block)
|
746
|
+
end
|
747
|
+
|
748
|
+
# Lists tags.
|
749
|
+
# @param [String] parent
|
750
|
+
# The name of the parent resource whose tags will be listed.
|
751
|
+
# @param [String] filter
|
752
|
+
# An expression for filtering the results of the request. Filter rules are case
|
753
|
+
# insensitive. The fields eligible for filtering are: * `version` An example of
|
754
|
+
# using a filter: * `version="projects/p1/locations/us-central1/repositories/
|
755
|
+
# repo1/packages/pkg1/versions/1.0"` --> Tags that are applied to the version `1.
|
756
|
+
# 0` in package `pkg1`.
|
757
|
+
# @param [Fixnum] page_size
|
758
|
+
# The maximum number of tags to return.
|
759
|
+
# @param [String] page_token
|
760
|
+
# The next_page_token value returned from a previous list request, if any.
|
761
|
+
# @param [String] fields
|
762
|
+
# Selector specifying which fields to include in a partial response.
|
763
|
+
# @param [String] quota_user
|
764
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
765
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
766
|
+
# @param [Google::Apis::RequestOptions] options
|
767
|
+
# Request-specific options
|
768
|
+
#
|
769
|
+
# @yield [result, err] Result & error if block supplied
|
770
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListTagsResponse] parsed result object
|
771
|
+
# @yieldparam err [StandardError] error object if request failed
|
772
|
+
#
|
773
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::ListTagsResponse]
|
774
|
+
#
|
775
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
776
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
777
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
778
|
+
def list_project_location_repository_package_tags(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
779
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/tags', options)
|
780
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse::Representation
|
781
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse
|
782
|
+
command.params['parent'] = parent unless parent.nil?
|
783
|
+
command.query['filter'] = filter unless filter.nil?
|
784
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
785
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
786
|
+
command.query['fields'] = fields unless fields.nil?
|
787
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
788
|
+
execute_or_queue_command(command, &block)
|
789
|
+
end
|
790
|
+
|
791
|
+
# Updates a tag.
|
792
|
+
# @param [String] name
|
793
|
+
# The name of the tag, for example: "projects/p1/locations/us-central1/
|
794
|
+
# repositories/repo1/packages/pkg1/tags/tag1".
|
795
|
+
# @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
|
796
|
+
# @param [String] update_mask
|
797
|
+
# The update mask applies to the resource. For the `FieldMask` definition, see
|
798
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
799
|
+
# fieldmask
|
800
|
+
# @param [String] fields
|
801
|
+
# Selector specifying which fields to include in a partial response.
|
802
|
+
# @param [String] quota_user
|
803
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
804
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
805
|
+
# @param [Google::Apis::RequestOptions] options
|
806
|
+
# Request-specific options
|
807
|
+
#
|
808
|
+
# @yield [result, err] Result & error if block supplied
|
809
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
|
810
|
+
# @yieldparam err [StandardError] error object if request failed
|
811
|
+
#
|
812
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Tag]
|
813
|
+
#
|
814
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
815
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
816
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
817
|
+
def patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
818
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
819
|
+
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
820
|
+
command.request_object = tag_object
|
821
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
822
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
|
823
|
+
command.params['name'] = name unless name.nil?
|
824
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
825
|
+
command.query['fields'] = fields unless fields.nil?
|
826
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
827
|
+
execute_or_queue_command(command, &block)
|
828
|
+
end
|
829
|
+
|
830
|
+
# Deletes a version and all of its content. The returned operation will complete
|
831
|
+
# once the version has been deleted.
|
832
|
+
# @param [String] name
|
833
|
+
# The name of the version to delete.
|
834
|
+
# @param [Boolean] force
|
835
|
+
# By default, a version that is tagged may not be deleted. If force=true, the
|
836
|
+
# version and any tags pointing to the version are deleted.
|
837
|
+
# @param [String] fields
|
838
|
+
# Selector specifying which fields to include in a partial response.
|
839
|
+
# @param [String] quota_user
|
840
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
841
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
842
|
+
# @param [Google::Apis::RequestOptions] options
|
843
|
+
# Request-specific options
|
844
|
+
#
|
845
|
+
# @yield [result, err] Result & error if block supplied
|
846
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
|
847
|
+
# @yieldparam err [StandardError] error object if request failed
|
848
|
+
#
|
849
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
850
|
+
#
|
851
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
852
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
853
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
854
|
+
def delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
855
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
856
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
857
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
858
|
+
command.params['name'] = name unless name.nil?
|
859
|
+
command.query['force'] = force unless force.nil?
|
860
|
+
command.query['fields'] = fields unless fields.nil?
|
861
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
862
|
+
execute_or_queue_command(command, &block)
|
863
|
+
end
|
864
|
+
|
865
|
+
# Gets a version
|
866
|
+
# @param [String] name
|
867
|
+
# The name of the version to retrieve.
|
868
|
+
# @param [String] view
|
869
|
+
# The view that should be returned in the response.
|
870
|
+
# @param [String] fields
|
871
|
+
# Selector specifying which fields to include in a partial response.
|
872
|
+
# @param [String] quota_user
|
873
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
874
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
875
|
+
# @param [Google::Apis::RequestOptions] options
|
876
|
+
# Request-specific options
|
877
|
+
#
|
878
|
+
# @yield [result, err] Result & error if block supplied
|
879
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Version] parsed result object
|
880
|
+
# @yieldparam err [StandardError] error object if request failed
|
881
|
+
#
|
882
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::Version]
|
883
|
+
#
|
884
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
885
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
886
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
887
|
+
def get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
888
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
889
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Version::Representation
|
890
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::Version
|
891
|
+
command.params['name'] = name unless name.nil?
|
892
|
+
command.query['view'] = view unless view.nil?
|
893
|
+
command.query['fields'] = fields unless fields.nil?
|
894
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
895
|
+
execute_or_queue_command(command, &block)
|
896
|
+
end
|
897
|
+
|
898
|
+
# Lists versions.
|
899
|
+
# @param [String] parent
|
900
|
+
# The name of the parent resource whose versions will be listed.
|
901
|
+
# @param [String] order_by
|
902
|
+
# Optional. Sorting field and order
|
903
|
+
# @param [Fixnum] page_size
|
904
|
+
# The maximum number of versions to return.
|
905
|
+
# @param [String] page_token
|
906
|
+
# The next_page_token value returned from a previous list request, if any.
|
907
|
+
# @param [String] view
|
908
|
+
# The view that should be returned in the response.
|
909
|
+
# @param [String] fields
|
910
|
+
# Selector specifying which fields to include in a partial response.
|
911
|
+
# @param [String] quota_user
|
912
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
913
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
914
|
+
# @param [Google::Apis::RequestOptions] options
|
915
|
+
# Request-specific options
|
916
|
+
#
|
917
|
+
# @yield [result, err] Result & error if block supplied
|
918
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse] parsed result object
|
919
|
+
# @yieldparam err [StandardError] error object if request failed
|
920
|
+
#
|
921
|
+
# @return [Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse]
|
922
|
+
#
|
923
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
924
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
925
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
926
|
+
def list_project_location_repository_package_versions(parent, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
927
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
|
928
|
+
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse::Representation
|
929
|
+
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse
|
930
|
+
command.params['parent'] = parent unless parent.nil?
|
931
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
932
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
933
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
934
|
+
command.query['view'] = view unless view.nil?
|
935
|
+
command.query['fields'] = fields unless fields.nil?
|
936
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
937
|
+
execute_or_queue_command(command, &block)
|
938
|
+
end
|
939
|
+
|
940
|
+
protected
|
941
|
+
|
942
|
+
def apply_command_defaults(command)
|
943
|
+
command.query['key'] = key unless key.nil?
|
944
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
945
|
+
end
|
946
|
+
end
|
947
|
+
end
|
948
|
+
end
|
949
|
+
end
|