google-cloud-security-private_ca-v1 0.2.1 → 0.3.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: b8274cce87bf65da452c3a2d0ffe238bacc6b54034b1a9a52364f53118e9603c
4
- data.tar.gz: 884c76dd76690162e3f9bcf13781be5c83df460bd26c6e1bb56d4315fd32229e
3
+ metadata.gz: 3459a3c7af6f345720af1c2ab63de621204499cadd1f35fee663d7e7cd8df20b
4
+ data.tar.gz: 6a7661d1c40a50d6d99f2bd253826c8d6c3274d84fd31e58e74219aa7936a4c6
5
5
  SHA512:
6
- metadata.gz: 82b9bbef244b1753993261d7c602484664a2ef5e020928f37a61a6ada09ed6efba5e70e3243fbd0956e63671e20cd5bc5d00d595f71e7cda7a08f4e3e593a860
7
- data.tar.gz: f08dec355ae20ce5f151cd42e325c69c6500ad60f18349728717d6cd5ee859beba061a42130b5c314145a00034503386eb402f59c760d35cd9821cc915179057
6
+ metadata.gz: 798c9b6f16f49f19bacee265a6f776152039d8b0ea3073f59214b0457716ec063d2a6b2615e41327c751a35af545decaaefb4f55b90634cc7e398ab0bef21d23
7
+ data.tar.gz: de3567eae39b2936daab5714650f4838378b6fcc2797b698b92ac0e066c4fec2a57aa242486b3d3bf046ade2170c765d624c9a493b426cbec13473b5d5da2814
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,6 +69,11 @@ 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
79
  This library is supported on Ruby 2.5+.
@@ -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
  ##
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PrivateCA
24
24
  module V1
25
- VERSION = "0.2.1"
25
+ VERSION = "0.3.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.1
4
+ version: 0.3.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-04-20 00:00:00.000000000 Z
11
+ date: 2022-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -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,26 +58,32 @@ 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: '1.1'
73
+ version: '0.0'
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: 2.a
74
77
  type: :runtime
75
78
  prerelease: false
76
79
  version_requirements: !ruby/object:Gem::Requirement
77
80
  requirements:
78
- - - "~>"
81
+ - - ">="
79
82
  - !ruby/object:Gem::Version
80
- version: '1.1'
83
+ version: '0.0'
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: 2.a
81
87
  - !ruby/object:Gem::Dependency
82
88
  name: google-style
83
89
  requirement: !ruby/object:Gem::Requirement