google-cloud-artifact_registry-v1 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +1750 -288
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +3 -10
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +1643 -272
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +3 -10
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +804 -31
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/attachment_pb.rb +52 -0
- data/lib/google/devtools/artifactregistry/v1/file_pb.rb +5 -1
- data/lib/google/devtools/artifactregistry/v1/generic_pb.rb +47 -0
- data/lib/google/devtools/artifactregistry/v1/package_pb.rb +4 -1
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +11 -1
- data/lib/google/devtools/artifactregistry/v1/rule_pb.rb +57 -0
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +3 -1
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +31 -0
- data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/version_pb.rb +4 -1
- data/proto_docs/google/api/client.rb +20 -0
- data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +4 -4
- data/proto_docs/google/devtools/artifactregistry/v1/attachment.rb +152 -0
- data/proto_docs/google/devtools/artifactregistry/v1/file.rb +80 -7
- data/proto_docs/google/devtools/artifactregistry/v1/generic.rb +48 -0
- data/proto_docs/google/devtools/artifactregistry/v1/package.rb +76 -0
- data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +188 -1
- data/proto_docs/google/devtools/artifactregistry/v1/rule.rb +149 -0
- data/proto_docs/google/devtools/artifactregistry/v1/settings.rb +10 -0
- data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +23 -5
- data/proto_docs/google/devtools/artifactregistry/v1/version.rb +74 -1
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +9 -3
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -421,8 +413,9 @@ module Google
|
|
421
413
|
# other methods to check whether the cancellation succeeded or whether the
|
422
414
|
# operation completed despite cancellation. On successful cancellation,
|
423
415
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
416
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
417
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
418
|
+
# `Code.CANCELLED`.
|
426
419
|
#
|
427
420
|
# @overload cancel_operation(request, options = nil)
|
428
421
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -24,6 +24,27 @@ module Google
|
|
24
24
|
module ArtifactRegistry
|
25
25
|
# Path helper methods for the ArtifactRegistry API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Attachment resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/attachments/{attachment}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param repository [String]
|
37
|
+
# @param attachment [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def attachment_path project:, location:, repository:, attachment:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/attachments/#{attachment}"
|
46
|
+
end
|
47
|
+
|
27
48
|
##
|
28
49
|
# Create a fully-qualified DockerImage resource string.
|
29
50
|
#
|
@@ -200,6 +221,27 @@ module Google
|
|
200
221
|
"projects/#{project}/locations/#{location}/repositories/#{repository}"
|
201
222
|
end
|
202
223
|
|
224
|
+
##
|
225
|
+
# Create a fully-qualified Rule resource string.
|
226
|
+
#
|
227
|
+
# The resource will be in the following format:
|
228
|
+
#
|
229
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/rules/{rule}`
|
230
|
+
#
|
231
|
+
# @param project [String]
|
232
|
+
# @param location [String]
|
233
|
+
# @param repository [String]
|
234
|
+
# @param rule [String]
|
235
|
+
#
|
236
|
+
# @return [::String]
|
237
|
+
def rule_path project:, location:, repository:, rule:
|
238
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
239
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
240
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
241
|
+
|
242
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/rules/#{rule}"
|
243
|
+
end
|
244
|
+
|
203
245
|
##
|
204
246
|
# Create a fully-qualified SecretVersion resource string.
|
205
247
|
#
|