google-apis-artifactregistry_v1 0.12.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/artifactregistry_v1/classes.rb +715 -128
- data/lib/google/apis/artifactregistry_v1/gem_version.rb +3 -3
- data/lib/google/apis/artifactregistry_v1/representations.rb +290 -38
- data/lib/google/apis/artifactregistry_v1/service.rb +1024 -1
- metadata +4 -4
@@ -81,6 +81,142 @@ module Google
|
|
81
81
|
execute_or_queue_command(command, &block)
|
82
82
|
end
|
83
83
|
|
84
|
+
# Retrieves the Settings for the Project.
|
85
|
+
# @param [String] name
|
86
|
+
# Required. The name of the projectSettings resource.
|
87
|
+
# @param [String] fields
|
88
|
+
# Selector specifying which fields to include in a partial response.
|
89
|
+
# @param [String] quota_user
|
90
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
91
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
92
|
+
# @param [Google::Apis::RequestOptions] options
|
93
|
+
# Request-specific options
|
94
|
+
#
|
95
|
+
# @yield [result, err] Result & error if block supplied
|
96
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ProjectSettings] parsed result object
|
97
|
+
# @yieldparam err [StandardError] error object if request failed
|
98
|
+
#
|
99
|
+
# @return [Google::Apis::ArtifactregistryV1::ProjectSettings]
|
100
|
+
#
|
101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
104
|
+
def get_project_project_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
105
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
106
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
|
107
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ProjectSettings
|
108
|
+
command.params['name'] = name unless name.nil?
|
109
|
+
command.query['fields'] = fields unless fields.nil?
|
110
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
111
|
+
execute_or_queue_command(command, &block)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Updates the Settings for the Project.
|
115
|
+
# @param [String] name
|
116
|
+
# The name of the project's settings. Always of the form: projects/`project-id`/
|
117
|
+
# projectSettings In update request: never set In response: always set
|
118
|
+
# @param [Google::Apis::ArtifactregistryV1::ProjectSettings] project_settings_object
|
119
|
+
# @param [String] update_mask
|
120
|
+
# Field mask to support partial updates.
|
121
|
+
# @param [String] fields
|
122
|
+
# Selector specifying which fields to include in a partial response.
|
123
|
+
# @param [String] quota_user
|
124
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
125
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
126
|
+
# @param [Google::Apis::RequestOptions] options
|
127
|
+
# Request-specific options
|
128
|
+
#
|
129
|
+
# @yield [result, err] Result & error if block supplied
|
130
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ProjectSettings] parsed result object
|
131
|
+
# @yieldparam err [StandardError] error object if request failed
|
132
|
+
#
|
133
|
+
# @return [Google::Apis::ArtifactregistryV1::ProjectSettings]
|
134
|
+
#
|
135
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
136
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
137
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
138
|
+
def update_project_project_settings(name, project_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
139
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
140
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
|
141
|
+
command.request_object = project_settings_object
|
142
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation
|
143
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ProjectSettings
|
144
|
+
command.params['name'] = name unless name.nil?
|
145
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
146
|
+
command.query['fields'] = fields unless fields.nil?
|
147
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
148
|
+
execute_or_queue_command(command, &block)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Creates a repository. The returned Operation will finish once the repository
|
152
|
+
# has been created. Its response will be the created Repository.
|
153
|
+
# @param [String] parent
|
154
|
+
# Required. The name of the parent resource where the repository will be created.
|
155
|
+
# @param [Google::Apis::ArtifactregistryV1::Repository] repository_object
|
156
|
+
# @param [String] repository_id
|
157
|
+
# The repository id to use for this repository.
|
158
|
+
# @param [String] fields
|
159
|
+
# Selector specifying which fields to include in a partial response.
|
160
|
+
# @param [String] quota_user
|
161
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
162
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
163
|
+
# @param [Google::Apis::RequestOptions] options
|
164
|
+
# Request-specific options
|
165
|
+
#
|
166
|
+
# @yield [result, err] Result & error if block supplied
|
167
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
168
|
+
# @yieldparam err [StandardError] error object if request failed
|
169
|
+
#
|
170
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
171
|
+
#
|
172
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
173
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
174
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
175
|
+
def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
176
|
+
command = make_simple_command(:post, 'v1/{+parent}/repositories', options)
|
177
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::Repository::Representation
|
178
|
+
command.request_object = repository_object
|
179
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
180
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
181
|
+
command.params['parent'] = parent unless parent.nil?
|
182
|
+
command.query['repositoryId'] = repository_id unless repository_id.nil?
|
183
|
+
command.query['fields'] = fields unless fields.nil?
|
184
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
185
|
+
execute_or_queue_command(command, &block)
|
186
|
+
end
|
187
|
+
|
188
|
+
# Deletes a repository and all of its contents. The returned Operation will
|
189
|
+
# finish once the repository has been deleted. It will not have any Operation
|
190
|
+
# metadata and will return a google.protobuf.Empty response.
|
191
|
+
# @param [String] name
|
192
|
+
# Required. The name of the repository to delete.
|
193
|
+
# @param [String] fields
|
194
|
+
# Selector specifying which fields to include in a partial response.
|
195
|
+
# @param [String] quota_user
|
196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
198
|
+
# @param [Google::Apis::RequestOptions] options
|
199
|
+
# Request-specific options
|
200
|
+
#
|
201
|
+
# @yield [result, err] Result & error if block supplied
|
202
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
203
|
+
# @yieldparam err [StandardError] error object if request failed
|
204
|
+
#
|
205
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
206
|
+
#
|
207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
210
|
+
def delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
|
211
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
212
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
213
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
214
|
+
command.params['name'] = name unless name.nil?
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
84
220
|
# Gets a repository.
|
85
221
|
# @param [String] name
|
86
222
|
# Required. The name of the repository to retrieve.
|
@@ -111,11 +247,54 @@ module Google
|
|
111
247
|
execute_or_queue_command(command, &block)
|
112
248
|
end
|
113
249
|
|
250
|
+
# Gets the IAM policy for a given resource.
|
251
|
+
# @param [String] resource
|
252
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
253
|
+
# operation documentation for the appropriate value for this field.
|
254
|
+
# @param [Fixnum] options_requested_policy_version
|
255
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
256
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
257
|
+
# rejected. Requests for policies with any conditional role bindings must
|
258
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
259
|
+
# valid value or leave the field unset. The policy in the response might use the
|
260
|
+
# policy version that you specified, or it might use a lower policy version. For
|
261
|
+
# example, if you specify version 3, but the policy has no conditional role
|
262
|
+
# bindings, the response uses version 1. To learn which resources support
|
263
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
264
|
+
# google.com/iam/help/conditions/resource-policies).
|
265
|
+
# @param [String] fields
|
266
|
+
# Selector specifying which fields to include in a partial response.
|
267
|
+
# @param [String] quota_user
|
268
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
269
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
270
|
+
# @param [Google::Apis::RequestOptions] options
|
271
|
+
# Request-specific options
|
272
|
+
#
|
273
|
+
# @yield [result, err] Result & error if block supplied
|
274
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Policy] parsed result object
|
275
|
+
# @yieldparam err [StandardError] error object if request failed
|
276
|
+
#
|
277
|
+
# @return [Google::Apis::ArtifactregistryV1::Policy]
|
278
|
+
#
|
279
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
280
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
281
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
282
|
+
def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
283
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
284
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Policy::Representation
|
285
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Policy
|
286
|
+
command.params['resource'] = resource unless resource.nil?
|
287
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
288
|
+
command.query['fields'] = fields unless fields.nil?
|
289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
290
|
+
execute_or_queue_command(command, &block)
|
291
|
+
end
|
292
|
+
|
114
293
|
# Lists repositories.
|
115
294
|
# @param [String] parent
|
116
295
|
# Required. The name of the parent resource whose repositories will be listed.
|
117
296
|
# @param [Fixnum] page_size
|
118
|
-
# The maximum number of repositories to return.
|
297
|
+
# The maximum number of repositories to return. Maximum page size is 1,000.
|
119
298
|
# @param [String] page_token
|
120
299
|
# The next_page_token value returned from a previous list request, if any.
|
121
300
|
# @param [String] fields
|
@@ -147,6 +326,225 @@ module Google
|
|
147
326
|
execute_or_queue_command(command, &block)
|
148
327
|
end
|
149
328
|
|
329
|
+
# Updates a repository.
|
330
|
+
# @param [String] name
|
331
|
+
# The name of the repository, for example: "projects/p1/locations/us-central1/
|
332
|
+
# repositories/repo1".
|
333
|
+
# @param [Google::Apis::ArtifactregistryV1::Repository] repository_object
|
334
|
+
# @param [String] update_mask
|
335
|
+
# The update mask applies to the resource. For the `FieldMask` definition, see
|
336
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
337
|
+
# fieldmask
|
338
|
+
# @param [String] fields
|
339
|
+
# Selector specifying which fields to include in a partial response.
|
340
|
+
# @param [String] quota_user
|
341
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
342
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
343
|
+
# @param [Google::Apis::RequestOptions] options
|
344
|
+
# Request-specific options
|
345
|
+
#
|
346
|
+
# @yield [result, err] Result & error if block supplied
|
347
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Repository] parsed result object
|
348
|
+
# @yieldparam err [StandardError] error object if request failed
|
349
|
+
#
|
350
|
+
# @return [Google::Apis::ArtifactregistryV1::Repository]
|
351
|
+
#
|
352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
355
|
+
def patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
356
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
357
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::Repository::Representation
|
358
|
+
command.request_object = repository_object
|
359
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Repository::Representation
|
360
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Repository
|
361
|
+
command.params['name'] = name unless name.nil?
|
362
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
363
|
+
command.query['fields'] = fields unless fields.nil?
|
364
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
365
|
+
execute_or_queue_command(command, &block)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Updates the IAM policy for a given resource.
|
369
|
+
# @param [String] resource
|
370
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
371
|
+
# operation documentation for the appropriate value for this field.
|
372
|
+
# @param [Google::Apis::ArtifactregistryV1::SetIamPolicyRequest] set_iam_policy_request_object
|
373
|
+
# @param [String] fields
|
374
|
+
# Selector specifying which fields to include in a partial response.
|
375
|
+
# @param [String] quota_user
|
376
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
377
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
378
|
+
# @param [Google::Apis::RequestOptions] options
|
379
|
+
# Request-specific options
|
380
|
+
#
|
381
|
+
# @yield [result, err] Result & error if block supplied
|
382
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Policy] parsed result object
|
383
|
+
# @yieldparam err [StandardError] error object if request failed
|
384
|
+
#
|
385
|
+
# @return [Google::Apis::ArtifactregistryV1::Policy]
|
386
|
+
#
|
387
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
388
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
389
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
390
|
+
def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
391
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
392
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::SetIamPolicyRequest::Representation
|
393
|
+
command.request_object = set_iam_policy_request_object
|
394
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Policy::Representation
|
395
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Policy
|
396
|
+
command.params['resource'] = resource unless resource.nil?
|
397
|
+
command.query['fields'] = fields unless fields.nil?
|
398
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
399
|
+
execute_or_queue_command(command, &block)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Tests if the caller has a list of permissions on a resource.
|
403
|
+
# @param [String] resource
|
404
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
405
|
+
# operation documentation for the appropriate value for this field.
|
406
|
+
# @param [Google::Apis::ArtifactregistryV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
407
|
+
# @param [String] fields
|
408
|
+
# Selector specifying which fields to include in a partial response.
|
409
|
+
# @param [String] quota_user
|
410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
412
|
+
# @param [Google::Apis::RequestOptions] options
|
413
|
+
# Request-specific options
|
414
|
+
#
|
415
|
+
# @yield [result, err] Result & error if block supplied
|
416
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse] parsed result object
|
417
|
+
# @yieldparam err [StandardError] error object if request failed
|
418
|
+
#
|
419
|
+
# @return [Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse]
|
420
|
+
#
|
421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
424
|
+
def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
425
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
426
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::TestIamPermissionsRequest::Representation
|
427
|
+
command.request_object = test_iam_permissions_request_object
|
428
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse::Representation
|
429
|
+
command.response_class = Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse
|
430
|
+
command.params['resource'] = resource unless resource.nil?
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
433
|
+
execute_or_queue_command(command, &block)
|
434
|
+
end
|
435
|
+
|
436
|
+
# Imports Apt artifacts. The returned Operation will complete once the resources
|
437
|
+
# are imported. Package, Version, and File resources are created based on the
|
438
|
+
# imported artifacts. Imported artifacts that conflict with existing resources
|
439
|
+
# are ignored.
|
440
|
+
# @param [String] parent
|
441
|
+
# The name of the parent resource where the artifacts will be imported.
|
442
|
+
# @param [Google::Apis::ArtifactregistryV1::ImportAptArtifactsRequest] import_apt_artifacts_request_object
|
443
|
+
# @param [String] fields
|
444
|
+
# Selector specifying which fields to include in a partial response.
|
445
|
+
# @param [String] quota_user
|
446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
448
|
+
# @param [Google::Apis::RequestOptions] options
|
449
|
+
# Request-specific options
|
450
|
+
#
|
451
|
+
# @yield [result, err] Result & error if block supplied
|
452
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
453
|
+
# @yieldparam err [StandardError] error object if request failed
|
454
|
+
#
|
455
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
456
|
+
#
|
457
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
458
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
459
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
460
|
+
def import_apt_artifacts(parent, import_apt_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
461
|
+
command = make_simple_command(:post, 'v1/{+parent}/aptArtifacts:import', options)
|
462
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::ImportAptArtifactsRequest::Representation
|
463
|
+
command.request_object = import_apt_artifacts_request_object
|
464
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
465
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
466
|
+
command.params['parent'] = parent unless parent.nil?
|
467
|
+
command.query['fields'] = fields unless fields.nil?
|
468
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
469
|
+
execute_or_queue_command(command, &block)
|
470
|
+
end
|
471
|
+
|
472
|
+
# Directly uploads an Apt artifact. The returned Operation will complete once
|
473
|
+
# the resources are uploaded. Package, Version, and File resources are created
|
474
|
+
# based on the imported artifact. Imported artifacts that conflict with existing
|
475
|
+
# resources are ignored.
|
476
|
+
# @param [String] parent
|
477
|
+
# The name of the parent resource where the artifacts will be uploaded.
|
478
|
+
# @param [Google::Apis::ArtifactregistryV1::UploadAptArtifactRequest] upload_apt_artifact_request_object
|
479
|
+
# @param [String] fields
|
480
|
+
# Selector specifying which fields to include in a partial response.
|
481
|
+
# @param [String] quota_user
|
482
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
483
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
484
|
+
# @param [IO, String] upload_source
|
485
|
+
# IO stream or filename containing content to upload
|
486
|
+
# @param [String] content_type
|
487
|
+
# Content type of the uploaded content.
|
488
|
+
# @param [Google::Apis::RequestOptions] options
|
489
|
+
# Request-specific options
|
490
|
+
#
|
491
|
+
# @yield [result, err] Result & error if block supplied
|
492
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse] parsed result object
|
493
|
+
# @yieldparam err [StandardError] error object if request failed
|
494
|
+
#
|
495
|
+
# @return [Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse]
|
496
|
+
#
|
497
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
498
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
499
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
500
|
+
def upload_aptartifact_apt_artifact(parent, upload_apt_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
501
|
+
if upload_source.nil?
|
502
|
+
command = make_simple_command(:post, 'v1/{+parent}/aptArtifacts:create', options)
|
503
|
+
else
|
504
|
+
command = make_upload_command(:post, 'v1/{+parent}/aptArtifacts:create', options)
|
505
|
+
command.upload_source = upload_source
|
506
|
+
command.upload_content_type = content_type
|
507
|
+
end
|
508
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::UploadAptArtifactRequest::Representation
|
509
|
+
command.request_object = upload_apt_artifact_request_object
|
510
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse::Representation
|
511
|
+
command.response_class = Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse
|
512
|
+
command.params['parent'] = parent unless parent.nil?
|
513
|
+
command.query['fields'] = fields unless fields.nil?
|
514
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
515
|
+
execute_or_queue_command(command, &block)
|
516
|
+
end
|
517
|
+
|
518
|
+
# Gets a docker image.
|
519
|
+
# @param [String] name
|
520
|
+
# Required. The name of the docker images.
|
521
|
+
# @param [String] fields
|
522
|
+
# Selector specifying which fields to include in a partial response.
|
523
|
+
# @param [String] quota_user
|
524
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
525
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
526
|
+
# @param [Google::Apis::RequestOptions] options
|
527
|
+
# Request-specific options
|
528
|
+
#
|
529
|
+
# @yield [result, err] Result & error if block supplied
|
530
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::DockerImage] parsed result object
|
531
|
+
# @yieldparam err [StandardError] error object if request failed
|
532
|
+
#
|
533
|
+
# @return [Google::Apis::ArtifactregistryV1::DockerImage]
|
534
|
+
#
|
535
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
536
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
537
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
538
|
+
def get_project_location_repository_docker_image(name, fields: nil, quota_user: nil, options: nil, &block)
|
539
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
540
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::DockerImage::Representation
|
541
|
+
command.response_class = Google::Apis::ArtifactregistryV1::DockerImage
|
542
|
+
command.params['name'] = name unless name.nil?
|
543
|
+
command.query['fields'] = fields unless fields.nil?
|
544
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
545
|
+
execute_or_queue_command(command, &block)
|
546
|
+
end
|
547
|
+
|
150
548
|
# Lists docker images.
|
151
549
|
# @param [String] parent
|
152
550
|
# Required. The name of the parent resource whose docker images will be listed.
|
@@ -182,6 +580,631 @@ module Google
|
|
182
580
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
183
581
|
execute_or_queue_command(command, &block)
|
184
582
|
end
|
583
|
+
|
584
|
+
# Gets a file.
|
585
|
+
# @param [String] name
|
586
|
+
# The name of the file to retrieve.
|
587
|
+
# @param [String] fields
|
588
|
+
# Selector specifying which fields to include in a partial response.
|
589
|
+
# @param [String] quota_user
|
590
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
591
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
592
|
+
# @param [Google::Apis::RequestOptions] options
|
593
|
+
# Request-specific options
|
594
|
+
#
|
595
|
+
# @yield [result, err] Result & error if block supplied
|
596
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File] parsed result object
|
597
|
+
# @yieldparam err [StandardError] error object if request failed
|
598
|
+
#
|
599
|
+
# @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File]
|
600
|
+
#
|
601
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
602
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
603
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
604
|
+
def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
605
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
606
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File::Representation
|
607
|
+
command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File
|
608
|
+
command.params['name'] = name unless name.nil?
|
609
|
+
command.query['fields'] = fields unless fields.nil?
|
610
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
611
|
+
execute_or_queue_command(command, &block)
|
612
|
+
end
|
613
|
+
|
614
|
+
# Lists files.
|
615
|
+
# @param [String] parent
|
616
|
+
# The name of the parent resource whose files will be listed.
|
617
|
+
# @param [String] filter
|
618
|
+
# An expression for filtering the results of the request. Filter rules are case
|
619
|
+
# insensitive. The fields eligible for filtering are: * `name` * `owner` An
|
620
|
+
# example of using a filter: * `name="projects/p1/locations/us-central1/
|
621
|
+
# repositories/repo1/files/a/b/*"` --> Files with an ID starting with "a/b/". * `
|
622
|
+
# owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
|
623
|
+
# versions/1.0"` --> Files owned by the version `1.0` in package `pkg1`.
|
624
|
+
# @param [Fixnum] page_size
|
625
|
+
# The maximum number of files to return.
|
626
|
+
# @param [String] page_token
|
627
|
+
# The next_page_token value returned from a previous list request, if any.
|
628
|
+
# @param [String] fields
|
629
|
+
# Selector specifying which fields to include in a partial response.
|
630
|
+
# @param [String] quota_user
|
631
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
632
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
633
|
+
# @param [Google::Apis::RequestOptions] options
|
634
|
+
# Request-specific options
|
635
|
+
#
|
636
|
+
# @yield [result, err] Result & error if block supplied
|
637
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListFilesResponse] parsed result object
|
638
|
+
# @yieldparam err [StandardError] error object if request failed
|
639
|
+
#
|
640
|
+
# @return [Google::Apis::ArtifactregistryV1::ListFilesResponse]
|
641
|
+
#
|
642
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
643
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
644
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
645
|
+
def list_project_location_repository_files(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
646
|
+
command = make_simple_command(:get, 'v1/{+parent}/files', options)
|
647
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ListFilesResponse::Representation
|
648
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ListFilesResponse
|
649
|
+
command.params['parent'] = parent unless parent.nil?
|
650
|
+
command.query['filter'] = filter unless filter.nil?
|
651
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
652
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
653
|
+
command.query['fields'] = fields unless fields.nil?
|
654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
655
|
+
execute_or_queue_command(command, &block)
|
656
|
+
end
|
657
|
+
|
658
|
+
# Imports GooGet artifacts. The returned Operation will complete once the
|
659
|
+
# resources are imported. Package, Version, and File resources are created based
|
660
|
+
# on the imported artifacts. Imported artifacts that conflict with existing
|
661
|
+
# resources are ignored.
|
662
|
+
# @param [String] parent
|
663
|
+
# The name of the parent resource where the artifacts will be imported.
|
664
|
+
# @param [Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsRequest] import_goo_get_artifacts_request_object
|
665
|
+
# @param [String] fields
|
666
|
+
# Selector specifying which fields to include in a partial response.
|
667
|
+
# @param [String] quota_user
|
668
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
669
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
670
|
+
# @param [Google::Apis::RequestOptions] options
|
671
|
+
# Request-specific options
|
672
|
+
#
|
673
|
+
# @yield [result, err] Result & error if block supplied
|
674
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
675
|
+
# @yieldparam err [StandardError] error object if request failed
|
676
|
+
#
|
677
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
678
|
+
#
|
679
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
680
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
681
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
682
|
+
def import_goo_get_artifacts(parent, import_goo_get_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
683
|
+
command = make_simple_command(:post, 'v1/{+parent}/gooGetArtifacts:import', options)
|
684
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsRequest::Representation
|
685
|
+
command.request_object = import_goo_get_artifacts_request_object
|
686
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
687
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
688
|
+
command.params['parent'] = parent unless parent.nil?
|
689
|
+
command.query['fields'] = fields unless fields.nil?
|
690
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
691
|
+
execute_or_queue_command(command, &block)
|
692
|
+
end
|
693
|
+
|
694
|
+
# Directly uploads a GooGet artifact. The returned Operation will complete once
|
695
|
+
# the resources are uploaded. Package, Version, and File resources are created
|
696
|
+
# based on the imported artifact. Imported artifacts that conflict with existing
|
697
|
+
# resources are ignored.
|
698
|
+
# @param [String] parent
|
699
|
+
# The name of the parent resource where the artifacts will be uploaded.
|
700
|
+
# @param [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactRequest] upload_goo_get_artifact_request_object
|
701
|
+
# @param [String] fields
|
702
|
+
# Selector specifying which fields to include in a partial response.
|
703
|
+
# @param [String] quota_user
|
704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
706
|
+
# @param [IO, String] upload_source
|
707
|
+
# IO stream or filename containing content to upload
|
708
|
+
# @param [String] content_type
|
709
|
+
# Content type of the uploaded content.
|
710
|
+
# @param [Google::Apis::RequestOptions] options
|
711
|
+
# Request-specific options
|
712
|
+
#
|
713
|
+
# @yield [result, err] Result & error if block supplied
|
714
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse] parsed result object
|
715
|
+
# @yieldparam err [StandardError] error object if request failed
|
716
|
+
#
|
717
|
+
# @return [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse]
|
718
|
+
#
|
719
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
720
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
721
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
722
|
+
def upload_googetartifact_goo_get_artifact(parent, upload_goo_get_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
723
|
+
if upload_source.nil?
|
724
|
+
command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
|
725
|
+
else
|
726
|
+
command = make_upload_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
|
727
|
+
command.upload_source = upload_source
|
728
|
+
command.upload_content_type = content_type
|
729
|
+
end
|
730
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactRequest::Representation
|
731
|
+
command.request_object = upload_goo_get_artifact_request_object
|
732
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse::Representation
|
733
|
+
command.response_class = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse
|
734
|
+
command.params['parent'] = parent unless parent.nil?
|
735
|
+
command.query['fields'] = fields unless fields.nil?
|
736
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
737
|
+
execute_or_queue_command(command, &block)
|
738
|
+
end
|
739
|
+
|
740
|
+
# Deletes a package and all of its versions and tags. The returned operation
|
741
|
+
# will complete once the package has been deleted.
|
742
|
+
# @param [String] name
|
743
|
+
# Required. The name of the package to delete.
|
744
|
+
# @param [String] fields
|
745
|
+
# Selector specifying which fields to include in a partial response.
|
746
|
+
# @param [String] quota_user
|
747
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
748
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
749
|
+
# @param [Google::Apis::RequestOptions] options
|
750
|
+
# Request-specific options
|
751
|
+
#
|
752
|
+
# @yield [result, err] Result & error if block supplied
|
753
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
754
|
+
# @yieldparam err [StandardError] error object if request failed
|
755
|
+
#
|
756
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
757
|
+
#
|
758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
761
|
+
def delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
|
762
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
763
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
764
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
765
|
+
command.params['name'] = name unless name.nil?
|
766
|
+
command.query['fields'] = fields unless fields.nil?
|
767
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
768
|
+
execute_or_queue_command(command, &block)
|
769
|
+
end
|
770
|
+
|
771
|
+
# Gets a package.
|
772
|
+
# @param [String] name
|
773
|
+
# Required. The name of the package to retrieve.
|
774
|
+
# @param [String] fields
|
775
|
+
# Selector specifying which fields to include in a partial response.
|
776
|
+
# @param [String] quota_user
|
777
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
778
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
779
|
+
# @param [Google::Apis::RequestOptions] options
|
780
|
+
# Request-specific options
|
781
|
+
#
|
782
|
+
# @yield [result, err] Result & error if block supplied
|
783
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Package] parsed result object
|
784
|
+
# @yieldparam err [StandardError] error object if request failed
|
785
|
+
#
|
786
|
+
# @return [Google::Apis::ArtifactregistryV1::Package]
|
787
|
+
#
|
788
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
789
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
790
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
791
|
+
def get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
|
792
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
793
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Package::Representation
|
794
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Package
|
795
|
+
command.params['name'] = name unless name.nil?
|
796
|
+
command.query['fields'] = fields unless fields.nil?
|
797
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
798
|
+
execute_or_queue_command(command, &block)
|
799
|
+
end
|
800
|
+
|
801
|
+
# Lists packages.
|
802
|
+
# @param [String] parent
|
803
|
+
# Required. The name of the parent resource whose packages will be listed.
|
804
|
+
# @param [Fixnum] page_size
|
805
|
+
# The maximum number of packages to return. Maximum page size is 1,000.
|
806
|
+
# @param [String] page_token
|
807
|
+
# The next_page_token value returned from a previous list request, if any.
|
808
|
+
# @param [String] fields
|
809
|
+
# Selector specifying which fields to include in a partial response.
|
810
|
+
# @param [String] quota_user
|
811
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
812
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
813
|
+
# @param [Google::Apis::RequestOptions] options
|
814
|
+
# Request-specific options
|
815
|
+
#
|
816
|
+
# @yield [result, err] Result & error if block supplied
|
817
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListPackagesResponse] parsed result object
|
818
|
+
# @yieldparam err [StandardError] error object if request failed
|
819
|
+
#
|
820
|
+
# @return [Google::Apis::ArtifactregistryV1::ListPackagesResponse]
|
821
|
+
#
|
822
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
823
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
824
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
825
|
+
def list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
826
|
+
command = make_simple_command(:get, 'v1/{+parent}/packages', options)
|
827
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ListPackagesResponse::Representation
|
828
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ListPackagesResponse
|
829
|
+
command.params['parent'] = parent unless parent.nil?
|
830
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
831
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
832
|
+
command.query['fields'] = fields unless fields.nil?
|
833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
834
|
+
execute_or_queue_command(command, &block)
|
835
|
+
end
|
836
|
+
|
837
|
+
# Creates a tag.
|
838
|
+
# @param [String] parent
|
839
|
+
# The name of the parent resource where the tag will be created.
|
840
|
+
# @param [Google::Apis::ArtifactregistryV1::Tag] tag_object
|
841
|
+
# @param [String] tag_id
|
842
|
+
# The tag id to use for this repository.
|
843
|
+
# @param [String] fields
|
844
|
+
# Selector specifying which fields to include in a partial response.
|
845
|
+
# @param [String] quota_user
|
846
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
847
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
848
|
+
# @param [Google::Apis::RequestOptions] options
|
849
|
+
# Request-specific options
|
850
|
+
#
|
851
|
+
# @yield [result, err] Result & error if block supplied
|
852
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Tag] parsed result object
|
853
|
+
# @yieldparam err [StandardError] error object if request failed
|
854
|
+
#
|
855
|
+
# @return [Google::Apis::ArtifactregistryV1::Tag]
|
856
|
+
#
|
857
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
858
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
859
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
860
|
+
def create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
861
|
+
command = make_simple_command(:post, 'v1/{+parent}/tags', options)
|
862
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::Tag::Representation
|
863
|
+
command.request_object = tag_object
|
864
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Tag::Representation
|
865
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Tag
|
866
|
+
command.params['parent'] = parent unless parent.nil?
|
867
|
+
command.query['tagId'] = tag_id unless tag_id.nil?
|
868
|
+
command.query['fields'] = fields unless fields.nil?
|
869
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
870
|
+
execute_or_queue_command(command, &block)
|
871
|
+
end
|
872
|
+
|
873
|
+
# Deletes a tag.
|
874
|
+
# @param [String] name
|
875
|
+
# The name of the tag to delete.
|
876
|
+
# @param [String] fields
|
877
|
+
# Selector specifying which fields to include in a partial response.
|
878
|
+
# @param [String] quota_user
|
879
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
880
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
881
|
+
# @param [Google::Apis::RequestOptions] options
|
882
|
+
# Request-specific options
|
883
|
+
#
|
884
|
+
# @yield [result, err] Result & error if block supplied
|
885
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Empty] parsed result object
|
886
|
+
# @yieldparam err [StandardError] error object if request failed
|
887
|
+
#
|
888
|
+
# @return [Google::Apis::ArtifactregistryV1::Empty]
|
889
|
+
#
|
890
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
891
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
892
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
893
|
+
def delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
894
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
895
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Empty::Representation
|
896
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Empty
|
897
|
+
command.params['name'] = name unless name.nil?
|
898
|
+
command.query['fields'] = fields unless fields.nil?
|
899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
900
|
+
execute_or_queue_command(command, &block)
|
901
|
+
end
|
902
|
+
|
903
|
+
# Gets a tag.
|
904
|
+
# @param [String] name
|
905
|
+
# The name of the tag to retrieve.
|
906
|
+
# @param [String] fields
|
907
|
+
# Selector specifying which fields to include in a partial response.
|
908
|
+
# @param [String] quota_user
|
909
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
910
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
911
|
+
# @param [Google::Apis::RequestOptions] options
|
912
|
+
# Request-specific options
|
913
|
+
#
|
914
|
+
# @yield [result, err] Result & error if block supplied
|
915
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Tag] parsed result object
|
916
|
+
# @yieldparam err [StandardError] error object if request failed
|
917
|
+
#
|
918
|
+
# @return [Google::Apis::ArtifactregistryV1::Tag]
|
919
|
+
#
|
920
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
921
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
922
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
923
|
+
def get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
924
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
925
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Tag::Representation
|
926
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Tag
|
927
|
+
command.params['name'] = name unless name.nil?
|
928
|
+
command.query['fields'] = fields unless fields.nil?
|
929
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
930
|
+
execute_or_queue_command(command, &block)
|
931
|
+
end
|
932
|
+
|
933
|
+
# Lists tags.
|
934
|
+
# @param [String] parent
|
935
|
+
# The name of the parent resource whose tags will be listed.
|
936
|
+
# @param [String] filter
|
937
|
+
# An expression for filtering the results of the request. Filter rules are case
|
938
|
+
# insensitive. The fields eligible for filtering are: * `version` An example of
|
939
|
+
# using a filter: * `version="projects/p1/locations/us-central1/repositories/
|
940
|
+
# repo1/packages/pkg1/versions/1.0"` --> Tags that are applied to the version `1.
|
941
|
+
# 0` in package `pkg1`.
|
942
|
+
# @param [Fixnum] page_size
|
943
|
+
# The maximum number of tags to return. Maximum page size is 10,000.
|
944
|
+
# @param [String] page_token
|
945
|
+
# The next_page_token value returned from a previous list request, if any.
|
946
|
+
# @param [String] fields
|
947
|
+
# Selector specifying which fields to include in a partial response.
|
948
|
+
# @param [String] quota_user
|
949
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
950
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
951
|
+
# @param [Google::Apis::RequestOptions] options
|
952
|
+
# Request-specific options
|
953
|
+
#
|
954
|
+
# @yield [result, err] Result & error if block supplied
|
955
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListTagsResponse] parsed result object
|
956
|
+
# @yieldparam err [StandardError] error object if request failed
|
957
|
+
#
|
958
|
+
# @return [Google::Apis::ArtifactregistryV1::ListTagsResponse]
|
959
|
+
#
|
960
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
961
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
962
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
963
|
+
def list_project_location_repository_package_tags(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
964
|
+
command = make_simple_command(:get, 'v1/{+parent}/tags', options)
|
965
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ListTagsResponse::Representation
|
966
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ListTagsResponse
|
967
|
+
command.params['parent'] = parent unless parent.nil?
|
968
|
+
command.query['filter'] = filter unless filter.nil?
|
969
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
970
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
971
|
+
command.query['fields'] = fields unless fields.nil?
|
972
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
973
|
+
execute_or_queue_command(command, &block)
|
974
|
+
end
|
975
|
+
|
976
|
+
# Updates a tag.
|
977
|
+
# @param [String] name
|
978
|
+
# The name of the tag, for example: "projects/p1/locations/us-central1/
|
979
|
+
# repositories/repo1/packages/pkg1/tags/tag1". If the package part contains
|
980
|
+
# slashes, the slashes are escaped. The tag part can only have characters in [a-
|
981
|
+
# zA-Z0-9\-._~:@], anything else must be URL encoded.
|
982
|
+
# @param [Google::Apis::ArtifactregistryV1::Tag] tag_object
|
983
|
+
# @param [String] update_mask
|
984
|
+
# The update mask applies to the resource. For the `FieldMask` definition, see
|
985
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
986
|
+
# fieldmask
|
987
|
+
# @param [String] fields
|
988
|
+
# Selector specifying which fields to include in a partial response.
|
989
|
+
# @param [String] quota_user
|
990
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
991
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
992
|
+
# @param [Google::Apis::RequestOptions] options
|
993
|
+
# Request-specific options
|
994
|
+
#
|
995
|
+
# @yield [result, err] Result & error if block supplied
|
996
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Tag] parsed result object
|
997
|
+
# @yieldparam err [StandardError] error object if request failed
|
998
|
+
#
|
999
|
+
# @return [Google::Apis::ArtifactregistryV1::Tag]
|
1000
|
+
#
|
1001
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1002
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1003
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1004
|
+
def patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1005
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1006
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::Tag::Representation
|
1007
|
+
command.request_object = tag_object
|
1008
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Tag::Representation
|
1009
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Tag
|
1010
|
+
command.params['name'] = name unless name.nil?
|
1011
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1012
|
+
command.query['fields'] = fields unless fields.nil?
|
1013
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1014
|
+
execute_or_queue_command(command, &block)
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Deletes a version and all of its content. The returned operation will complete
|
1018
|
+
# once the version has been deleted.
|
1019
|
+
# @param [String] name
|
1020
|
+
# The name of the version to delete.
|
1021
|
+
# @param [Boolean] force
|
1022
|
+
# By default, a version that is tagged may not be deleted. If force=true, the
|
1023
|
+
# version and any tags pointing to the version are deleted.
|
1024
|
+
# @param [String] fields
|
1025
|
+
# Selector specifying which fields to include in a partial response.
|
1026
|
+
# @param [String] quota_user
|
1027
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1028
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1029
|
+
# @param [Google::Apis::RequestOptions] options
|
1030
|
+
# Request-specific options
|
1031
|
+
#
|
1032
|
+
# @yield [result, err] Result & error if block supplied
|
1033
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
1034
|
+
# @yieldparam err [StandardError] error object if request failed
|
1035
|
+
#
|
1036
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
1037
|
+
#
|
1038
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1039
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1040
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1041
|
+
def delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1042
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1043
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
1044
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
1045
|
+
command.params['name'] = name unless name.nil?
|
1046
|
+
command.query['force'] = force unless force.nil?
|
1047
|
+
command.query['fields'] = fields unless fields.nil?
|
1048
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1049
|
+
execute_or_queue_command(command, &block)
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# Gets a version
|
1053
|
+
# @param [String] name
|
1054
|
+
# The name of the version to retrieve.
|
1055
|
+
# @param [String] view
|
1056
|
+
# The view that should be returned in the response.
|
1057
|
+
# @param [String] fields
|
1058
|
+
# Selector specifying which fields to include in a partial response.
|
1059
|
+
# @param [String] quota_user
|
1060
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1061
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1062
|
+
# @param [Google::Apis::RequestOptions] options
|
1063
|
+
# Request-specific options
|
1064
|
+
#
|
1065
|
+
# @yield [result, err] Result & error if block supplied
|
1066
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Version] parsed result object
|
1067
|
+
# @yieldparam err [StandardError] error object if request failed
|
1068
|
+
#
|
1069
|
+
# @return [Google::Apis::ArtifactregistryV1::Version]
|
1070
|
+
#
|
1071
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1072
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1073
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1074
|
+
def get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1075
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1076
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Version::Representation
|
1077
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Version
|
1078
|
+
command.params['name'] = name unless name.nil?
|
1079
|
+
command.query['view'] = view unless view.nil?
|
1080
|
+
command.query['fields'] = fields unless fields.nil?
|
1081
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1082
|
+
execute_or_queue_command(command, &block)
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# Lists versions.
|
1086
|
+
# @param [String] parent
|
1087
|
+
# The name of the parent resource whose versions will be listed.
|
1088
|
+
# @param [String] order_by
|
1089
|
+
# Optional. Sorting field and order
|
1090
|
+
# @param [Fixnum] page_size
|
1091
|
+
# The maximum number of versions to return. Maximum page size is 1,000.
|
1092
|
+
# @param [String] page_token
|
1093
|
+
# The next_page_token value returned from a previous list request, if any.
|
1094
|
+
# @param [String] view
|
1095
|
+
# The view that should be returned in the response.
|
1096
|
+
# @param [String] fields
|
1097
|
+
# Selector specifying which fields to include in a partial response.
|
1098
|
+
# @param [String] quota_user
|
1099
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1100
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1101
|
+
# @param [Google::Apis::RequestOptions] options
|
1102
|
+
# Request-specific options
|
1103
|
+
#
|
1104
|
+
# @yield [result, err] Result & error if block supplied
|
1105
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListVersionsResponse] parsed result object
|
1106
|
+
# @yieldparam err [StandardError] error object if request failed
|
1107
|
+
#
|
1108
|
+
# @return [Google::Apis::ArtifactregistryV1::ListVersionsResponse]
|
1109
|
+
#
|
1110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1113
|
+
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)
|
1114
|
+
command = make_simple_command(:get, 'v1/{+parent}/versions', options)
|
1115
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::ListVersionsResponse::Representation
|
1116
|
+
command.response_class = Google::Apis::ArtifactregistryV1::ListVersionsResponse
|
1117
|
+
command.params['parent'] = parent unless parent.nil?
|
1118
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1119
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1120
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1121
|
+
command.query['view'] = view unless view.nil?
|
1122
|
+
command.query['fields'] = fields unless fields.nil?
|
1123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1124
|
+
execute_or_queue_command(command, &block)
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
# Imports Yum (RPM) artifacts. The returned Operation will complete once the
|
1128
|
+
# resources are imported. Package, Version, and File resources are created based
|
1129
|
+
# on the imported artifacts. Imported artifacts that conflict with existing
|
1130
|
+
# resources are ignored.
|
1131
|
+
# @param [String] parent
|
1132
|
+
# The name of the parent resource where the artifacts will be imported.
|
1133
|
+
# @param [Google::Apis::ArtifactregistryV1::ImportYumArtifactsRequest] import_yum_artifacts_request_object
|
1134
|
+
# @param [String] fields
|
1135
|
+
# Selector specifying which fields to include in a partial response.
|
1136
|
+
# @param [String] quota_user
|
1137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1139
|
+
# @param [Google::Apis::RequestOptions] options
|
1140
|
+
# Request-specific options
|
1141
|
+
#
|
1142
|
+
# @yield [result, err] Result & error if block supplied
|
1143
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
1144
|
+
# @yieldparam err [StandardError] error object if request failed
|
1145
|
+
#
|
1146
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
1147
|
+
#
|
1148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1151
|
+
def import_yum_artifacts(parent, import_yum_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1152
|
+
command = make_simple_command(:post, 'v1/{+parent}/yumArtifacts:import', options)
|
1153
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::ImportYumArtifactsRequest::Representation
|
1154
|
+
command.request_object = import_yum_artifacts_request_object
|
1155
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
1156
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
1157
|
+
command.params['parent'] = parent unless parent.nil?
|
1158
|
+
command.query['fields'] = fields unless fields.nil?
|
1159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1160
|
+
execute_or_queue_command(command, &block)
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Directly uploads a Yum artifact. The returned Operation will complete once the
|
1164
|
+
# resources are uploaded. Package, Version, and File resources are created based
|
1165
|
+
# on the imported artifact. Imported artifacts that conflict with existing
|
1166
|
+
# resources are ignored.
|
1167
|
+
# @param [String] parent
|
1168
|
+
# The name of the parent resource where the artifacts will be uploaded.
|
1169
|
+
# @param [Google::Apis::ArtifactregistryV1::UploadYumArtifactRequest] upload_yum_artifact_request_object
|
1170
|
+
# @param [String] fields
|
1171
|
+
# Selector specifying which fields to include in a partial response.
|
1172
|
+
# @param [String] quota_user
|
1173
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1174
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1175
|
+
# @param [IO, String] upload_source
|
1176
|
+
# IO stream or filename containing content to upload
|
1177
|
+
# @param [String] content_type
|
1178
|
+
# Content type of the uploaded content.
|
1179
|
+
# @param [Google::Apis::RequestOptions] options
|
1180
|
+
# Request-specific options
|
1181
|
+
#
|
1182
|
+
# @yield [result, err] Result & error if block supplied
|
1183
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse] parsed result object
|
1184
|
+
# @yieldparam err [StandardError] error object if request failed
|
1185
|
+
#
|
1186
|
+
# @return [Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse]
|
1187
|
+
#
|
1188
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1189
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1190
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1191
|
+
def upload_yumartifact_yum_artifact(parent, upload_yum_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
1192
|
+
if upload_source.nil?
|
1193
|
+
command = make_simple_command(:post, 'v1/{+parent}/yumArtifacts:create', options)
|
1194
|
+
else
|
1195
|
+
command = make_upload_command(:post, 'v1/{+parent}/yumArtifacts:create', options)
|
1196
|
+
command.upload_source = upload_source
|
1197
|
+
command.upload_content_type = content_type
|
1198
|
+
end
|
1199
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::UploadYumArtifactRequest::Representation
|
1200
|
+
command.request_object = upload_yum_artifact_request_object
|
1201
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse::Representation
|
1202
|
+
command.response_class = Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse
|
1203
|
+
command.params['parent'] = parent unless parent.nil?
|
1204
|
+
command.query['fields'] = fields unless fields.nil?
|
1205
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1206
|
+
execute_or_queue_command(command, &block)
|
1207
|
+
end
|
185
1208
|
|
186
1209
|
protected
|
187
1210
|
|