google-cloud-billing-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: 4cad1c8bab5f8a7ed19dfb39b1488b160ea044698f730b547581c9a072ce3711
4
- data.tar.gz: cfeb60d8b5b4caa946ef7899f597fc750a32f59050b20a6915feef16746595c7
3
+ metadata.gz: c703396d2b380a1299c7d004297bbb8490c1c0c355422562e7b257b2e89e2d61
4
+ data.tar.gz: b919cb430eefcacdabcc6e878ef546c0a908b88a8bc55c91fd4f749fb24820e1
5
5
  SHA512:
6
- metadata.gz: 0fa28fe699083b1b85ec92a636d1cb05c361ac243e4cfc1cc6c11429cb05ed3e15c70b659d258c28aaab582da4e2a31d8f10da2abe3d406cc2b61852c3bb5443
7
- data.tar.gz: be5cf2fc107267448f4e84070c6dca112a03549b12e51a8c8434208c9125f1a60b6104e6e926610769069da8088c5d5968c66ef56f6355ebbbb6414d8d17684d
6
+ metadata.gz: ace6d712b4ae70bfa63c753d962a6906e0cf50976b498f1a2c58f1d6e729ff08d09e344eb351f4d1074f9397ce194be9d7a3560535a68c15e3d511b707827417
7
+ data.tar.gz: daac33bf4e7c0a9d5c54ac6856d52e17498f0de19ce2bdd09425a74eed16260df81a3f992b15b13e59c3b4c337646617fb905938f8684ddb970808b2c5615b38
@@ -1347,8 +1347,6 @@ module Google
1347
1347
  # @return [::String,nil]
1348
1348
  # @!attribute [rw] credentials
1349
1349
  # Credentials to send with calls. You may provide any of the following types:
1350
- # * (`String`) The path to a service account key file in JSON format
1351
- # * (`Hash`) A service account key as a Hash
1352
1350
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1353
1351
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1354
1352
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1357,7 +1355,26 @@ module Google
1357
1355
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1358
1356
  # * (`nil`) indicating no credentials
1359
1357
  #
1360
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1358
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1359
+ # is deprecated. Providing an unvalidated credential configuration to
1360
+ # Google APIs can compromise the security of your systems and data.
1361
+ #
1362
+ # @example
1363
+ #
1364
+ # # The recommended way to provide credentials is to use the `make_creds` method
1365
+ # # on the appropriate credentials class for your environment.
1366
+ #
1367
+ # require "googleauth"
1368
+ #
1369
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1370
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1371
+ # )
1372
+ #
1373
+ # client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new do |config|
1374
+ # config.credentials = credentials
1375
+ # end
1376
+ #
1377
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1361
1378
  # external source for authentication to Google Cloud, you must validate it before
1362
1379
  # providing it to a Google API client library. Providing an unvalidated credential
1363
1380
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -15,30 +15,8 @@ require 'google/protobuf/field_mask_pb'
15
15
 
