google-cloud-security-public_ca-v1 1.2.0 → 1.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 +4 -4
- data/lib/google/cloud/security/public_ca/v1/public_certificate_authority_service/client.rb +20 -3
- data/lib/google/cloud/security/public_ca/v1/version.rb +1 -1
- data/lib/google/cloud/security/publicca/v1/resources_pb.rb +2 -23
- data/lib/google/cloud/security/publicca/v1/service_pb.rb +2 -24
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53bffb1d769281d907f29d4cf43f3defb1068c45241b3b24c97139624ab1287f
|
|
4
|
+
data.tar.gz: d690bc52d41668eabd7d884e2e1ac35d4f47e19220eb7d9060ad82b5188b961e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cea5990af16f18a762bf26ebe5981fd90fd6c05d67a69440288ca1a4a078071dd73d3158d0c65e2a6b0176b99f7ddca5ba5948719d51d0edc1bc6e932dfab477
|
|
7
|
+
data.tar.gz: ca8c9a76cae3691efbb372fa4beb6904339f177add6e3ae623643c4e7c13aa254fbbc085e46870872fce1b73da6e19a4f9e23ef2c24189213c9c2ab059b5dab0
|
|
@@ -320,8 +320,6 @@ module Google
|
|
|
320
320
|
# @return [::String,nil]
|
|
321
321
|
# @!attribute [rw] credentials
|
|
322
322
|
# Credentials to send with calls. You may provide any of the following types:
|
|
323
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
324
|
-
# * (`Hash`) A service account key as a Hash
|
|
325
323
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
326
324
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
327
325
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -330,7 +328,26 @@ module Google
|
|
|
330
328
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
331
329
|
# * (`nil`) indicating no credentials
|
|
332
330
|
#
|
|
333
|
-
# Warning:
|
|
331
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
332
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
333
|
+
# Google APIs can compromise the security of your systems and data.
|
|
334
|
+
#
|
|
335
|
+
# @example
|
|
336
|
+
#
|
|
337
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
338
|
+
# # on the appropriate credentials class for your environment.
|
|
339
|
+
#
|
|
340
|
+
# require "googleauth"
|
|
341
|
+
#
|
|
342
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
343
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
344
|
+
# )
|
|
345
|
+
#
|
|
346
|
+
# client = ::Google::Cloud::Security::PublicCA::V1::PublicCertificateAuthorityService::Client.new do |config|
|
|
347
|
+
# config.credentials = credentials
|
|
348
|
+
# end
|
|
349
|
+
#
|
|
350
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
334
351
|
# external source for authentication to Google Cloud, you must validate it before
|
|
335
352
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
336
353
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -10,29 +10,8 @@ require 'google/api/resource_pb'
|
|
|
10
10
|
|
|
11
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\xec\x01\n%com.google.cloud.security.publicca.v1B\x0eResourcesProtoP\x01ZAcloud.google.com/go/security/publicca/apiv1/publiccapb;publiccapb\xaa\x02!Google.Cloud.Security.PublicCA.V1\xca\x02!Google\\Cloud\\Security\\PublicCA\\V1\xea\x02%Google::Cloud::Security::PublicCA::V1b\x06proto3"
|
|
12
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
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
36
15
|
|
|
37
16
|
module Google
|
|
38
17
|
module Cloud
|
|
@@ -13,30 +13,8 @@ require 'google/cloud/security/publicca/v1/resources_pb'
|
|
|
13
13
|
|
|
14
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\xea\x01\n%com.google.cloud.security.publicca.v1B\x0cServiceProtoP\x01ZAcloud.google.com/go/security/publicca/apiv1/publiccapb;publiccapb\xaa\x02!Google.Cloud.Security.PublicCA.V1\xca\x02!Google\\Cloud\\Security\\PublicCA\\V1\xea\x02%Google::Cloud::Security::PublicCA::V1b\x06proto3"
|
|
15
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
|
|
16
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
40
18
|
|
|
41
19
|
module Google
|
|
42
20
|
module Cloud
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-security-public_ca-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
85
85
|
requirements:
|
|
86
86
|
- - ">="
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '3.
|
|
88
|
+
version: '3.2'
|
|
89
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
requirements:
|
|
91
91
|
- - ">="
|