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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service/client.rb +443 -0
  6. data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service/credentials.rb +49 -0
  7. data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service/paths.rb +71 -0
  8. data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service/rest/client.rb +410 -0
  9. data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service/rest/service_stub.rb +131 -0
  10. data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service/rest.rb +56 -0
  11. data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service.rb +59 -0
  12. data/lib/google/cloud/security/public_ca/v1/rest.rb +39 -0
  13. data/lib/google/cloud/security/public_ca/v1/version.rb +8 -3
  14. data/lib/google/cloud/security/public_ca/v1.rb +47 -0
  15. data/lib/google/cloud/security/publicca/v1/resources_pb.rb +47 -0
  16. data/lib/google/cloud/security/publicca/v1/service_pb.rb +51 -0
  17. data/lib/google/cloud/security/publicca/v1/service_services_pb.rb +51 -0
  18. data/lib/google-cloud-security-public_ca-v1.rb +21 -0
  19. data/proto_docs/README.md +4 -0
  20. data/proto_docs/google/api/client.rb +399 -0
  21. data/proto_docs/google/api/field_behavior.rb +85 -0
  22. data/proto_docs/google/api/launch_stage.rb +71 -0
  23. data/proto_docs/google/api/resource.rb +222 -0
  24. data/proto_docs/google/cloud/security/publicca/v1/resources.rb +49 -0
  25. data/proto_docs/google/cloud/security/publicca/v1/service.rb +47 -0
  26. data/proto_docs/google/protobuf/duration.rb +98 -0
  27. metadata +70 -10
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/v1/public_certificate_authority_service/rest"
20
+ require "google/cloud/security/public_ca/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Security
25
+ module PublicCA
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/security/public_ca/v1/rest"
32
+ # client = ::Google::Cloud::Security::PublicCA::V1::PublicCertificateAuthorityService::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2024 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 V1
20
- VERSION = "0.a"
25
+ VERSION = "0.1.0"
21
26
  end
22
27
  end
23
28
  end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/v1/public_certificate_authority_service"
20
+ require "google/cloud/security/public_ca/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Security
25
+ module PublicCA
26
+ ##
27
+ # API client module.
28
+ #
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
+ #
31
+ # require "google/cloud/security/public_ca/v1"
32
+ # client = ::Google::Cloud::Security::PublicCA::V1::PublicCertificateAuthorityService::Client.new
33
+ #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/security/public_ca/v1"
37
+ # client = ::Google::Cloud::Security::PublicCA::V1::PublicCertificateAuthorityService::Rest::Client.new
38
+ #
39
+ module V1
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
47
+ require "google/cloud/security/public_ca/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/security/publicca/v1/resources.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+
10
+
11
+ descriptor_data = "\n1google/cloud/security/publicca/v1/resources.proto\x12!google.cloud.security.publicca.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdd\x01\n\x12\x45xternalAccountKey\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06key_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x62\x36\x34_mac_key\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x03:\x84\x01\xea\x41\x80\x01\n*publicca.googleapis.com/ExternalAccountKey\x12Rprojects/{project}/locations/{location}/externalAccountKeys/{external_account_key}B\xef\x01\n%com.google.cloud.security.publicca.v1B\x0eResourcesProtoP\x01ZAcloud.google.com/go/security/publicca/apiv1/publiccapb;publiccapb\xf8\x01\x01\xaa\x02!Google.Cloud.Security.PublicCA.V1\xca\x02!Google\\Cloud\\Security\\PublicCA\\V1\xea\x02%Google::Cloud::Security::PublicCA::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Cloud
39
+ module Security
40
+ module PublicCA
41
+ module V1
42
+ ExternalAccountKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.publicca.v1.ExternalAccountKey").msgclass
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/security/publicca/v1/service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/security/publicca/v1/resources_pb'
12
+
13
+
14
+ descriptor_data = "\n/google/cloud/security/publicca/v1/service.proto\x12!google.cloud.security.publicca.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/security/publicca/v1/resources.proto\"\xbf\x01\n\x1f\x43reateExternalAccountKeyRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*publicca.googleapis.com/ExternalAccountKey\x12X\n\x14\x65xternal_account_key\x18\x02 \x01(\x0b\x32\x35.google.cloud.security.publicca.v1.ExternalAccountKeyB\x03\xe0\x41\x02\x32\xfd\x02\n!PublicCertificateAuthorityService\x12\x8a\x02\n\x18\x43reateExternalAccountKey\x12\x42.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest\x1a\x35.google.cloud.security.publicca.v1.ExternalAccountKey\"s\xda\x41\x1bparent,external_account_key\x82\xd3\xe4\x93\x02O\"7/v1/{parent=projects/*/locations/*}/externalAccountKeys:\x14\x65xternal_account_key\x1aK\xca\x41\x17publicca.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xed\x01\n%com.google.cloud.security.publicca.v1B\x0cServiceProtoP\x01ZAcloud.google.com/go/security/publicca/apiv1/publiccapb;publiccapb\xf8\x01\x01\xaa\x02!Google.Cloud.Security.PublicCA.V1\xca\x02!Google\\Cloud\\Security\\PublicCA\\V1\xea\x02%Google::Cloud::Security::PublicCA::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.security.publicca.v1.ExternalAccountKey", "google/cloud/security/publicca/v1/resources.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Cloud
43
+ module Security
44
+ module PublicCA
45
+ module V1
46
+ CreateExternalAccountKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest").msgclass
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/security/publicca/v1/service.proto for package 'Google.Cloud.Security.PublicCA.V1'
3
+ # Original file comments:
4
+ # Copyright 2024 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/security/publicca/v1/service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Security
25
+ module PublicCA
26
+ module V1
27
+ module PublicCertificateAuthorityService
28
+ # Manages the resources required for ACME [external account
29
+ # binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for
30
+ # the public certificate authority service.
31
+ class Service
32
+
33
+ include ::GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.cloud.security.publicca.v1.PublicCertificateAuthorityService'
38
+
39
+ # Creates a new
40
+ # [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey]
41
+ # bound to the project.
42
+ rpc :CreateExternalAccountKey, ::Google::Cloud::Security::PublicCA::V1::CreateExternalAccountKeyRequest, ::Google::Cloud::Security::PublicCA::V1::ExternalAccountKey
43
+ end
44
+
45
+ Stub = Service.rpc_stub_class
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/security/public_ca/v1"
@@ -0,0 +1,4 @@
1
+ # Public Certificate Authority V1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.