16
16
  descriptor_data = "\n+google/cloud/billing/v1/cloud_billing.proto\x12\x17google.cloud.billing.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto\"\x83\x03\n\x0e\x42illingAccount\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\x04open\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1e\n\x16master_billing_account\x18\x04 \x01(\t\x12\x13\n\x06parent\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcurrency_code\x18\x07 \x01(\tB\x03\xe0\x41\x01:\xb4\x01\xea\x41\xb0\x01\n*cloudbilling.googleapis.com/BillingAccount\x12!billingAccounts/{billing_account}\x12>organizations/{organization}/billingAccounts/{billing_account}*\x0f\x62illingAccounts2\x0e\x62illingAccount\"\xd1\x01\n\x12ProjectBillingInfo\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x14\x62illing_account_name\x18\x03 \x01(\t\x12\x1c\n\x0f\x62illing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03:S\xea\x41P\n.cloudbilling.googleapis.com/ProjectBillingInfo\x12\x1eprojects/{project}/billingInfo\"\\\n\x18GetBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\"h\n\x1aListBillingAccountsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x13\n\x06parent\x18\x04 \x01(\tB\x03\xe0\x41\x01\"y\n\x1bListBillingAccountsResponse\x12\x41\n\x10\x62illing_accounts\x18\x01 \x03(\x0b\x32\'.google.cloud.billing.v1.BillingAccount\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"y\n\x1b\x43reateBillingAccountRequest\x12\x45\n\x0f\x62illing_account\x18\x01 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\x12\x13\n\x06parent\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcf\x01\n\x1bUpdateBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12=\n\x07\x61\x63\x63ount\x18\x02 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x88\x01\n\x1dListProjectBillingInfoRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1eListProjectBillingInfoResponse\x12I\n\x14project_billing_info\x18\x01 \x03(\x0b\x32+.google.cloud.billing.v1.ProjectBillingInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1cGetProjectBillingInfoRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\"\x7f\n\x1fUpdateProjectBillingInfoRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\x14project_billing_info\x18\x02 \x01(\x0b\x32+.google.cloud.billing.v1.ProjectBillingInfo\"\xb3\x01\n\x19MoveBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12T\n\x12\x64\x65stination_parent\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudresourcemanager.googleapis.com/Organization2\xa1\x13\n\x0c\x43loudBilling\x12\x9c\x01\n\x11GetBillingAccount\x12\x31.google.cloud.billing.v1.GetBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{name=billingAccounts/*}\x12\x88\x02\n\x13ListBillingAccounts\x12\x33.google.cloud.billing.v1.ListBillingAccountsRequest\x1a\x34.google.cloud.billing.v1.ListBillingAccountsResponse\"\x85\x01\xda\x41\x00\xda\x41\x06parent\x82\xd3\xe4\x93\x02s\x12\x13/v1/billingAccountsZ.\x12,/v1/{parent=organizations/*}/billingAccountsZ,\x12*/v1/{parent=billingAccounts/*}/subAccounts\x12\xb3\x01\n\x14UpdateBillingAccount\x12\x34.google.cloud.billing.v1.UpdateBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"<\xda\x41\x0cname,account\x82\xd3\xe4\x93\x02\'2\x1c/v1/{name=billingAccounts/*}:\x07\x61\x63\x63ount\x12\xd0\x02\n\x14\x43reateBillingAccount\x12\x34.google.cloud.billing.v1.CreateBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"\xd8\x01\xda\x41\x0f\x62illing_account\xda\x41\x16\x62illing_account,parent\x82\xd3\xe4\x93\x02\xa6\x01\"\x13/v1/billingAccounts:\x0f\x62illing_accountZ?\",/v1/{parent=organizations/*}/billingAccounts:\x0f\x62illing_accountZ=\"*/v1/{parent=billingAccounts/*}/subAccounts:\x0f\x62illing_account\x12\xbf\x01\n\x16ListProjectBillingInfo\x12\x36.google.cloud.billing.v1.ListProjectBillingInfoRequest\x1a\x37.google.cloud.billing.v1.ListProjectBillingInfoResponse\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=billingAccounts/*}/projects\x12\xad\x01\n\x15GetProjectBillingInfo\x12\x35.google.cloud.billing.v1.GetProjectBillingInfoRequest\x1a+.google.cloud.billing.v1.ProjectBillingInfo\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*}/billingInfo\x12\xde\x01\n\x18UpdateProjectBillingInfo\x12\x38.google.cloud.billing.v1.UpdateProjectBillingInfoRequest\x1a+.google.cloud.billing.v1.ProjectBillingInfo\"[\xda\x41\x19name,project_billing_info\x82\xd3\xe4\x93\x02\x39\x1a!/v1/{name=projects/*}/billingInfo:\x14project_billing_info\x12\x8b\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"@\xda\x41\x08resource\x82\xd3\xe4\x93\x02/\x12-/v1/{resource=billingAccounts/*}:getIamPolicy\x12\x95\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"J\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\x32\"-/v1/{resource=billingAccounts/*}:setIamPolicy:\x01*\x12\xc0\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"U\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\x38\"3/v1/{resource=billingAccounts/*}:testIamPermissions:\x01*\x12\xe9\x01\n\x12MoveBillingAccount\x12\x32.google.cloud.billing.v1.MoveBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"v\x82\xd3\xe4\x93\x02p\"!/v1/{name=billingAccounts/*}:move:\x01*ZH\x12\x46/v1/{destination_parent=organizations/*}/{name=billingAccounts/*}:move\x1a\xb5\x01\xca\x41\x1b\x63loudbilling.googleapis.com\xd2\x41\x93\x01https://www.googleapis.com/auth/cloud-billing,https://www.googleapis.com/auth/cloud-billing.readonly,https://www.googleapis.com/auth/cloud-platformB\x80\x02\n\x1b\x63om.google.cloud.billing.v1B\x11\x43loudBillingProtoP\x01Z5cloud.google.com/go/billing/apiv1/billingpb;billingpb\xea\x41\x41\n+cloudresourcemanager.googleapis.com/Project\x12\x12projects/{project}\xea\x41P\n0cloudresourcemanager.googleapis.com/Organization\x12\x1corganizations/{organization}b\x06proto3"
17
17
 
18
- pool = Google::Protobuf::DescriptorPool.generated_pool
19
-
20
- begin
21
- pool.add_serialized_file(descriptor_data)
22
- rescue TypeError
23
- # Compatibility code: will be removed in the next major version.
24
- require 'google/protobuf/descriptor_pb'
25
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
- parsed.clear_dependency
27
- serialized = parsed.class.encode(parsed)
28
- file = pool.add_serialized_file(serialized)
29
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
- imports = [
31
- ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
32
- ]
33
- imports.each do |type_name, expected_filename|
34
- import_file = pool.lookup(type_name).file_descriptor
35
- if import_file.name != expected_filename
36
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
- end
38
- end
39
- warn "Each proto file must use a consistent fully-qualified name."
40
- warn "This will become an error in the next major version."
41
- end
18
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
19
+ pool.add_serialized_file(descriptor_data)
42
20
 
43
21
  module Google
44
22
  module Cloud
@@ -427,8 +427,6 @@ module Google
427
427
  # @return [::String,nil]
428
428
  # @!attribute [rw] credentials
429
429
  # Credentials to send with calls. You may provide any of the following types:
430
- # * (`String`) The path to a service account key file in JSON format
431
- # * (`Hash`) A service account key as a Hash
432
430
  # * (`Google::Auth::Credentials`) A googleauth credentials object
433
431
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
434
432
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -437,7 +435,26 @@ module Google
437
435
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
438
436
  # * (`nil`) indicating no credentials
439
437
  #
440
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
438
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
439
+ # is deprecated. Providing an unvalidated credential configuration to
440
+ # Google APIs can compromise the security of your systems and data.
441
+ #
442
+ # @example
443
+ #
444
+ # # The recommended way to provide credentials is to use the `make_creds` method
445
+ # # on the appropriate credentials class for your environment.
446
+ #
447
+ # require "googleauth"
448
+ #
449
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
450
+ # json_key_io: ::File.open("/path/to/keyfile.json")
451
+ # )
452
+ #
453
+ # client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
454
+ # config.credentials = credentials
455
+ # end
456
+ #
457
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
441
458
  # external source for authentication to Google Cloud, you must validate it before
442
459
  # providing it to a Google API client library. Providing an unvalidated credential
443
460
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -14,31 +14,8 @@ require 'google/type/money_pb'
14
14
 
15
15
  descriptor_data = "\n+google/cloud/billing/v1/cloud_catalog.proto\x12\x17google.cloud.billing.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\x1a\x17google/type/money.proto\"\x9d\x01\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nservice_id\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1c\n\x14\x62usiness_entity_name\x18\x04 \x01(\t:<\xea\x41\x39\n#cloudbilling.googleapis.com/Service\x12\x12services/{service}\"\xe2\x02\n\x03Sku\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06sku_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x33\n\x08\x63\x61tegory\x18\x04 \x01(\x0b\x32!.google.cloud.billing.v1.Category\x12\x17\n\x0fservice_regions\x18\x05 \x03(\t\x12:\n\x0cpricing_info\x18\x06 \x03(\x0b\x32$.google.cloud.billing.v1.PricingInfo\x12\x1d\n\x15service_provider_name\x18\x07 \x01(\t\x12:\n\x0cgeo_taxonomy\x18\x08 \x01(\x0b\x32$.google.cloud.billing.v1.GeoTaxonomy:C\xea\x41@\n\x1f\x63loudbilling.googleapis.com/Sku\x12\x1dservices/{service}/skus/{sku}\"m\n\x08\x43\x61tegory\x12\x1c\n\x14service_display_name\x18\x01 \x01(\t\x12\x17\n\x0fresource_family\x18\x02 \x01(\t\x12\x16\n\x0eresource_group\x18\x03 \x01(\t\x12\x12\n\nusage_type\x18\x04 \x01(\t\"\x80\x02\n\x0bPricingInfo\x12\x32\n\x0e\x65\x66\x66\x65\x63tive_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07summary\x18\x02 \x01(\t\x12\x46\n\x12pricing_expression\x18\x03 \x01(\x0b\x32*.google.cloud.billing.v1.PricingExpression\x12\x42\n\x10\x61ggregation_info\x18\x04 \x01(\x0b\x32(.google.cloud.billing.v1.AggregationInfo\x12 \n\x18\x63urrency_conversion_rate\x18\x05 \x01(\x01\"\xd3\x02\n\x11PricingExpression\x12\x12\n\nusage_unit\x18\x01 \x01(\t\x12\x18\n\x10\x64isplay_quantity\x18\x02 \x01(\x01\x12I\n\x0ctiered_rates\x18\x03 \x03(\x0b\x32\x33.google.cloud.billing.v1.PricingExpression.TierRate\x12\x1e\n\x16usage_unit_description\x18\x04 \x01(\t\x12\x11\n\tbase_unit\x18\x05 \x01(\t\x12\x1d\n\x15\x62\x61se_unit_description\x18\x06 \x01(\t\x12#\n\x1b\x62\x61se_unit_conversion_factor\x18\x07 \x01(\x01\x1aN\n\x08TierRate\x12\x1a\n\x12start_usage_amount\x18\x01 \x01(\x01\x12&\n\nunit_price\x18\x02 \x01(\x0b\x32\x12.google.type.Money\"\x84\x03\n\x0f\x41ggregationInfo\x12T\n\x11\x61ggregation_level\x18\x01 \x01(\x0e\x32\x39.google.cloud.billing.v1.AggregationInfo.AggregationLevel\x12Z\n\x14\x61ggregation_interval\x18\x02 \x01(\x0e\x32<.google.cloud.billing.v1.AggregationInfo.AggregationInterval\x12\x19\n\x11\x61ggregation_count\x18\x03 \x01(\x05\"O\n\x10\x41ggregationLevel\x12!\n\x1d\x41GGREGATION_LEVEL_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x01\x12\x0b\n\x07PROJECT\x10\x02\"S\n\x13\x41ggregationInterval\x12$\n AGGREGATION_INTERVAL_UNSPECIFIED\x10\x00\x12\t\n\x05\x44\x41ILY\x10\x01\x12\x0b\n\x07MONTHLY\x10\x02\"\xa3\x01\n\x0bGeoTaxonomy\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32).google.cloud.billing.v1.GeoTaxonomy.Type\x12\x0f\n\x07regions\x18\x02 \x03(\t\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06GLOBAL\x10\x01\x12\x0c\n\x08REGIONAL\x10\x02\x12\x12\n\x0eMULTI_REGIONAL\x10\x03\"<\n\x13ListServicesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"c\n\x14ListServicesResponse\x12\x32\n\x08services\x18\x01 \x03(\x0b\x32 .google.cloud.billing.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xea\x01\n\x0fListSkusRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#cloudbilling.googleapis.com/Service\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcurrency_code\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"W\n\x10ListSkusResponse\x12*\n\x04skus\x18\x01 \x03(\x0b\x32\x1c.google.cloud.billing.v1.Sku\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xde\x03\n\x0c\x43loudCatalog\x12\x84\x01\n\x0cListServices\x12,.google.cloud.billing.v1.ListServicesRequest\x1a-.google.cloud.billing.v1.ListServicesResponse\"\x17\xda\x41\x00\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/services\x12\x8e\x01\n\x08ListSkus\x12(.google.cloud.billing.v1.ListSkusRequest\x1a).google.cloud.billing.v1.ListSkusResponse\"-\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{parent=services/*}/skus\x1a\xb5\x01\xca\x41\x1b\x63loudbilling.googleapis.com\xd2\x41\x93\x01https://www.googleapis.com/auth/cloud-billing,https://www.googleapis.com/auth/cloud-billing.readonly,https://www.googleapis.com/auth/cloud-platformB\x8d\x01\n\x1b\x63om.google.cloud.billing.v1B\x11\x43loudCatalogProtoP\x01Z5cloud.google.com/go/billing/apiv1/billingpb;billingpb\xa2\x02\x07\x43LDCTLG\xaa\x02\x17Google.Cloud.Billing.V1b\x06proto3"
16
16
 
17
- pool = Google::Protobuf::DescriptorPool.generated_pool
18
-
19
- begin
20
- pool.add_serialized_file(descriptor_data)
21
- rescue TypeError
22
- # Compatibility code: will be removed in the next major version.
23
- require 'google/protobuf/descriptor_pb'
24
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
- parsed.clear_dependency
26
- serialized = parsed.class.encode(parsed)
27
- file = pool.add_serialized_file(serialized)
28
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
- imports = [
30
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
- ["google.type.Money", "google/type/money.proto"],
32
- ]
33
- imports.each do |type_name, expected_filename|
34
- import_file = pool.lookup(type_name).file_descriptor
35
- if import_file.name != expected_filename
36
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
- end
38
- end
39
- warn "Each proto file must use a consistent fully-qualified name."
40
- warn "This will become an error in the next major version."
41
- end
17
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
18
+ pool.add_serialized_file(descriptor_data)
42
19
 
43
20
  module Google
44
21
  module Cloud
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Billing
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "1.6.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-billing-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
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: '3.1'
115
+ version: '3.2'
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="