google-cloud-capacity_planner-v1beta 0.a → 0.1.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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +153 -8
  5. data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/client.rb +686 -0
  6. data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/credentials.rb +48 -0
  7. data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/paths.rb +64 -0
  8. data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/client.rb +639 -0
  9. data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/service_stub.rb +279 -0
  10. data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest.rb +54 -0
  11. data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service.rb +57 -0
  12. data/lib/google/cloud/capacity_planner/v1beta/rest.rb +38 -0
  13. data/lib/google/cloud/capacity_planner/v1beta/usage_service/client.rb +1214 -0
  14. data/lib/google/cloud/capacity_planner/v1beta/usage_service/credentials.rb +48 -0
  15. data/lib/google/cloud/capacity_planner/v1beta/usage_service/operations.rb +813 -0
  16. data/lib/google/cloud/capacity_planner/v1beta/usage_service/paths.rb +50 -0
  17. data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest/client.rb +1146 -0
  18. data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest/operations.rb +914 -0
  19. data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest/service_stub.rb +546 -0
  20. data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest.rb +53 -0
  21. data/lib/google/cloud/capacity_planner/v1beta/usage_service.rb +56 -0
  22. data/lib/google/cloud/capacity_planner/v1beta/version.rb +7 -2
  23. data/lib/google/cloud/capacity_planner/v1beta.rb +46 -0
  24. data/lib/google/cloud/capacityplanner/v1beta/allocation_pb.rb +53 -0
  25. data/lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_pb.rb +73 -0
  26. data/lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_services_pb.rb +54 -0
  27. data/lib/google/cloud/capacityplanner/v1beta/future_reservation_pb.rb +51 -0
  28. data/lib/google/cloud/capacityplanner/v1beta/location_pb.rb +46 -0
  29. data/lib/google/cloud/capacityplanner/v1beta/resource_pb.rb +51 -0
  30. data/lib/google/cloud/capacityplanner/v1beta/usage_service_pb.rb +90 -0
  31. data/lib/google/cloud/capacityplanner/v1beta/usage_service_services_pb.rb +61 -0
  32. data/lib/google-cloud-capacity_planner-v1beta.rb +21 -0
  33. data/proto_docs/README.md +4 -0
  34. data/proto_docs/google/api/client.rb +473 -0
  35. data/proto_docs/google/api/field_behavior.rb +85 -0
  36. data/proto_docs/google/api/launch_stage.rb +71 -0
  37. data/proto_docs/google/api/resource.rb +227 -0
  38. data/proto_docs/google/cloud/capacityplanner/v1beta/allocation.rb +206 -0
  39. data/proto_docs/google/cloud/capacityplanner/v1beta/capacity_planning_service.rb +374 -0
  40. data/proto_docs/google/cloud/capacityplanner/v1beta/future_reservation.rb +185 -0
  41. data/proto_docs/google/cloud/capacityplanner/v1beta/location.rb +79 -0
  42. data/proto_docs/google/cloud/capacityplanner/v1beta/resource.rb +159 -0
  43. data/proto_docs/google/cloud/capacityplanner/v1beta/usage_service.rb +912 -0
  44. data/proto_docs/google/longrunning/operations.rb +173 -0
  45. data/proto_docs/google/protobuf/any.rb +145 -0
  46. data/proto_docs/google/protobuf/duration.rb +98 -0
  47. data/proto_docs/google/protobuf/empty.rb +34 -0
  48. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  49. data/proto_docs/google/rpc/status.rb +48 -0
  50. data/proto_docs/google/type/date.rb +53 -0
  51. metadata +83 -9
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2025 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,11 +14,14 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Cloud
17
22
  module CapacityPlanner
18
23
  module V1beta
19
- VERSION = "0.a"
24
+ VERSION = "0.1.0"
20
25
  end
21
26
  end
22
27
  end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/capacity_planner/v1beta/capacity_planning_service"
