google-cloud-secret_manager-v1beta1 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a30342d66c00cecca8cffae8c1a55eace39563210ea5b82a36dce62624983e3
4
- data.tar.gz: 809307c4072cfda9a165320a32538c57e1c682adf0893efe4bc1b6d2bea83b6a
3
+ metadata.gz: 5ac4fc6d69265be2dd291034c6fcf792cea14930e54dbba20607997801e7b6fc
4
+ data.tar.gz: c309b25ccd9f97df9c66cb3c8721e6bf9b1ce0b89c02eb0d321bf9c27993d254
5
5
  SHA512:
6
- metadata.gz: a101ef19d893787f2bd1a2d6d983fbd5dc9a9fbcc179302b3295f299f2c956c48c285a248172a364a5e30f26d78445dc40764386a63c79b8b86c5f50af4ad08a
7
- data.tar.gz: f2baf83a806ebebb9c117c7e8d9df80dfd90fcabf1b9d8d1aabde32af08f1c7a7ffa7677b88fab440dfd8313976334394742d59d63e62f35831a5882287bbcfe
6
+ metadata.gz: 9f54ea1e1a7685e92d406c4abcb28e98af856861a94017db1b8d9fa8e2bb416ba6ebcd49eaba393b568f66c00d68b0a8ac4cbc72238797f38a1a666b0636b289
7
+ data.tar.gz: a01e5bcb856203a8f49deaa2d41960f4a57cfb057c92f7738df47ea1aac6e1b3f018bf104aebf32a57b3a6a4ff81f3bdedf3ebacdce9b4952be4246b1b60a028
@@ -0,0 +1,15 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/common_resources.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
+ end
10
+ end
11
+
12
+ module Google
13
+ module Cloud
14
+ end
15
+ end
@@ -24,6 +24,7 @@ require "google/cloud/errors"
24
24
  require "google/cloud/secret_manager/v1beta1/version"
25
25
  require "google/cloud/secrets/v1beta1/service_pb"
26
26
  require "google/cloud/secret_manager/v1beta1/secret_manager_service/credentials"
27
+ require "google/cloud/secret_manager/v1beta1/secret_manager_service/paths"
27
28
 
28
29
 
29
30
  module Google
@@ -33,6 +34,8 @@ module Google
33
34
  module SecretManagerService
34
35
  # Service that implements SecretManagerService API.
35
36
  class Client
37
+ include Paths
38
+
36
39
  # @private
37
40
  attr_reader :secret_manager_service_stub
38
41
 
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module SecretManager
23
+ module V1beta1
24
+ module SecretManagerService
25
+ # Path helper methods for the SecretManagerService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Project resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}`
33
+ #
34
+ # @param project [String]
35
+ #
36
+ # @return [String]
37
+ def project_path project:
38
+ "projects/#{project}"
39
+ end
40
+
41
+ ##
42
+ # Create a fully-qualified Secret resource string.
43
+ #
44
+ # The resource will be in the following format:
45
+ #
46
+ # `projects/{project}/secrets/{secret}`
47
+ #
48
+ # @param project [String]
49
+ # @param secret [String]
50
+ #
51
+ # @return [String]
52
+ def secret_path project:, secret:
53
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
54
+
55
+ "projects/#{project}/secrets/#{secret}"
56
+ end
57
+
58
+ ##
59
+ # Create a fully-qualified SecretVersion resource string.
60
+ #
61
+ # The resource will be in the following format:
62
+ #
63
+ # `projects/{project}/secrets/{secret}/versions/{secret_version}`
64
+ #
65
+ # @param project [String]
66
+ # @param secret [String]
67
+ # @param secret_version [String]
68
+ #
69
+ # @return [String]
70
+ def secret_version_path project:, secret:, secret_version:
71
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
72
+ raise ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
73
+
74
+ "projects/#{project}/secrets/#{secret}/versions/#{secret_version}"
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1beta1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager-v1beta1
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: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -148,10 +148,12 @@ files:
148
148
  - LICENSE.md
149
149
  - README.md
150
150
  - lib/google-cloud-secret_manager-v1beta1.rb
151
+ - lib/google/cloud/common_resources_pb.rb
151
152
  - lib/google/cloud/secret_manager/v1beta1.rb
152
153
  - lib/google/cloud/secret_manager/v1beta1/secret_manager_service.rb
153
154
  - lib/google/cloud/secret_manager/v1beta1/secret_manager_service/client.rb
154
155
  - lib/google/cloud/secret_manager/v1beta1/secret_manager_service/credentials.rb
156
+ - lib/google/cloud/secret_manager/v1beta1/secret_manager_service/paths.rb
155
157
  - lib/google/cloud/secret_manager/v1beta1/version.rb
156
158
  - lib/google/cloud/secrets/v1beta1/resources_pb.rb
157
159
  - lib/google/cloud/secrets/v1beta1/service_pb.rb