google-cloud-security-private_ca-v1 0.10.0 → 0.10.1

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: 27f616641563821eaa3a6e4d017cf54eb45ec81d0c5ff95fbf0fe02da9bde12d
4
- data.tar.gz: 77939d4e9509ce60b3adecd187d7826695c87812aa4d6381a7f1e0a1b1db6cf6
3
+ metadata.gz: c4e2e6ba69df33494bfa1087d88c31bb3145706fdd093f0b7c7489571bc35cf9
4
+ data.tar.gz: 02bbee7b8ce9b47b22ea4cf0173efd528e2ef2df0867cc5ef23e699222dde81c
5
5
  SHA512:
6
- metadata.gz: 448e8d3442a7cc5cbdf13329df0996c2e98c7d70b04c69f492afedda384a3415bad973ad470f72e9a41cb6abfe347c2c5a6d413d21a655d03ba241f708d18240
7
- data.tar.gz: 4d0012b595bbf57ab8ba5ddf9fd6cc46234b18a8b29d7aa9fca9aeff0d66ca4956604411ff22238e90a4e78e51796a2512b5e7e35309adf99caea6a741ec4f86
6
+ metadata.gz: 5cff3d0b38141a15691ec13cdc7ad8e2f052012b5a54ed11e3804f70c971d51e805823b71108f9e6b8731c1cf6477c102898bbc5391db3243898d2f2c993c739
7
+ data.tar.gz: 3d95dc846407e046e2c8a2dc391ce89eee8813d262682ca2698df992fdf5ae4a48a515845165e4b910defdbd67a7457c95dcd040a8fbc2deb4f60d6148db7500
@@ -163,20 +163,6 @@ module Google
163
163
  config.universe_domain = @config.universe_domain
164
164
  end
165
165
 
166
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
- config.credentials = credentials
168
- config.quota_project = @quota_project_id
169
- config.endpoint = @config.endpoint
170
- config.universe_domain = @config.universe_domain
171
- end
172
-
173
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
174
- config.credentials = credentials
175
- config.quota_project = @quota_project_id
176
- config.endpoint = @config.endpoint
177
- config.universe_domain = @config.universe_domain
178
- end
179
-
180
166
  @certificate_authority_service_stub = ::Gapic::ServiceStub.new(
181
167
  ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Stub,
182
168
  credentials: credentials,
@@ -187,6 +173,20 @@ module Google
187
173
  interceptors: @config.interceptors,
188
174
  channel_pool_config: @config.channel_pool
189
175
  )
176
+
177
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
178
+ config.credentials = credentials
179
+ config.quota_project = @quota_project_id
180
+ config.endpoint = @certificate_authority_service_stub.endpoint
181
+ config.universe_domain = @certificate_authority_service_stub.universe_domain
182
+ end
183
+
184
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
185
+ config.credentials = credentials
186
+ config.quota_project = @quota_project_id
187
+ config.endpoint = @certificate_authority_service_stub.endpoint
188
+ config.universe_domain = @certificate_authority_service_stub.universe_domain
189
+ end
190
190
  end
191
191
 
192
192
  ##
@@ -160,28 +160,28 @@ module Google
160
160
  config.universe_domain = @config.universe_domain
161
161
  end
162
162
 
163
+ @certificate_authority_service_stub = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::ServiceStub.new(
164
+ endpoint: @config.endpoint,
165
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
166
+ universe_domain: @config.universe_domain,
167
+ credentials: credentials
168
+ )
169
+
163
170
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
164
171
  config.credentials = credentials
165
172
  config.quota_project = @quota_project_id
166
- config.endpoint = @config.endpoint
167
- config.universe_domain = @config.universe_domain
173
+ config.endpoint = @certificate_authority_service_stub.endpoint
174
+ config.universe_domain = @certificate_authority_service_stub.universe_domain
168
175
  config.bindings_override = @config.bindings_override
169
176
  end
170
177
 
171
178
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
172
179
  config.credentials = credentials
173
180
  config.quota_project = @quota_project_id
174
- config.endpoint = @config.endpoint
175
- config.universe_domain = @config.universe_domain
181
+ config.endpoint = @certificate_authority_service_stub.endpoint
182
+ config.universe_domain = @certificate_authority_service_stub.universe_domain
176
183
  config.bindings_override = @config.bindings_override
177
184
  end
178
-
179
- @certificate_authority_service_stub = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::ServiceStub.new(
180
- endpoint: @config.endpoint,
181
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
182
- universe_domain: @config.universe_domain,
183
- credentials: credentials
184
- )
185
185
  end
186
186
 
187
187
  ##
@@ -53,6 +53,15 @@ module Google
53
53
  @client_stub.universe_domain
54
54
  end
55
55
 
56
+ ##
57
+ # The effective endpoint
58
+ #
59
+ # @return [String]
60
+ #
61
+ def endpoint
62
+ @client_stub.endpoint
63
+ end
64
+
56
65
  ##
57
66
  # Baseline implementation for the create_certificate REST call
58
67
  #
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PrivateCA
24
24
  module V1
25
- VERSION = "0.10.0"
25
+ VERSION = "0.10.1"
26
26
  end
27
27
  end
28
28
  end
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-11 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common