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
|
@@ -100,6 +100,18 @@ module Google
|
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
+
class ConsumerQuotaLimit
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class ConsumerQuotaMetric
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
103
115
|
class Context
|
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
117
|
|
|
@@ -280,12 +292,36 @@ module Google
|
|
|
280
292
|
include Google::Apis::Core::JsonObjectSupport
|
|
281
293
|
end
|
|
282
294
|
|
|
295
|
+
class ListAdminOverridesResponse
|
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
297
|
+
|
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
class ListConsumerOverridesResponse
|
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
303
|
+
|
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
class ListConsumerQuotaMetricsResponse
|
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
309
|
+
|
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
311
|
+
end
|
|
312
|
+
|
|
283
313
|
class ListOperationsResponse
|
|
284
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
285
315
|
|
|
286
316
|
include Google::Apis::Core::JsonObjectSupport
|
|
287
317
|
end
|
|
288
318
|
|
|
319
|
+
class ListProducerOverridesResponse
|
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
321
|
+
|
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
323
|
+
end
|
|
324
|
+
|
|
289
325
|
class ListServicesResponse
|
|
290
326
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
291
327
|
|
|
@@ -394,6 +430,12 @@ module Google
|
|
|
394
430
|
include Google::Apis::Core::JsonObjectSupport
|
|
395
431
|
end
|
|
396
432
|
|
|
433
|
+
class QuotaBucket
|
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
435
|
+
|
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
437
|
+
end
|
|
438
|
+
|
|
397
439
|
class QuotaLimit
|
|
398
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
399
441
|
|
|
@@ -610,6 +652,30 @@ module Google
|
|
|
610
652
|
end
|
|
611
653
|
end
|
|
612
654
|
|
|
655
|
+
class ConsumerQuotaLimit
|
|
656
|
+
# @private
|
|
657
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
658
|
+
property :allows_admin_overrides, as: 'allowsAdminOverrides'
|
|
659
|
+
property :is_precise, as: 'isPrecise'
|
|
660
|
+
property :metric, as: 'metric'
|
|
661
|
+
property :name, as: 'name'
|
|
662
|
+
collection :quota_buckets, as: 'quotaBuckets', class: Google::Apis::ServiceusageV1beta1::QuotaBucket, decorator: Google::Apis::ServiceusageV1beta1::QuotaBucket::Representation
|
|
663
|
+
|
|
664
|
+
property :unit, as: 'unit'
|
|
665
|
+
end
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
class ConsumerQuotaMetric
|
|
669
|
+
# @private
|
|
670
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
671
|
+
collection :consumer_quota_limits, as: 'consumerQuotaLimits', class: Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit, decorator: Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit::Representation
|
|
672
|
+
|
|
673
|
+
property :display_name, as: 'displayName'
|
|
674
|
+
property :metric, as: 'metric'
|
|
675
|
+
property :name, as: 'name'
|
|
676
|
+
end
|
|
677
|
+
end
|
|
678
|
+
|
|
613
679
|
class Context
|
|
614
680
|
# @private
|
|
615
681
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -952,6 +1018,33 @@ module Google
|
|
|
952
1018
|
end
|
|
953
1019
|
end
|
|
954
1020
|
|
|
1021
|
+
class ListAdminOverridesResponse
|
|
1022
|
+
# @private
|
|
1023
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1024
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1025
|
+
collection :overrides, as: 'overrides', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
1026
|
+
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
class ListConsumerOverridesResponse
|
|
1031
|
+
# @private
|
|
1032
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1033
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1034
|
+
collection :overrides, as: 'overrides', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
1035
|
+
|
|
1036
|
+
end
|
|
1037
|
+
end
|
|
1038
|
+
|
|
1039
|
+
class ListConsumerQuotaMetricsResponse
|
|
1040
|
+
# @private
|
|
1041
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1042
|
+
collection :metrics, as: 'metrics', class: Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric, decorator: Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric::Representation
|
|
1043
|
+
|
|
1044
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1045
|
+
end
|
|
1046
|
+
end
|
|
1047
|
+
|
|
955
1048
|
class ListOperationsResponse
|
|
956
1049
|
# @private
|
|
957
1050
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -961,6 +1054,15 @@ module Google
|
|
|
961
1054
|
end
|
|
962
1055
|
end
|
|
963
1056
|
|
|
1057
|
+
class ListProducerOverridesResponse
|
|
1058
|
+
# @private
|
|
1059
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1060
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1061
|
+
collection :overrides, as: 'overrides', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
1062
|
+
|
|
1063
|
+
end
|
|
1064
|
+
end
|
|
1065
|
+
|
|
964
1066
|
class ListServicesResponse
|
|
965
1067
|
# @private
|
|
966
1068
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1142,6 +1244,21 @@ module Google
|
|
|
1142
1244
|
end
|
|
1143
1245
|
end
|
|
1144
1246
|
|
|
1247
|
+
class QuotaBucket
|
|
1248
|
+
# @private
|
|
1249
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1250
|
+
property :admin_override, as: 'adminOverride', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
1251
|
+
|
|
1252
|
+
property :consumer_override, as: 'consumerOverride', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
1253
|
+
|
|
1254
|
+
property :default_limit, :numeric_string => true, as: 'defaultLimit'
|
|
1255
|
+
hash :dimensions, as: 'dimensions'
|
|
1256
|
+
property :effective_limit, :numeric_string => true, as: 'effectiveLimit'
|
|
1257
|
+
property :producer_override, as: 'producerOverride', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
1258
|
+
|
|
1259
|
+
end
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1145
1262
|
class QuotaLimit
|
|
1146
1263
|
# @private
|
|
1147
1264
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -335,6 +335,521 @@ module Google
|
|
|
335
335
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
336
336
|
execute_or_queue_command(command, &block)
|
|
337
337
|
end
|
|
338
|
+
|
|
339
|
+
# Retrieves a summary of quota information for a specific quota metric
|
|
340
|
+
# @param [String] name
|
|
341
|
+
# The resource name of the quota limit.
|
|
342
|
+
# An example name would be:
|
|
343
|
+
# projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.
|
|
344
|
+
# googleapis.com%2Fmutate_requests
|
|
345
|
+
# @param [String] view
|
|
346
|
+
# Specifies the level of detail for quota information in the response.
|
|
347
|
+
# @param [String] fields
|
|
348
|
+
# Selector specifying which fields to include in a partial response.
|
|
349
|
+
# @param [String] quota_user
|
|
350
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
351
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
352
|
+
# @param [Google::Apis::RequestOptions] options
|
|
353
|
+
# Request-specific options
|
|
354
|
+
#
|
|
355
|
+
# @yield [result, err] Result & error if block supplied
|
|
356
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric] parsed result object
|
|
357
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
358
|
+
#
|
|
359
|
+
# @return [Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric]
|
|
360
|
+
#
|
|
361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
364
|
+
def get_service_consumer_quota_metric(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
365
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
366
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric::Representation
|
|
367
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric
|
|
368
|
+
command.params['name'] = name unless name.nil?
|
|
369
|
+
command.query['view'] = view unless view.nil?
|
|
370
|
+
command.query['fields'] = fields unless fields.nil?
|
|
371
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
372
|
+
execute_or_queue_command(command, &block)
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Retrieves a summary of all quota information visible to the service
|
|
376
|
+
# consumer, organized by service metric. Each metric includes information
|
|
377
|
+
# about all of its defined limits. Each limit includes the limit
|
|
378
|
+
# configuration (quota unit, preciseness, default value), the current
|
|
379
|
+
# effective limit value, and all of the overrides applied to the limit.
|
|
380
|
+
# @param [String] parent
|
|
381
|
+
# Parent of the quotas resource.
|
|
382
|
+
# Some example names would be:
|
|
383
|
+
# projects/123/services/serviceconsumermanagement.googleapis.com
|
|
384
|
+
# folders/345/services/serviceconsumermanagement.googleapis.com
|
|
385
|
+
# organizations/456/services/serviceconsumermanagement.googleapis.com
|
|
386
|
+
# @param [Fixnum] page_size
|
|
387
|
+
# Requested size of the next page of data.
|
|
388
|
+
# @param [String] page_token
|
|
389
|
+
# Token identifying which result to start with; returned by a previous list
|
|
390
|
+
# call.
|
|
391
|
+
# @param [String] view
|
|
392
|
+
# Specifies the level of detail for quota information in the response.
|
|
393
|
+
# @param [String] fields
|
|
394
|
+
# Selector specifying which fields to include in a partial response.
|
|
395
|
+
# @param [String] quota_user
|
|
396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
398
|
+
# @param [Google::Apis::RequestOptions] options
|
|
399
|
+
# Request-specific options
|
|
400
|
+
#
|
|
401
|
+
# @yield [result, err] Result & error if block supplied
|
|
402
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::ListConsumerQuotaMetricsResponse] parsed result object
|
|
403
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
404
|
+
#
|
|
405
|
+
# @return [Google::Apis::ServiceusageV1beta1::ListConsumerQuotaMetricsResponse]
|
|
406
|
+
#
|
|
407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
410
|
+
def list_service_consumer_quota_metrics(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
411
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/consumerQuotaMetrics', options)
|
|
412
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::ListConsumerQuotaMetricsResponse::Representation
|
|
413
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::ListConsumerQuotaMetricsResponse
|
|
414
|
+
command.params['parent'] = parent unless parent.nil?
|
|
415
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
416
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
417
|
+
command.query['view'] = view unless view.nil?
|
|
418
|
+
command.query['fields'] = fields unless fields.nil?
|
|
419
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
420
|
+
execute_or_queue_command(command, &block)
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Retrieves a summary of quota information for a specific quota limit.
|
|
424
|
+
# @param [String] name
|
|
425
|
+
# The resource name of the quota limit.
|
|
426
|
+
# Use the quota limit resource name returned by previous
|
|
427
|
+
# ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.
|
|
428
|
+
# @param [String] view
|
|
429
|
+
# Specifies the level of detail for quota information in the response.
|
|
430
|
+
# @param [String] fields
|
|
431
|
+
# Selector specifying which fields to include in a partial response.
|
|
432
|
+
# @param [String] quota_user
|
|
433
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
434
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
435
|
+
# @param [Google::Apis::RequestOptions] options
|
|
436
|
+
# Request-specific options
|
|
437
|
+
#
|
|
438
|
+
# @yield [result, err] Result & error if block supplied
|
|
439
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit] parsed result object
|
|
440
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
441
|
+
#
|
|
442
|
+
# @return [Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit]
|
|
443
|
+
#
|
|
444
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
445
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
446
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
447
|
+
def get_service_consumer_quota_metric_limit(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
448
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
449
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit::Representation
|
|
450
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit
|
|
451
|
+
command.params['name'] = name unless name.nil?
|
|
452
|
+
command.query['view'] = view unless view.nil?
|
|
453
|
+
command.query['fields'] = fields unless fields.nil?
|
|
454
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
455
|
+
execute_or_queue_command(command, &block)
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
# Creates an admin override.
|
|
459
|
+
# An admin override is applied by an administrator of a parent folder or
|
|
460
|
+
# parent organization of the consumer receiving the override. An admin
|
|
461
|
+
# override is intended to limit the amount of quota the consumer can use out
|
|
462
|
+
# of the total quota pool allocated to all children of the folder or
|
|
463
|
+
# organization.
|
|
464
|
+
# @param [String] parent
|
|
465
|
+
# The resource name of the parent quota limit, returned by a
|
|
466
|
+
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
|
|
467
|
+
# An example name would be:
|
|
468
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
469
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
470
|
+
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
|
471
|
+
# @param [Boolean] force
|
|
472
|
+
# Whether to force the creation of the quota override.
|
|
473
|
+
# If creating an override would cause the effective quota for the consumer to
|
|
474
|
+
# decrease by more than 10 percent, the call is rejected, as a safety measure
|
|
475
|
+
# to avoid accidentally decreasing quota too quickly. Setting the force
|
|
476
|
+
# parameter to true ignores this restriction.
|
|
477
|
+
# @param [String] fields
|
|
478
|
+
# Selector specifying which fields to include in a partial response.
|
|
479
|
+
# @param [String] quota_user
|
|
480
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
481
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
482
|
+
# @param [Google::Apis::RequestOptions] options
|
|
483
|
+
# Request-specific options
|
|
484
|
+
#
|
|
485
|
+
# @yield [result, err] Result & error if block supplied
|
|
486
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::Operation] parsed result object
|
|
487
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
488
|
+
#
|
|
489
|
+
# @return [Google::Apis::ServiceusageV1beta1::Operation]
|
|
490
|
+
#
|
|
491
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
492
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
493
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
494
|
+
def create_service_consumer_quota_metric_limit_admin_override(parent, quota_override_object = nil, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
495
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/adminOverrides', options)
|
|
496
|
+
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
497
|
+
command.request_object = quota_override_object
|
|
498
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
|
499
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
|
500
|
+
command.params['parent'] = parent unless parent.nil?
|
|
501
|
+
command.query['force'] = force unless force.nil?
|
|
502
|
+
command.query['fields'] = fields unless fields.nil?
|
|
503
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
504
|
+
execute_or_queue_command(command, &block)
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Deletes an admin override.
|
|
508
|
+
# @param [String] name
|
|
509
|
+
# The resource name of the override to delete.
|
|
510
|
+
# An example name would be:
|
|
511
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
512
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
|
513
|
+
# @param [Boolean] force
|
|
514
|
+
# Whether to force the deletion of the quota override.
|
|
515
|
+
# If deleting an override would cause the effective quota for the consumer to
|
|
516
|
+
# decrease by more than 10 percent, the call is rejected, as a safety measure
|
|
517
|
+
# to avoid accidentally decreasing quota too quickly. Setting the force
|
|
518
|
+
# parameter to true ignores this restriction.
|
|
519
|
+
# @param [String] fields
|
|
520
|
+
# Selector specifying which fields to include in a partial response.
|
|
521
|
+
# @param [String] quota_user
|
|
522
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
523
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
524
|
+
# @param [Google::Apis::RequestOptions] options
|
|
525
|
+
# Request-specific options
|
|
526
|
+
#
|
|
527
|
+
# @yield [result, err] Result & error if block supplied
|
|
528
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::Operation] parsed result object
|
|
529
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
530
|
+
#
|
|
531
|
+
# @return [Google::Apis::ServiceusageV1beta1::Operation]
|
|
532
|
+
#
|
|
533
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
534
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
535
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
536
|
+
def delete_service_consumer_quota_metric_limit_admin_override(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
537
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
|
538
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
|
539
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
|
540
|
+
command.params['name'] = name unless name.nil?
|
|
541
|
+
command.query['force'] = force unless force.nil?
|
|
542
|
+
command.query['fields'] = fields unless fields.nil?
|
|
543
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
544
|
+
execute_or_queue_command(command, &block)
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
# Lists all admin overrides on this limit.
|
|
548
|
+
# @param [String] parent
|
|
549
|
+
# The resource name of the parent quota limit, returned by a
|
|
550
|
+
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
|
|
551
|
+
# An example name would be:
|
|
552
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
553
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
554
|
+
# @param [Fixnum] page_size
|
|
555
|
+
# Requested size of the next page of data.
|
|
556
|
+
# @param [String] page_token
|
|
557
|
+
# Token identifying which result to start with; returned by a previous list
|
|
558
|
+
# call.
|
|
559
|
+
# @param [String] fields
|
|
560
|
+
# Selector specifying which fields to include in a partial response.
|
|
561
|
+
# @param [String] quota_user
|
|
562
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
563
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
564
|
+
# @param [Google::Apis::RequestOptions] options
|
|
565
|
+
# Request-specific options
|
|
566
|
+
#
|
|
567
|
+
# @yield [result, err] Result & error if block supplied
|
|
568
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::ListAdminOverridesResponse] parsed result object
|
|
569
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
570
|
+
#
|
|
571
|
+
# @return [Google::Apis::ServiceusageV1beta1::ListAdminOverridesResponse]
|
|
572
|
+
#
|
|
573
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
574
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
575
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
576
|
+
def list_service_consumer_quota_metric_limit_admin_overrides(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
577
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/adminOverrides', options)
|
|
578
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::ListAdminOverridesResponse::Representation
|
|
579
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::ListAdminOverridesResponse
|
|
580
|
+
command.params['parent'] = parent unless parent.nil?
|
|
581
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
582
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
583
|
+
command.query['fields'] = fields unless fields.nil?
|
|
584
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
585
|
+
execute_or_queue_command(command, &block)
|
|
586
|
+
end
|
|
587
|
+
|
|
588
|
+
# Updates an admin override.
|
|
589
|
+
# @param [String] name
|
|
590
|
+
# The resource name of the override to update.
|
|
591
|
+
# An example name would be:
|
|
592
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
593
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
|
594
|
+
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
|
595
|
+
# @param [Boolean] force
|
|
596
|
+
# Whether to force the update of the quota override.
|
|
597
|
+
# If updating an override would cause the effective quota for the consumer to
|
|
598
|
+
# decrease by more than 10 percent, the call is rejected, as a safety measure
|
|
599
|
+
# to avoid accidentally decreasing quota too quickly. Setting the force
|
|
600
|
+
# parameter to true ignores this restriction.
|
|
601
|
+
# @param [String] update_mask
|
|
602
|
+
# Update only the specified fields of the override.
|
|
603
|
+
# If unset, all fields will be updated.
|
|
604
|
+
# @param [String] fields
|
|
605
|
+
# Selector specifying which fields to include in a partial response.
|
|
606
|
+
# @param [String] quota_user
|
|
607
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
608
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
609
|
+
# @param [Google::Apis::RequestOptions] options
|
|
610
|
+
# Request-specific options
|
|
611
|
+
#
|
|
612
|
+
# @yield [result, err] Result & error if block supplied
|
|
613
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::Operation] parsed result object
|
|
614
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
615
|
+
#
|
|
616
|
+
# @return [Google::Apis::ServiceusageV1beta1::Operation]
|
|
617
|
+
#
|
|
618
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
619
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
620
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
621
|
+
def patch_service_consumer_quota_metric_limit_admin_override(name, quota_override_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
622
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
|
623
|
+
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
624
|
+
command.request_object = quota_override_object
|
|
625
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
|
626
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
|
627
|
+
command.params['name'] = name unless name.nil?
|
|
628
|
+
command.query['force'] = force unless force.nil?
|
|
629
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
630
|
+
command.query['fields'] = fields unless fields.nil?
|
|
631
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
632
|
+
execute_or_queue_command(command, &block)
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
# Creates a consumer override.
|
|
636
|
+
# A consumer override is applied to the consumer on its own authority to
|
|
637
|
+
# limit its own quota usage. Consumer overrides cannot be used to grant more
|
|
638
|
+
# quota than would be allowed by admin overrides, producer overrides, or the
|
|
639
|
+
# default limit of the service.
|
|
640
|
+
# @param [String] parent
|
|
641
|
+
# The resource name of the parent quota limit, returned by a
|
|
642
|
+
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
|
|
643
|
+
# An example name would be:
|
|
644
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
645
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
646
|
+
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
|
647
|
+
# @param [Boolean] force
|
|
648
|
+
# Whether to force the creation of the quota override.
|
|
649
|
+
# If creating an override would cause the effective quota for the consumer to
|
|
650
|
+
# decrease by more than 10 percent, the call is rejected, as a safety measure
|
|
651
|
+
# to avoid accidentally decreasing quota too quickly. Setting the force
|
|
652
|
+
# parameter to true ignores this restriction.
|
|
653
|
+
# @param [String] fields
|
|
654
|
+
# Selector specifying which fields to include in a partial response.
|
|
655
|
+
# @param [String] quota_user
|
|
656
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
657
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
658
|
+
# @param [Google::Apis::RequestOptions] options
|
|
659
|
+
# Request-specific options
|
|
660
|
+
#
|
|
661
|
+
# @yield [result, err] Result & error if block supplied
|
|
662
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::Operation] parsed result object
|
|
663
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
664
|
+
#
|
|
665
|
+
# @return [Google::Apis::ServiceusageV1beta1::Operation]
|
|
666
|
+
#
|
|
667
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
668
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
669
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
670
|
+
def create_service_consumer_quota_metric_limit_consumer_override(parent, quota_override_object = nil, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
671
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/consumerOverrides', options)
|
|
672
|
+
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
673
|
+
command.request_object = quota_override_object
|
|
674
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
|
675
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
|
676
|
+
command.params['parent'] = parent unless parent.nil?
|
|
677
|
+
command.query['force'] = force unless force.nil?
|
|
678
|
+
command.query['fields'] = fields unless fields.nil?
|
|
679
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
680
|
+
execute_or_queue_command(command, &block)
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
# Deletes a consumer override.
|
|
684
|
+
# @param [String] name
|
|
685
|
+
# The resource name of the override to delete.
|
|
686
|
+
# An example name would be:
|
|
687
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
688
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
|
689
|
+
# @param [Boolean] force
|
|
690
|
+
# Whether to force the deletion of the quota override.
|
|
691
|
+
# If deleting an override would cause the effective quota for the consumer to
|
|
692
|
+
# decrease by more than 10 percent, the call is rejected, as a safety measure
|
|
693
|
+
# to avoid accidentally decreasing quota too quickly. Setting the force
|
|
694
|
+
# parameter to true ignores this restriction.
|
|
695
|
+
# @param [String] fields
|
|
696
|
+
# Selector specifying which fields to include in a partial response.
|
|
697
|
+
# @param [String] quota_user
|
|
698
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
699
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
700
|
+
# @param [Google::Apis::RequestOptions] options
|
|
701
|
+
# Request-specific options
|
|
702
|
+
#
|
|
703
|
+
# @yield [result, err] Result & error if block supplied
|
|
704
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::Operation] parsed result object
|
|
705
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
706
|
+
#
|
|
707
|
+
# @return [Google::Apis::ServiceusageV1beta1::Operation]
|
|
708
|
+
#
|
|
709
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
710
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
711
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
712
|
+
def delete_service_consumer_quota_metric_limit_consumer_override(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
713
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
|
714
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
|
715
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
|
716
|
+
command.params['name'] = name unless name.nil?
|
|
717
|
+
command.query['force'] = force unless force.nil?
|
|
718
|
+
command.query['fields'] = fields unless fields.nil?
|
|
719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
720
|
+
execute_or_queue_command(command, &block)
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# Lists all consumer overrides on this limit.
|
|
724
|
+
# @param [String] parent
|
|
725
|
+
# The resource name of the parent quota limit, returned by a
|
|
726
|
+
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
|
|
727
|
+
# An example name would be:
|
|
728
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
729
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
730
|
+
# @param [Fixnum] page_size
|
|
731
|
+
# Requested size of the next page of data.
|
|
732
|
+
# @param [String] page_token
|
|
733
|
+
# Token identifying which result to start with; returned by a previous list
|
|
734
|
+
# call.
|
|
735
|
+
# @param [String] fields
|
|
736
|
+
# Selector specifying which fields to include in a partial response.
|
|
737
|
+
# @param [String] quota_user
|
|
738
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
739
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
740
|
+
# @param [Google::Apis::RequestOptions] options
|
|
741
|
+
# Request-specific options
|
|
742
|
+
#
|
|
743
|
+
# @yield [result, err] Result & error if block supplied
|
|
744
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::ListConsumerOverridesResponse] parsed result object
|
|
745
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
746
|
+
#
|
|
747
|
+
# @return [Google::Apis::ServiceusageV1beta1::ListConsumerOverridesResponse]
|
|
748
|
+
#
|
|
749
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
750
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
751
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
752
|
+
def list_service_consumer_quota_metric_limit_consumer_overrides(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
753
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/consumerOverrides', options)
|
|
754
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::ListConsumerOverridesResponse::Representation
|
|
755
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::ListConsumerOverridesResponse
|
|
756
|
+
command.params['parent'] = parent unless parent.nil?
|
|
757
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
758
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
759
|
+
command.query['fields'] = fields unless fields.nil?
|
|
760
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
761
|
+
execute_or_queue_command(command, &block)
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
# Updates a consumer override.
|
|
765
|
+
# @param [String] name
|
|
766
|
+
# The resource name of the override to update.
|
|
767
|
+
# An example name would be:
|
|
768
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
769
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
|
770
|
+
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
|
771
|
+
# @param [Boolean] force
|
|
772
|
+
# Whether to force the update of the quota override.
|
|
773
|
+
# If updating an override would cause the effective quota for the consumer to
|
|
774
|
+
# decrease by more than 10 percent, the call is rejected, as a safety measure
|
|
775
|
+
# to avoid accidentally decreasing quota too quickly. Setting the force
|
|
776
|
+
# parameter to true ignores this restriction.
|
|
777
|
+
# @param [String] update_mask
|
|
778
|
+
# Update only the specified fields of the override.
|
|
779
|
+
# If unset, all fields will be updated.
|
|
780
|
+
# @param [String] fields
|
|
781
|
+
# Selector specifying which fields to include in a partial response.
|
|
782
|
+
# @param [String] quota_user
|
|
783
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
784
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
785
|
+
# @param [Google::Apis::RequestOptions] options
|
|
786
|
+
# Request-specific options
|
|
787
|
+
#
|
|
788
|
+
# @yield [result, err] Result & error if block supplied
|
|
789
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::Operation] parsed result object
|
|
790
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
791
|
+
#
|
|
792
|
+
# @return [Google::Apis::ServiceusageV1beta1::Operation]
|
|
793
|
+
#
|
|
794
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
795
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
796
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
797
|
+
def patch_service_consumer_quota_metric_limit_consumer_override(name, quota_override_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
798
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
|
799
|
+
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
|
800
|
+
command.request_object = quota_override_object
|
|
801
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
|
802
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
|
803
|
+
command.params['name'] = name unless name.nil?
|
|
804
|
+
command.query['force'] = force unless force.nil?
|
|
805
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
806
|
+
command.query['fields'] = fields unless fields.nil?
|
|
807
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
808
|
+
execute_or_queue_command(command, &block)
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# Lists all producer overrides on this limit.
|
|
812
|
+
# Unlike other types of overrides, producer overrides are under the control
|
|
813
|
+
# of the service producer and cannot be modified using this API.
|
|
814
|
+
# @param [String] parent
|
|
815
|
+
# The resource name of the parent quota limit, returned by a
|
|
816
|
+
# ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
|
|
817
|
+
# An example name would be:
|
|
818
|
+
# `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
|
819
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
820
|
+
# @param [Fixnum] page_size
|
|
821
|
+
# Requested size of the next page of data.
|
|
822
|
+
# @param [String] page_token
|
|
823
|
+
# Token identifying which result to start with; returned by a previous list
|
|
824
|
+
# call.
|
|
825
|
+
# @param [String] fields
|
|
826
|
+
# Selector specifying which fields to include in a partial response.
|
|
827
|
+
# @param [String] quota_user
|
|
828
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
829
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
830
|
+
# @param [Google::Apis::RequestOptions] options
|
|
831
|
+
# Request-specific options
|
|
832
|
+
#
|
|
833
|
+
# @yield [result, err] Result & error if block supplied
|
|
834
|
+
# @yieldparam result [Google::Apis::ServiceusageV1beta1::ListProducerOverridesResponse] parsed result object
|
|
835
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
836
|
+
#
|
|
837
|
+
# @return [Google::Apis::ServiceusageV1beta1::ListProducerOverridesResponse]
|
|
838
|
+
#
|
|
839
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
840
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
841
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
842
|
+
def list_service_consumer_quota_metric_limit_producer_overrides(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
843
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/producerOverrides', options)
|
|
844
|
+
command.response_representation = Google::Apis::ServiceusageV1beta1::ListProducerOverridesResponse::Representation
|
|
845
|
+
command.response_class = Google::Apis::ServiceusageV1beta1::ListProducerOverridesResponse
|
|
846
|
+
command.params['parent'] = parent unless parent.nil?
|
|
847
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
848
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
849
|
+
command.query['fields'] = fields unless fields.nil?
|
|
850
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
851
|
+
execute_or_queue_command(command, &block)
|
|
852
|
+
end
|
|
338
853
|
|
|
339
854
|
protected
|
|
340
855
|
|