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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +153 -8
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/client.rb +686 -0
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/credentials.rb +48 -0
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/paths.rb +64 -0
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/client.rb +639 -0
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/service_stub.rb +279 -0
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest.rb +54 -0
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service.rb +57 -0
- data/lib/google/cloud/capacity_planner/v1beta/rest.rb +38 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/client.rb +1214 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/credentials.rb +48 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/operations.rb +813 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/paths.rb +50 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest/client.rb +1146 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest/operations.rb +914 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest/service_stub.rb +546 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest.rb +53 -0
- data/lib/google/cloud/capacity_planner/v1beta/usage_service.rb +56 -0
- data/lib/google/cloud/capacity_planner/v1beta/version.rb +7 -2
- data/lib/google/cloud/capacity_planner/v1beta.rb +46 -0
- data/lib/google/cloud/capacityplanner/v1beta/allocation_pb.rb +53 -0
- data/lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_pb.rb +73 -0
- data/lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_services_pb.rb +54 -0
- data/lib/google/cloud/capacityplanner/v1beta/future_reservation_pb.rb +51 -0
- data/lib/google/cloud/capacityplanner/v1beta/location_pb.rb +46 -0
- data/lib/google/cloud/capacityplanner/v1beta/resource_pb.rb +51 -0
- data/lib/google/cloud/capacityplanner/v1beta/usage_service_pb.rb +90 -0
- data/lib/google/cloud/capacityplanner/v1beta/usage_service_services_pb.rb +61 -0
- data/lib/google-cloud-capacity_planner-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/capacityplanner/v1beta/allocation.rb +206 -0
- data/proto_docs/google/cloud/capacityplanner/v1beta/capacity_planning_service.rb +374 -0
- data/proto_docs/google/cloud/capacityplanner/v1beta/future_reservation.rb +185 -0
- data/proto_docs/google/cloud/capacityplanner/v1beta/location.rb +79 -0
- data/proto_docs/google/cloud/capacityplanner/v1beta/resource.rb +159 -0
- data/proto_docs/google/cloud/capacityplanner/v1beta/usage_service.rb +912 -0
- data/proto_docs/google/longrunning/operations.rb +173 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/date.rb +53 -0
- metadata +83 -9
@@ -0,0 +1,159 @@
|
|
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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module CapacityPlanner
|
23
|
+
module V1beta
|
24
|
+
# The resource container of Google Cloud Platform hierarchy such as a project.
|
25
|
+
# @!attribute [rw] type
|
26
|
+
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer::Type]
|
27
|
+
# @!attribute [rw] id
|
28
|
+
# @return [::String]
|
29
|
+
# Required. Identifier of the resource container. For example, project number
|
30
|
+
# for project type.
|
31
|
+
class ResourceContainer
|
32
|
+
include ::Google::Protobuf::MessageExts
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
34
|
+
|
35
|
+
module Type
|
36
|
+
TYPE_UNSPECIFIED = 0
|
37
|
+
|
38
|
+
PROJECT = 1
|
39
|
+
|
40
|
+
FOLDER = 2
|
41
|
+
|
42
|
+
ORG = 3
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# The id for a Google Cloud Platform resource key.
|
47
|
+
# @!attribute [rw] resource_code
|
48
|
+
# @return [::String]
|
49
|
+
# Required. resource_code for the resource. eg: gce-ram, gce-vcpus,
|
50
|
+
# gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
|
51
|
+
# @!attribute [rw] resource_id
|
52
|
+
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier]
|
53
|
+
# Required. Id of the resource.
|
54
|
+
class ResourceIdKey
|
55
|
+
include ::Google::Protobuf::MessageExts
|
56
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
|
+
end
|
58
|
+
|
59
|
+
# The identifier for a Google Cloud Platform resource.
|
60
|
+
# @!attribute [rw] service_name
|
61
|
+
# @return [::String]
|
62
|
+
# @!attribute [rw] resource_name
|
63
|
+
# @return [::String]
|
64
|
+
# @!attribute [rw] resource_attributes
|
65
|
+
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::ResourceAttribute>]
|
66
|
+
class ResourceIdentifier
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
end
|
70
|
+
|
71
|
+
# An attribute of a Google Cloud Platform resource.
|
72
|
+
# @!attribute [rw] key
|
73
|
+
# @return [::String]
|
74
|
+
# @!attribute [rw] value
|
75
|
+
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceValue]
|
76
|
+
class ResourceAttribute
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# @!attribute [rw] unit
|
82
|
+
# @return [::Google::Cloud::CapacityPlanner::V1beta::Unit]
|
83
|
+
# @!attribute [rw] value
|
84
|
+
# @return [::Google::Cloud::CapacityPlanner::V1beta::Value]
|
85
|
+
class ResourceValue
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
|
90
|
+
# @!attribute [rw] int64_value
|
91
|
+
# @return [::Integer]
|
92
|
+
# Note: The following fields are mutually exclusive: `int64_value`, `string_value`, `double_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
93
|
+
# @!attribute [rw] string_value
|
94
|
+
# @return [::String]
|
95
|
+
# Note: The following fields are mutually exclusive: `string_value`, `int64_value`, `double_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
96
|
+
# @!attribute [rw] double_value
|
97
|
+
# @return [::Float]
|
98
|
+
# Note: The following fields are mutually exclusive: `double_value`, `int64_value`, `string_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
99
|
+
# @!attribute [rw] bool_value
|
100
|
+
# @return [::Boolean]
|
101
|
+
# Note: The following fields are mutually exclusive: `bool_value`, `int64_value`, `string_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
102
|
+
class Value
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
module Unit
|
108
|
+
UNIT_UNSPECIFIED = 0
|
109
|
+
|
110
|
+
UNIT_COUNT = 1
|
111
|
+
|
112
|
+
# Kilobytes (10^3 bytes)
|
113
|
+
KB = 2
|
114
|
+
|
115
|
+
# Gigabytes (10^9 bytes)
|
116
|
+
GB = 3
|
117
|
+
|
118
|
+
# Terabytes (10^12 bytes)
|
119
|
+
TB = 4
|
120
|
+
|
121
|
+
# Mebibytes (2^20 bytes)
|
122
|
+
MIB = 17
|
123
|
+
|
124
|
+
# Gibibytes (2^30 bytes)
|
125
|
+
GIB = 5
|
126
|
+
|
127
|
+
# Tebibytes (2^40 bytes)
|
128
|
+
TIB = 6
|
129
|
+
|
130
|
+
# Queries per second
|
131
|
+
QPS = 7
|
132
|
+
|
133
|
+
# Megabytes (10^6 bytes)
|
134
|
+
MB = 8
|
135
|
+
|
136
|
+
# Pebibytes (2^50 bytes)
|
137
|
+
PIB = 9
|
138
|
+
|
139
|
+
# Terabits (10^12 bits) per second
|
140
|
+
TBPS = 10
|
141
|
+
|
142
|
+
GBPS_BITS = 11
|
143
|
+
|
144
|
+
GIB_BITS = 12
|
145
|
+
|
146
|
+
MBPS_BITS = 13
|
147
|
+
|
148
|
+
MBPS_BYTES = 14
|
149
|
+
|
150
|
+
TBPS_BITS = 15
|
151
|
+
|
152
|
+
TBPS_BYTES = 16
|
153
|
+
|
154
|
+
KOPS = 18
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|