google-cloud-security-private_ca-v1 0.2.0 → 0.4.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: '079527efb4bd5885f1764120a2b9c20b3384124dbf10aedc79d20c0a0871c1f4'
4
- data.tar.gz: 8e4bf7638333d6a21555bc2eef3818600ee1b7a734da348a9fa8315b033077fa
3
+ metadata.gz: c0d2fa1c58177d32ba29744ff241652464d3b88d689c00db9add329a7c8845c4
4
+ data.tar.gz: dd5dc68264cb32370cc36cd3ca2d6266e5371d151250a108ce297dbf4d716644
5
5
  SHA512:
6
- metadata.gz: 2d0117863395ae453d19fbc9989c6c331fa3d84402af2326c795bc5c3127036ddbff612f0148faedc9c73c570d1ad149b6d0bf8ac043c7602e9bd3de1ce839cb
7
- data.tar.gz: 0c4f63275f6f62840f915d8f24f3db440de9021bfda7a78fedd5c90a627239cd4da877759c7abbbcfc32b08e80c9948699b43ba0236df88f08c56d2a2835a359
6
+ metadata.gz: 5d398c2823a265cc02db64655d16c08082a1cbac1d4f7e9ab46eac4eb3363e544a72d912a67e087ca3bfffec59da3b8073af3c17979235f7de02dd201b43127b
7
+ data.tar.gz: ca0b5d7da06b051e2599bbb07f38df8433ad71a48f9ef9b2d87b9adce5a249d947f695ffd6127b2f25522ce4fe0bb7b91d1fd430009321524724e0f1732157ea
data/AUTHENTICATION.md CHANGED
@@ -25,7 +25,7 @@ export PRIVATE_CA_CREDENTIALS=path/to/keyfile.json
25
25
  3. Initialize the client.
26
26
 
27
27
  ```ruby
28
- require "google/cloud/location"
28
+ require "google/cloud/security/private_ca/v1"
29
29
 
30
30
  client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
31
31
  ```
@@ -73,7 +73,7 @@ checks for credentials are configured on the service Credentials class (such as
73
73
  * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
- require "google/cloud/location"
76
+ require "google/cloud/security/private_ca/v1"
77
77
 
78
78
  ENV["PRIVATE_CA_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
@@ -86,7 +86,7 @@ The path to the **Credentials JSON** file can be configured instead of storing
86
86
  it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
- require "google/cloud/location"
89
+ require "google/cloud/security/private_ca/v1"
90
90
 
91
91
  client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
@@ -96,7 +96,7 @@ end
96
96
  Or globally for all clients:
97
97
 
98
98
  ```ruby
99
- require "google/cloud/location"
99
+ require "google/cloud/security/private_ca/v1"
100
100
 
101
101
  ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
data/README.md CHANGED
@@ -30,7 +30,7 @@ In order to use this library, you first need to go through the following steps:
30
30
  ## Quick Start
31
31
 
32
32
  ```ruby
33
- require "google/cloud/location"
33
+ require "google/cloud/security/private_ca/v1"
34
34
 
35
35
  client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
36
36
  request = ::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest.new # (request fields as keyword arguments...)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/security/privateca/v1/service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -146,6 +148,18 @@ module Google
146
148
  config.endpoint = @config.endpoint
147
149
  end
148
150
 
151
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
152
+ config.credentials = credentials
153
+ config.quota_project = @quota_project_id
154
+ config.endpoint = @config.endpoint
155
+ end
156
+
157
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
158
+ config.credentials = credentials
159
+ config.quota_project = @quota_project_id
160
+ config.endpoint = @config.endpoint
161
+ end
162
+
149
163
  @certificate_authority_service_stub = ::Gapic::ServiceStub.new(
150
164
  ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Stub,
151
165
  credentials: credentials,
@@ -162,6 +176,20 @@ module Google
162
176
  #
163
177
  attr_reader :operations_client
164
178
 
179
+ ##
180
+ # Get the associated client for mix-in of the Locations.
181
+ #
182
+ # @return [Google::Cloud::Location::Locations::Client]
183
+ #
184
+ attr_reader :location_client
185
+
186
+ ##
187
+ # Get the associated client for mix-in of the IAMPolicy.
188
+ #
189
+ # @return [Google::Iam::V1::IAMPolicy::Client]
190
+ #
191
+ attr_reader :iam_policy_client
192
+
165
193
  # Service calls
166
194
 
167
195
  ##
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PrivateCA
24
24
  module V1
25
- VERSION = "0.2.0"
25
+ VERSION = "0.4.0"
26
26
  end
27
27
  end
28
28
  end
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/security/privateca/v1/resources.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/protobuf/duration_pb'
7
9
  require 'google/protobuf/timestamp_pb'
8
10
  require 'google/type/expr_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/security/privateca/v1/resources.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/security/privateca/v1/service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,7 +11,6 @@ require 'google/cloud/security/privateca/v1/resources_pb'
9
11
  require 'google/longrunning/operations_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
13
  require 'google/protobuf/timestamp_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/cloud/security/privateca/v1/service.proto", :syntax => :proto3) do
@@ -18,6 +18,4 @@
18
18
 
19
19
  # This gem does not autoload during Bundler.require. To load this gem,
20
20
  # issue explicit require statements for the packages desired, e.g.:
21
- # require "google/cloud/location"
22
21
  # require "google/cloud/security/private_ca/v1"
23
- # require "google/iam/v1"
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security-private_ca-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.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: 2022-03-24 00:00:00.000000000 Z
11
+ date: 2022-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -48,7 +48,7 @@ dependencies:
48
48
  name: google-cloud-location
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.0'
54
54
  - - "<"
@@ -58,19 +58,19 @@ dependencies:
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">"
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0.0'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
67
67
  - !ruby/object:Gem::Dependency
68
- name: grpc-google-iam-v1
68
+ name: google-iam-v1
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: 0.6.10
73
+ version: '0.0'
74
74
  - - "<"
75
75
  - !ruby/object:Gem::Version
76
76
  version: 2.a
@@ -80,7 +80,7 @@ dependencies:
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 0.6.10
83
+ version: '0.0'
84
84
  - - "<"
85
85
  - !ruby/object:Gem::Version
86
86
  version: 2.a
@@ -90,28 +90,28 @@ dependencies:
90
90
  requirements:
91
91
  - - "~>"
92
92
  - !ruby/object:Gem::Version
93
- version: 1.25.1
93
+ version: 1.26.1
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - "~>"
99
99
  - !ruby/object:Gem::Version
100
- version: 1.25.1
100
+ version: 1.26.1
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: minitest
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: '5.14'
107
+ version: '5.16'
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - "~>"
113
113
  - !ruby/object:Gem::Version
114
- version: '5.14'
114
+ version: '5.16'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: minitest-focus
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -146,14 +146,14 @@ dependencies:
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: '12.0'
149
+ version: '13.0'
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - ">="
155
155
  - !ruby/object:Gem::Version
156
- version: '12.0'
156
+ version: '13.0'
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: redcarpet
159
159
  requirement: !ruby/object:Gem::Requirement
@@ -247,14 +247,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
- version: '2.5'
250
+ version: '2.6'
251
251
  required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  requirements:
253
253
  - - ">="
254
254
  - !ruby/object:Gem::Version
255
255
  version: '0'
256
256
  requirements: []
257
- rubygems_version: 3.3.5
257
+ rubygems_version: 3.3.14
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: API Client library for the Ceritificate Authority Service V1 API