20
+ require "google/cloud/capacity_planner/v1beta/usage_service"
21
+ require "google/cloud/capacity_planner/v1beta/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module CapacityPlanner
26
+ ##
27
+ # API client module.
28
+ #
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
+ #
31
+ # require "google/cloud/capacity_planner/v1beta"
32
+ # client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.new
33
+ #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/capacity_planner/v1beta"
37
+ # client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Rest::Client.new
38
+ #
39
+ module V1beta
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ helper_path = ::File.join __dir__, "v1beta", "_helpers.rb"
46
+ require "google/cloud/capacity_planner/v1beta/_helpers" if ::File.file? helper_path
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/capacityplanner/v1beta/allocation.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+
9
+
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
+
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
36
+
37
+ module Google
38
+ module Cloud
39
+ module CapacityPlanner
40
+ module V1beta
41
+ Allocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation").msgclass
42
+ Allocation::SpecificSKUAllocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation").msgclass
43
+ Allocation::SpecificSKUAllocation::AllocatedInstanceProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties").msgclass
44
+ Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig").msgclass
45
+ Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AllocatedDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk").msgclass
46
+ Allocation::SpecificSKUAllocation::AllocatedInstanceProperties::AllocatedDisk::DiskInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface").enummodule
47
+ Allocation::ShareSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.ShareSettings").msgclass
48
+ Allocation::ShareSettings::ShareType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.ShareSettings.ShareType").enummodule
49
+ Allocation::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Allocation.Status").enummodule
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/capacityplanner/v1beta/capacity_planning_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/capacityplanner/v1beta/location_pb'
12
+ require 'google/cloud/capacityplanner/v1beta/resource_pb'
13
+ require 'google/protobuf/timestamp_pb'
14
+
15
+
16
+ descriptor_data = "\nCgoogle/cloud/capacityplanner/v1beta/capacity_planning_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\x32google/cloud/capacityplanner/v1beta/location.proto\x1a\x32google/cloud/capacityplanner/v1beta/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"[\n\x16GetCapacityPlanRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+capacityplanner.googleapis.com/CapacityPlan\"\xa8\x01\n\x19QueryCapacityPlansRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+capacityplanner.googleapis.com/CapacityPlan\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08location\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1aQueryCapacityPlansResponse\x12I\n\x0e\x63\x61pacity_plans\x18\x01 \x03(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.CapacityPlan\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x95\x01\n QueryCapacityPlanInsightsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x15\x63\x61pacity_plan_filters\x18\x02 \x01(\x0b\x32\x38.google.cloud.capacityplanner.v1beta.CapacityPlanFiltersB\x03\xe0\x41\x02\"\x86\x01\n!QueryCapacityPlanInsightsResponse\x12\x61\n\x1d\x61ggregated_capacity_plan_view\x18\x01 \x01(\x0b\x32\x35.google.cloud.capacityplanner.v1beta.CapacityPlanViewB\x03\xe0\x41\x01\"\xcd\x01\n\x13\x43\x61pacityPlanFilters\x12G\n\x04keys\x18\x01 \x03(\x0b\x32\x34.google.cloud.capacityplanner.v1beta.CapacityPlanKeyB\x03\xe0\x41\x02\x12N\n\x0e\x63\x61pacity_types\x18\x02 \x03(\x0e\x32\x31.google.cloud.capacityplanner.v1beta.CapacityTypeB\x03\xe0\x41\x02\x12\x1d\n\x10\x63\x61pacity_plan_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x02\n\x0f\x43\x61pacityPlanKey\x12W\n\x12resource_container\x18\x01 \x01(\x0b\x32\x36.google.cloud.capacityplanner.v1beta.ResourceContainerB\x03\xe0\x41\x02\x12P\n\x0fresource_id_key\x18\x02 \x01(\x0b\x32\x32.google.cloud.capacityplanner.v1beta.ResourceIdKeyB\x03\xe0\x41\x02\x12Q\n\x0blocation_id\x18\x03 \x01(\x0b\x32\x37.google.cloud.capacityplanner.v1beta.LocationIdentifierB\x03\xe0\x41\x02\"\xaf\x01\n\x10\x43\x61pacityPlanView\x12\x46\n\x03key\x18\x01 \x01(\x0b\x32\x34.google.cloud.capacityplanner.v1beta.CapacityPlanKeyB\x03\xe0\x41\x02\x12S\n\x11time_series_views\x18\x02 \x03(\x0b\x32\x33.google.cloud.capacityplanner.v1beta.TimeSeriesViewB\x03\xe0\x41\x02\"\xa5\x01\n\x0eTimeSeriesView\x12\x44\n\x04type\x18\x01 \x01(\x0e\x32\x31.google.cloud.capacityplanner.v1beta.CapacityTypeB\x03\xe0\x41\x02\x12M\n\x0e\x63\x61pacity_value\x18\x02 \x01(\x0b\x32\x30.google.cloud.capacityplanner.v1beta.DemandValueB\x03\xe0\x41\x02\"\xec\x04\n\x0c\x43\x61pacityPlan\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12Z\n\x18\x63\x61pacity_demand_metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.capacityplanner.v1beta.DemandMetadataB\x03\xe0\x41\x01\x12P\n\x0fservice_demands\x18\x03 \x03(\x0b\x32\x32.google.cloud.capacityplanner.v1beta.ServiceDemandB\x03\xe0\x41\x02\x12@\n\x08reporter\x18\x04 \x01(\x0b\x32).google.cloud.capacityplanner.v1beta.UserB\x03\xe0\x41\x03\x12>\n\x05state\x18\x05 \x01(\x0e\x32*.google.cloud.capacityplanner.v1beta.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05title\x18\t \x01(\tB\x03\xe0\x41\x01:\x7f\xea\x41|\n+capacityplanner.googleapis.com/CapacityPlan\x12\x30projects/{project}/capacityPlans/{capacity_plan}*\rcapacityPlans2\x0c\x63\x61pacityPlan\"h\n\x0e\x44\x65mandMetadata\x12V\n\x12\x64\x65mand_preferences\x18\x01 \x03(\x0b\x32\x35.google.cloud.capacityplanner.v1beta.DemandPreferenceB\x03\xe0\x41\x01\"n\n\x10\x44\x65mandPreference\x12\x1a\n\rpreference_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12>\n\x05value\x18\x02 \x01(\x0b\x32*.google.cloud.capacityplanner.v1beta.ValueB\x03\xe0\x41\x02\"\xcc\x01\n\rServiceDemand\x12\x14\n\x07service\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x0f\x64\x65mand_metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.capacityplanner.v1beta.DemandMetadataB\x03\xe0\x41\x01\x12R\n\x10resource_demands\x18\x03 \x03(\x0b\x32\x33.google.cloud.capacityplanner.v1beta.ResourceDemandB\x03\xe0\x41\x02\"\x8f\x06\n\x0eResourceDemand\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12W\n\x12resource_container\x18\x02 \x01(\x0b\x32\x36.google.cloud.capacityplanner.v1beta.ResourceContainerB\x03\xe0\x41\x02\x12Q\n\x0bresource_id\x18\x03 \x01(\x0b\x32\x37.google.cloud.capacityplanner.v1beta.ResourceIdentifierB\x03\xe0\x41\x02\x12Q\n\x0blocation_id\x18\x04 \x01(\x0b\x32\x37.google.cloud.capacityplanner.v1beta.LocationIdentifierB\x03\xe0\x41\x02\x12>\n\x05state\x18\x05 \x01(\x0e\x32*.google.cloud.capacityplanner.v1beta.StateB\x03\xe0\x41\x03\x12@\n\x08reporter\x18\x06 \x01(\x0b\x32).google.cloud.capacityplanner.v1beta.UserB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12M\n\rdemand_values\x18\t \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.DemandValuesB\x03\xe0\x41\x02\x12Q\n\x0f\x64\x65mand_metadata\x18\n \x01(\x0b\x32\x33.google.cloud.capacityplanner.v1beta.DemandMetadataB\x03\xe0\x41\x01\x12]\n\x16\x63hild_resource_demands\x18\x0b \x03(\x0b\x32\x38.google.cloud.capacityplanner.v1beta.ChildResourceDemandB\x03\xe0\x41\x01\"\x1a\n\x04User\x12\x12\n\x05\x65mail\x18\x01 \x01(\tB\x03\xe0\x41\x02\"U\n\x0c\x44\x65mandValues\x12\x45\n\x06values\x18\x01 \x03(\x0b\x32\x30.google.cloud.capacityplanner.v1beta.DemandValueB\x03\xe0\x41\x02\"\xa8\x01\n\x0b\x44\x65mandValue\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0btime_values\x18\x02 \x03(\x0b\x32..google.cloud.capacityplanner.v1beta.TimeValueB\x03\xe0\x41\x02\x12<\n\x04unit\x18\x03 \x01(\x0e\x32).google.cloud.capacityplanner.v1beta.UnitB\x03\xe0\x41\x02\"]\n\tTimeValue\x12-\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x17\n\x05value\x18\x02 \x01(\x01\x42\x03\xe0\x41\x02H\x00\x88\x01\x01\x42\x08\n\x06_value\"\x8a\x02\n\x13\x43hildResourceDemand\x12Q\n\x0bresource_id\x18\x01 \x01(\x0b\x32\x37.google.cloud.capacityplanner.v1beta.ResourceIdentifierB\x03\xe0\x41\x02\x12M\n\rdemand_values\x18\x02 \x01(\x0b\x32\x31.google.cloud.capacityplanner.v1beta.DemandValuesB\x03\xe0\x41\x02\x12Q\n\x0f\x64\x65mand_metadata\x18\x03 \x01(\x0b\x32\x33.google.cloud.capacityplanner.v1beta.DemandMetadataB\x03\xe0\x41\x01*\xb1\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x12\n\x0ePENDING_REVIEW\x10\x01\x12\r\n\tIN_REVIEW\x10\x03\x12\x18\n\x14\x41PPROVED_PROVISIONAL\x10\x08\x12\x0c\n\x08OBSOLETE\x10\x05\x12\x17\n\x13\x43\x41NNOT_BE_FULFILLED\x10\x07\x12\x19\n\x15ON_HOLD_CONTACT_SALES\x10\t\x12\x12\n\x0eIN_FULFILLMENT\x10\n*\x97\x01\n\x0c\x43\x61pacityType\x12\x19\n\x15\x43\x41PACITY_TYPE_UNKNOWN\x10\x00\x12!\n\x1d\x43\x41PACITY_TYPE_INORGANIC_DRAFT\x10\x01\x12#\n\x1f\x43\x41PACITY_TYPE_INORGANIC_PENDING\x10\x02\x12$\n CAPACITY_TYPE_INORGANIC_APPROVED\x10\x03\x32\xb9\x07\n\x17\x43\x61pacityPlanningService\x12\xbb\x01\n\x0fGetCapacityPlan\x12;.google.cloud.capacityplanner.v1beta.GetCapacityPlanRequest\x1a\x31.google.cloud.capacityplanner.v1beta.CapacityPlan\"8\xda\x41\x04name\x82\xd3\xe4\x93\x02+\x12)/v1beta/{name=projects/*/capacityPlans/*}\x12\xc3\x02\n\x12QueryCapacityPlans\x12>.google.cloud.capacityplanner.v1beta.QueryCapacityPlansRequest\x1a?.google.cloud.capacityplanner.v1beta.QueryCapacityPlansResponse\"\xab\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x9b\x01\x12\x34/v1beta/{parent=organizations/*}/capacityPlans:queryZ0\x12./v1beta/{parent=folders/*}/capacityPlans:queryZ1\x12//v1beta/{parent=projects/*}/capacityPlans:query\x12\x8c\x02\n\x19QueryCapacityPlanInsights\x12\x45.google.cloud.capacityplanner.v1beta.QueryCapacityPlanInsightsRequest\x1a\x46.google.cloud.capacityplanner.v1beta.QueryCapacityPlanInsightsResponse\"`\xda\x41\x1cparent,capacity_plan_filters\x82\xd3\xe4\x93\x02;\"6/v1beta/{parent=projects/*}/capacityPlanInsights:query:\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\x91\x02\n\'com.google.cloud.capacityplanner.v1betaB\x1c\x43\x61pacityPlanningServiceProtoP\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"
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.cloud.capacityplanner.v1beta.ResourceContainer", "google/cloud/capacityplanner/v1beta/resource.proto"],
32
+ ["google.cloud.capacityplanner.v1beta.LocationIdentifier", "google/cloud/capacityplanner/v1beta/location.proto"],
33
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
+ ]
35
+ imports.each do |type_name, expected_filename|
36
+ import_file = pool.lookup(type_name).file_descriptor
37
+ if import_file.name != expected_filename
38
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
+ end
40
+ end
41
+ warn "Each proto file must use a consistent fully-qualified name."
42
+ warn "This will become an error in the next major version."
43
+ end
44
+
45
+ module Google
46
+ module Cloud
47
+ module CapacityPlanner
48
+ module V1beta
49
+ GetCapacityPlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.GetCapacityPlanRequest").msgclass
50
+ QueryCapacityPlansRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryCapacityPlansRequest").msgclass
51
+ QueryCapacityPlansResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryCapacityPlansResponse").msgclass
52
+ QueryCapacityPlanInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryCapacityPlanInsightsRequest").msgclass
53
+ QueryCapacityPlanInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryCapacityPlanInsightsResponse").msgclass
54
+ CapacityPlanFilters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.CapacityPlanFilters").msgclass
55
+ CapacityPlanKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.CapacityPlanKey").msgclass
56
+ CapacityPlanView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.CapacityPlanView").msgclass
57
+ TimeSeriesView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.TimeSeriesView").msgclass
58
+ CapacityPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.CapacityPlan").msgclass
59
+ DemandMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.DemandMetadata").msgclass
60
+ DemandPreference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.DemandPreference").msgclass
61
+ ServiceDemand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ServiceDemand").msgclass
62
+ ResourceDemand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ResourceDemand").msgclass
63
+ User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.User").msgclass
64
+ DemandValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.DemandValues").msgclass
65
+ DemandValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.DemandValue").msgclass
66
+ TimeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.TimeValue").msgclass
67
+ ChildResourceDemand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ChildResourceDemand").msgclass
68
+ State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.State").enummodule
69
+ CapacityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.CapacityType").enummodule
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,54 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/capacityplanner/v1beta/capacity_planning_service.proto for package 'Google.Cloud.CapacityPlanner.V1beta'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/capacityplanner/v1beta/capacity_planning_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module CapacityPlanner
25
+ module V1beta
26
+ module CapacityPlanningService
27
+ # This API allows users to plan for GCP capacity associated with their
28
+ # projects. Users can request additional capacity for GCP resources such as
29
+ # VMs, PDs, etc.
30
+ class Service
31
+
32
+ include ::GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.cloud.capacityplanner.v1beta.CapacityPlanningService'
37
+
38
+ # Returns information about the capacity plan.
39
+ rpc :GetCapacityPlan, ::Google::Cloud::CapacityPlanner::V1beta::GetCapacityPlanRequest, ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlan
40
+ # Returns a list of the capacity plans that are in the parent parameter and
41
+ # match your specified filters.
42
+ # (The maximum list length is limited by the pageSize parameter.)
43
+ rpc :QueryCapacityPlans, ::Google::Cloud::CapacityPlanner::V1beta::QueryCapacityPlansRequest, ::Google::Cloud::CapacityPlanner::V1beta::QueryCapacityPlansResponse
44
+ # Query capacity plan insights that are in the parent parameter and match
45
+ # your specified filters.
46
+ rpc :QueryCapacityPlanInsights, ::Google::Cloud::CapacityPlanner::V1beta::QueryCapacityPlanInsightsRequest, ::Google::Cloud::CapacityPlanner::V1beta::QueryCapacityPlanInsightsResponse
47
+ end
48
+
49
+ Stub = Service.rpc_stub_class
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/capacityplanner/v1beta/future_reservation.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/cloud/capacityplanner/v1beta/allocation_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
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
+
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
38
+
39
+ module Google
40
+ module Cloud
41
+ module CapacityPlanner
42
+ module V1beta
43
+ FutureReservation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation").msgclass
44
+ FutureReservation::SpecificSKUProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.SpecificSKUProperties").msgclass
45
+ FutureReservation::TimeWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.TimeWindow").msgclass
46
+ FutureReservation::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.Status").msgclass
47
+ FutureReservation::Status::ProcurementStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.Status.ProcurementStatus").enummodule
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/capacityplanner/v1beta/location.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+
9
+
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
+
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
35
+
36
+ module Google
37
+ module Cloud
38
+ module CapacityPlanner
39
+ module V1beta
40
+ LocationIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.LocationIdentifier").msgclass
41
+ LocationIdentifier::LinkedLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation").msgclass
42
+ LocationLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.LocationLevel").enummodule
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/capacityplanner/v1beta/resource.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+
9
+
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
+
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
35
+
36
+ module Google
37
+ module Cloud
38
+ module CapacityPlanner
39
+ module V1beta
40
+ ResourceContainer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ResourceContainer").msgclass
41
+ ResourceContainer::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ResourceContainer.Type").enummodule
42
+ ResourceIdKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ResourceIdKey").msgclass
43
+ ResourceIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ResourceIdentifier").msgclass
44
+ ResourceAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ResourceAttribute").msgclass
45
+ ResourceValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ResourceValue").msgclass
46
+ Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Value").msgclass
47
+ Unit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Unit").enummodule
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/capacityplanner/v1beta/usage_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/capacityplanner/v1beta/allocation_pb'
12
+ require 'google/cloud/capacityplanner/v1beta/future_reservation_pb'
13
+ require 'google/longrunning/operations_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+ require 'google/type/date_pb'
16
+
17
+
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\"\xef\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\x1b\n\x13\x63loud_resource_type\x18\x03 \x01(\t\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\"\xcf\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\x1b\n\x13\x63loud_resource_type\x18\x03 \x01(\t\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\x01\x12l\n\x10reservation_type\x18\x05 \x01(\x0e\x32M.google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ReservationTypeB\x03\xe0\x41\x01\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\x01\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
+
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
47
+
48
+ module Google
49
+ module Cloud
50
+ module CapacityPlanner
51
+ module V1beta
52
+ QueryUsageHistoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest").msgclass
53
+ QueryUsageHistoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryUsageHistoriesResponse").msgclass
54
+ QueryForecastsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryForecastsRequest").msgclass
55
+ QueryForecastsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryForecastsResponse").msgclass
56
+ QueryReservationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryReservationsRequest").msgclass
57
+ QueryReservationsRequest::ReservationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ReservationType").enummodule
58
+ QueryReservationsRequest::ShareType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ShareType").enummodule
59
+ QueryReservationsRequest::OwnershipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryReservationsRequest.OwnershipType").enummodule
60
+ QueryReservationsRequest::ReservationDataLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ReservationDataLevel").enummodule
61
+ QueryReservationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.QueryReservationsResponse").msgclass
62
+ Point = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Point").msgclass
63
+ Forecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Forecast").msgclass
64
+ Forecast::ForecastType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Forecast.ForecastType").enummodule
65
+ Forecast::Bounds = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Forecast.Bounds").enummodule
66
+ Forecast::PredictionInterval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval").enummodule
67
+ UsageHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.UsageHistory").msgclass
68
+ UsageHistory::AggregationMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod").enummodule
69
+ TimeSeries = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.TimeSeries").msgclass
70
+ TimeSeries::LocationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.TimeSeries.LocationType").enummodule
71
+ ReservationData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ReservationData").msgclass
72
+ MachineShape = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.MachineShape").msgclass
73
+ ExportUsageHistoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ExportUsageHistoriesRequest").msgclass
74
+ ExportForecastsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ExportForecastsRequest").msgclass
75
+ ExportReservationsUsageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest").msgclass
76
+ ExportReservationsUsageRequest::ShareType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareType").enummodule
77
+ OutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.OutputConfig").msgclass
78
+ GcsDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.GcsDestination").msgclass
79
+ BigQueryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.BigQueryDestination").msgclass
80
+ BigQueryDestination::PartitionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey").enummodule
81
+ BigQueryDestination::WriteDisposition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition").enummodule
82
+ BigQueryDestination::CreateDisposition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition").enummodule
83
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.OperationMetadata").msgclass
84
+ ExportUsageHistoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ExportUsageHistoriesResponse").msgclass
85
+ ExportForecastsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ExportForecastsResponse").msgclass
86
+ ExportReservationsUsageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.ExportReservationsUsageResponse").msgclass
87
+ end
88
+ end
89
+ end
90
+ end