google-cloud-security-public_ca-v1beta1 0.3.0 → 0.4.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: 1f920937e9d5e8383de014650a966275a7f982fe54082f76fede717c78a4c1be
4
- data.tar.gz: 7ae9ab03d8c0919230a6e2ebce3786ce48c124f35c376cafdecc1f19e2ef00fa
3
+ metadata.gz: 9ea969d33ad11166960be253f6e8d0a7d4f86aa8d2172038b1f280e348a20aab
4
+ data.tar.gz: 07cff41289cd4a97ffa9091c4222ffb16e2d7c5b1586d32141d0605415912bd9
5
5
  SHA512:
6
- metadata.gz: 9f7501b15b2ba04edbffa90e2930cc50cc3ef89e5cc80dbfacd645148554861dd118ca27ef8630910f4d6dcd11e78546febec11b0951569d2f0daca31a9626c1
7
- data.tar.gz: d73da1b1553e32264ad3602f6ad947e9016745523bf36fa650f7a83504b6c864b695f536342d9e7cacea3eb9fa938f15393a9e2872f02cb94890cbd4fd788875
6
+ metadata.gz: e13e2b2ea847226e94c045ec462e903f92840da201d7cddcd1707196ada5bfe3944b161fd769d9653c12866bcc5ae3a4b90ccb7d5dfca5a3cc4f5f7815cf3904
7
+ data.tar.gz: 3b649d852b6f305b8f9b9ec1d61ddebaba6a12f5f4da709d71e4f605aa7f0b55ecae1e04bc700c15a853496d70ac84b8a88981fddcebcdf9fbad72a579263ed5
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -146,7 +146,8 @@ module Google
146
146
  credentials: credentials,
147
147
  endpoint: @config.endpoint,
148
148
  channel_args: @config.channel_args,
149
- interceptors: @config.interceptors
149
+ interceptors: @config.interceptors,
150
+ channel_pool_config: @config.channel_pool
150
151
  )
151
152
  end
152
153
 
@@ -326,7 +327,9 @@ module Google
326
327
  class Configuration
327
328
  extend ::Gapic::Config
328
329
 
329
- config_attr :endpoint, "publicca.googleapis.com", ::String
330
+ DEFAULT_ENDPOINT = "publicca.googleapis.com"
331
+
332
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
330
333
  config_attr :credentials, nil do |value|
331
334
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
332
335
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -361,6 +364,14 @@ module Google
361
364
  end
362
365
  end
363
366
 
367
+ ##
368
+ # Configuration for the channel pool
369
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
370
+ #
371
+ def channel_pool
372
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
373
+ end
374
+
364
375
  ##
365
376
  # Configuration RPC class for the PublicCertificateAuthorityService API.
366
377
  #
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -177,6 +177,22 @@ module Google
177
177
  # @return [::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey]
178
178
  #
179
179
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
180
+ #
181
+ # @example Basic example
182
+ # require "google/cloud/security/public_ca/v1beta1"
183
+ #
184
+ # # Create a client object. The client can be reused for multiple calls.
185
+ # client = Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Rest::Client.new
186
+ #
187
+ # # Create a request. To set request fields, pass in keyword arguments.
188
+ # request = Google::Cloud::Security::PublicCA::V1beta1::CreateExternalAccountKeyRequest.new
189
+ #
190
+ # # Call the create_external_account_key method.
191
+ # result = client.create_external_account_key request
192
+ #
193
+ # # The returned object is of type Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey.
194
+ # p result
195
+ #
180
196
  def create_external_account_key request, options = nil
181
197
  raise ::ArgumentError, "request must be provided" if request.nil?
182
198
 
@@ -285,7 +301,9 @@ module Google
285
301
  class Configuration
286
302
  extend ::Gapic::Config
287
303
 
288
- config_attr :endpoint, "publicca.googleapis.com", ::String
304
+ DEFAULT_ENDPOINT = "publicca.googleapis.com"
305
+
306
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
289
307
  config_attr :credentials, nil do |value|
290
308
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
291
309
  allowed.any? { |klass| klass === value }
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_create_external_account_key_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
63
+ query_string_params.to_h { |p| p.split "=", 2 }
64
64
  else
65
65
  {}
66
66
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PublicCA
24
24
  module V1beta1
25
- VERSION = "0.3.0"
25
+ VERSION = "0.4.0"
26
26
  end
27
27
  end
28
28
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security-public_ca-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.19.0
19
+ version: 0.20.0
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.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  - !ruby/object:Gem::Version
216
216
  version: '0'
217
217
  requirements: []
218
- rubygems_version: 3.4.2
218
+ rubygems_version: 3.4.19
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: The Public Certificate Authority API may be used to create and manage ACME