google-cloud-service_usage-v1 1.5.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e479187d7ca72a6250489d2ab7802bdcb205bd4a9f3c08f1dc17fa0c6394d3bd
4
- data.tar.gz: 7355882eeb613509ed27ec5cc26130360978e81d4f406ce865516cf42cf0df78
3
+ metadata.gz: 77c04595b20b570d2fcf621ed0c0bba6a50f93d2681a0badeb5ee42a28d30227
4
+ data.tar.gz: 7d5900af3aac708b651825c3492f5e5ae1534d7c85995749de028d9af9eeff4e
5
5
  SHA512:
6
- metadata.gz: 93bc2320b708a9db79f8a1d7eeefb76db13c7129e412a7a7e78ff2070441fd83f31b5e6648a8343c228588353a28f0e8c2487dffb337511185904af7bd728fcc
7
- data.tar.gz: f875c531aa5db73d1d6fbf5ad950d17196f82f8e270dc40354cc5fb5fb30ce81ea1ee30576989815920af7db6d2b4be0c53b5b3e0620c2f387311ada836d4483
6
+ metadata.gz: 25050552456e2314acbf6217b3eae525f897f29385de467932fb1af153b3d197c7db1d5c7006cfbd7127c3ce34d7817001306a54a2374f93b71f691501e87c98
7
+ data.tar.gz: 17cdb876c087e7027aaeee6197a085e42fffa1dc1752fa7b60b88c758d315d65cbc67503f0df1dae6549bc619ca6ef5a24bf880c75312efd6d3665264cc38d08
@@ -17,37 +17,8 @@ require 'google/protobuf/api_pb'
17
17
 
18
18
  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\x19google/api/resource.proto\x1a\x16google/api/usage.proto\x1a\x19google/protobuf/api.proto\"\xbd\x02\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:\xa6\x01\xea\x41\xa2\x01\n#serviceusage.googleapis.com/Service\x12%projects/{project}/services/{service}\x12#folders/{folder}/services/{service}\x12/organizations/{organization}/services/{service}\"\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"
19
19
 
20
- pool = Google::Protobuf::DescriptorPool.generated_pool
21
-
22
- begin
23
- pool.add_serialized_file(descriptor_data)
24
- rescue TypeError
25
- # Compatibility code: will be removed in the next major version.
26
- require 'google/protobuf/descriptor_pb'
27
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
- parsed.clear_dependency
29
- serialized = parsed.class.encode(parsed)
30
- file = pool.add_serialized_file(serialized)
31
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
- imports = [
33
- ["google.protobuf.Api", "google/protobuf/api.proto"],
34
- ["google.api.Documentation", "google/api/documentation.proto"],
35
- ["google.api.Quota", "google/api/quota.proto"],
36
- ["google.api.Authentication", "google/api/auth.proto"],
37
- ["google.api.Usage", "google/api/usage.proto"],
38
- ["google.api.Endpoint", "google/api/endpoint.proto"],
39
- ["google.api.MonitoredResourceDescriptor", "google/api/monitored_resource.proto"],
40
- ["google.api.Monitoring", "google/api/monitoring.proto"],
41
- ]
42
- imports.each do |type_name, expected_filename|
43
- import_file = pool.lookup(type_name).file_descriptor
44
- if import_file.name != expected_filename
45
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
46
- end
47
- end
48
- warn "Each proto file must use a consistent fully-qualified name."
49
- warn "This will become an error in the next major version."
50
- end
20
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
21
+ pool.add_serialized_file(descriptor_data)
51
22
 
52
23
  module Google
53
24
  module Cloud
@@ -12,30 +12,8 @@ require 'google/longrunning/operations_pb'
12
12
 
