google-cloud-capacity_planner-v1beta 0.2.0 → 0.3.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/AUTHENTICATION.md +4 -4
- data/README.md +4 -4
- data/lib/google/cloud/capacity_planner/v1beta/rest.rb +1 -2
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/client.rb +11 -11
- data/lib/google/cloud/capacity_planner/v1beta/usage_service/rest/client.rb +11 -11
- data/lib/google/cloud/capacity_planner/v1beta/version.rb +1 -1
- data/lib/google/cloud/capacity_planner/v1beta.rb +2 -3
- data/lib/google/cloud/capacityplanner/v1beta/usage_service_pb.rb +1 -1
- data/proto_docs/google/cloud/capacityplanner/v1beta/usage_service.rb +11 -11
- metadata +1 -11
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/client.rb +0 -686
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/credentials.rb +0 -48
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/paths.rb +0 -64
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/client.rb +0 -639
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/service_stub.rb +0 -279
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest.rb +0 -54
- data/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service.rb +0 -57
- data/lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_pb.rb +0 -73
- data/lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_services_pb.rb +0 -54
- data/proto_docs/google/cloud/capacityplanner/v1beta/capacity_planning_service.rb +0 -374
@@ -1,374 +0,0 @@
|
|
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
|
-
# Request for getting a capacity plan.
|
25
|
-
# @!attribute [rw] name
|
26
|
-
# @return [::String]
|
27
|
-
# Required. The name of the capacity plan to retrieve.
|
28
|
-
# Format: projects/\\{project}/capacityPlans/\\{capacity_plan}
|
29
|
-
class GetCapacityPlanRequest
|
30
|
-
include ::Google::Protobuf::MessageExts
|
31
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
-
end
|
33
|
-
|
34
|
-
# Request for querying capacity plans.
|
35
|
-
# @!attribute [rw] parent
|
36
|
-
# @return [::String]
|
37
|
-
# Required. The parent resource container.
|
38
|
-
# Format:
|
39
|
-
# projects/\\{project} or
|
40
|
-
# folders/\\{folder} or
|
41
|
-
# organizations/\\{organization}
|
42
|
-
# @!attribute [rw] page_size
|
43
|
-
# @return [::Integer]
|
44
|
-
# Optional. The maximum number of plans to return per page. The service may
|
45
|
-
# return fewer than this value. If unspecified, the server will use a
|
46
|
-
# sensible default. The maximum value is 1000; values above 1000 will be
|
47
|
-
# coerced to 1000.
|
48
|
-
# @!attribute [rw] page_token
|
49
|
-
# @return [::String]
|
50
|
-
# Optional. A page token, received from a previous `QueryCapacityPlans` call.
|
51
|
-
# Provide this to retrieve the subsequent page.
|
52
|
-
# @!attribute [rw] location
|
53
|
-
# @return [::String]
|
54
|
-
# Optional. The Google Cloud Platform location of capacity plans. If
|
55
|
-
# unspecified, all locations will be included.
|
56
|
-
class QueryCapacityPlansRequest
|
57
|
-
include ::Google::Protobuf::MessageExts
|
58
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
-
end
|
60
|
-
|
61
|
-
# Response of querying capacity plans.
|
62
|
-
# @!attribute [rw] capacity_plans
|
63
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::CapacityPlan>]
|
64
|
-
# List of capacity plans.
|
65
|
-
# @!attribute [rw] next_page_token
|
66
|
-
# @return [::String]
|
67
|
-
# Token to retrieve the next page of results. This will be empty if there are
|
68
|
-
# no more pages.
|
69
|
-
class QueryCapacityPlansResponse
|
70
|
-
include ::Google::Protobuf::MessageExts
|
71
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
-
end
|
73
|
-
|
74
|
-
# Request for capacity plan insights.
|
75
|
-
# @!attribute [rw] parent
|
76
|
-
# @return [::String]
|
77
|
-
# Required. The parent resource container.
|
78
|
-
# Format: projects/\\{project}
|
79
|
-
# @!attribute [rw] capacity_plan_filters
|
80
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanFilters]
|
81
|
-
# Required. The filters to apply to the capacity plan.
|
82
|
-
class QueryCapacityPlanInsightsRequest
|
83
|
-
include ::Google::Protobuf::MessageExts
|
84
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
|
-
end
|
86
|
-
|
87
|
-
# Response for capacity plan insights.
|
88
|
-
# @!attribute [rw] aggregated_capacity_plan_view
|
89
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanView]
|
90
|
-
# Optional. The aggregated capacity plan view. This is the aggregated view of
|
91
|
-
# all the capacity plans that match the filters.
|
92
|
-
class QueryCapacityPlanInsightsResponse
|
93
|
-
include ::Google::Protobuf::MessageExts
|
94
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
-
end
|
96
|
-
|
97
|
-
# CapacityPlanFilters is a set of filters to apply to the capacity plan.
|
98
|
-
# @!attribute [rw] keys
|
99
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanKey>]
|
100
|
-
# Required. The capacity plan keys to include in the response.
|
101
|
-
# @!attribute [rw] capacity_types
|
102
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::CapacityType>]
|
103
|
-
# Required. The capacity types to include in the response.
|
104
|
-
# @!attribute [rw] capacity_plan_id
|
105
|
-
# @return [::String]
|
106
|
-
# Optional. Optional capacity plan id. Should be populated for request page
|
107
|
-
# to lock based on the same capacity plan.
|
108
|
-
class CapacityPlanFilters
|
109
|
-
include ::Google::Protobuf::MessageExts
|
110
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
-
end
|
112
|
-
|
113
|
-
# CapacityPlanKey is a the unique identifier for each Capacity Plan.
|
114
|
-
# @!attribute [rw] resource_container
|
115
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer]
|
116
|
-
# Required. The resource container associated with the capacity plan.
|
117
|
-
# @!attribute [rw] resource_id_key
|
118
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceIdKey]
|
119
|
-
# Required. The resource id key associated with the capacity plan.
|
120
|
-
# @!attribute [rw] location_id
|
121
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::LocationIdentifier]
|
122
|
-
# Required. Identifier of location.
|
123
|
-
class CapacityPlanKey
|
124
|
-
include ::Google::Protobuf::MessageExts
|
125
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
-
end
|
127
|
-
|
128
|
-
# CapacityPlanView contains the capacity plan key and the time series views.
|
129
|
-
# @!attribute [rw] key
|
130
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanKey]
|
131
|
-
# Required. The capacity plan key associated with the capacity plan view.
|
132
|
-
# @!attribute [rw] time_series_views
|
133
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::TimeSeriesView>]
|
134
|
-
# Required. The time series views associated with the capacity plan view.
|
135
|
-
class CapacityPlanView
|
136
|
-
include ::Google::Protobuf::MessageExts
|
137
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
138
|
-
end
|
139
|
-
|
140
|
-
# TimeSeriesView contains capacity_value which has the timeseries for a given
|
141
|
-
# type. Each type as a single timeseries associated with it.
|
142
|
-
# @!attribute [rw] type
|
143
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::CapacityType]
|
144
|
-
# Required. The capacity type associated with the time series view.
|
145
|
-
# @!attribute [rw] capacity_value
|
146
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::DemandValue]
|
147
|
-
# Required. The capacity value associated with the time series view.
|
148
|
-
class TimeSeriesView
|
149
|
-
include ::Google::Protobuf::MessageExts
|
150
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
151
|
-
end
|
152
|
-
|
153
|
-
# A plan for additional capacity needed by a Google Cloud Platform project.
|
154
|
-
# This is synonymous with CapacityDemand, CapacityRequest, and
|
155
|
-
# CapacityDemandRequest.
|
156
|
-
# @!attribute [rw] name
|
157
|
-
# @return [::String]
|
158
|
-
# Identifier. The name of the capacity plan.
|
159
|
-
#
|
160
|
-
# Format:
|
161
|
-
# projects/\\{project}/capacityPlans/\\{capacity_plan_id}
|
162
|
-
# @!attribute [rw] capacity_demand_metadata
|
163
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata]
|
164
|
-
# Optional. The metadata associated with a capacity demand.
|
165
|
-
# @!attribute [rw] service_demands
|
166
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::ServiceDemand>]
|
167
|
-
# Required. The capacity demand associated with a service.
|
168
|
-
# @!attribute [r] reporter
|
169
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::User]
|
170
|
-
# Output only. User who created the capacity plan.
|
171
|
-
# @!attribute [r] state
|
172
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::State]
|
173
|
-
# Output only. State of the plan.
|
174
|
-
# @!attribute [r] create_time
|
175
|
-
# @return [::Google::Protobuf::Timestamp]
|
176
|
-
# Output only. Timestamp when the plan was created.
|
177
|
-
# @!attribute [r] update_time
|
178
|
-
# @return [::Google::Protobuf::Timestamp]
|
179
|
-
# Output only. Timestamp when the plan was last updated.
|
180
|
-
# @!attribute [rw] description
|
181
|
-
# @return [::String]
|
182
|
-
# Optional. Description of the plan.
|
183
|
-
# @!attribute [rw] title
|
184
|
-
# @return [::String]
|
185
|
-
# Optional. Title of the plan.
|
186
|
-
class CapacityPlan
|
187
|
-
include ::Google::Protobuf::MessageExts
|
188
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
189
|
-
end
|
190
|
-
|
191
|
-
# The metadata associated with a capacity demand.
|
192
|
-
# @!attribute [rw] demand_preferences
|
193
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::DemandPreference>]
|
194
|
-
# Optional. The preferences associated with a capacity demand.
|
195
|
-
class DemandMetadata
|
196
|
-
include ::Google::Protobuf::MessageExts
|
197
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
|
-
end
|
199
|
-
|
200
|
-
# Preference associated with a request, such as flexibility with alternate
|
201
|
-
# resource type.
|
202
|
-
# @!attribute [r] preference_id
|
203
|
-
# @return [::String]
|
204
|
-
# Output only. The preference id.
|
205
|
-
# @!attribute [rw] value
|
206
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::Value]
|
207
|
-
# Required. The value of demand preference.
|
208
|
-
class DemandPreference
|
209
|
-
include ::Google::Protobuf::MessageExts
|
210
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
211
|
-
end
|
212
|
-
|
213
|
-
# Capacity demand for a service.
|
214
|
-
# @!attribute [rw] service
|
215
|
-
# @return [::String]
|
216
|
-
# Required. Name of the service.
|
217
|
-
# @!attribute [rw] demand_metadata
|
218
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata]
|
219
|
-
# Optional. The metadata associated with a service demand.
|
220
|
-
# @!attribute [rw] resource_demands
|
221
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::ResourceDemand>]
|
222
|
-
# Required. The demand associated with the resources.
|
223
|
-
class ServiceDemand
|
224
|
-
include ::Google::Protobuf::MessageExts
|
225
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
226
|
-
end
|
227
|
-
|
228
|
-
# Capacity demand for a resource.
|
229
|
-
# @!attribute [r] id
|
230
|
-
# @return [::String]
|
231
|
-
# Output only. Identifier of resource demand.
|
232
|
-
# @!attribute [rw] resource_container
|
233
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer]
|
234
|
-
# Required. The resource container associated with the demand.
|
235
|
-
# @!attribute [rw] resource_id
|
236
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier]
|
237
|
-
# Required. Identifier of resource.
|
238
|
-
# @!attribute [rw] location_id
|
239
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::LocationIdentifier]
|
240
|
-
# Required. Identifier of location.
|
241
|
-
# @!attribute [r] state
|
242
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::State]
|
243
|
-
# Output only. State of the resource demand.
|
244
|
-
# @!attribute [r] reporter
|
245
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::User]
|
246
|
-
# Output only. User who reported the demand.
|
247
|
-
# @!attribute [r] create_time
|
248
|
-
# @return [::Google::Protobuf::Timestamp]
|
249
|
-
# Output only. Timestamp when the demand was created.
|
250
|
-
# @!attribute [r] update_time
|
251
|
-
# @return [::Google::Protobuf::Timestamp]
|
252
|
-
# Output only. Timestamp when the demand was last updated.
|
253
|
-
# @!attribute [rw] demand_values
|
254
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::DemandValues]
|
255
|
-
# Required. The demand values associated with the resource.
|
256
|
-
# @!attribute [rw] demand_metadata
|
257
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata]
|
258
|
-
# Optional. The metadata associated with the demand.
|
259
|
-
# @!attribute [rw] child_resource_demands
|
260
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::ChildResourceDemand>]
|
261
|
-
# Optional. The child resource demands associated with the resource.
|
262
|
-
class ResourceDemand
|
263
|
-
include ::Google::Protobuf::MessageExts
|
264
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
265
|
-
end
|
266
|
-
|
267
|
-
# A user who created or updated a capacity demand.
|
268
|
-
# @!attribute [rw] email
|
269
|
-
# @return [::String]
|
270
|
-
# Required. Email of the user.
|
271
|
-
class User
|
272
|
-
include ::Google::Protobuf::MessageExts
|
273
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
274
|
-
end
|
275
|
-
|
276
|
-
# The capacity demand values for a resource.
|
277
|
-
# @!attribute [rw] values
|
278
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::DemandValue>]
|
279
|
-
# Required. The demand values.
|
280
|
-
class DemandValues
|
281
|
-
include ::Google::Protobuf::MessageExts
|
282
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
283
|
-
end
|
284
|
-
|
285
|
-
# Capacity demand value for a single resource attribute such as CPU count,
|
286
|
-
# vertex AI peak QPM, etc.
|
287
|
-
# @!attribute [rw] name
|
288
|
-
# @return [::String]
|
289
|
-
# Required. The name of the demand value such as CPU count.
|
290
|
-
# @!attribute [rw] time_values
|
291
|
-
# @return [::Array<::Google::Cloud::CapacityPlanner::V1beta::TimeValue>]
|
292
|
-
# Required. The demand values at different time points.
|
293
|
-
# @!attribute [rw] unit
|
294
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::Unit]
|
295
|
-
# Required. Unit of measurement.
|
296
|
-
class DemandValue
|
297
|
-
include ::Google::Protobuf::MessageExts
|
298
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
299
|
-
end
|
300
|
-
|
301
|
-
# Capacity demand value for a single time point.
|
302
|
-
# @!attribute [rw] time
|
303
|
-
# @return [::Google::Protobuf::Timestamp]
|
304
|
-
# Required. The time point. If this demand value is non-temporal, set time to
|
305
|
-
# -1.
|
306
|
-
# @!attribute [rw] value
|
307
|
-
# @return [::Float]
|
308
|
-
# Required. The demand value at the time point.
|
309
|
-
class TimeValue
|
310
|
-
include ::Google::Protobuf::MessageExts
|
311
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
312
|
-
end
|
313
|
-
|
314
|
-
# Capacity demand for a child resource such as shapes.
|
315
|
-
# @!attribute [rw] resource_id
|
316
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier]
|
317
|
-
# Required. Identifier of resource.
|
318
|
-
# @!attribute [rw] demand_values
|
319
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::DemandValues]
|
320
|
-
# Required. The demand values associated with the child resource.
|
321
|
-
# @!attribute [rw] demand_metadata
|
322
|
-
# @return [::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata]
|
323
|
-
# Optional. The metadata associated with the child resource demand.
|
324
|
-
class ChildResourceDemand
|
325
|
-
include ::Google::Protobuf::MessageExts
|
326
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
327
|
-
end
|
328
|
-
|
329
|
-
# The state of a capacity demand.
|
330
|
-
module State
|
331
|
-
# The state is unspecified.
|
332
|
-
STATE_UNSPECIFIED = 0
|
333
|
-
|
334
|
-
# The demand is pending review.
|
335
|
-
PENDING_REVIEW = 1
|
336
|
-
|
337
|
-
# The demand is in review.
|
338
|
-
IN_REVIEW = 3
|
339
|
-
|
340
|
-
# The demand is provisionally approved.
|
341
|
-
APPROVED_PROVISIONAL = 8
|
342
|
-
|
343
|
-
# The demand is obsolete.
|
344
|
-
OBSOLETE = 5
|
345
|
-
|
346
|
-
# The demand cannot be fulfilled.
|
347
|
-
CANNOT_BE_FULFILLED = 7
|
348
|
-
|
349
|
-
# The demand is on hold, contact sales.
|
350
|
-
ON_HOLD_CONTACT_SALES = 9
|
351
|
-
|
352
|
-
# The demand is in fulfillment.
|
353
|
-
IN_FULFILLMENT = 10
|
354
|
-
end
|
355
|
-
|
356
|
-
# CapacityType is the type of the capacity plan.
|
357
|
-
module CapacityType
|
358
|
-
# Default value.
|
359
|
-
CAPACITY_TYPE_UNKNOWN = 0
|
360
|
-
|
361
|
-
# Latest inorganic data stored in horizon DB that is in draft state.
|
362
|
-
CAPACITY_TYPE_INORGANIC_DRAFT = 1
|
363
|
-
|
364
|
-
# Latest inorganic data stored in horizon DB that are pending i.e. submitted
|
365
|
-
# or assessment.
|
366
|
-
CAPACITY_TYPE_INORGANIC_PENDING = 2
|
367
|
-
|
368
|
-
# Latest inorganic data stored in horizon DB that has been approved.
|
369
|
-
CAPACITY_TYPE_INORGANIC_APPROVED = 3
|
370
|
-
end
|
371
|
-
end
|
372
|
-
end
|
373
|
-
end
|
374
|
-
end
|