google-api-client 0.37.2 → 0.37.3
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/CHANGELOG.md +74 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +11 -1
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +1 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +6 -5
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +2 -1
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +7 -71
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +0 -31
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +111 -9
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +56 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +151 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +2 -2
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +11 -0
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +4 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +23 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -5
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +30 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2.rb +4 -4
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2beta1.rb +4 -4
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +3 -3
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +224 -66
- data/generated/google/apis/container_v1/representations.rb +70 -0
- data/generated/google/apis/container_v1/service.rb +116 -116
- data/generated/google/apis/container_v1beta1/classes.rb +18 -4
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +18 -2
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +51 -0
- data/generated/google/apis/content_v2_1/representations.rb +15 -0
- data/generated/google/apis/content_v2_1/service.rb +73 -1
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +27 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +15 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +43 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -0
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2/service.rb +555 -16
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2beta1/service.rb +26 -42
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +417 -2
- data/generated/google/apis/dlp_v2/representations.rb +175 -0
- data/generated/google/apis/dlp_v2/service.rb +116 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1 -145
- data/generated/google/apis/file_v1/representations.rb +0 -34
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1 -145
- data/generated/google/apis/file_v1beta1/representations.rb +0 -34
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/service.rb +3 -3
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -0
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/logging_v2.rb +6 -7
- data/generated/google/apis/logging_v2/service.rb +5 -6
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +966 -21
- data/generated/google/apis/ml_v1/representations.rb +477 -0
- data/generated/google/apis/ml_v1/service.rb +491 -0
- data/generated/google/apis/{toolresults_v1.rb → networkmanagement_v1beta1.rb} +13 -9
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1856 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +664 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +214 -0
- data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1beta1/service.rb +123 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +84 -0
- data/generated/google/apis/run_v1/representations.rb +44 -0
- data/generated/google/apis/run_v1/service.rb +138 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +154 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +61 -0
- data/generated/google/apis/securitycenter_v1/service.rb +194 -6
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +183 -6
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -7
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +58 -1
- data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +8 -7
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +280 -7
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +117 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +515 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +7 -1
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +6 -3
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +13 -13
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/toolresults_v1/classes.rb +0 -696
- data/generated/google/apis/toolresults_v1/representations.rb +0 -438
- data/generated/google/apis/toolresults_v1/service.rb +0 -59
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
|
26
26
|
module BigqueryreservationV1beta1
|
|
27
27
|
VERSION = 'V1beta1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200229'
|
|
29
29
|
|
|
30
30
|
# View and manage your data in Google BigQuery
|
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
|
@@ -96,20 +96,18 @@ module Google
|
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
|
|
99
|
-
# (in the form of slots) with some
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
# downgraded to monthly after the commitment ends.
|
|
99
|
+
# (in the form of slots) with some committed period of usage. Monthly and
|
|
100
|
+
# annual commitments renew by default. Only flex commitments can be removed. In
|
|
101
|
+
# order to remove monthly or annual commitments, their plan needs to be changed
|
|
102
|
+
# to flex first.
|
|
104
103
|
# A capacity commitment resource exists as a child resource of the admin
|
|
105
104
|
# project.
|
|
106
105
|
class CapacityCommitment
|
|
107
106
|
include Google::Apis::Core::Hashable
|
|
108
107
|
|
|
109
|
-
# Output only. The end of the commitment period.
|
|
110
|
-
#
|
|
111
|
-
# capacity commitments
|
|
112
|
-
# time when the capacity commitment became ACTIVE.
|
|
108
|
+
# Output only. The end of the current commitment period. It is applicable only
|
|
109
|
+
# for ACTIVE
|
|
110
|
+
# capacity commitments.
|
|
113
111
|
# Corresponds to the JSON property `commitmentEndTime`
|
|
114
112
|
# @return [String]
|
|
115
113
|
attr_accessor :commitment_end_time
|
|
@@ -135,6 +133,13 @@ module Google
|
|
|
135
133
|
# @return [String]
|
|
136
134
|
attr_accessor :plan
|
|
137
135
|
|
|
136
|
+
# The plan this capacity commitment is converted to after commitment_end_time
|
|
137
|
+
# passes. Once the plan is changed, committed period is extended according to
|
|
138
|
+
# commitment plan. Only applicable for MONTHLY and ANNUAL commitments.
|
|
139
|
+
# Corresponds to the JSON property `renewalPlan`
|
|
140
|
+
# @return [String]
|
|
141
|
+
attr_accessor :renewal_plan
|
|
142
|
+
|
|
138
143
|
# Number of slots in this commitment.
|
|
139
144
|
# Corresponds to the JSON property `slotCount`
|
|
140
145
|
# @return [Fixnum]
|
|
@@ -155,6 +160,7 @@ module Google
|
|
|
155
160
|
@failure_status = args[:failure_status] if args.key?(:failure_status)
|
|
156
161
|
@name = args[:name] if args.key?(:name)
|
|
157
162
|
@plan = args[:plan] if args.key?(:plan)
|
|
163
|
+
@renewal_plan = args[:renewal_plan] if args.key?(:renewal_plan)
|
|
158
164
|
@slot_count = args[:slot_count] if args.key?(:slot_count)
|
|
159
165
|
@state = args[:state] if args.key?(:state)
|
|
160
166
|
end
|
|
@@ -257,6 +263,27 @@ module Google
|
|
|
257
263
|
end
|
|
258
264
|
end
|
|
259
265
|
|
|
266
|
+
# The request for ReservationService.MergeCapacityCommitments.
|
|
267
|
+
class MergeCapacityCommitmentsRequest
|
|
268
|
+
include Google::Apis::Core::Hashable
|
|
269
|
+
|
|
270
|
+
# Ids of capacity commitments to merge.
|
|
271
|
+
# These capacity commitments must exist under admin project and location
|
|
272
|
+
# specified in the parent.
|
|
273
|
+
# Corresponds to the JSON property `capacityCommitmentIds`
|
|
274
|
+
# @return [Array<String>]
|
|
275
|
+
attr_accessor :capacity_commitment_ids
|
|
276
|
+
|
|
277
|
+
def initialize(**args)
|
|
278
|
+
update!(**args)
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Update properties of this object
|
|
282
|
+
def update!(**args)
|
|
283
|
+
@capacity_commitment_ids = args[:capacity_commitment_ids] if args.key?(:capacity_commitment_ids)
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
|
|
260
287
|
# The request for
|
|
261
288
|
# ReservationService.MoveAssignment.
|
|
262
289
|
# Note: "bigquery.reservationAssignments.create" permission is required on the
|
|
@@ -350,6 +377,62 @@ module Google
|
|
|
350
377
|
end
|
|
351
378
|
end
|
|
352
379
|
|
|
380
|
+
# The request for ReservationService.SplitCapacityCommitment.
|
|
381
|
+
class SplitCapacityCommitmentRequest
|
|
382
|
+
include Google::Apis::Core::Hashable
|
|
383
|
+
|
|
384
|
+
# Number of slots in the capacity commitment after the split.
|
|
385
|
+
# Corresponds to the JSON property `slotCount`
|
|
386
|
+
# @return [Fixnum]
|
|
387
|
+
attr_accessor :slot_count
|
|
388
|
+
|
|
389
|
+
def initialize(**args)
|
|
390
|
+
update!(**args)
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Update properties of this object
|
|
394
|
+
def update!(**args)
|
|
395
|
+
@slot_count = args[:slot_count] if args.key?(:slot_count)
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# The response for ReservationService.SplitCapacityCommitment.
|
|
400
|
+
class SplitCapacityCommitmentResponse
|
|
401
|
+
include Google::Apis::Core::Hashable
|
|
402
|
+
|
|
403
|
+
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
|
|
404
|
+
# (in the form of slots) with some committed period of usage. Monthly and
|
|
405
|
+
# annual commitments renew by default. Only flex commitments can be removed. In
|
|
406
|
+
# order to remove monthly or annual commitments, their plan needs to be changed
|
|
407
|
+
# to flex first.
|
|
408
|
+
# A capacity commitment resource exists as a child resource of the admin
|
|
409
|
+
# project.
|
|
410
|
+
# Corresponds to the JSON property `first`
|
|
411
|
+
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
|
|
412
|
+
attr_accessor :first
|
|
413
|
+
|
|
414
|
+
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
|
|
415
|
+
# (in the form of slots) with some committed period of usage. Monthly and
|
|
416
|
+
# annual commitments renew by default. Only flex commitments can be removed. In
|
|
417
|
+
# order to remove monthly or annual commitments, their plan needs to be changed
|
|
418
|
+
# to flex first.
|
|
419
|
+
# A capacity commitment resource exists as a child resource of the admin
|
|
420
|
+
# project.
|
|
421
|
+
# Corresponds to the JSON property `second`
|
|
422
|
+
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
|
|
423
|
+
attr_accessor :second
|
|
424
|
+
|
|
425
|
+
def initialize(**args)
|
|
426
|
+
update!(**args)
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Update properties of this object
|
|
430
|
+
def update!(**args)
|
|
431
|
+
@first = args[:first] if args.key?(:first)
|
|
432
|
+
@second = args[:second] if args.key?(:second)
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
353
436
|
# The `Status` type defines a logical error model that is suitable for
|
|
354
437
|
# different programming environments, including REST APIs and RPC APIs. It is
|
|
355
438
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
@@ -388,6 +471,25 @@ module Google
|
|
|
388
471
|
@message = args[:message] if args.key?(:message)
|
|
389
472
|
end
|
|
390
473
|
end
|
|
474
|
+
|
|
475
|
+
# The request for ReservationService.UpgradeCapacityCommitmentPlan.
|
|
476
|
+
class UpgradeCapacityCommitmentPlanRequest
|
|
477
|
+
include Google::Apis::Core::Hashable
|
|
478
|
+
|
|
479
|
+
# New capacity commitment plan.
|
|
480
|
+
# Corresponds to the JSON property `plan`
|
|
481
|
+
# @return [String]
|
|
482
|
+
attr_accessor :plan
|
|
483
|
+
|
|
484
|
+
def initialize(**args)
|
|
485
|
+
update!(**args)
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# Update properties of this object
|
|
489
|
+
def update!(**args)
|
|
490
|
+
@plan = args[:plan] if args.key?(:plan)
|
|
491
|
+
end
|
|
492
|
+
end
|
|
391
493
|
end
|
|
392
494
|
end
|
|
393
495
|
end
|
|
@@ -64,6 +64,12 @@ module Google
|
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
class MergeCapacityCommitmentsRequest
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
67
73
|
class MoveAssignmentRequest
|
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
75
|
|
|
@@ -82,12 +88,30 @@ module Google
|
|
|
82
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
89
|
end
|
|
84
90
|
|
|
91
|
+
class SplitCapacityCommitmentRequest
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class SplitCapacityCommitmentResponse
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
85
103
|
class Status
|
|
86
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
105
|
|
|
88
106
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
107
|
end
|
|
90
108
|
|
|
109
|
+
class UpgradeCapacityCommitmentPlanRequest
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
91
115
|
class Assignment
|
|
92
116
|
# @private
|
|
93
117
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -115,6 +139,7 @@ module Google
|
|
|
115
139
|
|
|
116
140
|
property :name, as: 'name'
|
|
117
141
|
property :plan, as: 'plan'
|
|
142
|
+
property :renewal_plan, as: 'renewalPlan'
|
|
118
143
|
property :slot_count, :numeric_string => true, as: 'slotCount'
|
|
119
144
|
property :state, as: 'state'
|
|
120
145
|
end
|
|
@@ -153,6 +178,13 @@ module Google
|
|
|
153
178
|
end
|
|
154
179
|
end
|
|
155
180
|
|
|
181
|
+
class MergeCapacityCommitmentsRequest
|
|
182
|
+
# @private
|
|
183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
184
|
+
collection :capacity_commitment_ids, as: 'capacityCommitmentIds'
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
156
188
|
class MoveAssignmentRequest
|
|
157
189
|
# @private
|
|
158
190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -178,6 +210,23 @@ module Google
|
|
|
178
210
|
end
|
|
179
211
|
end
|
|
180
212
|
|
|
213
|
+
class SplitCapacityCommitmentRequest
|
|
214
|
+
# @private
|
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
216
|
+
property :slot_count, :numeric_string => true, as: 'slotCount'
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
class SplitCapacityCommitmentResponse
|
|
221
|
+
# @private
|
|
222
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
223
|
+
property :first, as: 'first', class: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment, decorator: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
|
|
224
|
+
|
|
225
|
+
property :second, as: 'second', class: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment, decorator: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
|
|
226
|
+
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
181
230
|
class Status
|
|
182
231
|
# @private
|
|
183
232
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -186,6 +235,13 @@ module Google
|
|
|
186
235
|
property :message, as: 'message'
|
|
187
236
|
end
|
|
188
237
|
end
|
|
238
|
+
|
|
239
|
+
class UpgradeCapacityCommitmentPlanRequest
|
|
240
|
+
# @private
|
|
241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
242
|
+
property :plan, as: 'plan'
|
|
243
|
+
end
|
|
244
|
+
end
|
|
189
245
|
end
|
|
190
246
|
end
|
|
191
247
|
end
|
|
@@ -320,6 +320,157 @@ module Google
|
|
|
320
320
|
execute_or_queue_command(command, &block)
|
|
321
321
|
end
|
|
322
322
|
|
|
323
|
+
# Merges capacity commitments of the same plan into one. Resulting capacity
|
|
324
|
+
# commitment has the longer commitment_end_time out of the two. Attempting to
|
|
325
|
+
# merge capacity commitments of different plan will fail with the error code
|
|
326
|
+
# `google.rpc.Code.FAILED_PRECONDITION`.
|
|
327
|
+
# @param [String] parent
|
|
328
|
+
# Parent resource that identifies admin project and location e.g.,
|
|
329
|
+
# projects/myproject/locations/us
|
|
330
|
+
# @param [Google::Apis::BigqueryreservationV1beta1::MergeCapacityCommitmentsRequest] merge_capacity_commitments_request_object
|
|
331
|
+
# @param [String] fields
|
|
332
|
+
# Selector specifying which fields to include in a partial response.
|
|
333
|
+
# @param [String] quota_user
|
|
334
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
335
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
336
|
+
# @param [Google::Apis::RequestOptions] options
|
|
337
|
+
# Request-specific options
|
|
338
|
+
#
|
|
339
|
+
# @yield [result, err] Result & error if block supplied
|
|
340
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] parsed result object
|
|
341
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
342
|
+
#
|
|
343
|
+
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
|
|
344
|
+
#
|
|
345
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
346
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
347
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
348
|
+
def merge_capacity_commitments(parent, merge_capacity_commitments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
349
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/capacityCommitments:merge', options)
|
|
350
|
+
command.request_representation = Google::Apis::BigqueryreservationV1beta1::MergeCapacityCommitmentsRequest::Representation
|
|
351
|
+
command.request_object = merge_capacity_commitments_request_object
|
|
352
|
+
command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
|
|
353
|
+
command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
|
|
354
|
+
command.params['parent'] = parent unless parent.nil?
|
|
355
|
+
command.query['fields'] = fields unless fields.nil?
|
|
356
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
357
|
+
execute_or_queue_command(command, &block)
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Updates an existing capacity commitment.
|
|
361
|
+
# Only renewal_plan field can be updated.
|
|
362
|
+
# @param [String] name
|
|
363
|
+
# Output only. The resource name of the capacity commitment, e.g.,
|
|
364
|
+
# projects/myproject/locations/US/capacityCommitments/123
|
|
365
|
+
# @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object
|
|
366
|
+
# @param [String] update_mask
|
|
367
|
+
# Standard field mask for the set of fields to be updated.
|
|
368
|
+
# @param [String] fields
|
|
369
|
+
# Selector specifying which fields to include in a partial response.
|
|
370
|
+
# @param [String] quota_user
|
|
371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
373
|
+
# @param [Google::Apis::RequestOptions] options
|
|
374
|
+
# Request-specific options
|
|
375
|
+
#
|
|
376
|
+
# @yield [result, err] Result & error if block supplied
|
|
377
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] parsed result object
|
|
378
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
379
|
+
#
|
|
380
|
+
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
|
|
381
|
+
#
|
|
382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
385
|
+
def patch_project_location_capacity_commitment(name, capacity_commitment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
386
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
|
387
|
+
command.request_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
|
|
388
|
+
command.request_object = capacity_commitment_object
|
|
389
|
+
command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
|
|
390
|
+
command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
|
|
391
|
+
command.params['name'] = name unless name.nil?
|
|
392
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
393
|
+
command.query['fields'] = fields unless fields.nil?
|
|
394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
395
|
+
execute_or_queue_command(command, &block)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Splits capacity commitment to two commitments of the same plan and
|
|
399
|
+
# commitment_end_time. A common use case to do that is to perform a downgrade
|
|
400
|
+
# e.g., in order to downgrade from 10000 slots to 8000, one might split 10000
|
|
401
|
+
# capacity commitment to 2000 and 8000, change the plan of the first one to
|
|
402
|
+
# flex and then delete it.
|
|
403
|
+
# @param [String] name
|
|
404
|
+
# Required. The resource name e.g.,:
|
|
405
|
+
# projects/myproject/locations/US/capacityCommitments/123
|
|
406
|
+
# @param [Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentRequest] split_capacity_commitment_request_object
|
|
407
|
+
# @param [String] fields
|
|
408
|
+
# Selector specifying which fields to include in a partial response.
|
|
409
|
+
# @param [String] quota_user
|
|
410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
412
|
+
# @param [Google::Apis::RequestOptions] options
|
|
413
|
+
# Request-specific options
|
|
414
|
+
#
|
|
415
|
+
# @yield [result, err] Result & error if block supplied
|
|
416
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse] parsed result object
|
|
417
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
418
|
+
#
|
|
419
|
+
# @return [Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse]
|
|
420
|
+
#
|
|
421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
424
|
+
def split_capacity_commitment(name, split_capacity_commitment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
425
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:split', options)
|
|
426
|
+
command.request_representation = Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentRequest::Representation
|
|
427
|
+
command.request_object = split_capacity_commitment_request_object
|
|
428
|
+
command.response_representation = Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse::Representation
|
|
429
|
+
command.response_class = Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse
|
|
430
|
+
command.params['name'] = name unless name.nil?
|
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
433
|
+
execute_or_queue_command(command, &block)
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# Replaces an existing commitment with a new commitment of a different plan.
|
|
437
|
+
# Plan can only be changed to a plan of a longer commitment period. New
|
|
438
|
+
# commitment start is set to a current time. Attempting to change to a plan
|
|
439
|
+
# with shorter commitment period will fail with the error code
|
|
440
|
+
# `google.rpc.Code.FAILED_PRECONDITION`.
|
|
441
|
+
# @param [String] capacity_commitment
|
|
442
|
+
# Required. The resource name e.g.,:
|
|
443
|
+
# projects/myproject/locations/US/capacityCommitments/123
|
|
444
|
+
# @param [Google::Apis::BigqueryreservationV1beta1::UpgradeCapacityCommitmentPlanRequest] upgrade_capacity_commitment_plan_request_object
|
|
445
|
+
# @param [String] fields
|
|
446
|
+
# Selector specifying which fields to include in a partial response.
|
|
447
|
+
# @param [String] quota_user
|
|
448
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
449
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
450
|
+
# @param [Google::Apis::RequestOptions] options
|
|
451
|
+
# Request-specific options
|
|
452
|
+
#
|
|
453
|
+
# @yield [result, err] Result & error if block supplied
|
|
454
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] parsed result object
|
|
455
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
456
|
+
#
|
|
457
|
+
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
|
|
458
|
+
#
|
|
459
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
460
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
461
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
462
|
+
def upgrade_capacity_commitment_plan(capacity_commitment, upgrade_capacity_commitment_plan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
463
|
+
command = make_simple_command(:post, 'v1beta1/{+capacityCommitment}:upgradeCapacityCommitmentPlan', options)
|
|
464
|
+
command.request_representation = Google::Apis::BigqueryreservationV1beta1::UpgradeCapacityCommitmentPlanRequest::Representation
|
|
465
|
+
command.request_object = upgrade_capacity_commitment_plan_request_object
|
|
466
|
+
command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
|
|
467
|
+
command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
|
|
468
|
+
command.params['capacityCommitment'] = capacity_commitment unless capacity_commitment.nil?
|
|
469
|
+
command.query['fields'] = fields unless fields.nil?
|
|
470
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
471
|
+
execute_or_queue_command(command, &block)
|
|
472
|
+
end
|
|
473
|
+
|
|
323
474
|
# Creates a new reservation resource.
|
|
324
475
|
# @param [String] parent
|
|
325
476
|
# Required. Project, location. E.g.,
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
|
27
27
|
module BillingbudgetsV1beta1
|
|
28
28
|
VERSION = 'V1beta1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200308'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -107,7 +107,7 @@ module Google
|
|
|
107
107
|
# @return [String]
|
|
108
108
|
attr_accessor :name
|
|
109
109
|
|
|
110
|
-
#
|
|
110
|
+
# Optional. Rules that trigger alerts (notifications of thresholds
|
|
111
111
|
# being crossed) when spend exceeds the specified percentages of the budget.
|
|
112
112
|
# Corresponds to the JSON property `thresholdRules`
|
|
113
113
|
# @return [Array<Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ThresholdRule>]
|
|
@@ -190,7 +190,7 @@ module Google
|
|
|
190
190
|
# @return [String]
|
|
191
191
|
attr_accessor :credit_types_treatment
|
|
192
192
|
|
|
193
|
-
# Optional. A set of projects of the form `projects/`
|
|
193
|
+
# Optional. A set of projects of the form `projects/`project``,
|
|
194
194
|
# specifying that usage from only this set of projects should be
|
|
195
195
|
# included in the budget. If omitted, the report will include all usage for
|
|
196
196
|
# the billing account, regardless of which project the usage occurred on.
|