google-cloud-capacity_planner-v1beta 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/client.rb +20 -3
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/operations.rb +20 -3
- data/lib/google/cloud/capacity_planner/v1beta/version.rb +1 -1
- data/lib/google/cloud/capacityplanner/v1beta/allocation_pb.rb +2 -24
- data/lib/google/cloud/capacityplanner/v1beta/future_reservation_pb.rb +2 -25
- data/lib/google/cloud/capacityplanner/v1beta/location_pb.rb +2 -23
- data/lib/google/cloud/capacityplanner/v1beta/resource_pb.rb +2 -23
- data/lib/google/cloud/capacityplanner/v1beta/usage_service_pb.rb +2 -27
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75b55e227c4c0dd3a05e44b7e31c87488cb758831cefdf348912721b00f43382
|
|
4
|
+
data.tar.gz: 7f21baebc8be4a56172a879c71bfe6cb7ec93a9c01b2a8889d83a41dae332bd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e995b43b68fa5efd4d6c1d6e85301b9906168c5e7b6826da3b0274f0a6d1f4a21b3bef4d70d3280a50ad706bb702a38d46f532232aadcaa80d6c2a43f9a478c4
|
|
7
|
+
data.tar.gz: 8a6d4e84aed8f0a2dd2ce9a050aa4b406bf80eb3e1670599eba160e4b9c50cecc42c00c64065902d760443e14b344ed94d8c20dd1c2b5e4f0fdcb5d0c5dea8c5
|
|
@@ -1025,8 +1025,6 @@ module Google
|
|
|
1025
1025
|
# @return [::String,nil]
|
|
1026
1026
|
# @!attribute [rw] credentials
|
|
1027
1027
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1028
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
1029
|
-
# * (`Hash`) A service account key as a Hash
|
|
1030
1028
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1031
1029
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1032
1030
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -1035,7 +1033,26 @@ module Google
|
|
|
1035
1033
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1036
1034
|
# * (`nil`) indicating no credentials
|
|
1037
1035
|
#
|
|
1038
|
-
# Warning:
|
|
1036
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
1037
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
1038
|
+
# Google APIs can compromise the security of your systems and data.
|
|
1039
|
+
#
|
|
1040
|
+
# @example
|
|
1041
|
+
#
|
|
1042
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
1043
|
+
# # on the appropriate credentials class for your environment.
|
|
1044
|
+
#
|
|
1045
|
+
# require "googleauth"
|
|
1046
|
+
#
|
|
1047
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
1048
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
1049
|
+
# )
|
|
1050
|
+
#
|
|
1051
|
+
# client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.new do |config|
|
|
1052
|
+
# config.credentials = credentials
|
|
1053
|
+
# end
|
|
1054
|
+
#
|
|
1055
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
1039
1056
|
# external source for authentication to Google Cloud, you must validate it before
|
|
1040
1057
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
1041
1058
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -9,30 +9,8 @@ require 'google/protobuf/timestamp_pb'
|
|
|
9
9
|
|
|
10
10
|
descriptor_data = "\n4google/cloud/capacityplanner/v1beta/allocation.proto\x12#google.cloud.capacityplanner.v1beta\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd4\r\n\nAllocation\x12\x64\n\x13specific_allocation\x18\x06 \x01(\x0b\x32\x45.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocationH\x00\x12\n\n\x02id\x18\x01 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04zone\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\nallocation\x18\x05 \x01(\t\x12\x18\n\x10owner_project_id\x18\n \x01(\t\x12\x46\n\x06status\x18\x07 \x01(\x0e\x32\x36.google.cloud.capacityplanner.v1beta.Allocation.Status\x12U\n\x0eshare_settings\x18\x08 \x01(\x0b\x32=.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings\x12\x34\n\x10\x61uto_delete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x85\x07\n\x15SpecificSKUAllocation\x12~\n\x13instance_properties\x18\x01 \x01(\x0b\x32\x61.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x12\n\nused_count\x18\x03 \x01(\x03\x12\x15\n\rassured_count\x18\x04 \x01(\x03\x1a\xb1\x05\n\x1b\x41llocatedInstanceProperties\x12\x14\n\x0cmachine_type\x18\x01 \x01(\t\x12\x8e\x01\n\x11guest_accelerator\x18\x02 \x03(\x0b\x32s.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig\x12\x18\n\x10min_cpu_platform\x18\x03 \x01(\t\x12\x82\x01\n\tlocal_ssd\x18\x04 \x03(\x0b\x32o.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk\x1a\x30\n\x11\x41\x63\x63\x65leratorConfig\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\x1a\x99\x02\n\rAllocatedDisk\x12\x14\n\x0c\x64isk_size_gb\x18\x01 \x01(\x03\x12\x95\x01\n\x0e\x64isk_interface\x18\x02 \x01(\x0e\x32}.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface\"Z\n\rDiskInterface\x12\x1e\n\x1a\x44ISK_INTERFACE_UNSPECIFIED\x10\x00\x12\x08\n\x04SCSI\x10\x01\x12\x08\n\x04NVME\x10\x02\x12\n\n\x06NVDIMM\x10\x03\x12\t\n\x05ISCSI\x10\x04\x1a\x88\x02\n\rShareSettings\x12[\n\nshare_type\x18\x01 \x01(\x0e\x32G.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings.ShareType\x12\x10\n\x08projects\x18\x02 \x03(\t\"\x87\x01\n\tShareType\x12\x1a\n\x16SHARE_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cORGANIZATION\x10\x01\x12\x15\n\x11SPECIFIC_PROJECTS\x10\x02\x12\t\n\x05LOCAL\x10\x03\x12*\n&DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS\x10\x04\"b\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07INVALID\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\t\n\x05READY\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x42\x06\n\x04typeB\x84\x02\n\'com.google.cloud.capacityplanner.v1betaB\x0f\x41llocationProtoP\x01ZQcloud.google.com/go/capacityplanner/apiv1beta/capacityplannerpb;capacityplannerpb\xaa\x02#Google.Cloud.CapacityPlanner.V1Beta\xca\x02#Google\\Cloud\\CapacityPlanner\\V1beta\xea\x02&Google::Cloud::CapacityPlanner::V1betab\x06proto3"
|
|
11
11
|
|
|
12
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
-
|
|
14
|
-
begin
|
|
15
|
-
pool.add_serialized_file(descriptor_data)
|
|
16
|
-
rescue TypeError
|
|
17
|
-
# Compatibility code: will be removed in the next major version.
|
|
18
|
-
require 'google/protobuf/descriptor_pb'
|
|
19
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
-
parsed.clear_dependency
|
|
21
|
-
serialized = parsed.class.encode(parsed)
|
|
22
|
-
file = pool.add_serialized_file(serialized)
|
|
23
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
-
imports = [
|
|
25
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
26
|
-
]
|
|
27
|
-
imports.each do |type_name, expected_filename|
|
|
28
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
-
if import_file.name != expected_filename
|
|
30
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
-
warn "This will become an error in the next major version."
|
|
35
|
-
end
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
36
14
|
|
|
37
15
|
module Google
|
|
38
16
|
module Cloud
|
|
@@ -10,31 +10,8 @@ require 'google/protobuf/timestamp_pb'
|
|
|
10
10
|
|
|
11
11
|
descriptor_data = "\n<google/cloud/capacityplanner/v1beta/future_reservation.proto\x12#google.cloud.capacityplanner.v1beta\x1a\x34google/cloud/capacityplanner/v1beta/allocation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc1\x0b\n\x11\x46utureReservation\x12o\n\x17specific_sku_properties\x18\x08 \x01(\x0b\x32L.google.cloud.capacityplanner.v1beta.FutureReservation.SpecificSKUPropertiesH\x00\x12\n\n\x02id\x18\x01 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04zone\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x1a\n\x12\x66uture_reservation\x18\x07 \x01(\t\x12\x18\n\x10owner_project_id\x18\x0f \x01(\t\x12V\n\x0btime_window\x18\t \x01(\x0b\x32\x41.google.cloud.capacityplanner.v1beta.FutureReservation.TimeWindow\x12U\n\x0eshare_settings\x18\n \x01(\x0b\x32=.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings\x12\x13\n\x0bname_prefix\x18\x0b \x01(\t\x12M\n\x06status\x18\x0c \x01(\x0b\x32=.google.cloud.capacityplanner.v1beta.FutureReservation.Status\x12I\n%auto_created_reservations_delete_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n%auto_delete_auto_created_reservations\x18\x0e \x01(\x08\x1a\xac\x01\n\x15SpecificSKUProperties\x12~\n\x13instance_properties\x18\x01 \x01(\x0b\x32\x61.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties\x12\x13\n\x0btotal_count\x18\x02 \x01(\x03\x1aj\n\nTimeWindow\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xf4\x03\n\x06Status\x12k\n\x12procurement_status\x18\x01 \x01(\x0e\x32O.google.cloud.capacityplanner.v1beta.FutureReservation.Status.ProcurementStatus\x12-\n\tlock_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12!\n\x19\x61uto_created_reservations\x18\x03 \x03(\t\x12\x17\n\x0f\x66ulfilled_count\x18\x04 \x01(\x03\"\x91\x02\n\x11ProcurementStatus\x12\"\n\x1ePROCUREMENT_STATUS_UNSPECIFIED\x10\x00\x12\x14\n\x10PENDING_APPROVAL\x10\x01\x12\x0c\n\x08\x41PPROVED\x10\x02\x12\r\n\tCOMMITTED\x10\x03\x12\x0c\n\x08\x44\x45\x43LINED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\r\n\tPROCURING\x10\x06\x12\x10\n\x0cPROVISIONING\x10\x07\x12\r\n\tFULFILLED\x10\x08\x12\n\n\x06\x46\x41ILED\x10\t\x12\x1e\n\x1a\x46\x41ILED_PARTIALLY_FULFILLED\x10\n\x12\x0c\n\x08\x44RAFTING\x10\x0b\x12\x1e\n\x1aPENDING_AMENDMENT_APPROVAL\x10\x0c\x42\x06\n\x04typeB\x8b\x02\n\'com.google.cloud.capacityplanner.v1betaB\x16\x46utureReservationProtoP\x01ZQcloud.google.com/go/capacityplanner/apiv1beta/capacityplannerpb;capacityplannerpb\xaa\x02#Google.Cloud.CapacityPlanner.V1Beta\xca\x02#Google\\Cloud\\CapacityPlanner\\V1beta\xea\x02&Google::Cloud::CapacityPlanner::V1betab\x06proto3"
|
|
12
12
|
|
|
13
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
-
|
|
15
|
-
begin
|
|
16
|
-
pool.add_serialized_file(descriptor_data)
|
|
17
|
-
rescue TypeError
|
|
18
|
-
# Compatibility code: will be removed in the next major version.
|
|
19
|
-
require 'google/protobuf/descriptor_pb'
|
|
20
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
21
|
-
parsed.clear_dependency
|
|
22
|
-
serialized = parsed.class.encode(parsed)
|
|
23
|
-
file = pool.add_serialized_file(serialized)
|
|
24
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
|
-
imports = [
|
|
26
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
27
|
-
["google.cloud.capacityplanner.v1beta.Allocation.ShareSettings", "google/cloud/capacityplanner/v1beta/allocation.proto"],
|
|
28
|
-
]
|
|
29
|
-
imports.each do |type_name, expected_filename|
|
|
30
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
31
|
-
if import_file.name != expected_filename
|
|
32
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
36
|
-
warn "This will become an error in the next major version."
|
|
37
|
-
end
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
38
15
|
|
|
39
16
|
module Google
|
|
40
17
|
module Cloud
|
|
@@ -9,29 +9,8 @@ require 'google/api/field_behavior_pb'
|
|
|
9
9
|
|
|
10
10
|
descriptor_data = "\n2google/cloud/capacityplanner/v1beta/location.proto\x12#google.cloud.capacityplanner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xe1\x02\n\x12LocationIdentifier\x12J\n\x0elocation_level\x18\x01 \x01(\x0e\x32\x32.google.cloud.capacityplanner.v1beta.LocationLevel\x12\x13\n\x06source\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x10linked_locations\x18\x03 \x03(\x0b\x32\x46.google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocationB\x03\xe0\x41\x01\x1a\x82\x01\n\x0eLinkedLocation\x12J\n\x0elocation_level\x18\x01 \x01(\x0e\x32\x32.google.cloud.capacityplanner.v1beta.LocationLevel\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05label\x18\x03 \x01(\t*\x7f\n\rLocationLevel\x12\x1e\n\x1aLOCATION_LEVEL_UNSPECIFIED\x10\x00\x12\n\n\x06REGION\x10\x01\x12\x08\n\x04ZONE\x10\x02\x12\n\n\x06GLOBAL\x10\x03\x12\t\n\x05METRO\x10\x04\x12\x0f\n\x0b\x44UAL_REGION\x10\x05\x12\x10\n\x0cMULTI_REGION\x10\x06\x42\x82\x02\n\'com.google.cloud.capacityplanner.v1betaB\rLocationProtoP\x01ZQcloud.google.com/go/capacityplanner/apiv1beta/capacityplannerpb;capacityplannerpb\xaa\x02#Google.Cloud.CapacityPlanner.V1Beta\xca\x02#Google\\Cloud\\CapacityPlanner\\V1beta\xea\x02&Google::Cloud::CapacityPlanner::V1betab\x06proto3"
|
|
11
11
|
|
|
12
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
-
|
|
14
|
-
begin
|
|
15
|
-
pool.add_serialized_file(descriptor_data)
|
|
16
|
-
rescue TypeError
|
|
17
|
-
# Compatibility code: will be removed in the next major version.
|
|
18
|
-
require 'google/protobuf/descriptor_pb'
|
|
19
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
-
parsed.clear_dependency
|
|
21
|
-
serialized = parsed.class.encode(parsed)
|
|
22
|
-
file = pool.add_serialized_file(serialized)
|
|
23
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
-
imports = [
|
|
25
|
-
]
|
|
26
|
-
imports.each do |type_name, expected_filename|
|
|
27
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
28
|
-
if import_file.name != expected_filename
|
|
29
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
33
|
-
warn "This will become an error in the next major version."
|
|
34
|
-
end
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
35
14
|
|
|
36
15
|
module Google
|
|
37
16
|
module Cloud
|
|
@@ -9,29 +9,8 @@ require 'google/api/field_behavior_pb'
|
|
|
9
9
|
|
|
10
10
|
descriptor_data = "\n2google/cloud/capacityplanner/v1beta/resource.proto\x12#google.cloud.capacityplanner.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xaf\x01\n\x11ResourceContainer\x12I\n\x04type\x18\x01 \x01(\x0e\x32;.google.cloud.capacityplanner.v1beta.ResourceContainer.Type\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02\">\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PROJECT\x10\x01\x12\n\n\x06\x46OLDER\x10\x02\x12\x07\n\x03ORG\x10\x03\"\x91\x01\n\rResourceIdKey\x12\x1c\n\rresource_code\x18\x02 \x01(\tB\x03\xe0\x41\x02H\x00\x12Q\n\x0bresource_id\x18\x01 \x01(\x0b\x32\x37.google.cloud.capacityplanner.v1beta.ResourceIdentifierB\x03\xe0\x41\x02\x42\x0f\n\rdemand_fields\"\x96\x01\n\x12ResourceIdentifier\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12S\n\x13resource_attributes\x18\x03 \x03(\x0b\x32\x36.google.cloud.capacityplanner.v1beta.ResourceAttribute\"c\n\x11ResourceAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.cloud.capacityplanner.v1beta.ResourceValue\"\x83\x01\n\rResourceValue\x12\x37\n\x04unit\x18\x01 \x01(\x0e\x32).google.cloud.capacityplanner.v1beta.Unit\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.google.cloud.capacityplanner.v1beta.Value\"m\n\x05Value\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x02 \x01(\tH\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x42\x07\n\x05value*\xec\x01\n\x04Unit\x12\x14\n\x10UNIT_UNSPECIFIED\x10\x00\x12\x0e\n\nUNIT_COUNT\x10\x01\x12\x06\n\x02KB\x10\x02\x12\x06\n\x02GB\x10\x03\x12\x06\n\x02TB\x10\x04\x12\x07\n\x03MIB\x10\x11\x12\x07\n\x03GIB\x10\x05\x12\x07\n\x03TIB\x10\x06\x12\x07\n\x03QPS\x10\x07\x12\x06\n\x02MB\x10\x08\x12\x07\n\x03PIB\x10\t\x12\x0c\n\x04TBPS\x10\n\x1a\x02\x08\x01\x12\r\n\tGBPS_BITS\x10\x0b\x12\x0c\n\x08GIB_BITS\x10\x0c\x12\r\n\tMBPS_BITS\x10\r\x12\x0e\n\nMBPS_BYTES\x10\x0e\x12\r\n\tTBPS_BITS\x10\x0f\x12\x0e\n\nTBPS_BYTES\x10\x10\x12\x08\n\x04KOPS\x10\x12\x42\x82\x02\n\'com.google.cloud.capacityplanner.v1betaB\rResourceProtoP\x01ZQcloud.google.com/go/capacityplanner/apiv1beta/capacityplannerpb;capacityplannerpb\xaa\x02#Google.Cloud.CapacityPlanner.V1Beta\xca\x02#Google\\Cloud\\CapacityPlanner\\V1beta\xea\x02&Google::Cloud::CapacityPlanner::V1betab\x06proto3"
|
|
11
11
|
|
|
12
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
-
|
|
14
|
-
begin
|
|
15
|
-
pool.add_serialized_file(descriptor_data)
|
|
16
|
-
rescue TypeError
|
|
17
|
-
# Compatibility code: will be removed in the next major version.
|
|
18
|
-
require 'google/protobuf/descriptor_pb'
|
|
19
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
-
parsed.clear_dependency
|
|
21
|
-
serialized = parsed.class.encode(parsed)
|
|
22
|
-
file = pool.add_serialized_file(serialized)
|
|
23
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
-
imports = [
|
|
25
|
-
]
|
|
26
|
-
imports.each do |type_name, expected_filename|
|
|
27
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
28
|
-
if import_file.name != expected_filename
|
|
29
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
33
|
-
warn "This will become an error in the next major version."
|
|
34
|
-
end
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
35
14
|
|
|
36
15
|
module Google
|
|
37
16
|
module Cloud
|
|
@@ -17,33 +17,8 @@ require 'google/type/date_pb'
|
|
|
17
17
|
|
|
18
18
|
descriptor_data = "\n7google/cloud/capacityplanner/v1beta/usage_service.proto\x12#google.cloud.capacityplanner.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/capacityplanner/v1beta/allocation.proto\x1a<google/cloud/capacityplanner/v1beta/future_reservation.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xf4\x04\n\x1aQueryUsageHistoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12Y\n\x0elocation_level\x18\x0b \x01(\x0e\x32<.google.cloud.capacityplanner.v1beta.TimeSeries.LocationTypeB\x03\xe0\x41\x01\x12\x14\n\x07is_spot\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\x0emachine_family\x18\x02 \x01(\t\x12M\n\rmachine_shape\x18\r \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.MachineShapeB\x03\xe0\x41\x01\x12\x16\n\tdisk_type\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x63onfidential_mode\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08gpu_type\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08tpu_type\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x63loud_resource_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x18usage_aggregation_method\x18\x04 \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod\x12*\n\nstart_date\x18\t \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\n \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\"i\n\x1bQueryUsageHistoriesResponse\x12J\n\x0fusage_histories\x18\x01 \x03(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.UsageHistory\"\xd4\x04\n\x15QueryForecastsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\x0emachine_family\x18\x02 \x01(\t\x12M\n\rmachine_shape\x18\x0c \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.MachineShapeB\x03\xe0\x41\x01\x12\x16\n\tdisk_type\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x63onfidential_mode\x18\r \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08gpu_type\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08tpu_type\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x63loud_resource_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12Q\n\rforecast_type\x18\x04 \x01(\x0e\x32:.google.cloud.capacityplanner.v1beta.Forecast.ForecastType\x12]\n\x13prediction_interval\x18\x05 \x01(\x0e\x32@.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval\x12_\n\x12\x61ggregation_method\x18\x08 \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod\"Z\n\x16QueryForecastsResponse\x12@\n\tforecasts\x18\x01 \x03(\x0b\x32-.google.cloud.capacityplanner.v1beta.Forecast\"\xf1\x0b\n\x18QueryReservationsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12Y\n\x0elocation_level\x18\x10 \x01(\x0e\x32<.google.cloud.capacityplanner.v1beta.TimeSeries.LocationTypeB\x03\xe0\x41\x01\x12\x1b\n\x0emachine_family\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12M\n\rmachine_shape\x18\x0b \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.MachineShapeB\x03\xe0\x41\x01\x12\x15\n\x08gpu_type\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x63loud_resource_type\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12l\n\x10reservation_type\x18\x05 \x01(\x0e\x32M.google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ReservationTypeB\x03\xe0\x41\x02\x12`\n\nshare_type\x18\x06 \x01(\x0e\x32G.google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ShareTypeB\x03\xe0\x41\x01\x12h\n\x0eownership_type\x18\x07 \x01(\x0e\x32K.google.cloud.capacityplanner.v1beta.QueryReservationsRequest.OwnershipTypeB\x03\xe0\x41\x01\x12w\n\x16reservation_data_level\x18\x08 \x01(\x0e\x32R.google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ReservationDataLevelB\x03\xe0\x41\x02\x12,\n\x1finclude_unapproved_reservations\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x64\n\x12\x61ggregation_method\x18\r \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethodB\x03\xe0\x41\x01\x12*\n\nstart_date\x18\x0e \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\x0f \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\"\x97\x01\n\x0fReservationType\x12 \n\x1cRESERVATION_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bRESERVATION_TYPE_ALLOCATION\x10\x01\x12\'\n#RESERVATION_TYPE_FUTURE_RESERVATION\x10\x02\x12\x18\n\x14RESERVATION_TYPE_ALL\x10\x03\"_\n\tShareType\x12\x1a\n\x16SHARE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10SHARE_TYPE_LOCAL\x10\x01\x12 \n\x1cSHARE_TYPE_SPECIFIC_PROJECTS\x10\x02\"n\n\rOwnershipType\x12\x1e\n\x1aOWNERSHIP_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14OWNERSHIP_TYPE_OWNED\x10\x01\x12#\n\x1fOWNERSHIP_TYPE_SHARED_BY_OTHERS\x10\x02\"\x91\x01\n\x14ReservationDataLevel\x12&\n\"RESERVATION_DATA_LEVEL_UNSPECIFIED\x10\x00\x12%\n!RESERVATION_DATA_LEVEL_AGGREGATED\x10\x01\x12*\n&RESERVATION_DATA_LEVEL_PER_RESERVATION\x10\x02\"g\n\x19QueryReservationsResponse\x12J\n\x0creservations\x18\x01 \x03(\x0b\x32\x34.google.cloud.capacityplanner.v1beta.ReservationData\"F\n\x05Point\x12.\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x02 \x01(\x01\"\xf4\x07\n\x08\x46orecast\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x44\n\x0btime_series\x18\x02 \x01(\x0b\x32/.google.cloud.capacityplanner.v1beta.TimeSeries\x12Q\n\rforecast_type\x18\x03 \x01(\x0e\x32:.google.cloud.capacityplanner.v1beta.Forecast.ForecastType\x12\x44\n\x06\x62ounds\x18\x04 \x01(\x0e\x32\x34.google.cloud.capacityplanner.v1beta.Forecast.Bounds\x12]\n\x13prediction_interval\x18\x05 \x01(\x0e\x32@.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval\x12_\n\x12\x61ggregation_method\x18\x06 \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod\"q\n\x0c\x46orecastType\x12\x1d\n\x19\x46ORECAST_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSTATISTICAL\x10\x01\x12\x19\n\x15STATISTICAL_WITH_BFCM\x10\x02\x12\x16\n\x12YEARLY_SEASONALITY\x10\x03\"N\n\x06\x42ounds\x12\x16\n\x12\x42OUNDS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bLOWER_BOUND\x10\x01\x12\n\n\x06MEDIAN\x10\x02\x12\x0f\n\x0bUPPER_BOUND\x10\x03\"q\n\x12PredictionInterval\x12#\n\x1fPREDICTION_INTERVAL_UNSPECIFIED\x10\x00\x12\x1a\n\x16PREDICTION_INTERVAL_90\x10\x01\x12\x1a\n\x16PREDICTION_INTERVAL_50\x10\x02:\x84\x02\xea\x41\x80\x02\n\'capacityplanner.googleapis.com/Forecast\x12<projects/{project}/locations/{location}/forecasts/{forecast}\x12\x46organizations/{organization}/locations/{location}/forecasts/{forecast}\x12:folders/{folder}/locations/{location}/forecasts/{forecast}*\tforecasts2\x08\x66orecast\"\x9f\x02\n\x0cUsageHistory\x12\x44\n\x0btime_series\x18\x01 \x01(\x0b\x32/.google.cloud.capacityplanner.v1beta.TimeSeries\x12_\n\x12\x61ggregation_method\x18\x02 \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod\"h\n\x11\x41ggregationMethod\x12\"\n\x1e\x41GGREGATION_METHOD_UNSPECIFIED\x10\x00\x12\n\n\x06MEDIAN\x10\x01\x12\x08\n\x04PEAK\x10\x02\x12\x07\n\x03P50\x10\x03\x12\x07\n\x03P75\x10\x04\x12\x07\n\x03P99\x10\x05\"\xfb\x03\n\nTimeSeries\x12X\n\rlocation_type\x18\x01 \x01(\x0e\x32<.google.cloud.capacityplanner.v1beta.TimeSeries.LocationTypeB\x03\xe0\x41\x02\x12\x15\n\x08location\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07is_spot\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\x0emachine_family\x18\x02 \x01(\t\x12\x11\n\tdisk_type\x18\x06 \x01(\t\x12\x1e\n\x11\x63onfidential_mode\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x10\n\x08gpu_type\x18\x07 \x01(\t\x12\x10\n\x08tpu_type\x18\n \x01(\t\x12H\n\rmachine_shape\x18\x08 \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.MachineShape\x12\x1b\n\x13\x63loud_resource_type\x18\x03 \x01(\t\x12:\n\x06points\x18\x04 \x03(\x0b\x32*.google.cloud.capacityplanner.v1beta.Point\x12\x0c\n\x04unit\x18\x05 \x01(\t\"F\n\x0cLocationType\x12\x1d\n\x19LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REGIONAL\x10\x01\x12\t\n\x05ZONAL\x10\x02\"\xf9\x04\n\x0fReservationData\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x44\n\x0btime_series\x18\x02 \x01(\x0b\x32/.google.cloud.capacityplanner.v1beta.TimeSeries\x12P\n\x17used_reservation_values\x18\x05 \x01(\x0b\x32/.google.cloud.capacityplanner.v1beta.TimeSeries\x12S\n\x13\x66uture_reservations\x18\x03 \x03(\x0b\x32\x36.google.cloud.capacityplanner.v1beta.FutureReservation\x12\x44\n\x0b\x61llocations\x18\x04 \x03(\x0b\x32/.google.cloud.capacityplanner.v1beta.Allocation:\x9f\x02\xea\x41\x9b\x02\n*capacityplanner.googleapis.com/Reservation\x12\x42projects/{project}/locations/{location}/reservations/{reservation}\x12Lorganizations/{organization}/locations/{location}/reservations/{reservation}\x12@folders/{folder}/locations/{location}/reservations/{reservation}*\x0creservations2\x0breservation\"\xdf\x02\n\x0cMachineShape\x12\x1b\n\x0emachine_family\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cmachine_type\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rmachine_shape\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tcpu_cores\x18\x04 \x01(\x01\x42\x03\xe0\x41\x01\x12\x15\n\x08gpu_type\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10gpu_compute_type\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tgpu_cores\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01\x12!\n\x14local_ssd_partitions\x18\x07 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x0clocal_ssd_gb\x18\x08 \x01(\x01\x42\x03\xe0\x41\x01\x12\x16\n\tmemory_gb\x18\t \x01(\x01\x42\x03\xe0\x41\x01\x12 \n\x13local_ssd_interface\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\x0c \x01(\tB\x03\xe0\x41\x01\"\xcd\x04\n\x1b\x45xportUsageHistoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x14\n\x07is_spot\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12\x1b\n\x0emachine_family\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12M\n\rmachine_shape\x18\r \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.MachineShapeB\x03\xe0\x41\x01\x12\x16\n\tdisk_type\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08gpu_type\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08tpu_type\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rresource_type\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12j\n\x18usage_aggregation_method\x18\x05 \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethodB\x03\xe0\x41\x01\x12*\n\nstart_date\x18\x06 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12M\n\routput_config\x18\x08 \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.OutputConfigB\x03\xe0\x41\x02\"\x90\x05\n\x16\x45xportForecastsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x1b\n\x0emachine_family\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12M\n\rmachine_shape\x18\x0c \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.MachineShapeB\x03\xe0\x41\x01\x12\x16\n\tdisk_type\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08gpu_type\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08tpu_type\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rresource_type\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x62\n\x13prediction_interval\x18\x05 \x01(\x0e\x32@.google.cloud.capacityplanner.v1beta.Forecast.PredictionIntervalB\x03\xe0\x41\x01\x12\x64\n\x12\x61ggregation_method\x18\x06 \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethodB\x03\xe0\x41\x01\x12*\n\nstart_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\x08 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12M\n\routput_config\x18\t \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.OutputConfigB\x03\xe0\x41\x02\"\xc7\x06\n\x1e\x45xportReservationsUsageRequest\x12\x1d\n\x0emachine_family\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12O\n\rmachine_shape\x18\x03 \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.MachineShapeB\x03\xe0\x41\x01H\x00\x12\x17\n\x08gpu_type\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12Y\n\x0elocation_level\x18\x0b \x01(\x0e\x32<.google.cloud.capacityplanner.v1beta.TimeSeries.LocationTypeB\x03\xe0\x41\x01\x12 \n\x13\x63loud_resource_type\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12j\n\x18usage_aggregation_method\x18\x06 \x01(\x0e\x32\x43.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethodB\x03\xe0\x41\x02\x12\x66\n\nshare_type\x18\x07 \x01(\x0e\x32M.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareTypeB\x03\xe0\x41\x01\x12*\n\nstart_date\x18\x08 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12(\n\x08\x65nd_date\x18\t \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01\x12M\n\routput_config\x18\n \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.OutputConfigB\x03\xe0\x41\x02\"_\n\tShareType\x12\x1a\n\x16SHARE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10SHARE_TYPE_LOCAL\x10\x01\x12 \n\x1cSHARE_TYPE_SPECIFIC_PROJECTS\x10\x02\x42\n\n\x08resource\"\xc7\x01\n\x0cOutputConfig\x12N\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32\x33.google.cloud.capacityplanner.v1beta.GcsDestinationH\x00\x12X\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32\x38.google.cloud.capacityplanner.v1beta.BigQueryDestinationH\x00\x42\r\n\x0b\x64\x65stination\"`\n\x0eGcsDestination\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x62ucket\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06object\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xa5\x05\n\x13\x42igQueryDestination\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x61\n\rpartition_key\x18\x03 \x01(\x0e\x32\x45.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKeyB\x03\xe0\x41\x01\x12i\n\x11write_disposition\x18\x04 \x01(\x0e\x32I.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDispositionB\x03\xe0\x41\x01\x12k\n\x12\x63reate_disposition\x18\x05 \x01(\x0e\x32J.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDispositionB\x03\xe0\x41\x01\x12\x19\n\x0cgcs_location\x18\x06 \x01(\tB\x03\xe0\x41\x01\"?\n\x0cPartitionKey\x12\x1d\n\x19PARTITION_KEY_UNSPECIFIED\x10\x00\x12\x10\n\x0cREQUEST_TIME\x10\x01\"l\n\x10WriteDisposition\x12!\n\x1dWRITE_DISPOSITION_UNSPECIFIED\x10\x00\x12\x10\n\x0cWRITE_APPEND\x10\x01\x12\x12\n\x0eWRITE_TRUNCATE\x10\x02\x12\x0f\n\x0bWRITE_EMPTY\x10\x03\"_\n\x11\x43reateDisposition\x12\"\n\x1e\x43REATE_DISPOSITION_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43REATE_IF_NEEDED\x10\x01\x12\x10\n\x0c\x43REATE_NEVER\x10\x02\"|\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"0\n\x1c\x45xportUsageHistoriesResponse\x12\x10\n\x08response\x18\x01 \x01(\t\"+\n\x17\x45xportForecastsResponse\x12\x10\n\x08response\x18\x01 \x01(\t\"3\n\x1f\x45xportReservationsUsageResponse\x12\x10\n\x08response\x18\x01 \x01(\t2\xc7\x12\n\x0cUsageService\x12\xed\x02\n\x13QueryUsageHistories\x12?.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest\x1a@.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesResponse\"\xd2\x01\x82\xd3\xe4\x93\x02\xcb\x01\"</v1beta/{parent=projects/*/locations/*}/usageHistories:query:\x01*ZF\"A/v1beta/{parent=organizations/*/locations/*}/usageHistories:query:\x01*Z@\";/v1beta/{parent=folders/*/locations/*}/usageHistories:query:\x01*\x12\xcf\x02\n\x0eQueryForecasts\x12:.google.cloud.capacityplanner.v1beta.QueryForecastsRequest\x1a;.google.cloud.capacityplanner.v1beta.QueryForecastsResponse\"\xc3\x01\x82\xd3\xe4\x93\x02\xbc\x01\"7/v1beta/{parent=projects/*/locations/*}/forecasts:query:\x01*ZA\"</v1beta/{parent=organizations/*/locations/*}/forecasts:query:\x01*Z;\"6/v1beta/{parent=folders/*/locations/*}/forecasts:query:\x01*\x12\xe1\x02\n\x11QueryReservations\x12=.google.cloud.capacityplanner.v1beta.QueryReservationsRequest\x1a>.google.cloud.capacityplanner.v1beta.QueryReservationsResponse\"\xcc\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xbc\x01\x12:/v1beta/{parent=projects/*/locations/*}/reservations:queryZA\x12?/v1beta/{parent=organizations/*/locations/*}/reservations:queryZ;\x12\x39/v1beta/{parent=folders/*/locations/*}/reservations:query\x12\x83\x03\n\x14\x45xportUsageHistories\x12@.google.cloud.capacityplanner.v1beta.ExportUsageHistoriesRequest\x1a\x1d.google.longrunning.Operation\"\x89\x02\xca\x41\x31\n\x1c\x45xportUsageHistoriesResponse\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\xce\x01\"=/v1beta/{parent=projects/*/locations/*}/usageHistories:export:\x01*ZG\"B/v1beta/{parent=organizations/*/locations/*}/usageHistories:export:\x01*ZA\"</v1beta/{parent=folders/*/locations/*}/usageHistories:export:\x01*\x12\xe5\x02\n\x0f\x45xportForecasts\x12;.google.cloud.capacityplanner.v1beta.ExportForecastsRequest\x1a\x1d.google.longrunning.Operation\"\xf5\x01\xca\x41,\n\x17\x45xportForecastsResponse\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\xbf\x01\"8/v1beta/{parent=projects/*/locations/*}/forecasts:export:\x01*ZB\"=/v1beta/{parent=organizations/*/locations/*}/forecasts:export:\x01*Z<\"7/v1beta/{parent=folders/*/locations/*}/forecasts:export:\x01*\x12\x95\x03\n\x17\x45xportReservationsUsage\x12\x43.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest\x1a\x1d.google.longrunning.Operation\"\x95\x02\xca\x41\x34\n\x1f\x45xportReservationsUsageResponse\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\xd7\x01\"@/v1beta/{parent=projects/*/locations/*}/reservationsUsage:export:\x01*ZJ\"E/v1beta/{parent=organizations/*/locations/*}/reservationsUsage:export:\x01*ZD\"?/v1beta/{parent=folders/*/locations/*}/reservationsUsage:export:\x01*\x1a\x8a\x01\xca\x41\x1e\x63\x61pacityplanner.googleapis.com\xd2\x41\x66https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/devstorage.full_controlB\x86\x02\n\'com.google.cloud.capacityplanner.v1betaB\x11UsageServiceProtoP\x01ZQcloud.google.com/go/capacityplanner/apiv1beta/capacityplannerpb;capacityplannerpb\xaa\x02#Google.Cloud.CapacityPlanner.V1Beta\xca\x02#Google\\Cloud\\CapacityPlanner\\V1beta\xea\x02&Google::Cloud::CapacityPlanner::V1betab\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.type.Date", "google/type/date.proto"],
|
|
34
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
35
|
-
["google.cloud.capacityplanner.v1beta.FutureReservation", "google/cloud/capacityplanner/v1beta/future_reservation.proto"],
|
|
36
|
-
["google.cloud.capacityplanner.v1beta.Allocation", "google/cloud/capacityplanner/v1beta/allocation.proto"],
|
|
37
|
-
]
|
|
38
|
-
imports.each do |type_name, expected_filename|
|
|
39
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
40
|
-
if import_file.name != expected_filename
|
|
41
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
45
|
-
warn "This will become an error in the next major version."
|
|
46
|
-
end
|
|
20
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
|
47
22
|
|
|
48
23
|
module Google
|
|
49
24
|
module Cloud
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-capacity_planner-v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
97
97
|
requirements:
|
|
98
98
|
- - ">="
|
|
99
99
|
- !ruby/object:Gem::Version
|
|
100
|
-
version: '3.
|
|
100
|
+
version: '3.2'
|
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
103
|
- - ">="
|