13
13
  descriptor_data = "\n-google/api/serviceusage/v1/serviceusage.proto\x12\x1agoogle.api.serviceusage.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a*google/api/serviceusage/v1/resources.proto\x1a#google/longrunning/operations.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\xca\x41*\n\x15\x45nableServiceResponse\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02%\" /v1/{name=*/*/services/*}:enable:\x01*\x12\xbe\x01\n\x0e\x44isableService\x12\x31.google.api.serviceusage.v1.DisableServiceRequest\x1a\x1d.google.longrunning.Operation\"Z\xca\x41+\n\x16\x44isableServiceResponse\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02&\"!/v1/{name=*/*/services/*}:disable:\x01*\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\xca\x41\x30\n\x1b\x42\x61tchEnableServicesResponse\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02*\"%/v1/{parent=*/*}/services:batchEnable:\x01*\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
14
 
15
- pool = Google::Protobuf::DescriptorPool.generated_pool
16
-
17
- begin
18
- pool.add_serialized_file(descriptor_data)
19
- rescue TypeError
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}"
34
- end
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."
38
- end
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
39
17
 
40
18
  module Google
41
19
  module Cloud
@@ -869,8 +869,6 @@ module Google
869
869
  # @return [::String,nil]
870
870
  # @!attribute [rw] credentials
871
871
  # Credentials to send with calls. You may provide any of the following types:
872
- # * (`String`) The path to a service account key file in JSON format
873
- # * (`Hash`) A service account key as a Hash
874
872
  # * (`Google::Auth::Credentials`) A googleauth credentials object
875
873
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
876
874
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -879,7 +877,26 @@ module Google
879
877
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
880
878
  # * (`nil`) indicating no credentials
881
879
  #
882
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
880
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
881
+ # is deprecated. Providing an unvalidated credential configuration to
882
+ # Google APIs can compromise the security of your systems and data.
883
+ #
884
+ # @example
885
+ #
886
+ # # The recommended way to provide credentials is to use the `make_creds` method
887
+ # # on the appropriate credentials class for your environment.
888
+ #
889
+ # require "googleauth"
890
+ #
891
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
892
+ # json_key_io: ::File.open("/path/to/keyfile.json")
893
+ # )
894
+ #
895
+ # client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new do |config|
896
+ # config.credentials = credentials
897
+ # end
898
+ #
899
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
883
900
  # external source for authentication to Google Cloud, you must validate it before
884
901
  # providing it to a Google API client library. Providing an unvalidated credential
885
902
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -634,8 +634,6 @@ module Google
634
634
  # @return [::String,nil]
635
635
  # @!attribute [rw] credentials
636
636
  # Credentials to send with calls. You may provide any of the following types:
637
- # * (`String`) The path to a service account key file in JSON format
638
- # * (`Hash`) A service account key as a Hash
639
637
  # * (`Google::Auth::Credentials`) A googleauth credentials object
640
638
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
641
639
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -644,7 +642,26 @@ module Google
644
642
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
645
643
  # * (`nil`) indicating no credentials
646
644
  #
647
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
646
+ # is deprecated. Providing an unvalidated credential configuration to
647
+ # Google APIs can compromise the security of your systems and data.
648
+ #
649
+ # @example
650
+ #
651
+ # # The recommended way to provide credentials is to use the `make_creds` method
652
+ # # on the appropriate credentials class for your environment.
653
+ #
654
+ # require "googleauth"
655
+ #
656
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
657
+ # json_key_io: ::File.open("/path/to/keyfile.json")
658
+ # )
659
+ #
660
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
661
+ # config.credentials = credentials
662
+ # end
663
+ #
664
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
648
665
  # external source for authentication to Google Cloud, you must validate it before
649
666
  # providing it to a Google API client library. Providing an unvalidated credential
650
667
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceUsage
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "1.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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 inherting
151
+ # see the effective `Storage.GetAcl` method after inheriting
152
152
  # documentation and annotations as follows:
153
153
  #
154
154
  # service Storage {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_usage-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: '3.1'
105
+ version: '3.2'
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="