google-api-client 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- 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 +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- 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 +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- 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 +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- 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 +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- 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 +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- 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 +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
@@ -18,15 +18,17 @@ require 'google/apis/runtimeconfig_v1/representations.rb'
|
|
18
18
|
|
19
19
|
module Google
|
20
20
|
module Apis
|
21
|
-
# Google Cloud
|
21
|
+
# Google Cloud Runtime Configuration API
|
22
22
|
#
|
23
|
-
#
|
24
|
-
#
|
23
|
+
# The Runtime Configurator allows you to dynamically configure and expose
|
24
|
+
# variables through Google Cloud Platform. In addition, you can also set
|
25
|
+
# Watchers and Waiters that will watch for changes to your data and return based
|
26
|
+
# on certain conditions.
|
25
27
|
#
|
26
28
|
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
|
27
29
|
module RuntimeconfigV1
|
28
30
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
31
|
+
REVISION = '20170429'
|
30
32
|
|
31
33
|
# Manage your Google Cloud Platform services' runtime configuration
|
32
34
|
AUTH_CLOUDRUNTIMECONFIG = 'https://www.googleapis.com/auth/cloudruntimeconfig'
|
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
class Operation
|
138
138
|
include Google::Apis::Core::Hashable
|
139
139
|
|
140
|
+
# If the value is `false`, it means the operation is still in progress.
|
141
|
+
# If true, the operation is completed, and either `error` or `response` is
|
142
|
+
# available.
|
143
|
+
# Corresponds to the JSON property `done`
|
144
|
+
# @return [Boolean]
|
145
|
+
attr_accessor :done
|
146
|
+
alias_method :done?, :done
|
147
|
+
|
148
|
+
# The normal response of the operation in case of success. If the original
|
149
|
+
# method returns no data on success, such as `Delete`, the response is
|
150
|
+
# `google.protobuf.Empty`. If the original method is standard
|
151
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
152
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
153
|
+
# is the original method name. For example, if the original method name
|
154
|
+
# is `TakeSnapshot()`, the inferred response type is
|
155
|
+
# `TakeSnapshotResponse`.
|
156
|
+
# Corresponds to the JSON property `response`
|
157
|
+
# @return [Hash<String,Object>]
|
158
|
+
attr_accessor :response
|
159
|
+
|
140
160
|
# The server-assigned name, which is only unique within the same service that
|
141
161
|
# originally returns it. If you use the default HTTP mapping, the
|
142
162
|
# `name` should have the format of `operations/some/unique/name`.
|
@@ -195,37 +215,17 @@ module Google
|
|
195
215
|
# @return [Hash<String,Object>]
|
196
216
|
attr_accessor :metadata
|
197
217
|
|
198
|
-
# If the value is `false`, it means the operation is still in progress.
|
199
|
-
# If true, the operation is completed, and either `error` or `response` is
|
200
|
-
# available.
|
201
|
-
# Corresponds to the JSON property `done`
|
202
|
-
# @return [Boolean]
|
203
|
-
attr_accessor :done
|
204
|
-
alias_method :done?, :done
|
205
|
-
|
206
|
-
# The normal response of the operation in case of success. If the original
|
207
|
-
# method returns no data on success, such as `Delete`, the response is
|
208
|
-
# `google.protobuf.Empty`. If the original method is standard
|
209
|
-
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
210
|
-
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
211
|
-
# is the original method name. For example, if the original method name
|
212
|
-
# is `TakeSnapshot()`, the inferred response type is
|
213
|
-
# `TakeSnapshotResponse`.
|
214
|
-
# Corresponds to the JSON property `response`
|
215
|
-
# @return [Hash<String,Object>]
|
216
|
-
attr_accessor :response
|
217
|
-
|
218
218
|
def initialize(**args)
|
219
219
|
update!(**args)
|
220
220
|
end
|
221
221
|
|
222
222
|
# Update properties of this object
|
223
223
|
def update!(**args)
|
224
|
+
@done = args[:done] if args.key?(:done)
|
225
|
+
@response = args[:response] if args.key?(:response)
|
224
226
|
@name = args[:name] if args.key?(:name)
|
225
227
|
@error = args[:error] if args.key?(:error)
|
226
228
|
@metadata = args[:metadata] if args.key?(:metadata)
|
227
|
-
@done = args[:done] if args.key?(:done)
|
228
|
-
@response = args[:response] if args.key?(:response)
|
229
229
|
end
|
230
230
|
end
|
231
231
|
|
@@ -79,12 +79,12 @@ module Google
|
|
79
79
|
class Operation
|
80
80
|
# @private
|
81
81
|
class Representation < Google::Apis::Core::JsonRepresentation
|
82
|
+
property :done, as: 'done'
|
83
|
+
hash :response, as: 'response'
|
82
84
|
property :name, as: 'name'
|
83
85
|
property :error, as: 'error', class: Google::Apis::RuntimeconfigV1::Status, decorator: Google::Apis::RuntimeconfigV1::Status::Representation
|
84
86
|
|
85
87
|
hash :metadata, as: 'metadata'
|
86
|
-
property :done, as: 'done'
|
87
|
-
hash :response, as: 'response'
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
@@ -20,10 +20,12 @@ require 'google/apis/errors'
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
22
|
module RuntimeconfigV1
|
23
|
-
# Google Cloud
|
23
|
+
# Google Cloud Runtime Configuration API
|
24
24
|
#
|
25
|
-
#
|
26
|
-
#
|
25
|
+
# The Runtime Configurator allows you to dynamically configure and expose
|
26
|
+
# variables through Google Cloud Platform. In addition, you can also set
|
27
|
+
# Watchers and Waiters that will watch for changes to your data and return based
|
28
|
+
# on certain conditions.
|
27
29
|
#
|
28
30
|
# @example
|
29
31
|
# require 'google/apis/runtimeconfig_v1'
|
@@ -48,17 +50,59 @@ module Google
|
|
48
50
|
@batch_path = 'batch'
|
49
51
|
end
|
50
52
|
|
53
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
54
|
+
# makes a best effort to cancel the operation, but success is not
|
55
|
+
# guaranteed. If the server doesn't support this method, it returns
|
56
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
57
|
+
# Operations.GetOperation or
|
58
|
+
# other methods to check whether the cancellation succeeded or whether the
|
59
|
+
# operation completed despite cancellation. On successful cancellation,
|
60
|
+
# the operation is not deleted; instead, it becomes an operation with
|
61
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
62
|
+
# corresponding to `Code.CANCELLED`.
|
63
|
+
# @param [String] name
|
64
|
+
# The name of the operation resource to be cancelled.
|
65
|
+
# @param [Google::Apis::RuntimeconfigV1::CancelOperationRequest] cancel_operation_request_object
|
66
|
+
# @param [String] fields
|
67
|
+
# Selector specifying which fields to include in a partial response.
|
68
|
+
# @param [String] quota_user
|
69
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
70
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
71
|
+
# @param [Google::Apis::RequestOptions] options
|
72
|
+
# Request-specific options
|
73
|
+
#
|
74
|
+
# @yield [result, err] Result & error if block supplied
|
75
|
+
# @yieldparam result [Google::Apis::RuntimeconfigV1::Empty] parsed result object
|
76
|
+
# @yieldparam err [StandardError] error object if request failed
|
77
|
+
#
|
78
|
+
# @return [Google::Apis::RuntimeconfigV1::Empty]
|
79
|
+
#
|
80
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
81
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
82
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
83
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
84
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
85
|
+
command.request_representation = Google::Apis::RuntimeconfigV1::CancelOperationRequest::Representation
|
86
|
+
command.request_object = cancel_operation_request_object
|
87
|
+
command.response_representation = Google::Apis::RuntimeconfigV1::Empty::Representation
|
88
|
+
command.response_class = Google::Apis::RuntimeconfigV1::Empty
|
89
|
+
command.params['name'] = name unless name.nil?
|
90
|
+
command.query['fields'] = fields unless fields.nil?
|
91
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
92
|
+
execute_or_queue_command(command, &block)
|
93
|
+
end
|
94
|
+
|
51
95
|
# Deletes a long-running operation. This method indicates that the client is
|
52
96
|
# no longer interested in the operation result. It does not cancel the
|
53
97
|
# operation. If the server doesn't support this method, it returns
|
54
98
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
55
99
|
# @param [String] name
|
56
100
|
# The name of the operation resource to be deleted.
|
101
|
+
# @param [String] fields
|
102
|
+
# Selector specifying which fields to include in a partial response.
|
57
103
|
# @param [String] quota_user
|
58
104
|
# Available to use for quota purposes for server-side applications. Can be any
|
59
105
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
-
# @param [String] fields
|
61
|
-
# Selector specifying which fields to include in a partial response.
|
62
106
|
# @param [Google::Apis::RequestOptions] options
|
63
107
|
# Request-specific options
|
64
108
|
#
|
@@ -71,13 +115,13 @@ module Google
|
|
71
115
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
116
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
117
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
-
def delete_operation(name,
|
118
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
75
119
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
76
120
|
command.response_representation = Google::Apis::RuntimeconfigV1::Empty::Representation
|
77
121
|
command.response_class = Google::Apis::RuntimeconfigV1::Empty
|
78
122
|
command.params['name'] = name unless name.nil?
|
79
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
123
|
command.query['fields'] = fields unless fields.nil?
|
124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
125
|
execute_or_queue_command(command, &block)
|
82
126
|
end
|
83
127
|
|
@@ -87,17 +131,17 @@ module Google
|
|
87
131
|
# to use different resource name schemes, such as `users/*/operations`.
|
88
132
|
# @param [String] name
|
89
133
|
# The name of the operation collection.
|
134
|
+
# @param [String] filter
|
135
|
+
# The standard list filter.
|
90
136
|
# @param [String] page_token
|
91
137
|
# The standard list page token.
|
92
138
|
# @param [Fixnum] page_size
|
93
139
|
# The standard list page size.
|
94
|
-
# @param [String]
|
95
|
-
#
|
140
|
+
# @param [String] fields
|
141
|
+
# Selector specifying which fields to include in a partial response.
|
96
142
|
# @param [String] quota_user
|
97
143
|
# Available to use for quota purposes for server-side applications. Can be any
|
98
144
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
99
|
-
# @param [String] fields
|
100
|
-
# Selector specifying which fields to include in a partial response.
|
101
145
|
# @param [Google::Apis::RequestOptions] options
|
102
146
|
# Request-specific options
|
103
147
|
#
|
@@ -110,58 +154,16 @@ module Google
|
|
110
154
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
111
155
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
156
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
|
-
def list_operations(name,
|
157
|
+
def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
114
158
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
115
159
|
command.response_representation = Google::Apis::RuntimeconfigV1::ListOperationsResponse::Representation
|
116
160
|
command.response_class = Google::Apis::RuntimeconfigV1::ListOperationsResponse
|
117
161
|
command.params['name'] = name unless name.nil?
|
162
|
+
command.query['filter'] = filter unless filter.nil?
|
118
163
|
command.query['pageToken'] = page_token unless page_token.nil?
|
119
164
|
command.query['pageSize'] = page_size unless page_size.nil?
|
120
|
-
command.query['filter'] = filter unless filter.nil?
|
121
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
165
|
command.query['fields'] = fields unless fields.nil?
|
123
|
-
execute_or_queue_command(command, &block)
|
124
|
-
end
|
125
|
-
|
126
|
-
# Starts asynchronous cancellation on a long-running operation. The server
|
127
|
-
# makes a best effort to cancel the operation, but success is not
|
128
|
-
# guaranteed. If the server doesn't support this method, it returns
|
129
|
-
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
130
|
-
# Operations.GetOperation or
|
131
|
-
# other methods to check whether the cancellation succeeded or whether the
|
132
|
-
# operation completed despite cancellation. On successful cancellation,
|
133
|
-
# the operation is not deleted; instead, it becomes an operation with
|
134
|
-
# an Operation.error value with a google.rpc.Status.code of 1,
|
135
|
-
# corresponding to `Code.CANCELLED`.
|
136
|
-
# @param [String] name
|
137
|
-
# The name of the operation resource to be cancelled.
|
138
|
-
# @param [Google::Apis::RuntimeconfigV1::CancelOperationRequest] cancel_operation_request_object
|
139
|
-
# @param [String] quota_user
|
140
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
141
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
142
|
-
# @param [String] fields
|
143
|
-
# Selector specifying which fields to include in a partial response.
|
144
|
-
# @param [Google::Apis::RequestOptions] options
|
145
|
-
# Request-specific options
|
146
|
-
#
|
147
|
-
# @yield [result, err] Result & error if block supplied
|
148
|
-
# @yieldparam result [Google::Apis::RuntimeconfigV1::Empty] parsed result object
|
149
|
-
# @yieldparam err [StandardError] error object if request failed
|
150
|
-
#
|
151
|
-
# @return [Google::Apis::RuntimeconfigV1::Empty]
|
152
|
-
#
|
153
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
154
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
155
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
156
|
-
def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
157
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
158
|
-
command.request_representation = Google::Apis::RuntimeconfigV1::CancelOperationRequest::Representation
|
159
|
-
command.request_object = cancel_operation_request_object
|
160
|
-
command.response_representation = Google::Apis::RuntimeconfigV1::Empty::Representation
|
161
|
-
command.response_class = Google::Apis::RuntimeconfigV1::Empty
|
162
|
-
command.params['name'] = name unless name.nil?
|
163
166
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
164
|
-
command.query['fields'] = fields unless fields.nil?
|
165
167
|
execute_or_queue_command(command, &block)
|
166
168
|
end
|
167
169
|
|
@@ -25,20 +25,29 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
|
26
26
|
module ScriptV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170503'
|
29
29
|
|
30
|
-
# View and manage
|
31
|
-
|
30
|
+
# View and manage your Google Groups
|
31
|
+
AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
|
32
|
+
|
33
|
+
# View and manage forms that this application has been installed in
|
34
|
+
AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly'
|
35
|
+
|
36
|
+
# View and manage the files in your Google Drive
|
37
|
+
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
32
38
|
|
33
39
|
# View and manage the provisioning of users on your domain
|
34
40
|
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
35
41
|
|
36
|
-
#
|
37
|
-
|
42
|
+
# View and manage the provisioning of groups on your domain
|
43
|
+
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
38
44
|
|
39
45
|
# View and manage your spreadsheets in Google Drive
|
40
46
|
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
|
41
47
|
|
48
|
+
# Read, send, delete, and manage your email
|
49
|
+
AUTH_SCOPE = 'https://mail.google.com/'
|
50
|
+
|
42
51
|
# View and manage your forms in Google Drive
|
43
52
|
AUTH_FORMS = 'https://www.googleapis.com/auth/forms'
|
44
53
|
|
@@ -50,15 +59,6 @@ module Google
|
|
50
59
|
|
51
60
|
# Manage your calendars
|
52
61
|
CALENDAR_FEEDS = 'https://www.google.com/calendar/feeds'
|
53
|
-
|
54
|
-
# View and manage your Google Groups
|
55
|
-
AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
|
56
|
-
|
57
|
-
# View and manage forms that this application has been installed in
|
58
|
-
AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly'
|
59
|
-
|
60
|
-
# View and manage the files in your Google Drive
|
61
|
-
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
@@ -22,6 +22,68 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ScriptV1
|
24
24
|
|
25
|
+
# A request to retrieve the results from a collection of requests,
|
26
|
+
# specified by the operation resource names.
|
27
|
+
class JoinAsyncRequest
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# The script id which specifies the script which all processes in the names
|
31
|
+
# field must be from.
|
32
|
+
# Corresponds to the JSON property `scriptId`
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :script_id
|
35
|
+
|
36
|
+
# List of operation resource names that we want to join,
|
37
|
+
# as returned from a call to RunAsync.
|
38
|
+
# Corresponds to the JSON property `names`
|
39
|
+
# @return [Array<String>]
|
40
|
+
attr_accessor :names
|
41
|
+
|
42
|
+
# Timeout for information retrieval in milliseconds.
|
43
|
+
# Corresponds to the JSON property `timeout`
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :timeout
|
46
|
+
|
47
|
+
def initialize(**args)
|
48
|
+
update!(**args)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Update properties of this object
|
52
|
+
def update!(**args)
|
53
|
+
@script_id = args[:script_id] if args.key?(:script_id)
|
54
|
+
@names = args[:names] if args.key?(:names)
|
55
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# An object that provides the return value of a function executed through the
|
60
|
+
# Apps Script Execution API. If a
|
61
|
+
# `run` call succeeds and the
|
62
|
+
# script function returns successfully, the response body's
|
63
|
+
# `response` field contains this
|
64
|
+
# `ExecutionResponse` object.
|
65
|
+
class ExecutionResponse
|
66
|
+
include Google::Apis::Core::Hashable
|
67
|
+
|
68
|
+
# The return value of the script function. The type matches the object type
|
69
|
+
# returned in Apps Script. Functions called through the Execution API cannot
|
70
|
+
# return Apps Script-specific objects (such as a `Document` or a `Calendar`);
|
71
|
+
# they can only return primitive types such as a `string`, `number`, `array`,
|
72
|
+
# `object`, or `boolean`.
|
73
|
+
# Corresponds to the JSON property `result`
|
74
|
+
# @return [Object]
|
75
|
+
attr_accessor :result
|
76
|
+
|
77
|
+
def initialize(**args)
|
78
|
+
update!(**args)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Update properties of this object
|
82
|
+
def update!(**args)
|
83
|
+
@result = args[:result] if args.key?(:result)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
25
87
|
# The response will not arrive until the function finishes executing. The
|
26
88
|
# maximum runtime is listed in the guide to [limitations in Apps Script](https://
|
27
89
|
# developers.google.com/apps-script/guides/services/quotas#current_limitations).
|
@@ -83,28 +145,49 @@ module Google
|
|
83
145
|
end
|
84
146
|
end
|
85
147
|
|
148
|
+
# An object that provides the return value for the JoinAsync method.
|
149
|
+
class JoinAsyncResponse
|
150
|
+
include Google::Apis::Core::Hashable
|
151
|
+
|
152
|
+
# The return values for each script function, in a map of operation resource
|
153
|
+
# names to the Operation containing the result of the process. The response
|
154
|
+
# will contain either an error or the result of the script function.
|
155
|
+
# Corresponds to the JSON property `results`
|
156
|
+
# @return [Hash<String,Google::Apis::ScriptV1::Operation>]
|
157
|
+
attr_accessor :results
|
158
|
+
|
159
|
+
def initialize(**args)
|
160
|
+
update!(**args)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Update properties of this object
|
164
|
+
def update!(**args)
|
165
|
+
@results = args[:results] if args.key?(:results)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
86
169
|
# A stack trace through the script that shows where the execution failed.
|
87
170
|
class ScriptStackTraceElement
|
88
171
|
include Google::Apis::Core::Hashable
|
89
172
|
|
90
|
-
# The line number where the script failed.
|
91
|
-
# Corresponds to the JSON property `lineNumber`
|
92
|
-
# @return [Fixnum]
|
93
|
-
attr_accessor :line_number
|
94
|
-
|
95
173
|
# The name of the function that failed.
|
96
174
|
# Corresponds to the JSON property `function`
|
97
175
|
# @return [String]
|
98
176
|
attr_accessor :function
|
99
177
|
|
178
|
+
# The line number where the script failed.
|
179
|
+
# Corresponds to the JSON property `lineNumber`
|
180
|
+
# @return [Fixnum]
|
181
|
+
attr_accessor :line_number
|
182
|
+
|
100
183
|
def initialize(**args)
|
101
184
|
update!(**args)
|
102
185
|
end
|
103
186
|
|
104
187
|
# Update properties of this object
|
105
188
|
def update!(**args)
|
106
|
-
@line_number = args[:line_number] if args.key?(:line_number)
|
107
189
|
@function = args[:function] if args.key?(:function)
|
190
|
+
@line_number = args[:line_number] if args.key?(:line_number)
|
108
191
|
end
|
109
192
|
end
|
110
193
|
|
@@ -154,6 +237,13 @@ module Google
|
|
154
237
|
class Status
|
155
238
|
include Google::Apis::Core::Hashable
|
156
239
|
|
240
|
+
# A developer-facing error message, which is in English. Any user-facing error
|
241
|
+
# message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
|
242
|
+
# Status.details) field, or localized by the client.
|
243
|
+
# Corresponds to the JSON property `message`
|
244
|
+
# @return [String]
|
245
|
+
attr_accessor :message
|
246
|
+
|
157
247
|
# An array that contains a single `ExecutionError` object that provides
|
158
248
|
# information about the nature of the error.
|
159
249
|
# Corresponds to the JSON property `details`
|
@@ -166,22 +256,15 @@ module Google
|
|
166
256
|
# @return [Fixnum]
|
167
257
|
attr_accessor :code
|
168
258
|
|
169
|
-
# A developer-facing error message, which is in English. Any user-facing error
|
170
|
-
# message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
|
171
|
-
# Status.details) field, or localized by the client.
|
172
|
-
# Corresponds to the JSON property `message`
|
173
|
-
# @return [String]
|
174
|
-
attr_accessor :message
|
175
|
-
|
176
259
|
def initialize(**args)
|
177
260
|
update!(**args)
|
178
261
|
end
|
179
262
|
|
180
263
|
# Update properties of this object
|
181
264
|
def update!(**args)
|
265
|
+
@message = args[:message] if args.key?(:message)
|
182
266
|
@details = args[:details] if args.key?(:details)
|
183
267
|
@code = args[:code] if args.key?(:code)
|
184
|
-
@message = args[:message] if args.key?(:message)
|
185
268
|
end
|
186
269
|
end
|
187
270
|
|
@@ -191,6 +274,20 @@ module Google
|
|
191
274
|
class ExecutionRequest
|
192
275
|
include Google::Apis::Core::Hashable
|
193
276
|
|
277
|
+
# The name of the function to execute in the given script. The name does not
|
278
|
+
# include parentheses or parameters.
|
279
|
+
# Corresponds to the JSON property `function`
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :function
|
282
|
+
|
283
|
+
# If `true` and the user is an owner of the script, the script runs at the
|
284
|
+
# most recently saved version rather than the version deployed for use with
|
285
|
+
# the Execution API. Optional; default is `false`.
|
286
|
+
# Corresponds to the JSON property `devMode`
|
287
|
+
# @return [Boolean]
|
288
|
+
attr_accessor :dev_mode
|
289
|
+
alias_method :dev_mode?, :dev_mode
|
290
|
+
|
194
291
|
# The parameters to be passed to the function being executed. The object type
|
195
292
|
# for each parameter should match the expected type in Apps Script.
|
196
293
|
# Parameters cannot be Apps Script-specific object types (such as a
|
@@ -214,58 +311,16 @@ module Google
|
|
214
311
|
# @return [String]
|
215
312
|
attr_accessor :session_state
|
216
313
|
|
217
|
-
# The name of the function to execute in the given script. The name does not
|
218
|
-
# include parentheses or parameters.
|
219
|
-
# Corresponds to the JSON property `function`
|
220
|
-
# @return [String]
|
221
|
-
attr_accessor :function
|
222
|
-
|
223
|
-
# If `true` and the user is an owner of the script, the script runs at the
|
224
|
-
# most recently saved version rather than the version deployed for use with
|
225
|
-
# the Execution API. Optional; default is `false`.
|
226
|
-
# Corresponds to the JSON property `devMode`
|
227
|
-
# @return [Boolean]
|
228
|
-
attr_accessor :dev_mode
|
229
|
-
alias_method :dev_mode?, :dev_mode
|
230
|
-
|
231
314
|
def initialize(**args)
|
232
315
|
update!(**args)
|
233
316
|
end
|
234
317
|
|
235
318
|
# Update properties of this object
|
236
319
|
def update!(**args)
|
237
|
-
@parameters = args[:parameters] if args.key?(:parameters)
|
238
|
-
@session_state = args[:session_state] if args.key?(:session_state)
|
239
320
|
@function = args[:function] if args.key?(:function)
|
240
321
|
@dev_mode = args[:dev_mode] if args.key?(:dev_mode)
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
# An object that provides the return value of a function executed through the
|
245
|
-
# Apps Script Execution API. If a
|
246
|
-
# `run` call succeeds and the
|
247
|
-
# script function returns successfully, the response body's
|
248
|
-
# `response` field contains this
|
249
|
-
# `ExecutionResponse` object.
|
250
|
-
class ExecutionResponse
|
251
|
-
include Google::Apis::Core::Hashable
|
252
|
-
|
253
|
-
# The return value of the script function. The type matches the object type
|
254
|
-
# returned in Apps Script. Functions called through the Execution API cannot
|
255
|
-
# return Apps Script-specific objects (such as a `Document` or a `Calendar`);
|
256
|
-
# they can only return primitive types such as a `string`, `number`, `array`,
|
257
|
-
# `object`, or `boolean`.
|
258
|
-
# Corresponds to the JSON property `result`
|
259
|
-
# @return [Object]
|
260
|
-
attr_accessor :result
|
261
|
-
|
262
|
-
def initialize(**args)
|
263
|
-
update!(**args)
|
264
|
-
end
|
265
|
-
|
266
|
-
# Update properties of this object
|
267
|
-
def update!(**args)
|
268
|
-
@result = args[:result] if args.key?(:result)
|
322
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
323
|
+
@session_state = args[:session_state] if args.key?(:session_state)
|
269
324
|
end
|
270
325
|
end
|
271
326
|
end
|