google-cloud-security-public_ca-v1beta1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,403 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+ require "google/cloud/errors"
20
+ require "google/cloud/security/publicca/v1beta1/service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Security
25
+ module PublicCA
26
+ module V1beta1
27
+ module PublicCertificateAuthorityService
28
+ ##
29
+ # Client for the PublicCertificateAuthorityService service.
30
+ #
31
+ # Manages the resources required for ACME [external account
32
+ # binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for
33
+ # the public certificate authority service.
34
+ #
35
+ class Client
36
+ include Paths
37
+
38
+ # @private
39
+ attr_reader :public_certificate_authority_service_stub
40
+
41
+ ##
42
+ # Configure the PublicCertificateAuthorityService Client class.
43
+ #
44
+ # See {::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client::Configuration}
45
+ # for a description of the configuration fields.
46
+ #
47
+ # @example
48
+ #
49
+ # # Modify the configuration for all PublicCertificateAuthorityService clients
50
+ # ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.configure do |config|
51
+ # config.timeout = 10.0
52
+ # end
53
+ #
54
+ # @yield [config] Configure the Client client.
55
+ # @yieldparam config [Client::Configuration]
56
+ #
57
+ # @return [Client::Configuration]
58
+ #
59
+ def self.configure
60
+ @configure ||= begin
61
+ namespace = ["Google", "Cloud", "Security", "PublicCA", "V1beta1"]
62
+ parent_config = while namespace.any?
63
+ parent_name = namespace.join "::"
64
+ parent_const = const_get parent_name
65
+ break parent_const.configure if parent_const.respond_to? :configure
66
+ namespace.pop
67
+ end
68
+ default_config = Client::Configuration.new parent_config
69
+
70
+ default_config.timeout = 60.0
71
+ default_config.retry_policy = {
72
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
73
+ }
74
+
75
+ default_config
76
+ end
77
+ yield @configure if block_given?
78
+ @configure
79
+ end
80
+
81
+ ##
82
+ # Configure the PublicCertificateAuthorityService Client instance.
83
+ #
84
+ # The configuration is set to the derived mode, meaning that values can be changed,
85
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
86
+ # should be made on {Client.configure}.
87
+ #
88
+ # See {::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client::Configuration}
89
+ # for a description of the configuration fields.
90
+ #
91
+ # @yield [config] Configure the Client client.
92
+ # @yieldparam config [Client::Configuration]
93
+ #
94
+ # @return [Client::Configuration]
95
+ #
96
+ def configure
97
+ yield @config if block_given?
98
+ @config
99
+ end
100
+
101
+ ##
102
+ # Create a new PublicCertificateAuthorityService client object.
103
+ #
104
+ # @example
105
+ #
106
+ # # Create a client using the default configuration
107
+ # client = ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new
108
+ #
109
+ # # Create a client using a custom configuration
110
+ # client = ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new do |config|
111
+ # config.timeout = 10.0
112
+ # end
113
+ #
114
+ # @yield [config] Configure the PublicCertificateAuthorityService client.
115
+ # @yieldparam config [Client::Configuration]
116
+ #
117
+ def initialize
118
+ # These require statements are intentionally placed here to initialize
119
+ # the gRPC module only when it's required.
120
+ # See https://github.com/googleapis/toolkit/issues/446
121
+ require "gapic/grpc"
122
+ require "google/cloud/security/publicca/v1beta1/service_services_pb"
123
+
124
+ # Create the configuration object
125
+ @config = Configuration.new Client.configure
126
+
127
+ # Yield the configuration if needed
128
+ yield @config if block_given?
129
+
130
+ # Create credentials
131
+ credentials = @config.credentials
132
+ # Use self-signed JWT if the endpoint is unchanged from default,
133
+ # but only if the default endpoint does not have a region prefix.
134
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
135
+ !@config.endpoint.split(".").first.include?("-")
136
+ credentials ||= Credentials.default scope: @config.scope,
137
+ enable_self_signed_jwt: enable_self_signed_jwt
138
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
139
+ credentials = Credentials.new credentials, scope: @config.scope
140
+ end
141
+ @quota_project_id = @config.quota_project
142
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
143
+
144
+ @public_certificate_authority_service_stub = ::Gapic::ServiceStub.new(
145
+ ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Stub,
146
+ credentials: credentials,
147
+ endpoint: @config.endpoint,
148
+ channel_args: @config.channel_args,
149
+ interceptors: @config.interceptors
150
+ )
151
+ end
152
+
153
+ # Service calls
154
+
155
+ ##
156
+ # Creates a new {::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey ExternalAccountKey} bound to the project.
157
+ #
158
+ # @overload create_external_account_key(request, options = nil)
159
+ # Pass arguments to `create_external_account_key` via a request object, either of type
160
+ # {::Google::Cloud::Security::PublicCA::V1beta1::CreateExternalAccountKeyRequest} or an equivalent Hash.
161
+ #
162
+ # @param request [::Google::Cloud::Security::PublicCA::V1beta1::CreateExternalAccountKeyRequest, ::Hash]
163
+ # A request object representing the call parameters. Required. To specify no
164
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
165
+ # @param options [::Gapic::CallOptions, ::Hash]
166
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
167
+ #
168
+ # @overload create_external_account_key(parent: nil, external_account_key: nil)
169
+ # Pass arguments to `create_external_account_key` via keyword arguments. Note that at
170
+ # least one keyword argument is required. To specify no parameters, or to keep all
171
+ # the default parameter values, pass an empty Hash as a request object (see above).
172
+ #
173
+ # @param parent [::String]
174
+ # Required. The parent resource where this external_account_key will be created.
175
+ # Format: projects/[project_id]/locations/[location].
176
+ # At present only the "global" location is supported.
177
+ # @param external_account_key [::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey, ::Hash]
178
+ # Required. The external account key to create. This field only exists to future-proof
179
+ # the API. At present, all fields in ExternalAccountKey are output only and
180
+ # all values are ignored. For the purpose of the
181
+ # CreateExternalAccountKeyRequest, set it to a default/empty value.
182
+ #
183
+ # @yield [response, operation] Access the result along with the RPC operation
184
+ # @yieldparam response [::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey]
185
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
186
+ #
187
+ # @return [::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey]
188
+ #
189
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
190
+ #
191
+ # @example Basic example
192
+ # require "google/cloud/security/public_ca/v1beta1"
193
+ #
194
+ # # Create a client object. The client can be reused for multiple calls.
195
+ # client = Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new
196
+ #
197
+ # # Create a request. To set request fields, pass in keyword arguments.
198
+ # request = Google::Cloud::Security::PublicCA::V1beta1::CreateExternalAccountKeyRequest.new
199
+ #
200
+ # # Call the create_external_account_key method.
201
+ # result = client.create_external_account_key request
202
+ #
203
+ # # The returned object is of type Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey.
204
+ # p result
205
+ #
206
+ def create_external_account_key request, options = nil
207
+ raise ::ArgumentError, "request must be provided" if request.nil?
208
+
209
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PublicCA::V1beta1::CreateExternalAccountKeyRequest
210
+
211
+ # Converts hash and nil to an options object
212
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
213
+
214
+ # Customize the options with defaults
215
+ metadata = @config.rpcs.create_external_account_key.metadata.to_h
216
+
217
+ # Set x-goog-api-client and x-goog-user-project headers
218
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
219
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
220
+ gapic_version: ::Google::Cloud::Security::PublicCA::V1beta1::VERSION
221
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
222
+
223
+ header_params = {}
224
+ if request.parent
225
+ header_params["parent"] = request.parent
226
+ end
227
+
228
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
229
+ metadata[:"x-goog-request-params"] ||= request_params_header
230
+
231
+ options.apply_defaults timeout: @config.rpcs.create_external_account_key.timeout,
232
+ metadata: metadata,
233
+ retry_policy: @config.rpcs.create_external_account_key.retry_policy
234
+
235
+ options.apply_defaults timeout: @config.timeout,
236
+ metadata: @config.metadata,
237
+ retry_policy: @config.retry_policy
238
+
239
+ @public_certificate_authority_service_stub.call_rpc :create_external_account_key, request, options: options do |response, operation|
240
+ yield response, operation if block_given?
241
+ return response
242
+ end
243
+ rescue ::GRPC::BadStatus => e
244
+ raise ::Google::Cloud::Error.from_error(e)
245
+ end
246
+
247
+ ##
248
+ # Configuration class for the PublicCertificateAuthorityService API.
249
+ #
250
+ # This class represents the configuration for PublicCertificateAuthorityService,
251
+ # providing control over timeouts, retry behavior, logging, transport
252
+ # parameters, and other low-level controls. Certain parameters can also be
253
+ # applied individually to specific RPCs. See
254
+ # {::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client::Configuration::Rpcs}
255
+ # for a list of RPCs that can be configured independently.
256
+ #
257
+ # Configuration can be applied globally to all clients, or to a single client
258
+ # on construction.
259
+ #
260
+ # @example
261
+ #
262
+ # # Modify the global config, setting the timeout for
263
+ # # create_external_account_key to 20 seconds,
264
+ # # and all remaining timeouts to 10 seconds.
265
+ # ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.configure do |config|
266
+ # config.timeout = 10.0
267
+ # config.rpcs.create_external_account_key.timeout = 20.0
268
+ # end
269
+ #
270
+ # # Apply the above configuration only to a new client.
271
+ # client = ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new do |config|
272
+ # config.timeout = 10.0
273
+ # config.rpcs.create_external_account_key.timeout = 20.0
274
+ # end
275
+ #
276
+ # @!attribute [rw] endpoint
277
+ # The hostname or hostname:port of the service endpoint.
278
+ # Defaults to `"publicca.googleapis.com"`.
279
+ # @return [::String]
280
+ # @!attribute [rw] credentials
281
+ # Credentials to send with calls. You may provide any of the following types:
282
+ # * (`String`) The path to a service account key file in JSON format
283
+ # * (`Hash`) A service account key as a Hash
284
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
285
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
286
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
287
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
288
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
289
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
290
+ # * (`nil`) indicating no credentials
291
+ # @return [::Object]
292
+ # @!attribute [rw] scope
293
+ # The OAuth scopes
294
+ # @return [::Array<::String>]
295
+ # @!attribute [rw] lib_name
296
+ # The library name as recorded in instrumentation and logging
297
+ # @return [::String]
298
+ # @!attribute [rw] lib_version
299
+ # The library version as recorded in instrumentation and logging
300
+ # @return [::String]
301
+ # @!attribute [rw] channel_args
302
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
303
+ # `GRPC::Core::Channel` object is provided as the credential.
304
+ # @return [::Hash]
305
+ # @!attribute [rw] interceptors
306
+ # An array of interceptors that are run before calls are executed.
307
+ # @return [::Array<::GRPC::ClientInterceptor>]
308
+ # @!attribute [rw] timeout
309
+ # The call timeout in seconds.
310
+ # @return [::Numeric]
311
+ # @!attribute [rw] metadata
312
+ # Additional gRPC headers to be sent with the call.
313
+ # @return [::Hash{::Symbol=>::String}]
314
+ # @!attribute [rw] retry_policy
315
+ # The retry policy. The value is a hash with the following keys:
316
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
317
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
318
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
319
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
320
+ # trigger a retry.
321
+ # @return [::Hash]
322
+ # @!attribute [rw] quota_project
323
+ # A separate project against which to charge quota.
324
+ # @return [::String]
325
+ #
326
+ class Configuration
327
+ extend ::Gapic::Config
328
+
329
+ config_attr :endpoint, "publicca.googleapis.com", ::String
330
+ config_attr :credentials, nil do |value|
331
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
332
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
333
+ allowed.any? { |klass| klass === value }
334
+ end
335
+ config_attr :scope, nil, ::String, ::Array, nil
336
+ config_attr :lib_name, nil, ::String, nil
337
+ config_attr :lib_version, nil, ::String, nil
338
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
339
+ config_attr :interceptors, nil, ::Array, nil
340
+ config_attr :timeout, nil, ::Numeric, nil
341
+ config_attr :metadata, nil, ::Hash, nil
342
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
343
+ config_attr :quota_project, nil, ::String, nil
344
+
345
+ # @private
346
+ def initialize parent_config = nil
347
+ @parent_config = parent_config unless parent_config.nil?
348
+
349
+ yield self if block_given?
350
+ end
351
+
352
+ ##
353
+ # Configurations for individual RPCs
354
+ # @return [Rpcs]
355
+ #
356
+ def rpcs
357
+ @rpcs ||= begin
358
+ parent_rpcs = nil
359
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
360
+ Rpcs.new parent_rpcs
361
+ end
362
+ end
363
+
364
+ ##
365
+ # Configuration RPC class for the PublicCertificateAuthorityService API.
366
+ #
367
+ # Includes fields providing the configuration for each RPC in this service.
368
+ # Each configuration object is of type `Gapic::Config::Method` and includes
369
+ # the following configuration fields:
370
+ #
371
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
372
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
373
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
374
+ # include the following keys:
375
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
376
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
377
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
378
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
379
+ # trigger a retry.
380
+ #
381
+ class Rpcs
382
+ ##
383
+ # RPC-specific configuration for `create_external_account_key`
384
+ # @return [::Gapic::Config::Method]
385
+ #
386
+ attr_reader :create_external_account_key
387
+
388
+ # @private
389
+ def initialize parent_rpcs = nil
390
+ create_external_account_key_config = parent_rpcs.create_external_account_key if parent_rpcs.respond_to? :create_external_account_key
391
+ @create_external_account_key = ::Gapic::Config::Method.new create_external_account_key_config
392
+
393
+ yield self if block_given?
394
+ end
395
+ end
396
+ end
397
+ end
398
+ end
399
+ end
400
+ end
401
+ end
402
+ end
403
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Security
24
+ module PublicCA
25
+ module V1beta1
26
+ module PublicCertificateAuthorityService
27
+ # Credentials for the PublicCertificateAuthorityService API.
28
+ class Credentials < ::Google::Auth::Credentials
29
+ self.scope = [
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "GOOGLE_CLOUD_CREDENTIALS",
34
+ "GOOGLE_CLOUD_KEYFILE",
35
+ "GCLOUD_KEYFILE",
36
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
37
+ "GOOGLE_CLOUD_KEYFILE_JSON",
38
+ "GCLOUD_KEYFILE_JSON"
39
+ ]
40
+ self.paths = [
41
+ "~/.config/google_cloud/application_default_credentials.json"
42
+ ]
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 Security
23
+ module PublicCA
24
+ module V1beta1
25
+ module PublicCertificateAuthorityService
26
+ # Path helper methods for the PublicCertificateAuthorityService API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified ExternalAccountKey resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}`
34
+ #
35
+ # @param project [String]
36
+ # @param location [String]
37
+ # @param external_account_key [String]
38
+ #
39
+ # @return [::String]
40
+ def external_account_key_path project:, location:, external_account_key:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+
44
+ "projects/#{project}/locations/#{location}/externalAccountKeys/#{external_account_key}"
45
+ end
46
+
47
+ ##
48
+ # Create a fully-qualified Location resource string.
49
+ #
50
+ # The resource will be in the following format:
51
+ #
52
+ # `projects/{project}/locations/{location}`
53
+ #
54
+ # @param project [String]
55
+ # @param location [String]
56
+ #
57
+ # @return [::String]
58
+ def location_path project:, location:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+
61
+ "projects/#{project}/locations/#{location}"
62
+ end
63
+
64
+ extend self
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/security/public_ca/v1beta1/version"
24
+
25
+ require "google/cloud/security/public_ca/v1beta1/public_certificate_authority_service/credentials"
26
+ require "google/cloud/security/public_ca/v1beta1/public_certificate_authority_service/paths"
27
+ require "google/cloud/security/public_ca/v1beta1/public_certificate_authority_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Security
32
+ module PublicCA
33
+ module V1beta1
34
+ ##
35
+ # Manages the resources required for ACME [external account
36
+ # binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for
37
+ # the public certificate authority service.
38
+ #
39
+ # To load this service and instantiate a client:
40
+ #
41
+ # require "google/cloud/security/public_ca/v1beta1/public_certificate_authority_service"
42
+ # client = ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new
43
+ #
44
+ module PublicCertificateAuthorityService
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "public_certificate_authority_service", "helpers.rb"
53
+ require "google/cloud/security/public_ca/v1beta1/public_certificate_authority_service/helpers" if ::File.file? helper_path
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2022 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,12 +14,15 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Cloud
17
22
  module Security
18
- module PublicCa
23
+ module PublicCA
19
24
  module V1beta1
20
- VERSION = "0.a"
25
+ VERSION = "0.1.0"
21
26
  end
22
27
  end
23
28
  end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+ require "google/cloud/security/public_ca/v1beta1/public_certificate_authority_service"
20
+ require "google/cloud/security/public_ca/v1beta1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Security
25
+ module PublicCA
26
+ ##
27
+ # To load this package, including all its services, and instantiate a client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/security/public_ca/v1beta1"
32
+ # client = ::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new
33
+ #
34
+ module V1beta1
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+
41
+ helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
42
+ require "google/cloud/security/public_ca/v1beta1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,29 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/security/publicca/v1beta1/resources.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/security/publicca/v1beta1/resources.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.security.publicca.v1beta1.ExternalAccountKey" do
12
+ optional :name, :string, 1
13
+ optional :key_id, :string, 2
14
+ optional :b64_mac_key, :bytes, 3
15
+ end
16
+ end
17
+ end
18
+
19
+ module Google
20
+ module Cloud
21
+ module Security
22
+ module PublicCA
23
+ module V1beta1
24
+ ExternalAccountKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.publicca.v1beta1.ExternalAccountKey").msgclass
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end