google-cloud-artifact_registry-v1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb2e13281b2d37c6e76010ccb0c46287857a278626a96f4235bb4404a15ef71a
4
- data.tar.gz: 3eb67a0b5299658536a02781244769c2a509789976ad234b21d67ba41aafa52b
3
+ metadata.gz: 5b33ea2bf6f8db37b9a66c06903393ecb687d1150f77f80795197b5f0237ed41
4
+ data.tar.gz: 3c55368cd6baed8b45035f47119dc7ec334c9850788e7037dafe97d24e820dea
5
5
  SHA512:
6
- metadata.gz: 9eb3d0cfa4fc0f9a0f1a9be7cee1c324bf95d6cdd7c39873151a50b0b0ee199a6994843f1bb096c1085fea4078230e8bc653973e6f50cab03b60cedd77586a0d
7
- data.tar.gz: f3f1ad2fceb843a0838ed56c363d3ccaf8da4147a8add50038b6ae389326c1ea467ed06f3cdc0b64d23900c8eb3a8cd2221577d3528205bdafa7b1b4b7502c30
6
+ metadata.gz: 1735a53274d91cd07e01a033792951b3feabd74af64d5f0818e1313fd2b42349714f56f2846ef697dd55a9ac320eee524b51956d44af29bddbc265e31f84eeb1
7
+ data.tar.gz: 6d0e0514d90eb904843c5e91f8d5300d24c74c147e82401eb83420d4aa71ce2d56dc6ce71ca53d4ad5d0cb884669106bc4b0bb6f75e79f16f4de0712f0af77fc
@@ -41,6 +41,25 @@ module Google
41
41
  "projects/#{project}/locations/#{location}"
42
42
  end
43
43
 
44
+ ##
45
+ # Create a fully-qualified Repository resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `projects/{project}/locations/{location}/repositories/{repository}`
50
+ #
51
+ # @param project [String]
52
+ # @param location [String]
53
+ # @param repository [String]
54
+ #
55
+ # @return [::String]
56
+ def repository_path project:, location:, repository:
57
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
58
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
59
+
60
+ "projects/#{project}/locations/#{location}/repositories/#{repository}"
61
+ end
62
+
44
63
  extend self
45
64
  end
46
65
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1/artifact.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/timestamp_pb'
9
7
  require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/devtools/artifactregistry/v1/artifact.proto", :syntax => :proto3) do
12
12
  add_message "google.devtools.artifactregistry.v1.DockerImage" do
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1/repository.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/timestamp_pb'
9
7
  require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/devtools/artifactregistry/v1/repository.proto", :syntax => :proto3) do
12
12
  add_message "google.devtools.artifactregistry.v1.Repository" do
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1/service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/devtools/artifactregistry/v1/artifact_pb'
9
7
  require 'google/devtools/artifactregistry/v1/repository_pb'
10
8
  require 'google/iam/v1/policy_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/devtools/artifactregistry/v1/service.proto", :syntax => :proto3) do
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-artifact_registry-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-23 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common