google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -22,124 +22,124 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ScriptV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class JoinAsyncRequest
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class ExecutionResponse
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class JoinAsyncResponse
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class Operation
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class ScriptStackTraceElement
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class ExecutionError
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class Status
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class ExecutionRequest
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class JoinAsyncRequest
|
74
74
|
# @private
|
75
75
|
class Representation < Google::Apis::Core::JsonRepresentation
|
76
|
-
property :
|
77
|
-
property :
|
76
|
+
property :timeout, as: 'timeout'
|
77
|
+
property :script_id, as: 'scriptId'
|
78
|
+
collection :names, as: 'names'
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|
81
|
-
class
|
82
|
+
class ExecutionResponse
|
82
83
|
# @private
|
83
84
|
class Representation < Google::Apis::Core::JsonRepresentation
|
84
|
-
|
85
|
-
|
86
|
-
property :error_type, as: 'errorType'
|
87
|
-
property :error_message, as: 'errorMessage'
|
85
|
+
property :result, as: 'result'
|
88
86
|
end
|
89
87
|
end
|
90
88
|
|
91
|
-
class
|
89
|
+
class JoinAsyncResponse
|
92
90
|
# @private
|
93
91
|
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
-
|
95
|
-
|
96
|
-
property :code, as: 'code'
|
92
|
+
hash :results, as: 'results', class: Google::Apis::ScriptV1::Operation, decorator: Google::Apis::ScriptV1::Operation::Representation
|
93
|
+
|
97
94
|
end
|
98
95
|
end
|
99
96
|
|
100
|
-
class
|
97
|
+
class Operation
|
101
98
|
# @private
|
102
99
|
class Representation < Google::Apis::Core::JsonRepresentation
|
103
|
-
property :
|
104
|
-
|
105
|
-
|
106
|
-
property :
|
100
|
+
property :done, as: 'done'
|
101
|
+
hash :response, as: 'response'
|
102
|
+
property :name, as: 'name'
|
103
|
+
property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
|
104
|
+
|
105
|
+
hash :metadata, as: 'metadata'
|
107
106
|
end
|
108
107
|
end
|
109
108
|
|
110
|
-
class
|
109
|
+
class ScriptStackTraceElement
|
111
110
|
# @private
|
112
111
|
class Representation < Google::Apis::Core::JsonRepresentation
|
113
|
-
|
114
|
-
property :
|
115
|
-
property :script_id, as: 'scriptId'
|
112
|
+
property :function, as: 'function'
|
113
|
+
property :line_number, as: 'lineNumber'
|
116
114
|
end
|
117
115
|
end
|
118
116
|
|
119
|
-
class
|
117
|
+
class ExecutionError
|
120
118
|
# @private
|
121
119
|
class Representation < Google::Apis::Core::JsonRepresentation
|
122
|
-
property :
|
120
|
+
property :error_type, as: 'errorType'
|
121
|
+
property :error_message, as: 'errorMessage'
|
122
|
+
collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
|
123
|
+
|
123
124
|
end
|
124
125
|
end
|
125
126
|
|
126
|
-
class
|
127
|
+
class Status
|
127
128
|
# @private
|
128
129
|
class Representation < Google::Apis::Core::JsonRepresentation
|
129
|
-
|
130
|
-
property :
|
131
|
-
property :
|
132
|
-
|
133
|
-
hash :metadata, as: 'metadata'
|
134
|
-
property :done, as: 'done'
|
130
|
+
collection :details, as: 'details'
|
131
|
+
property :code, as: 'code'
|
132
|
+
property :message, as: 'message'
|
135
133
|
end
|
136
134
|
end
|
137
135
|
|
138
|
-
class
|
136
|
+
class ExecutionRequest
|
139
137
|
# @private
|
140
138
|
class Representation < Google::Apis::Core::JsonRepresentation
|
141
|
-
|
142
|
-
|
139
|
+
property :dev_mode, as: 'devMode'
|
140
|
+
property :function, as: 'function'
|
141
|
+
collection :parameters, as: 'parameters'
|
142
|
+
property :session_state, as: 'sessionState'
|
143
143
|
end
|
144
144
|
end
|
145
145
|
end
|
@@ -32,16 +32,16 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
|
34
34
|
class ScriptService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
35
|
# @return [String]
|
41
36
|
# Available to use for quota purposes for server-side applications. Can be any
|
42
37
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
38
|
attr_accessor :quota_user
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# API key. Your API key identifies your project and provides you with API access,
|
42
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
|
+
attr_accessor :key
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://script.googleapis.com/', '')
|
47
47
|
@batch_path = 'batch'
|
@@ -91,8 +91,8 @@ module Google
|
|
91
91
|
protected
|
92
92
|
|
93
93
|
def apply_command_defaults(command)
|
94
|
-
command.query['key'] = key unless key.nil?
|
95
94
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
95
|
+
command.query['key'] = key unless key.nil?
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
@@ -179,25 +179,25 @@ module Google
|
|
179
179
|
class RunMobileFriendlyTestRequest
|
180
180
|
include Google::Apis::Core::Hashable
|
181
181
|
|
182
|
-
# URL for inspection.
|
183
|
-
# Corresponds to the JSON property `url`
|
184
|
-
# @return [String]
|
185
|
-
attr_accessor :url
|
186
|
-
|
187
182
|
# Whether or not screenshot is requested. Default is false.
|
188
183
|
# Corresponds to the JSON property `requestScreenshot`
|
189
184
|
# @return [Boolean]
|
190
185
|
attr_accessor :request_screenshot
|
191
186
|
alias_method :request_screenshot?, :request_screenshot
|
192
187
|
|
188
|
+
# URL for inspection.
|
189
|
+
# Corresponds to the JSON property `url`
|
190
|
+
# @return [String]
|
191
|
+
attr_accessor :url
|
192
|
+
|
193
193
|
def initialize(**args)
|
194
194
|
update!(**args)
|
195
195
|
end
|
196
196
|
|
197
197
|
# Update properties of this object
|
198
198
|
def update!(**args)
|
199
|
-
@url = args[:url] if args.key?(:url)
|
200
199
|
@request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
|
200
|
+
@url = args[:url] if args.key?(:url)
|
201
201
|
end
|
202
202
|
end
|
203
203
|
end
|
@@ -120,8 +120,8 @@ module Google
|
|
120
120
|
class RunMobileFriendlyTestRequest
|
121
121
|
# @private
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation
|
123
|
-
property :url, as: 'url'
|
124
123
|
property :request_screenshot, as: 'requestScreenshot'
|
124
|
+
property :url, as: 'url'
|
125
125
|
end
|
126
126
|
end
|
127
127
|
end
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/service-control/
|
27
27
|
module ServicecontrolV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20170626'
|
30
30
|
|
31
31
|
# Manage your Google Service Control data
|
32
32
|
AUTH_SERVICECONTROL = 'https://www.googleapis.com/auth/servicecontrol'
|
@@ -22,116 +22,67 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ServicecontrolV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Represents a single metric value.
|
26
|
+
class MetricValue
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
|
39
|
-
# NOLINT
|
40
|
-
# Corresponds to the JSON property `callerSuppliedUserAgent`
|
41
|
-
# @return [String]
|
42
|
-
attr_accessor :caller_supplied_user_agent
|
43
|
-
|
44
|
-
# The IP address of the caller.
|
45
|
-
# Corresponds to the JSON property `callerIp`
|
46
|
-
# @return [String]
|
47
|
-
attr_accessor :caller_ip
|
48
|
-
|
49
|
-
def initialize(**args)
|
50
|
-
update!(**args)
|
51
|
-
end
|
52
|
-
|
53
|
-
# Update properties of this object
|
54
|
-
def update!(**args)
|
55
|
-
@caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
|
56
|
-
@caller_ip = args[:caller_ip] if args.key?(:caller_ip)
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
#
|
61
|
-
class QuotaError
|
62
|
-
include Google::Apis::Core::Hashable
|
29
|
+
# Distribution represents a frequency distribution of double-valued sample
|
30
|
+
# points. It contains the size of the population of sample points plus
|
31
|
+
# additional optional information:
|
32
|
+
# - the arithmetic mean of the samples
|
33
|
+
# - the minimum and maximum of the samples
|
34
|
+
# - the sum-squared-deviation of the samples, used to compute variance
|
35
|
+
# - a histogram of the values of the sample points
|
36
|
+
# Corresponds to the JSON property `distributionValue`
|
37
|
+
# @return [Google::Apis::ServicecontrolV1::Distribution]
|
38
|
+
attr_accessor :distribution_value
|
63
39
|
|
64
|
-
#
|
65
|
-
# Corresponds to the JSON property `
|
66
|
-
# @return [
|
67
|
-
attr_accessor :
|
40
|
+
# A boolean value.
|
41
|
+
# Corresponds to the JSON property `boolValue`
|
42
|
+
# @return [Boolean]
|
43
|
+
attr_accessor :bool_value
|
44
|
+
alias_method :bool_value?, :bool_value
|
68
45
|
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
# Corresponds to the JSON property `subject`
|
46
|
+
# The end of the time period over which this metric value's measurement
|
47
|
+
# applies.
|
48
|
+
# Corresponds to the JSON property `endTime`
|
73
49
|
# @return [String]
|
74
|
-
attr_accessor :
|
50
|
+
attr_accessor :end_time
|
75
51
|
|
76
|
-
#
|
77
|
-
#
|
52
|
+
# The start of the time period over which this metric value's measurement
|
53
|
+
# applies. The time period has different semantics for different metric
|
54
|
+
# types (cumulative, delta, and gauge). See the metric definition
|
55
|
+
# documentation in the service configuration for details.
|
56
|
+
# Corresponds to the JSON property `startTime`
|
78
57
|
# @return [String]
|
79
|
-
attr_accessor :
|
80
|
-
|
81
|
-
def initialize(**args)
|
82
|
-
update!(**args)
|
83
|
-
end
|
84
|
-
|
85
|
-
# Update properties of this object
|
86
|
-
def update!(**args)
|
87
|
-
@description = args[:description] if args.key?(:description)
|
88
|
-
@subject = args[:subject] if args.key?(:subject)
|
89
|
-
@code = args[:code] if args.key?(:code)
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
#
|
94
|
-
class CheckInfo
|
95
|
-
include Google::Apis::Core::Hashable
|
96
|
-
|
97
|
-
# A list of fields and label keys that are ignored by the server.
|
98
|
-
# The client doesn't need to send them for following requests to improve
|
99
|
-
# performance and allow better aggregation.
|
100
|
-
# Corresponds to the JSON property `unusedArguments`
|
101
|
-
# @return [Array<String>]
|
102
|
-
attr_accessor :unused_arguments
|
103
|
-
|
104
|
-
def initialize(**args)
|
105
|
-
update!(**args)
|
106
|
-
end
|
58
|
+
attr_accessor :start_time
|
107
59
|
|
108
|
-
#
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
end
|
60
|
+
# Represents an amount of money with its currency type.
|
61
|
+
# Corresponds to the JSON property `moneyValue`
|
62
|
+
# @return [Google::Apis::ServicecontrolV1::Money]
|
63
|
+
attr_accessor :money_value
|
113
64
|
|
114
|
-
|
115
|
-
|
116
|
-
|
65
|
+
# The labels describing the metric value.
|
66
|
+
# See comments on google.api.servicecontrol.v1.Operation.labels for
|
67
|
+
# the overriding relationship.
|
68
|
+
# Corresponds to the JSON property `labels`
|
69
|
+
# @return [Hash<String,String>]
|
70
|
+
attr_accessor :labels
|
117
71
|
|
118
|
-
#
|
119
|
-
#
|
120
|
-
# one will be used.
|
121
|
-
# Corresponds to the JSON property `serviceConfigId`
|
72
|
+
# A text string value.
|
73
|
+
# Corresponds to the JSON property `stringValue`
|
122
74
|
# @return [String]
|
123
|
-
attr_accessor :
|
75
|
+
attr_accessor :string_value
|
124
76
|
|
125
|
-
#
|
126
|
-
# Corresponds to the JSON property `
|
127
|
-
# @return [
|
128
|
-
attr_accessor :
|
77
|
+
# A double precision floating point value.
|
78
|
+
# Corresponds to the JSON property `doubleValue`
|
79
|
+
# @return [Float]
|
80
|
+
attr_accessor :double_value
|
129
81
|
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
|
134
|
-
attr_accessor :allocation_mode
|
82
|
+
# A signed 64-bit integer value.
|
83
|
+
# Corresponds to the JSON property `int64Value`
|
84
|
+
# @return [Fixnum]
|
85
|
+
attr_accessor :int64_value
|
135
86
|
|
136
87
|
def initialize(**args)
|
137
88
|
update!(**args)
|
@@ -139,32 +90,49 @@ module Google
|
|
139
90
|
|
140
91
|
# Update properties of this object
|
141
92
|
def update!(**args)
|
142
|
-
@
|
143
|
-
@
|
144
|
-
@
|
93
|
+
@distribution_value = args[:distribution_value] if args.key?(:distribution_value)
|
94
|
+
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
95
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
96
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
97
|
+
@money_value = args[:money_value] if args.key?(:money_value)
|
98
|
+
@labels = args[:labels] if args.key?(:labels)
|
99
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
100
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
101
|
+
@int64_value = args[:int64_value] if args.key?(:int64_value)
|
145
102
|
end
|
146
103
|
end
|
147
104
|
|
148
|
-
#
|
149
|
-
class
|
105
|
+
#
|
106
|
+
class EndReconciliationResponse
|
150
107
|
include Google::Apis::Core::Hashable
|
151
108
|
|
152
|
-
#
|
153
|
-
#
|
154
|
-
# 1.
|
155
|
-
#
|
156
|
-
# "serviceruntime.googleapis.com/api/consumer/quota_refund_count"
|
157
|
-
# 2. For allocation quota, per quota metric total usage will be specified
|
158
|
-
# using the following gauge metric:
|
109
|
+
# Metric values as tracked by One Platform before the adjustment was made.
|
110
|
+
# The following metrics will be included:
|
111
|
+
# 1. Per quota metric total usage will be specified using the following gauge
|
112
|
+
# metric:
|
159
113
|
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
160
|
-
#
|
161
|
-
#
|
114
|
+
# 2. Value for each quota limit associated with the metrics will be specified
|
115
|
+
# using the following gauge metric:
|
162
116
|
# "serviceruntime.googleapis.com/quota/limit"
|
117
|
+
# 3. Delta value of the usage after the reconciliation for limits associated
|
118
|
+
# with the metrics will be specified using the following metric:
|
119
|
+
# "serviceruntime.googleapis.com/allocation/reconciliation_delta"
|
120
|
+
# The delta value is defined as:
|
121
|
+
# new_usage_from_client - existing_value_in_spanner.
|
122
|
+
# This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
|
123
|
+
# This metric is meant for callers' use only. Since this metric is not
|
124
|
+
# defined in the monitoring backend, reporting on this metric will result in
|
125
|
+
# an error.
|
163
126
|
# Corresponds to the JSON property `quotaMetrics`
|
164
127
|
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
165
128
|
attr_accessor :quota_metrics
|
166
129
|
|
167
|
-
#
|
130
|
+
# Indicates the decision of the reconciliation end.
|
131
|
+
# Corresponds to the JSON property `reconciliationErrors`
|
132
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
133
|
+
attr_accessor :reconciliation_errors
|
134
|
+
|
135
|
+
# The same operation_id value used in the EndReconciliationRequest. Used for
|
168
136
|
# logging and diagnostics purposes.
|
169
137
|
# Corresponds to the JSON property `operationId`
|
170
138
|
# @return [String]
|
@@ -175,11 +143,6 @@ module Google
|
|
175
143
|
# @return [String]
|
176
144
|
attr_accessor :service_config_id
|
177
145
|
|
178
|
-
# Indicates the decision of the release.
|
179
|
-
# Corresponds to the JSON property `releaseErrors`
|
180
|
-
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
181
|
-
attr_accessor :release_errors
|
182
|
-
|
183
146
|
def initialize(**args)
|
184
147
|
update!(**args)
|
185
148
|
end
|
@@ -187,27 +150,36 @@ module Google
|
|
187
150
|
# Update properties of this object
|
188
151
|
def update!(**args)
|
189
152
|
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
153
|
+
@reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
|
190
154
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
191
155
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
192
|
-
@release_errors = args[:release_errors] if args.key?(:release_errors)
|
193
156
|
end
|
194
157
|
end
|
195
158
|
|
196
|
-
# Represents
|
197
|
-
|
198
|
-
# end time, and label values.
|
199
|
-
class MetricValueSet
|
159
|
+
# Represents an amount of money with its currency type.
|
160
|
+
class Money
|
200
161
|
include Google::Apis::Core::Hashable
|
201
162
|
|
202
|
-
# The
|
203
|
-
# Corresponds to the JSON property `
|
163
|
+
# The 3-letter currency code defined in ISO 4217.
|
164
|
+
# Corresponds to the JSON property `currencyCode`
|
204
165
|
# @return [String]
|
205
|
-
attr_accessor :
|
166
|
+
attr_accessor :currency_code
|
206
167
|
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
|
168
|
+
# Number of nano (10^-9) units of the amount.
|
169
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
170
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
171
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
172
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
173
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
174
|
+
# Corresponds to the JSON property `nanos`
|
175
|
+
# @return [Fixnum]
|
176
|
+
attr_accessor :nanos
|
177
|
+
|
178
|
+
# The whole units of the amount.
|
179
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
180
|
+
# Corresponds to the JSON property `units`
|
181
|
+
# @return [Fixnum]
|
182
|
+
attr_accessor :units
|
211
183
|
|
212
184
|
def initialize(**args)
|
213
185
|
update!(**args)
|
@@ -215,89 +187,78 @@ module Google
|
|
215
187
|
|
216
188
|
# Update properties of this object
|
217
189
|
def update!(**args)
|
218
|
-
@
|
219
|
-
@
|
190
|
+
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
191
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
192
|
+
@units = args[:units] if args.key?(:units)
|
220
193
|
end
|
221
194
|
end
|
222
195
|
|
223
|
-
#
|
224
|
-
|
196
|
+
# Distribution represents a frequency distribution of double-valued sample
|
197
|
+
# points. It contains the size of the population of sample points plus
|
198
|
+
# additional optional information:
|
199
|
+
# - the arithmetic mean of the samples
|
200
|
+
# - the minimum and maximum of the samples
|
201
|
+
# - the sum-squared-deviation of the samples, used to compute variance
|
202
|
+
# - a histogram of the values of the sample points
|
203
|
+
class Distribution
|
225
204
|
include Google::Apis::Core::Hashable
|
226
205
|
|
227
|
-
# The
|
228
|
-
# Corresponds to the JSON property `
|
229
|
-
# @return [
|
230
|
-
attr_accessor :
|
206
|
+
# The total number of samples in the distribution. Must be >= 0.
|
207
|
+
# Corresponds to the JSON property `count`
|
208
|
+
# @return [Fixnum]
|
209
|
+
attr_accessor :count
|
231
210
|
|
232
|
-
# The
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
|
237
|
-
# # Overview
|
238
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
239
|
-
# and error details. The error code should be an enum value of
|
240
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
241
|
-
# error message should be a developer-facing English message that helps
|
242
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
243
|
-
# error message is needed, put the localized message in the error details or
|
244
|
-
# localize it in the client. The optional error details may contain arbitrary
|
245
|
-
# information about the error. There is a predefined set of error detail types
|
246
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
247
|
-
# # Language mapping
|
248
|
-
# The `Status` message is the logical representation of the error model, but it
|
249
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
250
|
-
# exposed in different client libraries and different wire protocols, it can be
|
251
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
252
|
-
# in Java, but more likely mapped to some error codes in C.
|
253
|
-
# # Other uses
|
254
|
-
# The error model and the `Status` message can be used in a variety of
|
255
|
-
# environments, either with or without APIs, to provide a
|
256
|
-
# consistent developer experience across different environments.
|
257
|
-
# Example uses of this error model include:
|
258
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
259
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
260
|
-
# errors.
|
261
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
262
|
-
# have a `Status` message for error reporting.
|
263
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
264
|
-
# `Status` message should be used directly inside batch response, one for
|
265
|
-
# each error sub-response.
|
266
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
267
|
-
# results in its response, the status of those operations should be
|
268
|
-
# represented directly using the `Status` message.
|
269
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
270
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
271
|
-
# Corresponds to the JSON property `status`
|
272
|
-
# @return [Google::Apis::ServicecontrolV1::Status]
|
273
|
-
attr_accessor :status
|
211
|
+
# The arithmetic mean of the samples in the distribution. If `count` is
|
212
|
+
# zero then this field must be zero.
|
213
|
+
# Corresponds to the JSON property `mean`
|
214
|
+
# @return [Float]
|
215
|
+
attr_accessor :mean
|
274
216
|
|
275
|
-
|
276
|
-
|
277
|
-
|
217
|
+
# The number of samples in each histogram bucket. `bucket_counts` are
|
218
|
+
# optional. If present, they must sum to the `count` value.
|
219
|
+
# The buckets are defined below in `bucket_option`. There are N buckets.
|
220
|
+
# `bucket_counts[0]` is the number of samples in the underflow bucket.
|
221
|
+
# `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
222
|
+
# in each of the finite buckets. And `bucket_counts[N] is the number
|
223
|
+
# of samples in the overflow bucket. See the comments of `bucket_option`
|
224
|
+
# below for more details.
|
225
|
+
# Any suffix of trailing zeros may be omitted.
|
226
|
+
# Corresponds to the JSON property `bucketCounts`
|
227
|
+
# @return [Array<Fixnum>]
|
228
|
+
attr_accessor :bucket_counts
|
278
229
|
|
279
|
-
#
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
end
|
284
|
-
end
|
230
|
+
# Describing buckets with arbitrary user-provided width.
|
231
|
+
# Corresponds to the JSON property `explicitBuckets`
|
232
|
+
# @return [Google::Apis::ServicecontrolV1::ExplicitBuckets]
|
233
|
+
attr_accessor :explicit_buckets
|
285
234
|
|
286
|
-
|
287
|
-
|
288
|
-
|
235
|
+
# The maximum of the population of values. Ignored if `count` is zero.
|
236
|
+
# Corresponds to the JSON property `maximum`
|
237
|
+
# @return [Float]
|
238
|
+
attr_accessor :maximum
|
289
239
|
|
290
|
-
#
|
291
|
-
#
|
292
|
-
#
|
293
|
-
#
|
294
|
-
#
|
295
|
-
|
240
|
+
# The sum of squared deviations from the mean:
|
241
|
+
# Sum[i=1..count]((x_i - mean)^2)
|
242
|
+
# where each x_i is a sample values. If `count` is zero then this field
|
243
|
+
# must be zero, otherwise validation of the request fails.
|
244
|
+
# Corresponds to the JSON property `sumOfSquaredDeviation`
|
245
|
+
# @return [Float]
|
246
|
+
attr_accessor :sum_of_squared_deviation
|
296
247
|
|
297
|
-
#
|
298
|
-
# Corresponds to the JSON property `
|
299
|
-
# @return [Google::Apis::ServicecontrolV1::
|
300
|
-
attr_accessor :
|
248
|
+
# Describing buckets with exponentially growing width.
|
249
|
+
# Corresponds to the JSON property `exponentialBuckets`
|
250
|
+
# @return [Google::Apis::ServicecontrolV1::ExponentialBuckets]
|
251
|
+
attr_accessor :exponential_buckets
|
252
|
+
|
253
|
+
# The minimum of the population of values. Ignored if `count` is zero.
|
254
|
+
# Corresponds to the JSON property `minimum`
|
255
|
+
# @return [Float]
|
256
|
+
attr_accessor :minimum
|
257
|
+
|
258
|
+
# Describing buckets with constant width.
|
259
|
+
# Corresponds to the JSON property `linearBuckets`
|
260
|
+
# @return [Google::Apis::ServicecontrolV1::LinearBuckets]
|
261
|
+
attr_accessor :linear_buckets
|
301
262
|
|
302
263
|
def initialize(**args)
|
303
264
|
update!(**args)
|
@@ -305,25 +266,38 @@ module Google
|
|
305
266
|
|
306
267
|
# Update properties of this object
|
307
268
|
def update!(**args)
|
308
|
-
@
|
309
|
-
@
|
269
|
+
@count = args[:count] if args.key?(:count)
|
270
|
+
@mean = args[:mean] if args.key?(:mean)
|
271
|
+
@bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
|
272
|
+
@explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
|
273
|
+
@maximum = args[:maximum] if args.key?(:maximum)
|
274
|
+
@sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
|
275
|
+
@exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
|
276
|
+
@minimum = args[:minimum] if args.key?(:minimum)
|
277
|
+
@linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
|
310
278
|
end
|
311
279
|
end
|
312
280
|
|
313
|
-
#
|
314
|
-
|
315
|
-
class CheckError
|
281
|
+
# Describing buckets with arbitrary user-provided width.
|
282
|
+
class ExplicitBuckets
|
316
283
|
include Google::Apis::Core::Hashable
|
317
284
|
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
|
322
|
-
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
|
285
|
+
# 'bound' is a list of strictly increasing boundaries between
|
286
|
+
# buckets. Note that a list of length N-1 defines N buckets because
|
287
|
+
# of fenceposting. See comments on `bucket_options` for details.
|
288
|
+
# The i'th finite bucket covers the interval
|
289
|
+
# [bound[i-1], bound[i])
|
290
|
+
# where i ranges from 1 to bound_size() - 1. Note that there are no
|
291
|
+
# finite buckets at all if 'bound' only contains a single element; in
|
292
|
+
# that special case the single bound defines the boundary between the
|
293
|
+
# underflow and overflow buckets.
|
294
|
+
# bucket number lower bound upper bound
|
295
|
+
# i == 0 (underflow) -inf bound[i]
|
296
|
+
# 0 < i < bound_size() bound[i-1] bound[i]
|
297
|
+
# i == bound_size() (overflow) bound[i-1] +inf
|
298
|
+
# Corresponds to the JSON property `bounds`
|
299
|
+
# @return [Array<Float>]
|
300
|
+
attr_accessor :bounds
|
327
301
|
|
328
302
|
def initialize(**args)
|
329
303
|
update!(**args)
|
@@ -331,46 +305,36 @@ module Google
|
|
331
305
|
|
332
306
|
# Update properties of this object
|
333
307
|
def update!(**args)
|
334
|
-
@
|
335
|
-
@detail = args[:detail] if args.key?(:detail)
|
308
|
+
@bounds = args[:bounds] if args.key?(:bounds)
|
336
309
|
end
|
337
310
|
end
|
338
311
|
|
339
|
-
#
|
340
|
-
class
|
312
|
+
# Describing buckets with exponentially growing width.
|
313
|
+
class ExponentialBuckets
|
341
314
|
include Google::Apis::Core::Hashable
|
342
315
|
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
#
|
347
|
-
#
|
348
|
-
|
349
|
-
# @return [Array<String>]
|
350
|
-
attr_accessor :limit_exceeded
|
316
|
+
# The number of finite buckets. With the underflow and overflow buckets,
|
317
|
+
# the total number of buckets is `num_finite_buckets` + 2.
|
318
|
+
# See comments on `bucket_options` for details.
|
319
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
320
|
+
# @return [Fixnum]
|
321
|
+
attr_accessor :num_finite_buckets
|
351
322
|
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
# Corresponds to the JSON property `
|
357
|
-
# @return [
|
358
|
-
attr_accessor :
|
323
|
+
# The i'th exponential bucket covers the interval
|
324
|
+
# [scale * growth_factor^(i-1), scale * growth_factor^i)
|
325
|
+
# where i ranges from 1 to num_finite_buckets inclusive.
|
326
|
+
# Must be larger than 1.0.
|
327
|
+
# Corresponds to the JSON property `growthFactor`
|
328
|
+
# @return [Float]
|
329
|
+
attr_accessor :growth_factor
|
359
330
|
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
|
367
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
368
|
-
# 3. For both rate quota and allocation quota, the quota limit reached
|
369
|
-
# condition will be specified using the following boolean metric:
|
370
|
-
# "serviceruntime.googleapis.com/quota/exceeded"
|
371
|
-
# Corresponds to the JSON property `quotaMetrics`
|
372
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
373
|
-
attr_accessor :quota_metrics
|
331
|
+
# The i'th exponential bucket covers the interval
|
332
|
+
# [scale * growth_factor^(i-1), scale * growth_factor^i)
|
333
|
+
# where i ranges from 1 to num_finite_buckets inclusive.
|
334
|
+
# Must be > 0.
|
335
|
+
# Corresponds to the JSON property `scale`
|
336
|
+
# @return [Float]
|
337
|
+
attr_accessor :scale
|
374
338
|
|
375
339
|
def initialize(**args)
|
376
340
|
update!(**args)
|
@@ -378,41 +342,33 @@ module Google
|
|
378
342
|
|
379
343
|
# Update properties of this object
|
380
344
|
def update!(**args)
|
381
|
-
@
|
382
|
-
@
|
383
|
-
@
|
345
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
346
|
+
@growth_factor = args[:growth_factor] if args.key?(:growth_factor)
|
347
|
+
@scale = args[:scale] if args.key?(:scale)
|
384
348
|
end
|
385
349
|
end
|
386
350
|
|
387
|
-
#
|
388
|
-
class
|
351
|
+
# Authorization information for the operation.
|
352
|
+
class AuthorizationInfo
|
389
353
|
include Google::Apis::Core::Hashable
|
390
354
|
|
391
|
-
#
|
392
|
-
# Corresponds to the JSON property `
|
393
|
-
# @return [
|
394
|
-
attr_accessor :
|
395
|
-
alias_method :request_project_settings?, :request_project_settings
|
396
|
-
|
397
|
-
# Represents information regarding an operation.
|
398
|
-
# Corresponds to the JSON property `operation`
|
399
|
-
# @return [Google::Apis::ServicecontrolV1::Operation]
|
400
|
-
attr_accessor :operation
|
355
|
+
# The required IAM permission.
|
356
|
+
# Corresponds to the JSON property `permission`
|
357
|
+
# @return [String]
|
358
|
+
attr_accessor :permission
|
401
359
|
|
402
|
-
#
|
403
|
-
#
|
404
|
-
#
|
405
|
-
# latest one will be used.
|
406
|
-
# Corresponds to the JSON property `serviceConfigId`
|
360
|
+
# The resource being accessed, as a REST-style string. For example:
|
361
|
+
# bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
|
362
|
+
# Corresponds to the JSON property `resource`
|
407
363
|
# @return [String]
|
408
|
-
attr_accessor :
|
364
|
+
attr_accessor :resource
|
409
365
|
|
410
|
-
#
|
411
|
-
#
|
412
|
-
# Corresponds to the JSON property `
|
366
|
+
# Whether or not authorization for `resource` and `permission`
|
367
|
+
# was granted.
|
368
|
+
# Corresponds to the JSON property `granted`
|
413
369
|
# @return [Boolean]
|
414
|
-
attr_accessor :
|
415
|
-
alias_method :
|
370
|
+
attr_accessor :granted
|
371
|
+
alias_method :granted?, :granted
|
416
372
|
|
417
373
|
def initialize(**args)
|
418
374
|
update!(**args)
|
@@ -420,101 +376,144 @@ module Google
|
|
420
376
|
|
421
377
|
# Update properties of this object
|
422
378
|
def update!(**args)
|
423
|
-
@
|
424
|
-
@
|
425
|
-
@
|
426
|
-
@skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check)
|
379
|
+
@permission = args[:permission] if args.key?(:permission)
|
380
|
+
@resource = args[:resource] if args.key?(:resource)
|
381
|
+
@granted = args[:granted] if args.key?(:granted)
|
427
382
|
end
|
428
383
|
end
|
429
384
|
|
430
|
-
#
|
431
|
-
class
|
385
|
+
#
|
386
|
+
class StartReconciliationResponse
|
432
387
|
include Google::Apis::Core::Hashable
|
433
388
|
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
|
389
|
+
# Metric values as tracked by One Platform before the start of
|
390
|
+
# reconciliation. The following metrics will be included:
|
391
|
+
# 1. Per quota metric total usage will be specified using the following gauge
|
392
|
+
# metric:
|
393
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
394
|
+
# 2. Value for each quota limit associated with the metrics will be specified
|
395
|
+
# using the following gauge metric:
|
396
|
+
# "serviceruntime.googleapis.com/quota/limit"
|
397
|
+
# Corresponds to the JSON property `quotaMetrics`
|
398
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
399
|
+
attr_accessor :quota_metrics
|
438
400
|
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
|
443
|
-
# api_key:<api_key>.
|
444
|
-
# Corresponds to the JSON property `consumerId`
|
445
|
-
# @return [String]
|
446
|
-
attr_accessor :consumer_id
|
401
|
+
# Indicates the decision of the reconciliation start.
|
402
|
+
# Corresponds to the JSON property `reconciliationErrors`
|
403
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
404
|
+
attr_accessor :reconciliation_errors
|
447
405
|
|
448
|
-
#
|
449
|
-
#
|
450
|
-
# and ReleaseQuota on the same operation, the two calls should carry the
|
451
|
-
# same ID.
|
452
|
-
# UUID version 4 is recommended, though not required. In scenarios where an
|
453
|
-
# operation is computed from existing information and an idempotent id is
|
454
|
-
# desirable for deduplication purpose, UUID version 5 is recommended. See
|
455
|
-
# RFC 4122 for details.
|
406
|
+
# The same operation_id value used in the StartReconciliationRequest. Used
|
407
|
+
# for logging and diagnostics purposes.
|
456
408
|
# Corresponds to the JSON property `operationId`
|
457
409
|
# @return [String]
|
458
410
|
attr_accessor :operation_id
|
459
411
|
|
460
|
-
#
|
461
|
-
#
|
462
|
-
# billing status rules defined in service configuration. This field is not
|
463
|
-
# required if the quota operation is performed on non-API resources.
|
464
|
-
# Example of an RPC method name:
|
465
|
-
# google.example.library.v1.LibraryService.CreateShelf
|
466
|
-
# Corresponds to the JSON property `methodName`
|
412
|
+
# ID of the actual config used to process the request.
|
413
|
+
# Corresponds to the JSON property `serviceConfigId`
|
467
414
|
# @return [String]
|
468
|
-
attr_accessor :
|
415
|
+
attr_accessor :service_config_id
|
416
|
+
|
417
|
+
def initialize(**args)
|
418
|
+
update!(**args)
|
419
|
+
end
|
420
|
+
|
421
|
+
# Update properties of this object
|
422
|
+
def update!(**args)
|
423
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
424
|
+
@reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
|
425
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
426
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
# Represents the properties needed for quota operations.
|
431
|
+
class QuotaProperties
|
432
|
+
include Google::Apis::Core::Hashable
|
433
|
+
|
434
|
+
# LimitType IDs that should be used for checking quota. Key in this map
|
435
|
+
# should be a valid LimitType string, and the value is the ID to be used. For
|
436
|
+
# example, an entry <USER, 123> will cause all user quota limits to use 123
|
437
|
+
# as the user ID. See google/api/quota.proto for the definition of LimitType.
|
438
|
+
# CLIENT_PROJECT: Not supported.
|
439
|
+
# USER: Value of this entry will be used for enforcing user-level quota
|
440
|
+
# limits. If none specified, caller IP passed in the
|
441
|
+
# servicecontrol.googleapis.com/caller_ip label will be used instead.
|
442
|
+
# If the server cannot resolve a value for this LimitType, an error
|
443
|
+
# will be thrown. No validation will be performed on this ID.
|
444
|
+
# Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
|
445
|
+
# Corresponds to the JSON property `limitByIds`
|
446
|
+
# @return [Hash<String,String>]
|
447
|
+
attr_accessor :limit_by_ids
|
469
448
|
|
470
449
|
# Quota mode for this operation.
|
471
450
|
# Corresponds to the JSON property `quotaMode`
|
472
451
|
# @return [String]
|
473
452
|
attr_accessor :quota_mode
|
474
453
|
|
475
|
-
# Represents information about this operation. Each MetricValueSet
|
476
|
-
# corresponds to a metric defined in the service configuration.
|
477
|
-
# The data type used in the MetricValueSet must agree with
|
478
|
-
# the data type specified in the metric definition.
|
479
|
-
# Within a single operation, it is not allowed to have more than one
|
480
|
-
# MetricValue instances that have the same metric names and identical
|
481
|
-
# label value combinations. If a request has such duplicated MetricValue
|
482
|
-
# instances, the entire request is rejected with
|
483
|
-
# an invalid argument error.
|
484
|
-
# Corresponds to the JSON property `quotaMetrics`
|
485
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
486
|
-
attr_accessor :quota_metrics
|
487
|
-
|
488
454
|
def initialize(**args)
|
489
455
|
update!(**args)
|
490
456
|
end
|
491
457
|
|
492
458
|
# Update properties of this object
|
493
459
|
def update!(**args)
|
494
|
-
@
|
495
|
-
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
496
|
-
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
497
|
-
@method_name = args[:method_name] if args.key?(:method_name)
|
460
|
+
@limit_by_ids = args[:limit_by_ids] if args.key?(:limit_by_ids)
|
498
461
|
@quota_mode = args[:quota_mode] if args.key?(:quota_mode)
|
499
|
-
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
500
462
|
end
|
501
463
|
end
|
502
464
|
|
503
|
-
#
|
504
|
-
class
|
465
|
+
# Describing buckets with constant width.
|
466
|
+
class LinearBuckets
|
505
467
|
include Google::Apis::Core::Hashable
|
506
468
|
|
507
|
-
#
|
508
|
-
#
|
509
|
-
#
|
510
|
-
|
469
|
+
# The i'th linear bucket covers the interval
|
470
|
+
# [offset + (i-1) * width, offset + i * width)
|
471
|
+
# where i ranges from 1 to num_finite_buckets, inclusive.
|
472
|
+
# Must be strictly positive.
|
473
|
+
# Corresponds to the JSON property `width`
|
474
|
+
# @return [Float]
|
475
|
+
attr_accessor :width
|
511
476
|
|
512
|
-
#
|
513
|
-
#
|
514
|
-
#
|
515
|
-
# Corresponds to the JSON property `
|
477
|
+
# The i'th linear bucket covers the interval
|
478
|
+
# [offset + (i-1) * width, offset + i * width)
|
479
|
+
# where i ranges from 1 to num_finite_buckets, inclusive.
|
480
|
+
# Corresponds to the JSON property `offset`
|
481
|
+
# @return [Float]
|
482
|
+
attr_accessor :offset
|
483
|
+
|
484
|
+
# The number of finite buckets. With the underflow and overflow buckets,
|
485
|
+
# the total number of buckets is `num_finite_buckets` + 2.
|
486
|
+
# See comments on `bucket_options` for details.
|
487
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
488
|
+
# @return [Fixnum]
|
489
|
+
attr_accessor :num_finite_buckets
|
490
|
+
|
491
|
+
def initialize(**args)
|
492
|
+
update!(**args)
|
493
|
+
end
|
494
|
+
|
495
|
+
# Update properties of this object
|
496
|
+
def update!(**args)
|
497
|
+
@width = args[:width] if args.key?(:width)
|
498
|
+
@offset = args[:offset] if args.key?(:offset)
|
499
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
503
|
+
# Authentication information for the operation.
|
504
|
+
class AuthenticationInfo
|
505
|
+
include Google::Apis::Core::Hashable
|
506
|
+
|
507
|
+
# The email address of the authenticated user making the request.
|
508
|
+
# Corresponds to the JSON property `principalEmail`
|
516
509
|
# @return [String]
|
517
|
-
attr_accessor :
|
510
|
+
attr_accessor :principal_email
|
511
|
+
|
512
|
+
# The authority selector specified by the requestor, if any.
|
513
|
+
# It is not guaranteed that the principal was allowed to use this authority.
|
514
|
+
# Corresponds to the JSON property `authoritySelector`
|
515
|
+
# @return [String]
|
516
|
+
attr_accessor :authority_selector
|
518
517
|
|
519
518
|
def initialize(**args)
|
520
519
|
update!(**args)
|
@@ -522,24 +521,48 @@ module Google
|
|
522
521
|
|
523
522
|
# Update properties of this object
|
524
523
|
def update!(**args)
|
525
|
-
@
|
526
|
-
@
|
524
|
+
@principal_email = args[:principal_email] if args.key?(:principal_email)
|
525
|
+
@authority_selector = args[:authority_selector] if args.key?(:authority_selector)
|
527
526
|
end
|
528
527
|
end
|
529
528
|
|
530
|
-
#
|
531
|
-
class
|
529
|
+
# Response message for the AllocateQuota method.
|
530
|
+
class AllocateQuotaResponse
|
532
531
|
include Google::Apis::Core::Hashable
|
533
532
|
|
534
|
-
#
|
533
|
+
# Indicates the decision of the allocate.
|
534
|
+
# Corresponds to the JSON property `allocateErrors`
|
535
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
536
|
+
attr_accessor :allocate_errors
|
537
|
+
|
538
|
+
# Quota metrics to indicate the result of allocation. Depending on the
|
539
|
+
# request, one or more of the following metrics will be included:
|
540
|
+
# 1. For rate quota, per quota group or per quota metric incremental usage
|
541
|
+
# will be specified using the following delta metric:
|
542
|
+
# "serviceruntime.googleapis.com/api/consumer/quota_used_count"
|
543
|
+
# 2. For allocation quota, per quota metric total usage will be specified
|
544
|
+
# using the following gauge metric:
|
545
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
546
|
+
# 3. For both rate quota and allocation quota, the quota limit reached
|
547
|
+
# condition will be specified using the following boolean metric:
|
548
|
+
# "serviceruntime.googleapis.com/quota/exceeded"
|
549
|
+
# 4. For allocation quota, value for each quota limit associated with
|
550
|
+
# the metrics will be specified using the following gauge metric:
|
551
|
+
# "serviceruntime.googleapis.com/quota/limit"
|
552
|
+
# Corresponds to the JSON property `quotaMetrics`
|
553
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
554
|
+
attr_accessor :quota_metrics
|
555
|
+
|
556
|
+
# The same operation_id value used in the AllocateQuotaRequest. Used for
|
557
|
+
# logging and diagnostics purposes.
|
535
558
|
# Corresponds to the JSON property `operationId`
|
536
559
|
# @return [String]
|
537
560
|
attr_accessor :operation_id
|
538
561
|
|
539
|
-
#
|
540
|
-
# Corresponds to the JSON property `
|
541
|
-
# @return [
|
542
|
-
attr_accessor :
|
562
|
+
# ID of the actual config used to process the request.
|
563
|
+
# Corresponds to the JSON property `serviceConfigId`
|
564
|
+
# @return [String]
|
565
|
+
attr_accessor :service_config_id
|
543
566
|
|
544
567
|
def initialize(**args)
|
545
568
|
update!(**args)
|
@@ -547,164 +570,118 @@ module Google
|
|
547
570
|
|
548
571
|
# Update properties of this object
|
549
572
|
def update!(**args)
|
573
|
+
@allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
|
574
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
550
575
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
551
|
-
@
|
576
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
552
577
|
end
|
553
578
|
end
|
554
579
|
|
555
|
-
#
|
556
|
-
class
|
580
|
+
# Request message for the ReleaseQuota method.
|
581
|
+
class ReleaseQuotaRequest
|
557
582
|
include Google::Apis::Core::Hashable
|
558
583
|
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
-
# list indicates a complete success where all `Operations` in the
|
563
|
-
# request are processed successfully.
|
564
|
-
# 2. The combination of a successful RPC status and a non-empty
|
565
|
-
# `report_errors` list indicates a partial success where some
|
566
|
-
# `Operations` in the request succeeded. Each
|
567
|
-
# `Operation` that failed processing has a corresponding item
|
568
|
-
# in this list.
|
569
|
-
# 3. A failed RPC status indicates a general non-deterministic failure.
|
570
|
-
# When this happens, it's impossible to know which of the
|
571
|
-
# 'Operations' in the request succeeded or failed.
|
572
|
-
# Corresponds to the JSON property `reportErrors`
|
573
|
-
# @return [Array<Google::Apis::ServicecontrolV1::ReportError>]
|
574
|
-
attr_accessor :report_errors
|
575
|
-
|
576
|
-
# Quota usage for each quota release `Operation` request.
|
577
|
-
# Fully or partially failed quota release request may or may not be present
|
578
|
-
# in `report_quota_info`. For example, a failed quota release request will
|
579
|
-
# have the current quota usage info when precise quota library returns the
|
580
|
-
# info. A deadline exceeded quota request will not have quota usage info.
|
581
|
-
# If there is no quota release request, report_quota_info will be empty.
|
582
|
-
# Corresponds to the JSON property `reportInfos`
|
583
|
-
# @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
|
584
|
-
attr_accessor :report_infos
|
585
|
-
|
586
|
-
# The actual config id used to process the request.
|
584
|
+
# Specifies which version of service configuration should be used to process
|
585
|
+
# the request. If unspecified or no matching version can be found, the latest
|
586
|
+
# one will be used.
|
587
587
|
# Corresponds to the JSON property `serviceConfigId`
|
588
588
|
# @return [String]
|
589
589
|
attr_accessor :service_config_id
|
590
590
|
|
591
|
+
# Represents information regarding a quota operation.
|
592
|
+
# Corresponds to the JSON property `releaseOperation`
|
593
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
594
|
+
attr_accessor :release_operation
|
595
|
+
|
591
596
|
def initialize(**args)
|
592
597
|
update!(**args)
|
593
598
|
end
|
594
599
|
|
595
600
|
# Update properties of this object
|
596
601
|
def update!(**args)
|
597
|
-
@report_errors = args[:report_errors] if args.key?(:report_errors)
|
598
|
-
@report_infos = args[:report_infos] if args.key?(:report_infos)
|
599
602
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
603
|
+
@release_operation = args[:release_operation] if args.key?(:release_operation)
|
600
604
|
end
|
601
605
|
end
|
602
606
|
|
603
|
-
#
|
604
|
-
class
|
607
|
+
#
|
608
|
+
class QuotaError
|
605
609
|
include Google::Apis::Core::Hashable
|
606
610
|
|
607
|
-
#
|
608
|
-
#
|
609
|
-
# The data type used in the MetricValueSet must agree with
|
610
|
-
# the data type specified in the metric definition.
|
611
|
-
# Within a single operation, it is not allowed to have more than one
|
612
|
-
# MetricValue instances that have the same metric names and identical
|
613
|
-
# label value combinations. If a request has such duplicated MetricValue
|
614
|
-
# instances, the entire request is rejected with
|
615
|
-
# an invalid argument error.
|
616
|
-
# Corresponds to the JSON property `metricValueSets`
|
617
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
618
|
-
attr_accessor :metric_value_sets
|
619
|
-
|
620
|
-
# Represents the properties needed for quota operations.
|
621
|
-
# Corresponds to the JSON property `quotaProperties`
|
622
|
-
# @return [Google::Apis::ServicecontrolV1::QuotaProperties]
|
623
|
-
attr_accessor :quota_properties
|
624
|
-
|
625
|
-
# Identity of the consumer who is using the service.
|
626
|
-
# This field should be filled in for the operations initiated by a
|
627
|
-
# consumer, but not for service-initiated operations that are
|
628
|
-
# not related to a specific consumer.
|
629
|
-
# This can be in one of the following formats:
|
630
|
-
# project:<project_id>,
|
631
|
-
# project_number:<project_number>,
|
632
|
-
# api_key:<api_key>.
|
633
|
-
# Corresponds to the JSON property `consumerId`
|
611
|
+
# Free-form text that provides details on the cause of the error.
|
612
|
+
# Corresponds to the JSON property `description`
|
634
613
|
# @return [String]
|
635
|
-
attr_accessor :
|
614
|
+
attr_accessor :description
|
636
615
|
|
637
|
-
#
|
638
|
-
#
|
639
|
-
#
|
640
|
-
# the
|
641
|
-
# UUID version 4 is recommended, though not required.
|
642
|
-
# In scenarios where an operation is computed from existing information
|
643
|
-
# and an idempotent id is desirable for deduplication purpose, UUID version 5
|
644
|
-
# is recommended. See RFC 4122 for details.
|
645
|
-
# Corresponds to the JSON property `operationId`
|
616
|
+
# Subject to whom this error applies. See the specific enum for more details
|
617
|
+
# on this field. For example, "clientip:<ip address of client>" or
|
618
|
+
# "project:<Google developer project id>".
|
619
|
+
# Corresponds to the JSON property `subject`
|
646
620
|
# @return [String]
|
647
|
-
attr_accessor :
|
621
|
+
attr_accessor :subject
|
648
622
|
|
649
|
-
#
|
650
|
-
# Corresponds to the JSON property `
|
623
|
+
# Error code.
|
624
|
+
# Corresponds to the JSON property `code`
|
651
625
|
# @return [String]
|
652
|
-
attr_accessor :
|
626
|
+
attr_accessor :code
|
653
627
|
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
# Corresponds to the JSON property `endTime`
|
658
|
-
# @return [String]
|
659
|
-
attr_accessor :end_time
|
628
|
+
def initialize(**args)
|
629
|
+
update!(**args)
|
630
|
+
end
|
660
631
|
|
661
|
-
#
|
662
|
-
|
663
|
-
|
664
|
-
|
632
|
+
# Update properties of this object
|
633
|
+
def update!(**args)
|
634
|
+
@description = args[:description] if args.key?(:description)
|
635
|
+
@subject = args[:subject] if args.key?(:subject)
|
636
|
+
@code = args[:code] if args.key?(:code)
|
637
|
+
end
|
638
|
+
end
|
665
639
|
|
666
|
-
|
667
|
-
|
640
|
+
# Metadata about the request.
|
641
|
+
class RequestMetadata
|
642
|
+
include Google::Apis::Core::Hashable
|
643
|
+
|
644
|
+
# The IP address of the caller.
|
645
|
+
# Corresponds to the JSON property `callerIp`
|
668
646
|
# @return [String]
|
669
|
-
attr_accessor :
|
647
|
+
attr_accessor :caller_ip
|
670
648
|
|
671
|
-
# The
|
672
|
-
# This
|
673
|
-
#
|
674
|
-
# -
|
675
|
-
#
|
676
|
-
#
|
649
|
+
# The user agent of the caller.
|
650
|
+
# This information is not authenticated and should be treated accordingly.
|
651
|
+
# For example:
|
652
|
+
# + `google-api-python-client/1.4.0`:
|
653
|
+
# The request was made by the Google API client for Python.
|
654
|
+
# + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
|
655
|
+
# The request was made by the Google Cloud SDK CLI (gcloud).
|
656
|
+
# + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`
|
657
|
+
# :
|
658
|
+
# The request was made from the `my-project` App Engine app.
|
659
|
+
# NOLINT
|
660
|
+
# Corresponds to the JSON property `callerSuppliedUserAgent`
|
677
661
|
# @return [String]
|
678
|
-
attr_accessor :
|
662
|
+
attr_accessor :caller_supplied_user_agent
|
679
663
|
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
# - Default labels of metric values. When specified, labels defined in the
|
684
|
-
# metric value override these default.
|
685
|
-
# - The following labels defined by Google Cloud Platform:
|
686
|
-
# - `cloud.googleapis.com/location` describing the location where the
|
687
|
-
# operation happened,
|
688
|
-
# - `servicecontrol.googleapis.com/user_agent` describing the user agent
|
689
|
-
# of the API request,
|
690
|
-
# - `servicecontrol.googleapis.com/service_agent` describing the service
|
691
|
-
# used to handle the API request (e.g. ESP),
|
692
|
-
# - `servicecontrol.googleapis.com/platform` describing the platform
|
693
|
-
# where the API is served (e.g. GAE, GCE, GKE).
|
694
|
-
# Corresponds to the JSON property `labels`
|
695
|
-
# @return [Hash<String,String>]
|
696
|
-
attr_accessor :labels
|
664
|
+
def initialize(**args)
|
665
|
+
update!(**args)
|
666
|
+
end
|
697
667
|
|
698
|
-
#
|
699
|
-
|
700
|
-
|
701
|
-
|
668
|
+
# Update properties of this object
|
669
|
+
def update!(**args)
|
670
|
+
@caller_ip = args[:caller_ip] if args.key?(:caller_ip)
|
671
|
+
@caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
|
672
|
+
end
|
673
|
+
end
|
702
674
|
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
675
|
+
#
|
676
|
+
class CheckInfo
|
677
|
+
include Google::Apis::Core::Hashable
|
678
|
+
|
679
|
+
# A list of fields and label keys that are ignored by the server.
|
680
|
+
# The client doesn't need to send them for following requests to improve
|
681
|
+
# performance and allow better aggregation.
|
682
|
+
# Corresponds to the JSON property `unusedArguments`
|
683
|
+
# @return [Array<String>]
|
684
|
+
attr_accessor :unused_arguments
|
708
685
|
|
709
686
|
def initialize(**args)
|
710
687
|
update!(**args)
|
@@ -712,127 +689,79 @@ module Google
|
|
712
689
|
|
713
690
|
# Update properties of this object
|
714
691
|
def update!(**args)
|
715
|
-
@
|
716
|
-
@quota_properties = args[:quota_properties] if args.key?(:quota_properties)
|
717
|
-
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
718
|
-
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
719
|
-
@operation_name = args[:operation_name] if args.key?(:operation_name)
|
720
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
721
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
722
|
-
@importance = args[:importance] if args.key?(:importance)
|
723
|
-
@resource_container = args[:resource_container] if args.key?(:resource_container)
|
724
|
-
@labels = args[:labels] if args.key?(:labels)
|
725
|
-
@log_entries = args[:log_entries] if args.key?(:log_entries)
|
726
|
-
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
692
|
+
@unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments)
|
727
693
|
end
|
728
694
|
end
|
729
695
|
|
730
|
-
# Response message for the
|
731
|
-
class
|
696
|
+
# Response message for the ReleaseQuota method.
|
697
|
+
class ReleaseQuotaResponse
|
732
698
|
include Google::Apis::Core::Hashable
|
733
699
|
|
734
|
-
#
|
735
|
-
# Corresponds to the JSON property `
|
736
|
-
# @return [Google::Apis::ServicecontrolV1::
|
737
|
-
attr_accessor :
|
700
|
+
# Indicates the decision of the release.
|
701
|
+
# Corresponds to the JSON property `releaseErrors`
|
702
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
703
|
+
attr_accessor :release_errors
|
738
704
|
|
739
|
-
#
|
740
|
-
#
|
741
|
-
#
|
742
|
-
#
|
743
|
-
#
|
744
|
-
#
|
745
|
-
|
705
|
+
# Quota metrics to indicate the result of release. Depending on the
|
706
|
+
# request, one or more of the following metrics will be included:
|
707
|
+
# 1. For rate quota, per quota group or per quota metric released amount
|
708
|
+
# will be specified using the following delta metric:
|
709
|
+
# "serviceruntime.googleapis.com/api/consumer/quota_refund_count"
|
710
|
+
# 2. For allocation quota, per quota metric total usage will be specified
|
711
|
+
# using the following gauge metric:
|
712
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
713
|
+
# 3. For allocation quota, value for each quota limit associated with
|
714
|
+
# the metrics will be specified using the following gauge metric:
|
715
|
+
# "serviceruntime.googleapis.com/quota/limit"
|
716
|
+
# Corresponds to the JSON property `quotaMetrics`
|
717
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
718
|
+
attr_accessor :quota_metrics
|
746
719
|
|
747
|
-
# The same operation_id value used in the
|
748
|
-
#
|
720
|
+
# The same operation_id value used in the ReleaseQuotaRequest. Used for
|
721
|
+
# logging and diagnostics purposes.
|
749
722
|
# Corresponds to the JSON property `operationId`
|
750
723
|
# @return [String]
|
751
724
|
attr_accessor :operation_id
|
752
725
|
|
753
|
-
#
|
726
|
+
# ID of the actual config used to process the request.
|
754
727
|
# Corresponds to the JSON property `serviceConfigId`
|
755
728
|
# @return [String]
|
756
729
|
attr_accessor :service_config_id
|
757
730
|
|
758
|
-
# Contains the quota information for a quota check response.
|
759
|
-
# Corresponds to the JSON property `quotaInfo`
|
760
|
-
# @return [Google::Apis::ServicecontrolV1::QuotaInfo]
|
761
|
-
attr_accessor :quota_info
|
762
|
-
|
763
731
|
def initialize(**args)
|
764
732
|
update!(**args)
|
765
733
|
end
|
766
734
|
|
767
735
|
# Update properties of this object
|
768
736
|
def update!(**args)
|
769
|
-
@
|
770
|
-
@
|
737
|
+
@release_errors = args[:release_errors] if args.key?(:release_errors)
|
738
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
771
739
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
772
740
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
773
|
-
@quota_info = args[:quota_info] if args.key?(:quota_info)
|
774
741
|
end
|
775
742
|
end
|
776
743
|
|
777
|
-
#
|
778
|
-
|
779
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
780
|
-
# - Simple to use and understand for most users
|
781
|
-
# - Flexible enough to meet unexpected needs
|
782
|
-
# # Overview
|
783
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
784
|
-
# and error details. The error code should be an enum value of
|
785
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
786
|
-
# error message should be a developer-facing English message that helps
|
787
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
788
|
-
# error message is needed, put the localized message in the error details or
|
789
|
-
# localize it in the client. The optional error details may contain arbitrary
|
790
|
-
# information about the error. There is a predefined set of error detail types
|
791
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
792
|
-
# # Language mapping
|
793
|
-
# The `Status` message is the logical representation of the error model, but it
|
794
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
795
|
-
# exposed in different client libraries and different wire protocols, it can be
|
796
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
797
|
-
# in Java, but more likely mapped to some error codes in C.
|
798
|
-
# # Other uses
|
799
|
-
# The error model and the `Status` message can be used in a variety of
|
800
|
-
# environments, either with or without APIs, to provide a
|
801
|
-
# consistent developer experience across different environments.
|
802
|
-
# Example uses of this error model include:
|
803
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
804
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
805
|
-
# errors.
|
806
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
807
|
-
# have a `Status` message for error reporting.
|
808
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
809
|
-
# `Status` message should be used directly inside batch response, one for
|
810
|
-
# each error sub-response.
|
811
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
812
|
-
# results in its response, the status of those operations should be
|
813
|
-
# represented directly using the `Status` message.
|
814
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
815
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
816
|
-
class Status
|
744
|
+
# Request message for the AllocateQuota method.
|
745
|
+
class AllocateQuotaRequest
|
817
746
|
include Google::Apis::Core::Hashable
|
818
747
|
|
819
|
-
#
|
820
|
-
#
|
821
|
-
#
|
822
|
-
# Corresponds to the JSON property `
|
823
|
-
# @return [String]
|
824
|
-
attr_accessor :
|
825
|
-
|
826
|
-
# A list of messages that carry the error details. There will be a
|
827
|
-
# common set of message types for APIs to use.
|
828
|
-
# Corresponds to the JSON property `details`
|
829
|
-
# @return [Array<Hash<String,Object>>]
|
830
|
-
attr_accessor :details
|
748
|
+
# Specifies which version of service configuration should be used to process
|
749
|
+
# the request. If unspecified or no matching version can be found, the latest
|
750
|
+
# one will be used.
|
751
|
+
# Corresponds to the JSON property `serviceConfigId`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :service_config_id
|
831
754
|
|
832
|
-
#
|
833
|
-
# Corresponds to the JSON property `
|
834
|
-
# @return [
|
835
|
-
attr_accessor :
|
755
|
+
# Represents information regarding a quota operation.
|
756
|
+
# Corresponds to the JSON property `allocateOperation`
|
757
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
758
|
+
attr_accessor :allocate_operation
|
759
|
+
|
760
|
+
# Allocation mode for this operation.
|
761
|
+
# Deprecated: use QuotaMode inside the QuotaOperation.
|
762
|
+
# Corresponds to the JSON property `allocationMode`
|
763
|
+
# @return [String]
|
764
|
+
attr_accessor :allocation_mode
|
836
765
|
|
837
766
|
def initialize(**args)
|
838
767
|
update!(**args)
|
@@ -840,35 +769,27 @@ module Google
|
|
840
769
|
|
841
770
|
# Update properties of this object
|
842
771
|
def update!(**args)
|
843
|
-
@
|
844
|
-
@
|
845
|
-
@
|
772
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
773
|
+
@allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation)
|
774
|
+
@allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode)
|
846
775
|
end
|
847
776
|
end
|
848
777
|
|
849
|
-
#
|
850
|
-
|
778
|
+
# Represents a set of metric values in the same metric.
|
779
|
+
# Each metric value in the set should have a unique combination of start time,
|
780
|
+
# end time, and label values.
|
781
|
+
class MetricValueSet
|
851
782
|
include Google::Apis::Core::Hashable
|
852
783
|
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
856
|
-
|
857
|
-
# Corresponds to the JSON property `serviceConfigId`
|
858
|
-
# @return [String]
|
859
|
-
attr_accessor :service_config_id
|
784
|
+
# The values in this metric.
|
785
|
+
# Corresponds to the JSON property `metricValues`
|
786
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValue>]
|
787
|
+
attr_accessor :metric_values
|
860
788
|
|
861
|
-
#
|
862
|
-
#
|
863
|
-
#
|
864
|
-
|
865
|
-
# of the report.
|
866
|
-
# If multiple operations are in a single request, the total request size
|
867
|
-
# should be no larger than 1MB. See ReportResponse.report_errors for
|
868
|
-
# partial failure behavior.
|
869
|
-
# Corresponds to the JSON property `operations`
|
870
|
-
# @return [Array<Google::Apis::ServicecontrolV1::Operation>]
|
871
|
-
attr_accessor :operations
|
789
|
+
# The metric name defined in the service configuration.
|
790
|
+
# Corresponds to the JSON property `metricName`
|
791
|
+
# @return [String]
|
792
|
+
attr_accessor :metric_name
|
872
793
|
|
873
794
|
def initialize(**args)
|
874
795
|
update!(**args)
|
@@ -876,63 +797,15 @@ module Google
|
|
876
797
|
|
877
798
|
# Update properties of this object
|
878
799
|
def update!(**args)
|
879
|
-
@
|
880
|
-
@
|
800
|
+
@metric_values = args[:metric_values] if args.key?(:metric_values)
|
801
|
+
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
881
802
|
end
|
882
803
|
end
|
883
804
|
|
884
|
-
#
|
885
|
-
class
|
805
|
+
# Represents the processing error of one `Operation` in the request.
|
806
|
+
class ReportError
|
886
807
|
include Google::Apis::Core::Hashable
|
887
808
|
|
888
|
-
# Authorization information. If there are multiple
|
889
|
-
# resources or permissions involved, then there is
|
890
|
-
# one AuthorizationInfo element for each `resource, permission` tuple.
|
891
|
-
# Corresponds to the JSON property `authorizationInfo`
|
892
|
-
# @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
|
893
|
-
attr_accessor :authorization_info
|
894
|
-
|
895
|
-
# The resource or collection that is the target of the operation.
|
896
|
-
# The name is a scheme-less URI, not including the API service name.
|
897
|
-
# For example:
|
898
|
-
# "shelves/SHELF_ID/books"
|
899
|
-
# "shelves/SHELF_ID/books/BOOK_ID"
|
900
|
-
# Corresponds to the JSON property `resourceName`
|
901
|
-
# @return [String]
|
902
|
-
attr_accessor :resource_name
|
903
|
-
|
904
|
-
# The operation request. This may not include all request parameters,
|
905
|
-
# such as those that are too large, privacy-sensitive, or duplicated
|
906
|
-
# elsewhere in the log record.
|
907
|
-
# It should never include user-generated data, such as file contents.
|
908
|
-
# When the JSON object represented here has a proto equivalent, the proto
|
909
|
-
# name will be indicated in the `@type` property.
|
910
|
-
# Corresponds to the JSON property `request`
|
911
|
-
# @return [Hash<String,Object>]
|
912
|
-
attr_accessor :request
|
913
|
-
|
914
|
-
# Other service-specific data about the request, response, and other
|
915
|
-
# activities.
|
916
|
-
# Corresponds to the JSON property `serviceData`
|
917
|
-
# @return [Hash<String,Object>]
|
918
|
-
attr_accessor :service_data
|
919
|
-
|
920
|
-
# Metadata about the request.
|
921
|
-
# Corresponds to the JSON property `requestMetadata`
|
922
|
-
# @return [Google::Apis::ServicecontrolV1::RequestMetadata]
|
923
|
-
attr_accessor :request_metadata
|
924
|
-
|
925
|
-
# The number of items returned from a List or Query API method,
|
926
|
-
# if applicable.
|
927
|
-
# Corresponds to the JSON property `numResponseItems`
|
928
|
-
# @return [Fixnum]
|
929
|
-
attr_accessor :num_response_items
|
930
|
-
|
931
|
-
# Authentication information for the operation.
|
932
|
-
# Corresponds to the JSON property `authenticationInfo`
|
933
|
-
# @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
|
934
|
-
attr_accessor :authentication_info
|
935
|
-
|
936
809
|
# The `Status` type defines a logical error model that is suitable for different
|
937
810
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
938
811
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
@@ -976,30 +849,10 @@ module Google
|
|
976
849
|
# @return [Google::Apis::ServicecontrolV1::Status]
|
977
850
|
attr_accessor :status
|
978
851
|
|
979
|
-
# The
|
980
|
-
#
|
981
|
-
# elsewhere in the log record.
|
982
|
-
# It should never include user-generated data, such as file contents.
|
983
|
-
# When the JSON object represented here has a proto equivalent, the proto
|
984
|
-
# name will be indicated in the `@type` property.
|
985
|
-
# Corresponds to the JSON property `response`
|
986
|
-
# @return [Hash<String,Object>]
|
987
|
-
attr_accessor :response
|
988
|
-
|
989
|
-
# The name of the API service performing the operation. For example,
|
990
|
-
# `"datastore.googleapis.com"`.
|
991
|
-
# Corresponds to the JSON property `serviceName`
|
992
|
-
# @return [String]
|
993
|
-
attr_accessor :service_name
|
994
|
-
|
995
|
-
# The name of the service method or operation.
|
996
|
-
# For API calls, this should be the name of the API method.
|
997
|
-
# For example,
|
998
|
-
# "google.datastore.v1.Datastore.RunQuery"
|
999
|
-
# "google.logging.v1.LoggingService.DeleteLog"
|
1000
|
-
# Corresponds to the JSON property `methodName`
|
852
|
+
# The Operation.operation_id value from the request.
|
853
|
+
# Corresponds to the JSON property `operationId`
|
1001
854
|
# @return [String]
|
1002
|
-
attr_accessor :
|
855
|
+
attr_accessor :operation_id
|
1003
856
|
|
1004
857
|
def initialize(**args)
|
1005
858
|
update!(**args)
|
@@ -1007,71 +860,52 @@ module Google
|
|
1007
860
|
|
1008
861
|
# Update properties of this object
|
1009
862
|
def update!(**args)
|
1010
|
-
@authorization_info = args[:authorization_info] if args.key?(:authorization_info)
|
1011
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
1012
|
-
@request = args[:request] if args.key?(:request)
|
1013
|
-
@service_data = args[:service_data] if args.key?(:service_data)
|
1014
|
-
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
1015
|
-
@num_response_items = args[:num_response_items] if args.key?(:num_response_items)
|
1016
|
-
@authentication_info = args[:authentication_info] if args.key?(:authentication_info)
|
1017
863
|
@status = args[:status] if args.key?(:status)
|
1018
|
-
@
|
1019
|
-
@service_name = args[:service_name] if args.key?(:service_name)
|
1020
|
-
@method_name = args[:method_name] if args.key?(:method_name)
|
864
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1021
865
|
end
|
1022
866
|
end
|
1023
867
|
|
1024
|
-
#
|
1025
|
-
class
|
868
|
+
#
|
869
|
+
class StartReconciliationRequest
|
1026
870
|
include Google::Apis::Core::Hashable
|
1027
871
|
|
1028
|
-
#
|
1029
|
-
#
|
1030
|
-
#
|
1031
|
-
|
1032
|
-
attr_accessor :labels
|
872
|
+
# Represents information regarding a quota operation.
|
873
|
+
# Corresponds to the JSON property `reconciliationOperation`
|
874
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
875
|
+
attr_accessor :reconciliation_operation
|
1033
876
|
|
1034
|
-
#
|
1035
|
-
#
|
1036
|
-
#
|
877
|
+
# Specifies which version of service configuration should be used to process
|
878
|
+
# the request. If unspecified or no matching version can be found, the latest
|
879
|
+
# one will be used.
|
880
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1037
881
|
# @return [String]
|
1038
|
-
attr_accessor :
|
882
|
+
attr_accessor :service_config_id
|
1039
883
|
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
# @return [String]
|
1044
|
-
attr_accessor :name
|
884
|
+
def initialize(**args)
|
885
|
+
update!(**args)
|
886
|
+
end
|
1045
887
|
|
1046
|
-
#
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
888
|
+
# Update properties of this object
|
889
|
+
def update!(**args)
|
890
|
+
@reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
|
891
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
892
|
+
end
|
893
|
+
end
|
1051
894
|
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
attr_accessor :struct_payload
|
895
|
+
# Defines the errors to be returned in
|
896
|
+
# google.api.servicecontrol.v1.CheckResponse.check_errors.
|
897
|
+
class CheckError
|
898
|
+
include Google::Apis::Core::Hashable
|
1057
899
|
|
1058
|
-
#
|
1059
|
-
# Corresponds to the JSON property `
|
900
|
+
# Free-form text providing details on the error cause of the error.
|
901
|
+
# Corresponds to the JSON property `detail`
|
1060
902
|
# @return [String]
|
1061
|
-
attr_accessor :
|
1062
|
-
|
1063
|
-
# The log entry payload, represented as a protocol buffer that is
|
1064
|
-
# expressed as a JSON object. You can only pass `protoPayload`
|
1065
|
-
# values that belong to a set of approved types.
|
1066
|
-
# Corresponds to the JSON property `protoPayload`
|
1067
|
-
# @return [Hash<String,Object>]
|
1068
|
-
attr_accessor :proto_payload
|
903
|
+
attr_accessor :detail
|
1069
904
|
|
1070
|
-
# The
|
1071
|
-
#
|
1072
|
-
# Corresponds to the JSON property `timestamp`
|
905
|
+
# The error code.
|
906
|
+
# Corresponds to the JSON property `code`
|
1073
907
|
# @return [String]
|
1074
|
-
attr_accessor :
|
908
|
+
attr_accessor :code
|
1075
909
|
|
1076
910
|
def initialize(**args)
|
1077
911
|
update!(**args)
|
@@ -1079,78 +913,46 @@ module Google
|
|
1079
913
|
|
1080
914
|
# Update properties of this object
|
1081
915
|
def update!(**args)
|
1082
|
-
@
|
1083
|
-
@
|
1084
|
-
@name = args[:name] if args.key?(:name)
|
1085
|
-
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
1086
|
-
@struct_payload = args[:struct_payload] if args.key?(:struct_payload)
|
1087
|
-
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
1088
|
-
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
1089
|
-
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
916
|
+
@detail = args[:detail] if args.key?(:detail)
|
917
|
+
@code = args[:code] if args.key?(:code)
|
1090
918
|
end
|
1091
919
|
end
|
1092
920
|
|
1093
|
-
#
|
1094
|
-
class
|
921
|
+
# Contains the quota information for a quota check response.
|
922
|
+
class QuotaInfo
|
1095
923
|
include Google::Apis::Core::Hashable
|
1096
924
|
|
1097
|
-
#
|
1098
|
-
#
|
1099
|
-
#
|
1100
|
-
|
1101
|
-
|
1102
|
-
#
|
1103
|
-
|
1104
|
-
# @return [Fixnum]
|
1105
|
-
attr_accessor :int64_value
|
925
|
+
# Map of quota group name to the actual number of tokens consumed. If the
|
926
|
+
# quota check was not successful, then this will not be populated due to no
|
927
|
+
# quota consumption.
|
928
|
+
# Deprecated: Use quota_metrics to get per quota group usage.
|
929
|
+
# Corresponds to the JSON property `quotaConsumed`
|
930
|
+
# @return [Hash<String,Fixnum>]
|
931
|
+
attr_accessor :quota_consumed
|
1106
932
|
|
1107
|
-
#
|
1108
|
-
#
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
#
|
1112
|
-
#
|
1113
|
-
#
|
1114
|
-
#
|
1115
|
-
#
|
1116
|
-
|
1117
|
-
|
1118
|
-
#
|
1119
|
-
#
|
1120
|
-
|
1121
|
-
attr_accessor :bool_value
|
1122
|
-
alias_method :bool_value?, :bool_value
|
1123
|
-
|
1124
|
-
# The end of the time period over which this metric value's measurement
|
1125
|
-
# applies.
|
1126
|
-
# Corresponds to the JSON property `endTime`
|
1127
|
-
# @return [String]
|
1128
|
-
attr_accessor :end_time
|
1129
|
-
|
1130
|
-
# The start of the time period over which this metric value's measurement
|
1131
|
-
# applies. The time period has different semantics for different metric
|
1132
|
-
# types (cumulative, delta, and gauge). See the metric definition
|
1133
|
-
# documentation in the service configuration for details.
|
1134
|
-
# Corresponds to the JSON property `startTime`
|
1135
|
-
# @return [String]
|
1136
|
-
attr_accessor :start_time
|
1137
|
-
|
1138
|
-
# Represents an amount of money with its currency type.
|
1139
|
-
# Corresponds to the JSON property `moneyValue`
|
1140
|
-
# @return [Google::Apis::ServicecontrolV1::Money]
|
1141
|
-
attr_accessor :money_value
|
1142
|
-
|
1143
|
-
# A text string value.
|
1144
|
-
# Corresponds to the JSON property `stringValue`
|
1145
|
-
# @return [String]
|
1146
|
-
attr_accessor :string_value
|
933
|
+
# Quota metrics to indicate the usage. Depending on the check request, one or
|
934
|
+
# more of the following metrics will be included:
|
935
|
+
# 1. For rate quota, per quota group or per quota metric incremental usage
|
936
|
+
# will be specified using the following delta metric:
|
937
|
+
# "serviceruntime.googleapis.com/api/consumer/quota_used_count"
|
938
|
+
# 2. For allocation quota, per quota metric total usage will be specified
|
939
|
+
# using the following gauge metric:
|
940
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
941
|
+
# 3. For both rate quota and allocation quota, the quota limit reached
|
942
|
+
# condition will be specified using the following boolean metric:
|
943
|
+
# "serviceruntime.googleapis.com/quota/exceeded"
|
944
|
+
# Corresponds to the JSON property `quotaMetrics`
|
945
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
946
|
+
attr_accessor :quota_metrics
|
1147
947
|
|
1148
|
-
#
|
1149
|
-
#
|
1150
|
-
#
|
1151
|
-
#
|
1152
|
-
#
|
1153
|
-
|
948
|
+
# Quota Metrics that have exceeded quota limits.
|
949
|
+
# For QuotaGroup-based quota, this is QuotaGroup.name
|
950
|
+
# For QuotaLimit-based quota, this is QuotaLimit.name
|
951
|
+
# See: google.api.Quota
|
952
|
+
# Deprecated: Use quota_metrics to get per quota group limit exceeded status.
|
953
|
+
# Corresponds to the JSON property `limitExceeded`
|
954
|
+
# @return [Array<String>]
|
955
|
+
attr_accessor :limit_exceeded
|
1154
956
|
|
1155
957
|
def initialize(**args)
|
1156
958
|
update!(**args)
|
@@ -1158,96 +960,112 @@ module Google
|
|
1158
960
|
|
1159
961
|
# Update properties of this object
|
1160
962
|
def update!(**args)
|
1161
|
-
@
|
1162
|
-
@
|
1163
|
-
@
|
1164
|
-
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
1165
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
1166
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
1167
|
-
@money_value = args[:money_value] if args.key?(:money_value)
|
1168
|
-
@string_value = args[:string_value] if args.key?(:string_value)
|
1169
|
-
@labels = args[:labels] if args.key?(:labels)
|
963
|
+
@quota_consumed = args[:quota_consumed] if args.key?(:quota_consumed)
|
964
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
965
|
+
@limit_exceeded = args[:limit_exceeded] if args.key?(:limit_exceeded)
|
1170
966
|
end
|
1171
967
|
end
|
1172
968
|
|
1173
|
-
#
|
1174
|
-
class
|
969
|
+
# Request message for the Check method.
|
970
|
+
class CheckRequest
|
1175
971
|
include Google::Apis::Core::Hashable
|
1176
972
|
|
1177
|
-
# Indicates
|
1178
|
-
#
|
1179
|
-
#
|
1180
|
-
|
973
|
+
# Indicates if service activation check should be skipped for this request.
|
974
|
+
# Default behavior is to perform the check and apply relevant quota.
|
975
|
+
# Corresponds to the JSON property `skipActivationCheck`
|
976
|
+
# @return [Boolean]
|
977
|
+
attr_accessor :skip_activation_check
|
978
|
+
alias_method :skip_activation_check?, :skip_activation_check
|
1181
979
|
|
1182
|
-
#
|
1183
|
-
#
|
1184
|
-
#
|
1185
|
-
|
1186
|
-
|
980
|
+
# Requests the project settings to be returned as part of the check response.
|
981
|
+
# Corresponds to the JSON property `requestProjectSettings`
|
982
|
+
# @return [Boolean]
|
983
|
+
attr_accessor :request_project_settings
|
984
|
+
alias_method :request_project_settings?, :request_project_settings
|
1187
985
|
|
1188
|
-
#
|
986
|
+
# Represents information regarding an operation.
|
987
|
+
# Corresponds to the JSON property `operation`
|
988
|
+
# @return [Google::Apis::ServicecontrolV1::Operation]
|
989
|
+
attr_accessor :operation
|
990
|
+
|
991
|
+
# Specifies which version of service configuration should be used to process
|
992
|
+
# the request.
|
993
|
+
# If unspecified or no matching version can be found, the
|
994
|
+
# latest one will be used.
|
1189
995
|
# Corresponds to the JSON property `serviceConfigId`
|
1190
996
|
# @return [String]
|
1191
997
|
attr_accessor :service_config_id
|
1192
998
|
|
1193
|
-
# Metric values as tracked by One Platform before the adjustment was made.
|
1194
|
-
# The following metrics will be included:
|
1195
|
-
# 1. Per quota metric total usage will be specified using the following gauge
|
1196
|
-
# metric:
|
1197
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
1198
|
-
# 2. Value for each quota limit associated with the metrics will be specified
|
1199
|
-
# using the following gauge metric:
|
1200
|
-
# "serviceruntime.googleapis.com/quota/limit"
|
1201
|
-
# 3. Delta value of the usage after the reconciliation for limits associated
|
1202
|
-
# with the metrics will be specified using the following metric:
|
1203
|
-
# "serviceruntime.googleapis.com/allocation/reconciliation_delta"
|
1204
|
-
# The delta value is defined as:
|
1205
|
-
# new_usage_from_client - existing_value_in_spanner.
|
1206
|
-
# This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
|
1207
|
-
# This metric is meant for callers' use only. Since this metric is not
|
1208
|
-
# defined in the monitoring backend, reporting on this metric will result in
|
1209
|
-
# an error.
|
1210
|
-
# Corresponds to the JSON property `quotaMetrics`
|
1211
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1212
|
-
attr_accessor :quota_metrics
|
1213
|
-
|
1214
999
|
def initialize(**args)
|
1215
1000
|
update!(**args)
|
1216
1001
|
end
|
1217
1002
|
|
1218
1003
|
# Update properties of this object
|
1219
1004
|
def update!(**args)
|
1220
|
-
@
|
1221
|
-
@
|
1005
|
+
@skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check)
|
1006
|
+
@request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings)
|
1007
|
+
@operation = args[:operation] if args.key?(:operation)
|
1222
1008
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1223
|
-
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
1224
1009
|
end
|
1225
1010
|
end
|
1226
1011
|
|
1227
|
-
# Represents
|
1228
|
-
class
|
1012
|
+
# Represents information regarding a quota operation.
|
1013
|
+
class QuotaOperation
|
1229
1014
|
include Google::Apis::Core::Hashable
|
1230
1015
|
|
1231
|
-
#
|
1232
|
-
#
|
1233
|
-
#
|
1234
|
-
#
|
1235
|
-
#
|
1236
|
-
#
|
1237
|
-
#
|
1238
|
-
#
|
1239
|
-
|
1016
|
+
# Represents information about this operation. Each MetricValueSet
|
1017
|
+
# corresponds to a metric defined in the service configuration.
|
1018
|
+
# The data type used in the MetricValueSet must agree with
|
1019
|
+
# the data type specified in the metric definition.
|
1020
|
+
# Within a single operation, it is not allowed to have more than one
|
1021
|
+
# MetricValue instances that have the same metric names and identical
|
1022
|
+
# label value combinations. If a request has such duplicated MetricValue
|
1023
|
+
# instances, the entire request is rejected with
|
1024
|
+
# an invalid argument error.
|
1025
|
+
# Corresponds to the JSON property `quotaMetrics`
|
1026
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1027
|
+
attr_accessor :quota_metrics
|
1240
1028
|
|
1241
|
-
#
|
1242
|
-
#
|
1243
|
-
#
|
1244
|
-
|
1245
|
-
attr_accessor :units
|
1029
|
+
# Labels describing the operation.
|
1030
|
+
# Corresponds to the JSON property `labels`
|
1031
|
+
# @return [Hash<String,String>]
|
1032
|
+
attr_accessor :labels
|
1246
1033
|
|
1247
|
-
#
|
1248
|
-
#
|
1034
|
+
# Identity of the consumer for whom this quota operation is being performed.
|
1035
|
+
# This can be in one of the following formats:
|
1036
|
+
# project:<project_id>,
|
1037
|
+
# project_number:<project_number>,
|
1038
|
+
# api_key:<api_key>.
|
1039
|
+
# Corresponds to the JSON property `consumerId`
|
1249
1040
|
# @return [String]
|
1250
|
-
attr_accessor :
|
1041
|
+
attr_accessor :consumer_id
|
1042
|
+
|
1043
|
+
# Identity of the operation. This must be unique within the scope of the
|
1044
|
+
# service that generated the operation. If the service calls AllocateQuota
|
1045
|
+
# and ReleaseQuota on the same operation, the two calls should carry the
|
1046
|
+
# same ID.
|
1047
|
+
# UUID version 4 is recommended, though not required. In scenarios where an
|
1048
|
+
# operation is computed from existing information and an idempotent id is
|
1049
|
+
# desirable for deduplication purpose, UUID version 5 is recommended. See
|
1050
|
+
# RFC 4122 for details.
|
1051
|
+
# Corresponds to the JSON property `operationId`
|
1052
|
+
# @return [String]
|
1053
|
+
attr_accessor :operation_id
|
1054
|
+
|
1055
|
+
# Quota mode for this operation.
|
1056
|
+
# Corresponds to the JSON property `quotaMode`
|
1057
|
+
# @return [String]
|
1058
|
+
attr_accessor :quota_mode
|
1059
|
+
|
1060
|
+
# Fully qualified name of the API method for which this quota operation is
|
1061
|
+
# requested. This name is used for matching quota rules or metric rules and
|
1062
|
+
# billing status rules defined in service configuration. This field is not
|
1063
|
+
# required if the quota operation is performed on non-API resources.
|
1064
|
+
# Example of an RPC method name:
|
1065
|
+
# google.example.library.v1.LibraryService.CreateShelf
|
1066
|
+
# Corresponds to the JSON property `methodName`
|
1067
|
+
# @return [String]
|
1068
|
+
attr_accessor :method_name
|
1251
1069
|
|
1252
1070
|
def initialize(**args)
|
1253
1071
|
update!(**args)
|
@@ -1255,32 +1073,30 @@ module Google
|
|
1255
1073
|
|
1256
1074
|
# Update properties of this object
|
1257
1075
|
def update!(**args)
|
1258
|
-
@
|
1259
|
-
@
|
1260
|
-
@
|
1076
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
1077
|
+
@labels = args[:labels] if args.key?(:labels)
|
1078
|
+
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
1079
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1080
|
+
@quota_mode = args[:quota_mode] if args.key?(:quota_mode)
|
1081
|
+
@method_name = args[:method_name] if args.key?(:method_name)
|
1261
1082
|
end
|
1262
1083
|
end
|
1263
1084
|
|
1264
|
-
#
|
1265
|
-
class
|
1085
|
+
#
|
1086
|
+
class EndReconciliationRequest
|
1266
1087
|
include Google::Apis::Core::Hashable
|
1267
1088
|
|
1268
|
-
#
|
1269
|
-
#
|
1270
|
-
#
|
1271
|
-
|
1272
|
-
|
1273
|
-
#
|
1274
|
-
#
|
1275
|
-
#
|
1276
|
-
#
|
1277
|
-
#
|
1278
|
-
|
1279
|
-
# 0 < i < bound_size() bound[i-1] bound[i]
|
1280
|
-
# i == bound_size() (overflow) bound[i-1] +inf
|
1281
|
-
# Corresponds to the JSON property `bounds`
|
1282
|
-
# @return [Array<Float>]
|
1283
|
-
attr_accessor :bounds
|
1089
|
+
# Represents information regarding a quota operation.
|
1090
|
+
# Corresponds to the JSON property `reconciliationOperation`
|
1091
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
1092
|
+
attr_accessor :reconciliation_operation
|
1093
|
+
|
1094
|
+
# Specifies which version of service configuration should be used to process
|
1095
|
+
# the request. If unspecified or no matching version can be found, the latest
|
1096
|
+
# one will be used.
|
1097
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1098
|
+
# @return [String]
|
1099
|
+
attr_accessor :service_config_id
|
1284
1100
|
|
1285
1101
|
def initialize(**args)
|
1286
1102
|
update!(**args)
|
@@ -1288,76 +1104,24 @@ module Google
|
|
1288
1104
|
|
1289
1105
|
# Update properties of this object
|
1290
1106
|
def update!(**args)
|
1291
|
-
@
|
1107
|
+
@reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
|
1108
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1292
1109
|
end
|
1293
1110
|
end
|
1294
1111
|
|
1295
|
-
#
|
1296
|
-
|
1297
|
-
# additional optional information:
|
1298
|
-
# - the arithmetic mean of the samples
|
1299
|
-
# - the minimum and maximum of the samples
|
1300
|
-
# - the sum-squared-deviation of the samples, used to compute variance
|
1301
|
-
# - a histogram of the values of the sample points
|
1302
|
-
class Distribution
|
1112
|
+
#
|
1113
|
+
class ReportInfo
|
1303
1114
|
include Google::Apis::Core::Hashable
|
1304
1115
|
|
1305
|
-
# The
|
1306
|
-
# Corresponds to the JSON property `
|
1307
|
-
# @return [
|
1308
|
-
attr_accessor :
|
1309
|
-
|
1310
|
-
# The sum of squared deviations from the mean:
|
1311
|
-
# Sum[i=1..count]((x_i - mean)^2)
|
1312
|
-
# where each x_i is a sample values. If `count` is zero then this field
|
1313
|
-
# must be zero, otherwise validation of the request fails.
|
1314
|
-
# Corresponds to the JSON property `sumOfSquaredDeviation`
|
1315
|
-
# @return [Float]
|
1316
|
-
attr_accessor :sum_of_squared_deviation
|
1317
|
-
|
1318
|
-
# Describing buckets with exponentially growing width.
|
1319
|
-
# Corresponds to the JSON property `exponentialBuckets`
|
1320
|
-
# @return [Google::Apis::ServicecontrolV1::ExponentialBuckets]
|
1321
|
-
attr_accessor :exponential_buckets
|
1322
|
-
|
1323
|
-
# Describing buckets with constant width.
|
1324
|
-
# Corresponds to the JSON property `linearBuckets`
|
1325
|
-
# @return [Google::Apis::ServicecontrolV1::LinearBuckets]
|
1326
|
-
attr_accessor :linear_buckets
|
1327
|
-
|
1328
|
-
# The minimum of the population of values. Ignored if `count` is zero.
|
1329
|
-
# Corresponds to the JSON property `minimum`
|
1330
|
-
# @return [Float]
|
1331
|
-
attr_accessor :minimum
|
1332
|
-
|
1333
|
-
# The total number of samples in the distribution. Must be >= 0.
|
1334
|
-
# Corresponds to the JSON property `count`
|
1335
|
-
# @return [Fixnum]
|
1336
|
-
attr_accessor :count
|
1337
|
-
|
1338
|
-
# The arithmetic mean of the samples in the distribution. If `count` is
|
1339
|
-
# zero then this field must be zero.
|
1340
|
-
# Corresponds to the JSON property `mean`
|
1341
|
-
# @return [Float]
|
1342
|
-
attr_accessor :mean
|
1343
|
-
|
1344
|
-
# The number of samples in each histogram bucket. `bucket_counts` are
|
1345
|
-
# optional. If present, they must sum to the `count` value.
|
1346
|
-
# The buckets are defined below in `bucket_option`. There are N buckets.
|
1347
|
-
# `bucket_counts[0]` is the number of samples in the underflow bucket.
|
1348
|
-
# `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
1349
|
-
# in each of the finite buckets. And `bucket_counts[N] is the number
|
1350
|
-
# of samples in the overflow bucket. See the comments of `bucket_option`
|
1351
|
-
# below for more details.
|
1352
|
-
# Any suffix of trailing zeros may be omitted.
|
1353
|
-
# Corresponds to the JSON property `bucketCounts`
|
1354
|
-
# @return [Array<Fixnum>]
|
1355
|
-
attr_accessor :bucket_counts
|
1116
|
+
# The Operation.operation_id value from the request.
|
1117
|
+
# Corresponds to the JSON property `operationId`
|
1118
|
+
# @return [String]
|
1119
|
+
attr_accessor :operation_id
|
1356
1120
|
|
1357
|
-
#
|
1358
|
-
# Corresponds to the JSON property `
|
1359
|
-
# @return [Google::Apis::ServicecontrolV1::
|
1360
|
-
attr_accessor :
|
1121
|
+
# Contains the quota information for a quota check response.
|
1122
|
+
# Corresponds to the JSON property `quotaInfo`
|
1123
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaInfo]
|
1124
|
+
attr_accessor :quota_info
|
1361
1125
|
|
1362
1126
|
def initialize(**args)
|
1363
1127
|
update!(**args)
|
@@ -1365,44 +1129,116 @@ module Google
|
|
1365
1129
|
|
1366
1130
|
# Update properties of this object
|
1367
1131
|
def update!(**args)
|
1368
|
-
@
|
1369
|
-
@
|
1370
|
-
@exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
|
1371
|
-
@linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
|
1372
|
-
@minimum = args[:minimum] if args.key?(:minimum)
|
1373
|
-
@count = args[:count] if args.key?(:count)
|
1374
|
-
@mean = args[:mean] if args.key?(:mean)
|
1375
|
-
@bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
|
1376
|
-
@explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
|
1132
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1133
|
+
@quota_info = args[:quota_info] if args.key?(:quota_info)
|
1377
1134
|
end
|
1378
1135
|
end
|
1379
1136
|
|
1380
|
-
#
|
1381
|
-
class
|
1137
|
+
# Represents information regarding an operation.
|
1138
|
+
class Operation
|
1382
1139
|
include Google::Apis::Core::Hashable
|
1383
1140
|
|
1384
|
-
#
|
1385
|
-
#
|
1386
|
-
#
|
1387
|
-
|
1388
|
-
# @return [Fixnum]
|
1389
|
-
attr_accessor :num_finite_buckets
|
1141
|
+
# DO NOT USE. This is an experimental field.
|
1142
|
+
# Corresponds to the JSON property `importance`
|
1143
|
+
# @return [String]
|
1144
|
+
attr_accessor :importance
|
1390
1145
|
|
1391
|
-
# The
|
1392
|
-
#
|
1393
|
-
#
|
1394
|
-
#
|
1395
|
-
#
|
1396
|
-
#
|
1397
|
-
|
1146
|
+
# The resource name of the parent of a resource in the resource hierarchy.
|
1147
|
+
# This can be in one of the following formats:
|
1148
|
+
# - “projects/<project-id or project-number>”
|
1149
|
+
# - “folders/<folder-id>”
|
1150
|
+
# - “organizations/<organization-id>”
|
1151
|
+
# Corresponds to the JSON property `resourceContainer`
|
1152
|
+
# @return [String]
|
1153
|
+
attr_accessor :resource_container
|
1398
1154
|
|
1399
|
-
#
|
1400
|
-
#
|
1401
|
-
#
|
1402
|
-
#
|
1403
|
-
#
|
1404
|
-
#
|
1405
|
-
|
1155
|
+
# Labels describing the operation. Only the following labels are allowed:
|
1156
|
+
# - Labels describing monitored resources as defined in
|
1157
|
+
# the service configuration.
|
1158
|
+
# - Default labels of metric values. When specified, labels defined in the
|
1159
|
+
# metric value override these default.
|
1160
|
+
# - The following labels defined by Google Cloud Platform:
|
1161
|
+
# - `cloud.googleapis.com/location` describing the location where the
|
1162
|
+
# operation happened,
|
1163
|
+
# - `servicecontrol.googleapis.com/user_agent` describing the user agent
|
1164
|
+
# of the API request,
|
1165
|
+
# - `servicecontrol.googleapis.com/service_agent` describing the service
|
1166
|
+
# used to handle the API request (e.g. ESP),
|
1167
|
+
# - `servicecontrol.googleapis.com/platform` describing the platform
|
1168
|
+
# where the API is served (e.g. GAE, GCE, GKE).
|
1169
|
+
# Corresponds to the JSON property `labels`
|
1170
|
+
# @return [Hash<String,String>]
|
1171
|
+
attr_accessor :labels
|
1172
|
+
|
1173
|
+
# Represents information to be logged.
|
1174
|
+
# Corresponds to the JSON property `logEntries`
|
1175
|
+
# @return [Array<Google::Apis::ServicecontrolV1::LogEntry>]
|
1176
|
+
attr_accessor :log_entries
|
1177
|
+
|
1178
|
+
# User defined labels for the resource that this operation is associated
|
1179
|
+
# with.
|
1180
|
+
# Corresponds to the JSON property `userLabels`
|
1181
|
+
# @return [Hash<String,String>]
|
1182
|
+
attr_accessor :user_labels
|
1183
|
+
|
1184
|
+
# Represents information about this operation. Each MetricValueSet
|
1185
|
+
# corresponds to a metric defined in the service configuration.
|
1186
|
+
# The data type used in the MetricValueSet must agree with
|
1187
|
+
# the data type specified in the metric definition.
|
1188
|
+
# Within a single operation, it is not allowed to have more than one
|
1189
|
+
# MetricValue instances that have the same metric names and identical
|
1190
|
+
# label value combinations. If a request has such duplicated MetricValue
|
1191
|
+
# instances, the entire request is rejected with
|
1192
|
+
# an invalid argument error.
|
1193
|
+
# Corresponds to the JSON property `metricValueSets`
|
1194
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1195
|
+
attr_accessor :metric_value_sets
|
1196
|
+
|
1197
|
+
# Represents the properties needed for quota operations.
|
1198
|
+
# Corresponds to the JSON property `quotaProperties`
|
1199
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaProperties]
|
1200
|
+
attr_accessor :quota_properties
|
1201
|
+
|
1202
|
+
# Identity of the consumer who is using the service.
|
1203
|
+
# This field should be filled in for the operations initiated by a
|
1204
|
+
# consumer, but not for service-initiated operations that are
|
1205
|
+
# not related to a specific consumer.
|
1206
|
+
# This can be in one of the following formats:
|
1207
|
+
# project:<project_id>,
|
1208
|
+
# project_number:<project_number>,
|
1209
|
+
# api_key:<api_key>.
|
1210
|
+
# Corresponds to the JSON property `consumerId`
|
1211
|
+
# @return [String]
|
1212
|
+
attr_accessor :consumer_id
|
1213
|
+
|
1214
|
+
# Identity of the operation. This must be unique within the scope of the
|
1215
|
+
# service that generated the operation. If the service calls
|
1216
|
+
# Check() and Report() on the same operation, the two calls should carry
|
1217
|
+
# the same id.
|
1218
|
+
# UUID version 4 is recommended, though not required.
|
1219
|
+
# In scenarios where an operation is computed from existing information
|
1220
|
+
# and an idempotent id is desirable for deduplication purpose, UUID version 5
|
1221
|
+
# is recommended. See RFC 4122 for details.
|
1222
|
+
# Corresponds to the JSON property `operationId`
|
1223
|
+
# @return [String]
|
1224
|
+
attr_accessor :operation_id
|
1225
|
+
|
1226
|
+
# End time of the operation.
|
1227
|
+
# Required when the operation is used in ServiceController.Report,
|
1228
|
+
# but optional when the operation is used in ServiceController.Check.
|
1229
|
+
# Corresponds to the JSON property `endTime`
|
1230
|
+
# @return [String]
|
1231
|
+
attr_accessor :end_time
|
1232
|
+
|
1233
|
+
# Fully qualified name of the operation. Reserved for future use.
|
1234
|
+
# Corresponds to the JSON property `operationName`
|
1235
|
+
# @return [String]
|
1236
|
+
attr_accessor :operation_name
|
1237
|
+
|
1238
|
+
# Required. Start time of the operation.
|
1239
|
+
# Corresponds to the JSON property `startTime`
|
1240
|
+
# @return [String]
|
1241
|
+
attr_accessor :start_time
|
1406
1242
|
|
1407
1243
|
def initialize(**args)
|
1408
1244
|
update!(**args)
|
@@ -1410,33 +1246,56 @@ module Google
|
|
1410
1246
|
|
1411
1247
|
# Update properties of this object
|
1412
1248
|
def update!(**args)
|
1413
|
-
@
|
1414
|
-
@
|
1415
|
-
@
|
1249
|
+
@importance = args[:importance] if args.key?(:importance)
|
1250
|
+
@resource_container = args[:resource_container] if args.key?(:resource_container)
|
1251
|
+
@labels = args[:labels] if args.key?(:labels)
|
1252
|
+
@log_entries = args[:log_entries] if args.key?(:log_entries)
|
1253
|
+
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
1254
|
+
@metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets)
|
1255
|
+
@quota_properties = args[:quota_properties] if args.key?(:quota_properties)
|
1256
|
+
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
1257
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1258
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1259
|
+
@operation_name = args[:operation_name] if args.key?(:operation_name)
|
1260
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1416
1261
|
end
|
1417
1262
|
end
|
1418
1263
|
|
1419
|
-
#
|
1420
|
-
class
|
1264
|
+
# Response message for the Report method.
|
1265
|
+
class ReportResponse
|
1421
1266
|
include Google::Apis::Core::Hashable
|
1422
1267
|
|
1423
|
-
# The
|
1424
|
-
#
|
1425
|
-
# Corresponds to the JSON property `resource`
|
1268
|
+
# The actual config id used to process the request.
|
1269
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1426
1270
|
# @return [String]
|
1427
|
-
attr_accessor :
|
1271
|
+
attr_accessor :service_config_id
|
1428
1272
|
|
1429
|
-
#
|
1430
|
-
#
|
1431
|
-
#
|
1432
|
-
#
|
1433
|
-
|
1434
|
-
|
1273
|
+
# Partial failures, one for each `Operation` in the request that failed
|
1274
|
+
# processing. There are three possible combinations of the RPC status:
|
1275
|
+
# 1. The combination of a successful RPC status and an empty `report_errors`
|
1276
|
+
# list indicates a complete success where all `Operations` in the
|
1277
|
+
# request are processed successfully.
|
1278
|
+
# 2. The combination of a successful RPC status and a non-empty
|
1279
|
+
# `report_errors` list indicates a partial success where some
|
1280
|
+
# `Operations` in the request succeeded. Each
|
1281
|
+
# `Operation` that failed processing has a corresponding item
|
1282
|
+
# in this list.
|
1283
|
+
# 3. A failed RPC status indicates a general non-deterministic failure.
|
1284
|
+
# When this happens, it's impossible to know which of the
|
1285
|
+
# 'Operations' in the request succeeded or failed.
|
1286
|
+
# Corresponds to the JSON property `reportErrors`
|
1287
|
+
# @return [Array<Google::Apis::ServicecontrolV1::ReportError>]
|
1288
|
+
attr_accessor :report_errors
|
1435
1289
|
|
1436
|
-
#
|
1437
|
-
#
|
1438
|
-
#
|
1439
|
-
|
1290
|
+
# Quota usage for each quota release `Operation` request.
|
1291
|
+
# Fully or partially failed quota release request may or may not be present
|
1292
|
+
# in `report_quota_info`. For example, a failed quota release request will
|
1293
|
+
# have the current quota usage info when precise quota library returns the
|
1294
|
+
# info. A deadline exceeded quota request will not have quota usage info.
|
1295
|
+
# If there is no quota release request, report_quota_info will be empty.
|
1296
|
+
# Corresponds to the JSON property `reportInfos`
|
1297
|
+
# @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
|
1298
|
+
attr_accessor :report_infos
|
1440
1299
|
|
1441
1300
|
def initialize(**args)
|
1442
1301
|
update!(**args)
|
@@ -1444,80 +1303,82 @@ module Google
|
|
1444
1303
|
|
1445
1304
|
# Update properties of this object
|
1446
1305
|
def update!(**args)
|
1447
|
-
@
|
1448
|
-
@
|
1449
|
-
@
|
1306
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1307
|
+
@report_errors = args[:report_errors] if args.key?(:report_errors)
|
1308
|
+
@report_infos = args[:report_infos] if args.key?(:report_infos)
|
1450
1309
|
end
|
1451
1310
|
end
|
1452
1311
|
|
1453
|
-
#
|
1454
|
-
class
|
1312
|
+
# Response message for the Check method.
|
1313
|
+
class CheckResponse
|
1455
1314
|
include Google::Apis::Core::Hashable
|
1456
1315
|
|
1457
|
-
#
|
1458
|
-
#
|
1459
|
-
#
|
1460
|
-
|
1461
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
1462
|
-
# 2. Value for each quota limit associated with the metrics will be specified
|
1463
|
-
# using the following gauge metric:
|
1464
|
-
# "serviceruntime.googleapis.com/quota/limit"
|
1465
|
-
# Corresponds to the JSON property `quotaMetrics`
|
1466
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1467
|
-
attr_accessor :quota_metrics
|
1316
|
+
# Feedback data returned from the server during processing a Check request.
|
1317
|
+
# Corresponds to the JSON property `checkInfo`
|
1318
|
+
# @return [Google::Apis::ServicecontrolV1::CheckInfo]
|
1319
|
+
attr_accessor :check_info
|
1468
1320
|
|
1469
|
-
#
|
1470
|
-
#
|
1471
|
-
#
|
1472
|
-
|
1321
|
+
# Indicate the decision of the check.
|
1322
|
+
# If no check errors are present, the service should process the operation.
|
1323
|
+
# Otherwise the service should use the list of errors to determine the
|
1324
|
+
# appropriate action.
|
1325
|
+
# Corresponds to the JSON property `checkErrors`
|
1326
|
+
# @return [Array<Google::Apis::ServicecontrolV1::CheckError>]
|
1327
|
+
attr_accessor :check_errors
|
1473
1328
|
|
1474
|
-
# The same operation_id value used in the
|
1475
|
-
# for logging and diagnostics purposes.
|
1329
|
+
# The same operation_id value used in the CheckRequest.
|
1330
|
+
# Used for logging and diagnostics purposes.
|
1476
1331
|
# Corresponds to the JSON property `operationId`
|
1477
1332
|
# @return [String]
|
1478
1333
|
attr_accessor :operation_id
|
1479
1334
|
|
1480
|
-
#
|
1335
|
+
# The actual config id used to process the request.
|
1481
1336
|
# Corresponds to the JSON property `serviceConfigId`
|
1482
1337
|
# @return [String]
|
1483
1338
|
attr_accessor :service_config_id
|
1484
1339
|
|
1340
|
+
# Contains the quota information for a quota check response.
|
1341
|
+
# Corresponds to the JSON property `quotaInfo`
|
1342
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaInfo]
|
1343
|
+
attr_accessor :quota_info
|
1344
|
+
|
1485
1345
|
def initialize(**args)
|
1486
1346
|
update!(**args)
|
1487
1347
|
end
|
1488
1348
|
|
1489
1349
|
# Update properties of this object
|
1490
1350
|
def update!(**args)
|
1491
|
-
@
|
1492
|
-
@
|
1351
|
+
@check_info = args[:check_info] if args.key?(:check_info)
|
1352
|
+
@check_errors = args[:check_errors] if args.key?(:check_errors)
|
1493
1353
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1494
1354
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1355
|
+
@quota_info = args[:quota_info] if args.key?(:quota_info)
|
1495
1356
|
end
|
1496
1357
|
end
|
1497
1358
|
|
1498
|
-
#
|
1499
|
-
class
|
1359
|
+
# Request message for the Report method.
|
1360
|
+
class ReportRequest
|
1500
1361
|
include Google::Apis::Core::Hashable
|
1501
1362
|
|
1502
|
-
#
|
1503
|
-
#
|
1504
|
-
#
|
1505
|
-
#
|
1506
|
-
#
|
1507
|
-
# USER: Value of this entry will be used for enforcing user-level quota
|
1508
|
-
# limits. If none specified, caller IP passed in the
|
1509
|
-
# servicecontrol.googleapis.com/caller_ip label will be used instead.
|
1510
|
-
# If the server cannot resolve a value for this LimitType, an error
|
1511
|
-
# will be thrown. No validation will be performed on this ID.
|
1512
|
-
# Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
|
1513
|
-
# Corresponds to the JSON property `limitByIds`
|
1514
|
-
# @return [Hash<String,String>]
|
1515
|
-
attr_accessor :limit_by_ids
|
1516
|
-
|
1517
|
-
# Quota mode for this operation.
|
1518
|
-
# Corresponds to the JSON property `quotaMode`
|
1363
|
+
# Specifies which version of service config should be used to process the
|
1364
|
+
# request.
|
1365
|
+
# If unspecified or no matching version can be found, the
|
1366
|
+
# latest one will be used.
|
1367
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1519
1368
|
# @return [String]
|
1520
|
-
attr_accessor :
|
1369
|
+
attr_accessor :service_config_id
|
1370
|
+
|
1371
|
+
# Operations to be reported.
|
1372
|
+
# Typically the service should report one operation per request.
|
1373
|
+
# Putting multiple operations into a single request is allowed, but should
|
1374
|
+
# be used only when multiple operations are natually available at the time
|
1375
|
+
# of the report.
|
1376
|
+
# If multiple operations are in a single request, the total request size
|
1377
|
+
# should be no larger than 1MB. See ReportResponse.report_errors for
|
1378
|
+
# partial failure behavior.
|
1379
|
+
# Corresponds to the JSON property `operations`
|
1380
|
+
# @return [Array<Google::Apis::ServicecontrolV1::Operation>]
|
1381
|
+
attr_accessor :operations
|
1521
1382
|
|
1522
1383
|
def initialize(**args)
|
1523
1384
|
update!(**args)
|
@@ -1525,36 +1386,70 @@ module Google
|
|
1525
1386
|
|
1526
1387
|
# Update properties of this object
|
1527
1388
|
def update!(**args)
|
1528
|
-
@
|
1529
|
-
@
|
1389
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1390
|
+
@operations = args[:operations] if args.key?(:operations)
|
1530
1391
|
end
|
1531
1392
|
end
|
1532
1393
|
|
1533
|
-
#
|
1534
|
-
|
1394
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1395
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
1396
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1397
|
+
# - Simple to use and understand for most users
|
1398
|
+
# - Flexible enough to meet unexpected needs
|
1399
|
+
# # Overview
|
1400
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
1401
|
+
# and error details. The error code should be an enum value of
|
1402
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1403
|
+
# error message should be a developer-facing English message that helps
|
1404
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
1405
|
+
# error message is needed, put the localized message in the error details or
|
1406
|
+
# localize it in the client. The optional error details may contain arbitrary
|
1407
|
+
# information about the error. There is a predefined set of error detail types
|
1408
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
1409
|
+
# # Language mapping
|
1410
|
+
# The `Status` message is the logical representation of the error model, but it
|
1411
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
1412
|
+
# exposed in different client libraries and different wire protocols, it can be
|
1413
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
1414
|
+
# in Java, but more likely mapped to some error codes in C.
|
1415
|
+
# # Other uses
|
1416
|
+
# The error model and the `Status` message can be used in a variety of
|
1417
|
+
# environments, either with or without APIs, to provide a
|
1418
|
+
# consistent developer experience across different environments.
|
1419
|
+
# Example uses of this error model include:
|
1420
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
1421
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
1422
|
+
# errors.
|
1423
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1424
|
+
# have a `Status` message for error reporting.
|
1425
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
1426
|
+
# `Status` message should be used directly inside batch response, one for
|
1427
|
+
# each error sub-response.
|
1428
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1429
|
+
# results in its response, the status of those operations should be
|
1430
|
+
# represented directly using the `Status` message.
|
1431
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1432
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
1433
|
+
class Status
|
1535
1434
|
include Google::Apis::Core::Hashable
|
1536
1435
|
|
1537
|
-
#
|
1538
|
-
#
|
1539
|
-
#
|
1540
|
-
# Corresponds to the JSON property `
|
1541
|
-
# @return [
|
1542
|
-
attr_accessor :
|
1436
|
+
# A developer-facing error message, which should be in English. Any
|
1437
|
+
# user-facing error message should be localized and sent in the
|
1438
|
+
# google.rpc.Status.details field, or localized by the client.
|
1439
|
+
# Corresponds to the JSON property `message`
|
1440
|
+
# @return [String]
|
1441
|
+
attr_accessor :message
|
1543
1442
|
|
1544
|
-
#
|
1545
|
-
#
|
1546
|
-
#
|
1547
|
-
#
|
1548
|
-
|
1549
|
-
# @return [Float]
|
1550
|
-
attr_accessor :width
|
1443
|
+
# A list of messages that carry the error details. There will be a
|
1444
|
+
# common set of message types for APIs to use.
|
1445
|
+
# Corresponds to the JSON property `details`
|
1446
|
+
# @return [Array<Hash<String,Object>>]
|
1447
|
+
attr_accessor :details
|
1551
1448
|
|
1552
|
-
# The
|
1553
|
-
#
|
1554
|
-
#
|
1555
|
-
|
1556
|
-
# @return [Float]
|
1557
|
-
attr_accessor :offset
|
1449
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1450
|
+
# Corresponds to the JSON property `code`
|
1451
|
+
# @return [Fixnum]
|
1452
|
+
attr_accessor :code
|
1558
1453
|
|
1559
1454
|
def initialize(**args)
|
1560
1455
|
update!(**args)
|
@@ -1562,26 +1457,63 @@ module Google
|
|
1562
1457
|
|
1563
1458
|
# Update properties of this object
|
1564
1459
|
def update!(**args)
|
1565
|
-
@
|
1566
|
-
@
|
1567
|
-
@
|
1460
|
+
@message = args[:message] if args.key?(:message)
|
1461
|
+
@details = args[:details] if args.key?(:details)
|
1462
|
+
@code = args[:code] if args.key?(:code)
|
1568
1463
|
end
|
1569
1464
|
end
|
1570
1465
|
|
1571
|
-
#
|
1572
|
-
class
|
1466
|
+
# An individual log entry.
|
1467
|
+
class LogEntry
|
1573
1468
|
include Google::Apis::Core::Hashable
|
1574
1469
|
|
1575
|
-
# The
|
1576
|
-
# Corresponds to the JSON property `
|
1470
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
1471
|
+
# Corresponds to the JSON property `textPayload`
|
1577
1472
|
# @return [String]
|
1578
|
-
attr_accessor :
|
1473
|
+
attr_accessor :text_payload
|
1579
1474
|
|
1580
|
-
# The
|
1581
|
-
#
|
1582
|
-
#
|
1475
|
+
# The log entry payload, represented as a protocol buffer that is
|
1476
|
+
# expressed as a JSON object. You can only pass `protoPayload`
|
1477
|
+
# values that belong to a set of approved types.
|
1478
|
+
# Corresponds to the JSON property `protoPayload`
|
1479
|
+
# @return [Hash<String,Object>]
|
1480
|
+
attr_accessor :proto_payload
|
1481
|
+
|
1482
|
+
# The time the event described by the log entry occurred. If
|
1483
|
+
# omitted, defaults to operation start time.
|
1484
|
+
# Corresponds to the JSON property `timestamp`
|
1583
1485
|
# @return [String]
|
1584
|
-
attr_accessor :
|
1486
|
+
attr_accessor :timestamp
|
1487
|
+
|
1488
|
+
# A set of user-defined (key, value) data that provides additional
|
1489
|
+
# information about the log entry.
|
1490
|
+
# Corresponds to the JSON property `labels`
|
1491
|
+
# @return [Hash<String,String>]
|
1492
|
+
attr_accessor :labels
|
1493
|
+
|
1494
|
+
# The severity of the log entry. The default value is
|
1495
|
+
# `LogSeverity.DEFAULT`.
|
1496
|
+
# Corresponds to the JSON property `severity`
|
1497
|
+
# @return [String]
|
1498
|
+
attr_accessor :severity
|
1499
|
+
|
1500
|
+
# A unique ID for the log entry used for deduplication. If omitted,
|
1501
|
+
# the implementation will generate one based on operation_id.
|
1502
|
+
# Corresponds to the JSON property `insertId`
|
1503
|
+
# @return [String]
|
1504
|
+
attr_accessor :insert_id
|
1505
|
+
|
1506
|
+
# Required. The log to which this log entry belongs. Examples: `"syslog"`,
|
1507
|
+
# `"book_log"`.
|
1508
|
+
# Corresponds to the JSON property `name`
|
1509
|
+
# @return [String]
|
1510
|
+
attr_accessor :name
|
1511
|
+
|
1512
|
+
# The log entry payload, represented as a structure that
|
1513
|
+
# is expressed as a JSON object.
|
1514
|
+
# Corresponds to the JSON property `structPayload`
|
1515
|
+
# @return [Hash<String,Object>]
|
1516
|
+
attr_accessor :struct_payload
|
1585
1517
|
|
1586
1518
|
def initialize(**args)
|
1587
1519
|
update!(**args)
|
@@ -1589,77 +1521,136 @@ module Google
|
|
1589
1521
|
|
1590
1522
|
# Update properties of this object
|
1591
1523
|
def update!(**args)
|
1592
|
-
@
|
1593
|
-
@
|
1524
|
+
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
1525
|
+
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
1526
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
1527
|
+
@labels = args[:labels] if args.key?(:labels)
|
1528
|
+
@severity = args[:severity] if args.key?(:severity)
|
1529
|
+
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
1530
|
+
@name = args[:name] if args.key?(:name)
|
1531
|
+
@struct_payload = args[:struct_payload] if args.key?(:struct_payload)
|
1594
1532
|
end
|
1595
1533
|
end
|
1596
1534
|
|
1597
|
-
#
|
1598
|
-
class
|
1535
|
+
# Common audit log format for Google Cloud Platform API operations.
|
1536
|
+
class AuditLog
|
1599
1537
|
include Google::Apis::Core::Hashable
|
1600
1538
|
|
1601
|
-
#
|
1602
|
-
#
|
1603
|
-
#
|
1604
|
-
#
|
1605
|
-
#
|
1606
|
-
|
1607
|
-
# using the following gauge metric:
|
1608
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
1609
|
-
# 3. For both rate quota and allocation quota, the quota limit reached
|
1610
|
-
# condition will be specified using the following boolean metric:
|
1611
|
-
# "serviceruntime.googleapis.com/quota/exceeded"
|
1612
|
-
# 4. For allocation quota, value for each quota limit associated with
|
1613
|
-
# the metrics will be specified using the following gauge metric:
|
1614
|
-
# "serviceruntime.googleapis.com/quota/limit"
|
1615
|
-
# Corresponds to the JSON property `quotaMetrics`
|
1616
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1617
|
-
attr_accessor :quota_metrics
|
1539
|
+
# Authorization information. If there are multiple
|
1540
|
+
# resources or permissions involved, then there is
|
1541
|
+
# one AuthorizationInfo element for each `resource, permission` tuple.
|
1542
|
+
# Corresponds to the JSON property `authorizationInfo`
|
1543
|
+
# @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
|
1544
|
+
attr_accessor :authorization_info
|
1618
1545
|
|
1619
|
-
# The
|
1620
|
-
#
|
1621
|
-
#
|
1546
|
+
# The resource or collection that is the target of the operation.
|
1547
|
+
# The name is a scheme-less URI, not including the API service name.
|
1548
|
+
# For example:
|
1549
|
+
# "shelves/SHELF_ID/books"
|
1550
|
+
# "shelves/SHELF_ID/books/BOOK_ID"
|
1551
|
+
# Corresponds to the JSON property `resourceName`
|
1622
1552
|
# @return [String]
|
1623
|
-
attr_accessor :
|
1553
|
+
attr_accessor :resource_name
|
1624
1554
|
|
1625
|
-
#
|
1626
|
-
#
|
1627
|
-
#
|
1628
|
-
|
1555
|
+
# The operation request. This may not include all request parameters,
|
1556
|
+
# such as those that are too large, privacy-sensitive, or duplicated
|
1557
|
+
# elsewhere in the log record.
|
1558
|
+
# It should never include user-generated data, such as file contents.
|
1559
|
+
# When the JSON object represented here has a proto equivalent, the proto
|
1560
|
+
# name will be indicated in the `@type` property.
|
1561
|
+
# Corresponds to the JSON property `request`
|
1562
|
+
# @return [Hash<String,Object>]
|
1563
|
+
attr_accessor :request
|
1629
1564
|
|
1630
|
-
#
|
1631
|
-
# Corresponds to the JSON property `
|
1632
|
-
# @return [
|
1633
|
-
attr_accessor :
|
1565
|
+
# Metadata about the request.
|
1566
|
+
# Corresponds to the JSON property `requestMetadata`
|
1567
|
+
# @return [Google::Apis::ServicecontrolV1::RequestMetadata]
|
1568
|
+
attr_accessor :request_metadata
|
1634
1569
|
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1570
|
+
# Other service-specific data about the request, response, and other
|
1571
|
+
# activities.
|
1572
|
+
# Corresponds to the JSON property `serviceData`
|
1573
|
+
# @return [Hash<String,Object>]
|
1574
|
+
attr_accessor :service_data
|
1638
1575
|
|
1639
|
-
#
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
@allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
|
1645
|
-
end
|
1646
|
-
end
|
1576
|
+
# The number of items returned from a List or Query API method,
|
1577
|
+
# if applicable.
|
1578
|
+
# Corresponds to the JSON property `numResponseItems`
|
1579
|
+
# @return [Fixnum]
|
1580
|
+
attr_accessor :num_response_items
|
1647
1581
|
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1582
|
+
# Authentication information for the operation.
|
1583
|
+
# Corresponds to the JSON property `authenticationInfo`
|
1584
|
+
# @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
|
1585
|
+
attr_accessor :authentication_info
|
1651
1586
|
|
1652
|
-
#
|
1653
|
-
#
|
1654
|
-
#
|
1655
|
-
#
|
1587
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1588
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
1589
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1590
|
+
# - Simple to use and understand for most users
|
1591
|
+
# - Flexible enough to meet unexpected needs
|
1592
|
+
# # Overview
|
1593
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
1594
|
+
# and error details. The error code should be an enum value of
|
1595
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1596
|
+
# error message should be a developer-facing English message that helps
|
1597
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
1598
|
+
# error message is needed, put the localized message in the error details or
|
1599
|
+
# localize it in the client. The optional error details may contain arbitrary
|
1600
|
+
# information about the error. There is a predefined set of error detail types
|
1601
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
1602
|
+
# # Language mapping
|
1603
|
+
# The `Status` message is the logical representation of the error model, but it
|
1604
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
1605
|
+
# exposed in different client libraries and different wire protocols, it can be
|
1606
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
1607
|
+
# in Java, but more likely mapped to some error codes in C.
|
1608
|
+
# # Other uses
|
1609
|
+
# The error model and the `Status` message can be used in a variety of
|
1610
|
+
# environments, either with or without APIs, to provide a
|
1611
|
+
# consistent developer experience across different environments.
|
1612
|
+
# Example uses of this error model include:
|
1613
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
1614
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
1615
|
+
# errors.
|
1616
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1617
|
+
# have a `Status` message for error reporting.
|
1618
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
1619
|
+
# `Status` message should be used directly inside batch response, one for
|
1620
|
+
# each error sub-response.
|
1621
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1622
|
+
# results in its response, the status of those operations should be
|
1623
|
+
# represented directly using the `Status` message.
|
1624
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1625
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
1626
|
+
# Corresponds to the JSON property `status`
|
1627
|
+
# @return [Google::Apis::ServicecontrolV1::Status]
|
1628
|
+
attr_accessor :status
|
1629
|
+
|
1630
|
+
# The name of the API service performing the operation. For example,
|
1631
|
+
# `"datastore.googleapis.com"`.
|
1632
|
+
# Corresponds to the JSON property `serviceName`
|
1656
1633
|
# @return [String]
|
1657
|
-
attr_accessor :
|
1634
|
+
attr_accessor :service_name
|
1658
1635
|
|
1659
|
-
#
|
1660
|
-
#
|
1661
|
-
#
|
1662
|
-
|
1636
|
+
# The operation response. This may not include all response elements,
|
1637
|
+
# such as those that are too large, privacy-sensitive, or duplicated
|
1638
|
+
# elsewhere in the log record.
|
1639
|
+
# It should never include user-generated data, such as file contents.
|
1640
|
+
# When the JSON object represented here has a proto equivalent, the proto
|
1641
|
+
# name will be indicated in the `@type` property.
|
1642
|
+
# Corresponds to the JSON property `response`
|
1643
|
+
# @return [Hash<String,Object>]
|
1644
|
+
attr_accessor :response
|
1645
|
+
|
1646
|
+
# The name of the service method or operation.
|
1647
|
+
# For API calls, this should be the name of the API method.
|
1648
|
+
# For example,
|
1649
|
+
# "google.datastore.v1.Datastore.RunQuery"
|
1650
|
+
# "google.logging.v1.LoggingService.DeleteLog"
|
1651
|
+
# Corresponds to the JSON property `methodName`
|
1652
|
+
# @return [String]
|
1653
|
+
attr_accessor :method_name
|
1663
1654
|
|
1664
1655
|
def initialize(**args)
|
1665
1656
|
update!(**args)
|
@@ -1667,8 +1658,17 @@ module Google
|
|
1667
1658
|
|
1668
1659
|
# Update properties of this object
|
1669
1660
|
def update!(**args)
|
1670
|
-
@
|
1671
|
-
@
|
1661
|
+
@authorization_info = args[:authorization_info] if args.key?(:authorization_info)
|
1662
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
1663
|
+
@request = args[:request] if args.key?(:request)
|
1664
|
+
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
1665
|
+
@service_data = args[:service_data] if args.key?(:service_data)
|
1666
|
+
@num_response_items = args[:num_response_items] if args.key?(:num_response_items)
|
1667
|
+
@authentication_info = args[:authentication_info] if args.key?(:authentication_info)
|
1668
|
+
@status = args[:status] if args.key?(:status)
|
1669
|
+
@service_name = args[:service_name] if args.key?(:service_name)
|
1670
|
+
@response = args[:response] if args.key?(:response)
|
1671
|
+
@method_name = args[:method_name] if args.key?(:method_name)
|
1672
1672
|
end
|
1673
1673
|
end
|
1674
1674
|
end
|