google-cloud-service_usage-v1 0.2.1 → 0.3.1
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/api/serviceusage/v1/resources_pb.rb +32 -27
- data/lib/google/api/serviceusage/v1/serviceusage_pb.rb +25 -52
- data/lib/google/cloud/service_usage/v1/service_usage/client.rb +6 -4
- data/lib/google/cloud/service_usage/v1/service_usage/operations.rb +5 -3
- data/lib/google/cloud/service_usage/v1/version.rb +1 -1
- data/proto_docs/google/api/auth.rb +2 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/monitored_resource.rb +23 -18
- data/proto_docs/google/api/monitoring.rb +4 -2
- data/proto_docs/google/api/quota.rb +2 -1
- data/proto_docs/google/api/usage.rb +2 -1
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/api.rb +1 -1
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/type.rb +9 -0
- 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: 1fd96d11524ade11f3aae7bd5993ce2f4592636f424ed48879c1a48ae16f45d1
|
4
|
+
data.tar.gz: c1559387b8a8ef2cdff1874db6f784c1b6b19ec29a56fc7fdb4ad4fb22b4be06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 684419c2404f1fefbf45d1093a95f87766a4b3d742fe177a3e478077714089ad856fc619117117b14a697005d2c267741881c1f2d0bdf92c2e4f686cc28ef9fc
|
7
|
+
data.tar.gz: 57f8143f1014b2290b05f2ff3819373f5229bcdbff0bb15d3e3fa9d5163dd17aaaf1fbc6e5e8af9d163152f78b0e18a89bcef4d51746eb5628795452cd3d722e
|
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
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/api/serviceusage/v1/resources.proto
|
3
4
|
|
@@ -12,35 +13,39 @@ require 'google/api/quota_pb'
|
|
12
13
|
require 'google/api/usage_pb'
|
13
14
|
require 'google/protobuf/api_pb'
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
16
|
+
|
17
|
+
descriptor_data = "\n*google/api/serviceusage/v1/resources.proto\x12\x1agoogle.api.serviceusage.v1\x1a\x15google/api/auth.proto\x1a\x1egoogle/api/documentation.proto\x1a\x19google/api/endpoint.proto\x1a#google/api/monitored_resource.proto\x1a\x1bgoogle/api/monitoring.proto\x1a\x16google/api/quota.proto\x1a\x16google/api/usage.proto\x1a\x19google/protobuf/api.proto\"\x94\x01\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x05 \x01(\t\x12\x39\n\x06\x63onfig\x18\x02 \x01(\x0b\x32).google.api.serviceusage.v1.ServiceConfig\x12\x30\n\x05state\x18\x04 \x01(\x0e\x32!.google.api.serviceusage.v1.State\"\x95\x03\n\rServiceConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\"\n\x04\x61pis\x18\x03 \x03(\x0b\x32\x14.google.protobuf.Api\x12\x30\n\rdocumentation\x18\x06 \x01(\x0b\x32\x19.google.api.Documentation\x12 \n\x05quota\x18\n \x01(\x0b\x32\x11.google.api.Quota\x12\x32\n\x0e\x61uthentication\x18\x0b \x01(\x0b\x32\x1a.google.api.Authentication\x12 \n\x05usage\x18\x0f \x01(\x0b\x32\x11.google.api.Usage\x12\'\n\tendpoints\x18\x12 \x03(\x0b\x32\x14.google.api.Endpoint\x12\x44\n\x13monitored_resources\x18\x19 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12*\n\nmonitoring\x18\x1c \x01(\x0b\x32\x16.google.api.Monitoring\"+\n\x11OperationMetadata\x12\x16\n\x0eresource_names\x18\x02 \x03(\t*9\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x42\xd8\x01\n\x1e\x63om.google.api.serviceusage.v1B\x0eResourcesProtoP\x01ZDcloud.google.com/go/serviceusage/apiv1/serviceusagepb;serviceusagepb\xaa\x02\x1cGoogle.Cloud.ServiceUsage.V1\xca\x02\x1cGoogle\\Cloud\\ServiceUsage\\V1\xea\x02\x1fGoogle::Cloud::ServiceUsage::V1b\x06proto3"
|
18
|
+
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
|
+
|
21
|
+
begin
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
23
|
+
rescue TypeError => e
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
27
|
+
parsed.clear_dependency
|
28
|
+
serialized = parsed.class.encode(parsed)
|
29
|
+
file = pool.add_serialized_file(serialized)
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
31
|
+
imports = [
|
32
|
+
["google.protobuf.Api", "google/protobuf/api.proto"],
|
33
|
+
["google.api.Documentation", "google/api/documentation.proto"],
|
34
|
+
["google.api.Quota", "google/api/quota.proto"],
|
35
|
+
["google.api.Authentication", "google/api/auth.proto"],
|
36
|
+
["google.api.Usage", "google/api/usage.proto"],
|
37
|
+
["google.api.Endpoint", "google/api/endpoint.proto"],
|
38
|
+
["google.api.MonitoredResourceDescriptor", "google/api/monitored_resource.proto"],
|
39
|
+
["google.api.Monitoring", "google/api/monitoring.proto"],
|
40
|
+
]
|
41
|
+
imports.each do |type_name, expected_filename|
|
42
|
+
import_file = pool.lookup(type_name).file_descriptor
|
43
|
+
if import_file.name != expected_filename
|
44
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
42
45
|
end
|
43
46
|
end
|
47
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
48
|
+
warn "This will become an error in the next major version."
|
44
49
|
end
|
45
50
|
|
46
51
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/api/serviceusage/v1/serviceusage.proto
|
3
4
|
|
@@ -8,60 +9,32 @@ require 'google/api/serviceusage/v1/resources_pb'
|
|
8
9
|
require 'google/longrunning/operations_pb'
|
9
10
|
require 'google/api/client_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
optional :name, :string, 1
|
34
|
-
end
|
35
|
-
add_message "google.api.serviceusage.v1.ListServicesRequest" do
|
36
|
-
optional :parent, :string, 1
|
37
|
-
optional :page_size, :int32, 2
|
38
|
-
optional :page_token, :string, 3
|
39
|
-
optional :filter, :string, 4
|
40
|
-
end
|
41
|
-
add_message "google.api.serviceusage.v1.ListServicesResponse" do
|
42
|
-
repeated :services, :message, 1, "google.api.serviceusage.v1.Service"
|
43
|
-
optional :next_page_token, :string, 2
|
44
|
-
end
|
45
|
-
add_message "google.api.serviceusage.v1.BatchEnableServicesRequest" do
|
46
|
-
optional :parent, :string, 1
|
47
|
-
repeated :service_ids, :string, 2
|
48
|
-
end
|
49
|
-
add_message "google.api.serviceusage.v1.BatchEnableServicesResponse" do
|
50
|
-
repeated :services, :message, 1, "google.api.serviceusage.v1.Service"
|
51
|
-
repeated :failures, :message, 2, "google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure"
|
52
|
-
end
|
53
|
-
add_message "google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure" do
|
54
|
-
optional :service_id, :string, 1
|
55
|
-
optional :error_message, :string, 2
|
56
|
-
end
|
57
|
-
add_message "google.api.serviceusage.v1.BatchGetServicesRequest" do
|
58
|
-
optional :parent, :string, 1
|
59
|
-
repeated :names, :string, 2
|
60
|
-
end
|
61
|
-
add_message "google.api.serviceusage.v1.BatchGetServicesResponse" do
|
62
|
-
repeated :services, :message, 1, "google.api.serviceusage.v1.Service"
|
12
|
+
|
13
|
+
descriptor_data = "\n-google/api/serviceusage/v1/serviceusage.proto\x12\x1agoogle.api.serviceusage.v1\x1a\x1cgoogle/api/annotations.proto\x1a*google/api/serviceusage/v1/resources.proto\x1a#google/longrunning/operations.proto\x1a\x17google/api/client.proto\"$\n\x14\x45nableServiceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"M\n\x15\x45nableServiceResponse\x12\x34\n\x07service\x18\x01 \x01(\x0b\x32#.google.api.serviceusage.v1.Service\"\x92\x02\n\x15\x44isableServiceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\"\n\x1a\x64isable_dependent_services\x18\x02 \x01(\x08\x12l\n\x1a\x63heck_if_service_has_usage\x18\x03 \x01(\x0e\x32H.google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage\"Y\n\x16\x43heckIfServiceHasUsage\x12*\n&CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED\x10\x00\x12\x08\n\x04SKIP\x10\x01\x12\t\n\x05\x43HECK\x10\x02\"N\n\x16\x44isableServiceResponse\x12\x34\n\x07service\x18\x01 \x01(\x0b\x32#.google.api.serviceusage.v1.Service\"!\n\x11GetServiceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\\\n\x13ListServicesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"f\n\x14ListServicesResponse\x12\x35\n\x08services\x18\x01 \x03(\x0b\x32#.google.api.serviceusage.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"A\n\x1a\x42\x61tchEnableServicesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0bservice_ids\x18\x02 \x03(\t\"\xe9\x01\n\x1b\x42\x61tchEnableServicesResponse\x12\x35\n\x08services\x18\x01 \x03(\x0b\x32#.google.api.serviceusage.v1.Service\x12W\n\x08\x66\x61ilures\x18\x02 \x03(\x0b\x32\x45.google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure\x1a:\n\rEnableFailure\x12\x12\n\nservice_id\x18\x01 \x01(\t\x12\x15\n\rerror_message\x18\x02 \x01(\t\"8\n\x17\x42\x61tchGetServicesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\r\n\x05names\x18\x02 \x03(\t\"Q\n\x18\x42\x61tchGetServicesResponse\x12\x35\n\x08services\x18\x01 \x03(\x0b\x32#.google.api.serviceusage.v1.Service2\xe8\t\n\x0cServiceUsage\x12\xba\x01\n\rEnableService\x12\x30.google.api.serviceusage.v1.EnableServiceRequest\x1a\x1d.google.longrunning.Operation\"X\x82\xd3\xe4\x93\x02%\" /v1/{name=*/*/services/*}:enable:\x01*\xca\x41*\n\x15\x45nableServiceResponse\x12\x11OperationMetadata\x12\xbe\x01\n\x0e\x44isableService\x12\x31.google.api.serviceusage.v1.DisableServiceRequest\x1a\x1d.google.longrunning.Operation\"Z\x82\xd3\xe4\x93\x02&\"!/v1/{name=*/*/services/*}:disable:\x01*\xca\x41+\n\x16\x44isableServiceResponse\x12\x11OperationMetadata\x12\x83\x01\n\nGetService\x12-.google.api.serviceusage.v1.GetServiceRequest\x1a#.google.api.serviceusage.v1.Service\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{name=*/*/services/*}\x12\x94\x01\n\x0cListServices\x12/.google.api.serviceusage.v1.ListServicesRequest\x1a\x30.google.api.serviceusage.v1.ListServicesResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{parent=*/*}/services\x12\xd1\x01\n\x13\x42\x61tchEnableServices\x12\x36.google.api.serviceusage.v1.BatchEnableServicesRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02*\"%/v1/{parent=*/*}/services:batchEnable:\x01*\xca\x41\x30\n\x1b\x42\x61tchEnableServicesResponse\x12\x11OperationMetadata\x12\xa9\x01\n\x10\x42\x61tchGetServices\x12\x33.google.api.serviceusage.v1.BatchGetServicesRequest\x1a\x34.google.api.serviceusage.v1.BatchGetServicesResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{parent=*/*}/services:batchGet\x1a\xbc\x01\xca\x41\x1bserviceusage.googleapis.com\xd2\x41\x9a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/service.managementB\xdb\x01\n\x1e\x63om.google.api.serviceusage.v1B\x11ServiceUsageProtoP\x01ZDcloud.google.com/go/serviceusage/apiv1/serviceusagepb;serviceusagepb\xaa\x02\x1cGoogle.Cloud.ServiceUsage.V1\xca\x02\x1cGoogle\\Cloud\\ServiceUsage\\V1\xea\x02\x1fGoogle::Cloud::ServiceUsage::V1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.api.serviceusage.v1.Service", "google/api/serviceusage/v1/resources.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
63
34
|
end
|
64
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
65
38
|
end
|
66
39
|
|
67
40
|
module Google
|
@@ -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 ==
|
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
|
@@ -828,9 +828,9 @@ module Google
|
|
828
828
|
# * (`String`) The path to a service account key file in JSON format
|
829
829
|
# * (`Hash`) A service account key as a Hash
|
830
830
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
831
|
-
# (see the [googleauth docs](https://
|
831
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
832
832
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
833
|
-
# (see the [signet docs](https://
|
833
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
834
834
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
835
835
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
836
836
|
# * (`nil`) indicating no credentials
|
@@ -872,7 +872,9 @@ module Google
|
|
872
872
|
class Configuration
|
873
873
|
extend ::Gapic::Config
|
874
874
|
|
875
|
-
|
875
|
+
DEFAULT_ENDPOINT = "serviceusage.googleapis.com"
|
876
|
+
|
877
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
876
878
|
config_attr :credentials, nil do |value|
|
877
879
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
878
880
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -612,9 +612,9 @@ module Google
|
|
612
612
|
# * (`String`) The path to a service account key file in JSON format
|
613
613
|
# * (`Hash`) A service account key as a Hash
|
614
614
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
615
|
-
# (see the [googleauth docs](https://
|
615
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
616
616
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
617
|
-
# (see the [signet docs](https://
|
617
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
618
618
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
619
619
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
620
620
|
# * (`nil`) indicating no credentials
|
@@ -656,7 +656,9 @@ module Google
|
|
656
656
|
class Configuration
|
657
657
|
extend ::Gapic::Config
|
658
658
|
|
659
|
-
|
659
|
+
DEFAULT_ENDPOINT = "serviceusage.googleapis.com"
|
660
|
+
|
661
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
660
662
|
config_attr :credentials, nil do |value|
|
661
663
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
662
664
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -63,7 +63,8 @@ module Google
|
|
63
63
|
# @return [::String]
|
64
64
|
# Selects the methods to which this rule applies.
|
65
65
|
#
|
66
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
66
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
67
|
+
# details.
|
67
68
|
# @!attribute [rw] oauth
|
68
69
|
# @return [::Google::Api::OAuthRequirements]
|
69
70
|
# The requirements for OAuth credentials.
|
@@ -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?
|
@@ -19,9 +19,10 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Api
|
22
|
-
# An object that describes the schema of a
|
23
|
-
#
|
24
|
-
#
|
22
|
+
# An object that describes the schema of a
|
23
|
+
# {::Google::Api::MonitoredResource MonitoredResource} object using a type name
|
24
|
+
# and a set of labels. For example, the monitored resource descriptor for
|
25
|
+
# Google Compute Engine VM instances has a type of
|
25
26
|
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
26
27
|
# `"zone"` to identify particular VM instances.
|
27
28
|
#
|
@@ -70,11 +71,13 @@ module Google
|
|
70
71
|
# An object representing a resource that can be used for monitoring, logging,
|
71
72
|
# billing, or other purposes. Examples include virtual machine instances,
|
72
73
|
# databases, and storage devices such as disks. The `type` field identifies a
|
73
|
-
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} object
|
74
|
-
# schema. Information in the `labels` field
|
75
|
-
# its attributes according to the schema.
|
76
|
-
# Engine VM instance could be represented by
|
77
|
-
#
|
74
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} object
|
75
|
+
# that describes the resource's schema. Information in the `labels` field
|
76
|
+
# identifies the actual resource and its attributes according to the schema.
|
77
|
+
# For example, a particular Compute Engine VM instance could be represented by
|
78
|
+
# the following object, because the
|
79
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} for
|
80
|
+
# `"gce_instance"` has labels
|
78
81
|
# `"project_id"`, `"instance_id"` and `"zone"`:
|
79
82
|
#
|
80
83
|
# { "type": "gce_instance",
|
@@ -84,10 +87,12 @@ module Google
|
|
84
87
|
# @!attribute [rw] type
|
85
88
|
# @return [::String]
|
86
89
|
# Required. The monitored resource type. This field must match
|
87
|
-
# the `type` field of a
|
88
|
-
#
|
89
|
-
#
|
90
|
-
# the
|
90
|
+
# the `type` field of a
|
91
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor}
|
92
|
+
# object. For example, the type of a Compute Engine VM instance is
|
93
|
+
# `gce_instance`. Some descriptors include the service name in the type; for
|
94
|
+
# example, the type of a Datastream stream is
|
95
|
+
# `datastream.googleapis.com/Stream`.
|
91
96
|
# @!attribute [rw] labels
|
92
97
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
93
98
|
# Required. Values for all of the labels listed in the associated monitored
|
@@ -107,12 +112,12 @@ module Google
|
|
107
112
|
end
|
108
113
|
end
|
109
114
|
|
110
|
-
# Auxiliary metadata for a {::Google::Api::MonitoredResource MonitoredResource}
|
111
|
-
# {::Google::Api::MonitoredResource MonitoredResource} objects contain the
|
112
|
-
# uniquely identify a monitored resource
|
113
|
-
# auxiliary metadata. Monitoring and
|
114
|
-
# pipeline to extract metadata for cloud resources of
|
115
|
-
# the metadata in this message.
|
115
|
+
# Auxiliary metadata for a {::Google::Api::MonitoredResource MonitoredResource}
|
116
|
+
# object. {::Google::Api::MonitoredResource MonitoredResource} objects contain the
|
117
|
+
# minimum set of information to uniquely identify a monitored resource
|
118
|
+
# instance. There is some other useful auxiliary metadata. Monitoring and
|
119
|
+
# Logging use an ingestion pipeline to extract metadata for cloud resources of
|
120
|
+
# all types, and store the metadata in this message.
|
116
121
|
# @!attribute [rw] system_labels
|
117
122
|
# @return [::Google::Protobuf::Struct]
|
118
123
|
# Output only. Values for predefined system metadata labels.
|
@@ -96,11 +96,13 @@ module Google
|
|
96
96
|
# @!attribute [rw] monitored_resource
|
97
97
|
# @return [::String]
|
98
98
|
# The monitored resource type. The type must be defined in
|
99
|
-
# [Service.monitored_resources][google.api.Service.monitored_resources]
|
99
|
+
# [Service.monitored_resources][google.api.Service.monitored_resources]
|
100
|
+
# section.
|
100
101
|
# @!attribute [rw] metrics
|
101
102
|
# @return [::Array<::String>]
|
102
103
|
# Types of the metrics to report to this monitoring destination.
|
103
|
-
# Each type must be defined in
|
104
|
+
# Each type must be defined in
|
105
|
+
# [Service.metrics][google.api.Service.metrics] section.
|
104
106
|
class MonitoringDestination
|
105
107
|
include ::Google::Protobuf::MessageExts
|
106
108
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -86,7 +86,8 @@ module Google
|
|
86
86
|
# @return [::String]
|
87
87
|
# Selects the methods to which this rule applies.
|
88
88
|
#
|
89
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
89
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
90
|
+
# details.
|
90
91
|
# @!attribute [rw] metric_costs
|
91
92
|
# @return [::Google::Protobuf::Map{::String => ::Integer}]
|
92
93
|
# Metrics to update when the selected methods are called, and the associated
|
@@ -81,7 +81,8 @@ module Google
|
|
81
81
|
# Selects the methods to which this rule applies. Use '*' to indicate all
|
82
82
|
# methods in all APIs.
|
83
83
|
#
|
84
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
84
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
85
|
+
# details.
|
85
86
|
# @!attribute [rw] allow_unregistered_calls
|
86
87
|
# @return [::Boolean]
|
87
88
|
# If true, the selected method allows unregistered calls, e.g. calls
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -148,7 +148,7 @@ module Google
|
|
148
148
|
# The mixin construct implies that all methods in `AccessControl` are
|
149
149
|
# also declared with same name and request/response types in
|
150
150
|
# `Storage`. A documentation generator or annotation processor will
|
151
|
-
# see the effective `Storage.GetAcl` method after
|
151
|
+
# see the effective `Storage.GetAcl` method after inherting
|
152
152
|
# documentation and annotations as follows:
|
153
153
|
#
|
154
154
|
# service Storage {
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
# `NullValue` is a singleton enumeration to represent the null value for the
|
88
88
|
# `Value` type union.
|
89
89
|
#
|
90
|
-
#
|
90
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
91
91
|
module NullValue
|
92
92
|
# Null value.
|
93
93
|
NULL_VALUE = 0
|
@@ -38,6 +38,9 @@ module Google
|
|
38
38
|
# @!attribute [rw] syntax
|
39
39
|
# @return [::Google::Protobuf::Syntax]
|
40
40
|
# The source syntax.
|
41
|
+
# @!attribute [rw] edition
|
42
|
+
# @return [::String]
|
43
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
41
44
|
class Type
|
42
45
|
include ::Google::Protobuf::MessageExts
|
43
46
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -172,6 +175,9 @@ module Google
|
|
172
175
|
# @!attribute [rw] syntax
|
173
176
|
# @return [::Google::Protobuf::Syntax]
|
174
177
|
# The source syntax.
|
178
|
+
# @!attribute [rw] edition
|
179
|
+
# @return [::String]
|
180
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
175
181
|
class Enum
|
176
182
|
include ::Google::Protobuf::MessageExts
|
177
183
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -218,6 +224,9 @@ module Google
|
|
218
224
|
|
219
225
|
# Syntax `proto3`.
|
220
226
|
SYNTAX_PROTO3 = 1
|
227
|
+
|
228
|
+
# Syntax `editions`.
|
229
|
+
SYNTAX_EDITIONS = 2
|
221
230
|
end
|
222
231
|
end
|
223
232
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-service_usage-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
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
|