google-cloud-kms-inventory-v1 0.2.0 → 0.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/README.md +1 -1
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service/client.rb +6 -4
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service/rest/client.rb +6 -4
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/kms/inventory/v1/key_dashboard_service_pb.rb +25 -10
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service/client.rb +6 -4
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service/rest/client.rb +6 -4
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/kms/inventory/v1/key_tracking_service_pb.rb +25 -34
- data/lib/google/cloud/kms/inventory/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/kms/v1/resources.rb +6 -0
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d29a59bc696c02da3cbd1016d4ce7922f7937649a7e520afb5a506a8d6c237f4
|
4
|
+
data.tar.gz: 3ff49b91231b8560cc9b9da2b7b962d2650ae7fef41c9f43837ddeef9c94a729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8effe8fdd5f2ac529eb80f9788d59b1f0740fe3234358223e5a410f75d1ea74b8e0d880dfb68a9b25b93d82b0cfce7faa14e28ded59e2cb47972b86c6fb521
|
7
|
+
data.tar.gz: 385d6e5b8f9241cf317afe016491c561e8f9ed29203abec6130056a73736010969c09e3fb38126c414c05b9471d75f81ee8e60db42e7b9aa2e8cfcfa8f99b42a
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -285,9 +285,9 @@ module Google
|
|
285
285
|
# * (`String`) The path to a service account key file in JSON format
|
286
286
|
# * (`Hash`) A service account key as a Hash
|
287
287
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
288
|
-
# (see the [googleauth docs](https://
|
288
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
289
289
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
290
|
-
# (see the [signet docs](https://
|
290
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
291
291
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
292
292
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
293
293
|
# * (`nil`) indicating no credentials
|
@@ -329,7 +329,9 @@ module Google
|
|
329
329
|
class Configuration
|
330
330
|
extend ::Gapic::Config
|
331
331
|
|
332
|
-
|
332
|
+
DEFAULT_ENDPOINT = "kmsinventory.googleapis.com"
|
333
|
+
|
334
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
333
335
|
config_attr :credentials, nil do |value|
|
334
336
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
335
337
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -122,7 +122,7 @@ module Google
|
|
122
122
|
credentials = @config.credentials
|
123
123
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
124
124
|
# but only if the default endpoint does not have a region prefix.
|
125
|
-
enable_self_signed_jwt = @config.endpoint ==
|
125
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
126
126
|
!@config.endpoint.split(".").first.include?("-")
|
127
127
|
credentials ||= Credentials.default scope: @config.scope,
|
128
128
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -249,9 +249,9 @@ module Google
|
|
249
249
|
# * (`String`) The path to a service account key file in JSON format
|
250
250
|
# * (`Hash`) A service account key as a Hash
|
251
251
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
252
|
-
# (see the [googleauth docs](https://
|
252
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
253
253
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
254
|
-
# (see the [signet docs](https://
|
254
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
255
255
|
# * (`nil`) indicating no credentials
|
256
256
|
# @return [::Object]
|
257
257
|
# @!attribute [rw] scope
|
@@ -284,7 +284,9 @@ module Google
|
|
284
284
|
class Configuration
|
285
285
|
extend ::Gapic::Config
|
286
286
|
|
287
|
-
|
287
|
+
DEFAULT_ENDPOINT = "kmsinventory.googleapis.com"
|
288
|
+
|
289
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
288
290
|
config_attr :credentials, nil do |value|
|
289
291
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
290
292
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_crypto_keys_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/kms/inventory/v1/key_dashboard_service.proto
|
3
4
|
|
@@ -9,18 +10,32 @@ require 'google/api/field_behavior_pb'
|
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
require 'google/cloud/kms/v1/resources_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
|
14
|
+
descriptor_data = "\n9google/cloud/kms/inventory/v1/key_dashboard_service.proto\x12\x1dgoogle.cloud.kms.inventory.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/kms/v1/resources.proto\"\x8d\x01\n\x15ListCryptoKeysRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x16ListCryptoKeysResponse\x12\x33\n\x0b\x63rypto_keys\x18\x01 \x03(\x0b\x32\x1e.google.cloud.kms.v1.CryptoKey\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9b\x02\n\x13KeyDashboardService\x12\xb2\x01\n\x0eListCryptoKeys\x12\x34.google.cloud.kms.inventory.v1.ListCryptoKeysRequest\x1a\x35.google.cloud.kms.inventory.v1.ListCryptoKeysResponse\"3\x82\xd3\xe4\x93\x02$\x12\"/v1/{parent=projects/*}/cryptoKeys\xda\x41\x06parent\x1aO\xca\x41\x1bkmsinventory.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x01\n!com.google.cloud.kms.inventory.v1B\x18KeyDashboardServiceProtoP\x01Z?cloud.google.com/go/kms/inventory/apiv1/inventorypb;inventorypb\xf8\x01\x01\xaa\x02\x1dGoogle.Cloud.Kms.Inventory.V1\xca\x02\x1dGoogle\\Cloud\\Kms\\Inventory\\V1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
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.kms.v1.CryptoKey", "google/cloud/kms/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}"
|
22
35
|
end
|
23
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."
|
24
39
|
end
|
25
40
|
|
26
41
|
module Google
|
@@ -129,7 +129,7 @@ module Google
|
|
129
129
|
credentials = @config.credentials
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -386,9 +386,9 @@ module Google
|
|
386
386
|
# * (`String`) The path to a service account key file in JSON format
|
387
387
|
# * (`Hash`) A service account key as a Hash
|
388
388
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
389
|
-
# (see the [googleauth docs](https://
|
389
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
390
390
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
391
|
-
# (see the [signet docs](https://
|
391
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
392
392
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
393
393
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
394
394
|
# * (`nil`) indicating no credentials
|
@@ -430,7 +430,9 @@ module Google
|
|
430
430
|
class Configuration
|
431
431
|
extend ::Gapic::Config
|
432
432
|
|
433
|
-
|
433
|
+
DEFAULT_ENDPOINT = "kmsinventory.googleapis.com"
|
434
|
+
|
435
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
434
436
|
config_attr :credentials, nil do |value|
|
435
437
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
436
438
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
credentials = @config.credentials
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -327,9 +327,9 @@ module Google
|
|
327
327
|
# * (`String`) The path to a service account key file in JSON format
|
328
328
|
# * (`Hash`) A service account key as a Hash
|
329
329
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
330
|
-
# (see the [googleauth docs](https://
|
330
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
331
331
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
332
|
-
# (see the [signet docs](https://
|
332
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
333
333
|
# * (`nil`) indicating no credentials
|
334
334
|
# @return [::Object]
|
335
335
|
# @!attribute [rw] scope
|
@@ -362,7 +362,9 @@ module Google
|
|
362
362
|
class Configuration
|
363
363
|
extend ::Gapic::Config
|
364
364
|
|
365
|
-
|
365
|
+
DEFAULT_ENDPOINT = "kmsinventory.googleapis.com"
|
366
|
+
|
367
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
366
368
|
config_attr :credentials, nil do |value|
|
367
369
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
368
370
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_protected_resources_summary_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_search_protected_resources_request request_pb
|
100
100
|
query_string_params = if query_string_params.any?
|
101
|
-
query_string_params.to_h { |p| p.split
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
102
102
|
else
|
103
103
|
{}
|
104
104
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/kms/inventory/v1/key_tracking_service.proto
|
3
4
|
|
@@ -9,42 +10,32 @@ require 'google/api/field_behavior_pb'
|
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
35
|
-
add_message "google.cloud.kms.inventory.v1.ProtectedResource" do
|
36
|
-
optional :name, :string, 1
|
37
|
-
optional :project, :string, 2
|
38
|
-
optional :project_id, :string, 9
|
39
|
-
optional :cloud_product, :string, 8
|
40
|
-
optional :resource_type, :string, 3
|
41
|
-
optional :location, :string, 4
|
42
|
-
map :labels, :string, :string, 5
|
43
|
-
optional :crypto_key_version, :string, 6
|
44
|
-
repeated :crypto_key_versions, :string, 10
|
45
|
-
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
13
|
+
|
14
|
+
descriptor_data = "\n8google/cloud/kms/inventory/v1/key_tracking_service.proto\x12\x1dgoogle.cloud.kms.inventory.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"r\n#GetProtectedResourcesSummaryRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5kmsinventory.googleapis.com/ProtectedResourcesSummary\"\xe0\x06\n\x19ProtectedResourcesSummary\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x16\n\x0eresource_count\x18\x01 \x01(\x03\x12\x15\n\rproject_count\x18\x02 \x01(\x05\x12\x63\n\x0eresource_types\x18\x03 \x03(\x0b\x32K.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.ResourceTypesEntry\x12\x63\n\x0e\x63loud_products\x18\x06 \x03(\x0b\x32K.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.CloudProductsEntry\x12Z\n\tlocations\x18\x04 \x03(\x0b\x32G.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.LocationsEntry\x1a\x34\n\x12ResourceTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x34\n\x12\x43loudProductsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x30\n\x0eLocationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01:\xc1\x02\xea\x41\xbd\x02\n5kmsinventory.googleapis.com/ProtectedResourcesSummary\x12mprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/protectedResourcesSummary\x12\x94\x01projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}/protectedResourcesSummary\"\xb0\x01\n\x1fSearchProtectedResourcesRequest\x12G\n\x05scope\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudresourcemanager.googleapis.com/Organization\x12\x1d\n\ncrypto_key\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x8a\x01\n SearchProtectedResourcesResponse\x12M\n\x13protected_resources\x18\x01 \x03(\x0b\x32\x30.google.cloud.kms.inventory.v1.ProtectedResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf9\x03\n\x11ProtectedResource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\t \x01(\t\x12\x15\n\rcloud_product\x18\x08 \x01(\t\x12\x15\n\rresource_type\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x04 \x01(\t\x12L\n\x06labels\x18\x05 \x03(\x0b\x32<.google.cloud.kms.inventory.v1.ProtectedResource.LabelsEntry\x12I\n\x12\x63rypto_key_version\x18\x06 \x01(\tB-\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x12J\n\x13\x63rypto_key_versions\x18\n \x03(\tB-\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\'\xea\x41$\n\x1f\x63loudasset.googleapis.com/Asset\x12\x01*2\xda\x04\n\x12KeyTrackingService\x12\x81\x02\n\x1cGetProtectedResourcesSummary\x12\x42.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest\x1a\x38.google.cloud.kms.inventory.v1.ProtectedResourcesSummary\"c\x82\xd3\xe4\x93\x02V\x12T/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}/protectedResourcesSummary\xda\x41\x04name\x12\xee\x01\n\x18SearchProtectedResources\x12>.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest\x1a?.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse\"Q\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{scope=organizations/*}/protectedResources:search\xda\x41\x11scope, crypto_key\x1aO\xca\x41\x1bkmsinventory.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc2\x01\n!com.google.cloud.kms.inventory.v1B\x17KeyTrackingServiceProtoP\x01Z?cloud.google.com/go/kms/inventory/apiv1/inventorypb;inventorypb\xf8\x01\x01\xaa\x02\x1dGoogle.Cloud.Kms.Inventory.V1\xca\x02\x1dGoogle\\Cloud\\Kms\\Inventory\\V1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
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.protobuf.Timestamp", "google/protobuf/timestamp.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}"
|
46
35
|
end
|
47
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."
|
48
39
|
end
|
49
40
|
|
50
41
|
module Google
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -476,13 +476,19 @@ module Google
|
|
476
476
|
RSA_DECRYPT_OAEP_4096_SHA1 = 39
|
477
477
|
|
478
478
|
# ECDSA on the NIST P-256 curve with a SHA256 digest.
|
479
|
+
# Other hash functions can also be used:
|
480
|
+
# https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
|
479
481
|
EC_SIGN_P256_SHA256 = 12
|
480
482
|
|
481
483
|
# ECDSA on the NIST P-384 curve with a SHA384 digest.
|
484
|
+
# Other hash functions can also be used:
|
485
|
+
# https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
|
482
486
|
EC_SIGN_P384_SHA384 = 13
|
483
487
|
|
484
488
|
# ECDSA on the non-NIST secp256k1 curve. This curve is only supported for
|
485
489
|
# HSM protection level.
|
490
|
+
# Other hash functions can also be used:
|
491
|
+
# https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
|
486
492
|
EC_SIGN_SECP256K1_SHA256 = 31
|
487
493
|
|
488
494
|
# HMAC-SHA256 signing with a 256 bit key.
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-kms-inventory-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-
|
11
|
+
date: 2023-06-06 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
|
+
version: 0.19.1
|
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.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|