google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -77,8 +77,7 @@ module Google
|
|
77
77
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
78
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
79
|
def get_customer(customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
80
|
-
|
81
|
-
command = make_simple_command(:get, path, options)
|
80
|
+
command = make_simple_command(:get, 'customers/{customerId}', options)
|
82
81
|
command.response_representation = Google::Apis::ResellerV1::Customer::Representation
|
83
82
|
command.response_class = Google::Apis::ResellerV1::Customer
|
84
83
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
@@ -115,8 +114,7 @@ module Google
|
|
115
114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
116
|
def insert_customer(customer_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
118
|
-
|
119
|
-
command = make_simple_command(:post, path, options)
|
117
|
+
command = make_simple_command(:post, 'customers', options)
|
120
118
|
command.request_representation = Google::Apis::ResellerV1::Customer::Representation
|
121
119
|
command.request_object = customer_object
|
122
120
|
command.response_representation = Google::Apis::ResellerV1::Customer::Representation
|
@@ -155,8 +153,7 @@ module Google
|
|
155
153
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
156
154
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
157
155
|
def patch_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
158
|
-
|
159
|
-
command = make_simple_command(:patch, path, options)
|
156
|
+
command = make_simple_command(:patch, 'customers/{customerId}', options)
|
160
157
|
command.request_representation = Google::Apis::ResellerV1::Customer::Representation
|
161
158
|
command.request_object = customer_object
|
162
159
|
command.response_representation = Google::Apis::ResellerV1::Customer::Representation
|
@@ -194,8 +191,7 @@ module Google
|
|
194
191
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
195
192
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
196
193
|
def update_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
197
|
-
|
198
|
-
command = make_simple_command(:put, path, options)
|
194
|
+
command = make_simple_command(:put, 'customers/{customerId}', options)
|
199
195
|
command.request_representation = Google::Apis::ResellerV1::Customer::Representation
|
200
196
|
command.request_object = customer_object
|
201
197
|
command.response_representation = Google::Apis::ResellerV1::Customer::Representation
|
@@ -234,8 +230,7 @@ module Google
|
|
234
230
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
235
231
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
236
232
|
def activate_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
237
|
-
|
238
|
-
command = make_simple_command(:post, path, options)
|
233
|
+
command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/activate', options)
|
239
234
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
240
235
|
command.response_class = Google::Apis::ResellerV1::Subscription
|
241
236
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
@@ -273,9 +268,8 @@ module Google
|
|
273
268
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
274
269
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
275
270
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
276
|
-
def
|
277
|
-
|
278
|
-
command = make_simple_command(:post, path, options)
|
271
|
+
def change_subscription_plan(customer_id, subscription_id, change_plan_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
272
|
+
command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan', options)
|
279
273
|
command.request_representation = Google::Apis::ResellerV1::ChangePlanRequest::Representation
|
280
274
|
command.request_object = change_plan_request_object
|
281
275
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
@@ -316,8 +310,7 @@ module Google
|
|
316
310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
317
311
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
318
312
|
def change_subscription_renewal_settings(customer_id, subscription_id, renewal_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
319
|
-
|
320
|
-
command = make_simple_command(:post, path, options)
|
313
|
+
command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings', options)
|
321
314
|
command.request_representation = Google::Apis::ResellerV1::RenewalSettings::Representation
|
322
315
|
command.request_object = renewal_settings_object
|
323
316
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
@@ -358,8 +351,7 @@ module Google
|
|
358
351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
353
|
def change_subscription_seats(customer_id, subscription_id, seats_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
361
|
-
|
362
|
-
command = make_simple_command(:post, path, options)
|
354
|
+
command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats', options)
|
363
355
|
command.request_representation = Google::Apis::ResellerV1::Seats::Representation
|
364
356
|
command.request_object = seats_object
|
365
357
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
@@ -401,8 +393,7 @@ module Google
|
|
401
393
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
402
394
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
403
395
|
def delete_subscription(customer_id, subscription_id, deletion_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
404
|
-
|
405
|
-
command = make_simple_command(:delete, path, options)
|
396
|
+
command = make_simple_command(:delete, 'customers/{customerId}/subscriptions/{subscriptionId}', options)
|
406
397
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
407
398
|
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
408
399
|
command.query['deletionType'] = deletion_type unless deletion_type.nil?
|
@@ -439,8 +430,7 @@ module Google
|
|
439
430
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
440
431
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
441
432
|
def get_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
442
|
-
|
443
|
-
command = make_simple_command(:get, path, options)
|
433
|
+
command = make_simple_command(:get, 'customers/{customerId}/subscriptions/{subscriptionId}', options)
|
444
434
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
445
435
|
command.response_class = Google::Apis::ResellerV1::Subscription
|
446
436
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
@@ -480,8 +470,7 @@ module Google
|
|
480
470
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
471
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
472
|
def insert_subscription(customer_id, subscription_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
483
|
-
|
484
|
-
command = make_simple_command(:post, path, options)
|
473
|
+
command = make_simple_command(:post, 'customers/{customerId}/subscriptions', options)
|
485
474
|
command.request_representation = Google::Apis::ResellerV1::Subscription::Representation
|
486
475
|
command.request_object = subscription_object
|
487
476
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
@@ -531,8 +520,7 @@ module Google
|
|
531
520
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
532
521
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
533
522
|
def list_subscriptions(customer_auth_token: nil, customer_id: nil, customer_name_prefix: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
534
|
-
|
535
|
-
command = make_simple_command(:get, path, options)
|
523
|
+
command = make_simple_command(:get, 'subscriptions', options)
|
536
524
|
command.response_representation = Google::Apis::ResellerV1::Subscriptions::Representation
|
537
525
|
command.response_class = Google::Apis::ResellerV1::Subscriptions
|
538
526
|
command.query['customerAuthToken'] = customer_auth_token unless customer_auth_token.nil?
|
@@ -572,9 +560,8 @@ module Google
|
|
572
560
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
573
561
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
574
562
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
575
|
-
def
|
576
|
-
|
577
|
-
command = make_simple_command(:post, path, options)
|
563
|
+
def start_subscription_paid_service(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
564
|
+
command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService', options)
|
578
565
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
579
566
|
command.response_class = Google::Apis::ResellerV1::Subscription
|
580
567
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
@@ -612,8 +599,7 @@ module Google
|
|
612
599
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
613
600
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
614
601
|
def suspend_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
615
|
-
|
616
|
-
command = make_simple_command(:post, path, options)
|
602
|
+
command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/suspend', options)
|
617
603
|
command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
|
618
604
|
command.response_class = Google::Apis::ResellerV1::Subscription
|
619
605
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
33
33
|
|
34
|
+
# View your data across Google Cloud Platform services
|
35
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
36
|
+
|
34
37
|
# View and manage your Google Compute Engine resources
|
35
38
|
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
36
39
|
|
@@ -82,8 +82,7 @@ module Google
|
|
82
82
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
83
83
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
84
84
|
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
85
|
-
|
86
|
-
command = make_simple_command(:get, path, options)
|
85
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
|
87
86
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
|
88
87
|
command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
|
89
88
|
command.params['project'] = project unless project.nil?
|
@@ -130,8 +129,7 @@ module Google
|
|
130
129
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
131
130
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
132
131
|
def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
133
|
-
|
134
|
-
command = make_simple_command(:get, path, options)
|
132
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
|
135
133
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::OperationList::Representation
|
136
134
|
command.response_class = Google::Apis::ResourceviewsV1beta2::OperationList
|
137
135
|
command.params['project'] = project unless project.nil?
|
@@ -174,9 +172,8 @@ module Google
|
|
174
172
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
175
173
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
176
174
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
177
|
-
def
|
178
|
-
|
179
|
-
command = make_simple_command(:post, path, options)
|
175
|
+
def add_zone_view_resources(project, zone, resource_view, add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
176
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/addResources', options)
|
180
177
|
command.request_representation = Google::Apis::ResourceviewsV1beta2::AddResourcesRequest::Representation
|
181
178
|
command.request_object = add_resources_request_object
|
182
179
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
|
@@ -219,8 +216,7 @@ module Google
|
|
219
216
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
217
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
218
|
def delete_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
222
|
-
|
223
|
-
command = make_simple_command(:delete, path, options)
|
219
|
+
command = make_simple_command(:delete, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
|
224
220
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
|
225
221
|
command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
|
226
222
|
command.params['project'] = project unless project.nil?
|
@@ -261,8 +257,7 @@ module Google
|
|
261
257
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
262
258
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
263
259
|
def get_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
264
|
-
|
265
|
-
command = make_simple_command(:get, path, options)
|
260
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
|
266
261
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
|
267
262
|
command.response_class = Google::Apis::ResourceviewsV1beta2::ResourceView
|
268
263
|
command.params['project'] = project unless project.nil?
|
@@ -305,9 +300,8 @@ module Google
|
|
305
300
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
306
301
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
307
302
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
308
|
-
def
|
309
|
-
|
310
|
-
command = make_simple_command(:post, path, options)
|
303
|
+
def get_zone_view_service(project, zone, resource_view, resource_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
304
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/getService', options)
|
311
305
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::GetServiceResponse::Representation
|
312
306
|
command.response_class = Google::Apis::ResourceviewsV1beta2::GetServiceResponse
|
313
307
|
command.params['project'] = project unless project.nil?
|
@@ -348,8 +342,7 @@ module Google
|
|
348
342
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
349
343
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
350
344
|
def insert_zone_view(project, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
351
|
-
|
352
|
-
command = make_simple_command(:post, path, options)
|
345
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews', options)
|
353
346
|
command.request_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
|
354
347
|
command.request_object = resource_view_object
|
355
348
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
|
@@ -395,8 +388,7 @@ module Google
|
|
395
388
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
396
389
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
397
390
|
def list_zone_views(project, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
398
|
-
|
399
|
-
command = make_simple_command(:get, path, options)
|
391
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews', options)
|
400
392
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::ZoneViewsList::Representation
|
401
393
|
command.response_class = Google::Apis::ResourceviewsV1beta2::ZoneViewsList
|
402
394
|
command.params['project'] = project unless project.nil?
|
@@ -452,9 +444,8 @@ module Google
|
|
452
444
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
453
445
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
454
446
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
455
|
-
def
|
456
|
-
|
457
|
-
command = make_simple_command(:get, path, options)
|
447
|
+
def list_zone_view_resources(project, zone, resource_view, format: nil, list_state: nil, max_results: nil, page_token: nil, service_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
448
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}/resources', options)
|
458
449
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse::Representation
|
459
450
|
command.response_class = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse
|
460
451
|
command.params['project'] = project unless project.nil?
|
@@ -500,9 +491,8 @@ module Google
|
|
500
491
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
501
492
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
502
493
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
503
|
-
def
|
504
|
-
|
505
|
-
command = make_simple_command(:post, path, options)
|
494
|
+
def remove_zone_view_resources(project, zone, resource_view, remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
495
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources', options)
|
506
496
|
command.request_representation = Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest::Representation
|
507
497
|
command.request_object = remove_resources_request_object
|
508
498
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
|
@@ -545,9 +535,8 @@ module Google
|
|
545
535
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
546
536
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
547
537
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
548
|
-
def
|
549
|
-
|
550
|
-
command = make_simple_command(:post, path, options)
|
538
|
+
def set_zone_view_service(project, zone, resource_view, set_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
539
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/setService', options)
|
551
540
|
command.request_representation = Google::Apis::ResourceviewsV1beta2::SetServiceRequest::Representation
|
552
541
|
command.request_object = set_service_request_object
|
553
542
|
command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/script_v1/service.rb'
|
16
|
+
require 'google/apis/script_v1/classes.rb'
|
17
|
+
require 'google/apis/script_v1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Apps Script Execution API
|
22
|
+
#
|
23
|
+
# An API for executing Google Apps Script projects.
|
24
|
+
#
|
25
|
+
# @see https://developers.google.com/apps-script/execution/rest/v1/run
|
26
|
+
module ScriptV1
|
27
|
+
VERSION = 'V1'
|
28
|
+
REVISION = '20150922'
|
29
|
+
|
30
|
+
# View and manage your mail
|
31
|
+
AUTH_SCOPE = 'https://mail.google.com/'
|
32
|
+
|
33
|
+
# Manage your calendars
|
34
|
+
CALENDAR_FEEDS = 'https://www.google.com/calendar/feeds'
|
35
|
+
|
36
|
+
# Manage your contacts
|
37
|
+
M8_FEEDS = 'https://www.google.com/m8/feeds'
|
38
|
+
|
39
|
+
# View and manage the provisioning of groups on your domain
|
40
|
+
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
41
|
+
|
42
|
+
# View and manage the provisioning of users on your domain
|
43
|
+
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
44
|
+
|
45
|
+
# View and manage the files in your Google Drive
|
46
|
+
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
47
|
+
|
48
|
+
# View and manage your forms in Google Drive
|
49
|
+
AUTH_FORMS = 'https://www.googleapis.com/auth/forms'
|
50
|
+
|
51
|
+
# View and manage forms that this application has been installed in
|
52
|
+
AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly'
|
53
|
+
|
54
|
+
# View and manage your Google Groups
|
55
|
+
AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
|
56
|
+
|
57
|
+
# View your email address
|
58
|
+
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,259 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ScriptV1
|
24
|
+
|
25
|
+
# A request to run the function in a script. The script is identified by the
|
26
|
+
# specified `script_id`. Executing a function on a script will return results
|
27
|
+
# based on the implementation of the script.
|
28
|
+
class ExecutionRequest
|
29
|
+
include Google::Apis::Core::Hashable
|
30
|
+
|
31
|
+
# The name of the function to execute in the given script. The name does not
|
32
|
+
# include parentheses or parameters.
|
33
|
+
# Corresponds to the JSON property `function`
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :function
|
36
|
+
|
37
|
+
# The parameters to be passed to the function being executed. The type for each
|
38
|
+
# parameter should match the expected type in Apps Script. Parameters cannot be
|
39
|
+
# Apps Script-specific objects (such as a `Document` or `Calendar`); they can
|
40
|
+
# only be primitive types such as a `string`, `number`, `array`, `object`, or `
|
41
|
+
# boolean`. Optional.
|
42
|
+
# Corresponds to the JSON property `parameters`
|
43
|
+
# @return [Array<Object>]
|
44
|
+
attr_accessor :parameters
|
45
|
+
|
46
|
+
# This field is not used.
|
47
|
+
# Corresponds to the JSON property `sessionState`
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :session_state
|
50
|
+
|
51
|
+
# If `true` and the user is an owner of the script, the script runs at the most
|
52
|
+
# recently saved version rather than the version deployed for use with the
|
53
|
+
# Execution API. Optional; default is `false`.
|
54
|
+
# Corresponds to the JSON property `devMode`
|
55
|
+
# @return [Boolean]
|
56
|
+
attr_accessor :dev_mode
|
57
|
+
alias_method :dev_mode?, :dev_mode
|
58
|
+
|
59
|
+
def initialize(**args)
|
60
|
+
update!(**args)
|
61
|
+
end
|
62
|
+
|
63
|
+
# Update properties of this object
|
64
|
+
def update!(**args)
|
65
|
+
@function = args[:function] unless args[:function].nil?
|
66
|
+
@parameters = args[:parameters] unless args[:parameters].nil?
|
67
|
+
@session_state = args[:session_state] unless args[:session_state].nil?
|
68
|
+
@dev_mode = args[:dev_mode] unless args[:dev_mode].nil?
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# The response will not arrive until the function finishes executing. The
|
73
|
+
# maximum runtime is listed in the guide to [limitations in Apps Script](https://
|
74
|
+
# developers.google.com/apps-script/guides/services/quotas#current_limitations).
|
75
|
+
# If the script function returns successfully, the `response` field will contain
|
76
|
+
# an `ExecutionResponse` object with the function's return value in the object's
|
77
|
+
# `result` field.
|
78
|
+
# If the script function (or Apps Script itself) throws an exception, the `error`
|
79
|
+
# field will contain a `Status` object. The `Status` object's `details` field
|
80
|
+
# will contain an array with a single `ExecutionError` object that provides
|
81
|
+
# information about the nature of the error.
|
82
|
+
# If the `run` call itself fails (for example, because of a malformed request or
|
83
|
+
# an authorization error), the method will return an HTTP response code in the
|
84
|
+
# 4XX range with a different format for the response body. Client libraries will
|
85
|
+
# automatically convert a 4XX response into an exception class.
|
86
|
+
class Operation
|
87
|
+
include Google::Apis::Core::Hashable
|
88
|
+
|
89
|
+
# This field is not used.
|
90
|
+
# Corresponds to the JSON property `name`
|
91
|
+
# @return [String]
|
92
|
+
attr_accessor :name
|
93
|
+
|
94
|
+
# This field is not used.
|
95
|
+
# Corresponds to the JSON property `metadata`
|
96
|
+
# @return [Hash<String,Object>]
|
97
|
+
attr_accessor :metadata
|
98
|
+
|
99
|
+
# This field is not used.
|
100
|
+
# Corresponds to the JSON property `done`
|
101
|
+
# @return [Boolean]
|
102
|
+
attr_accessor :done
|
103
|
+
alias_method :done?, :done
|
104
|
+
|
105
|
+
# If a `run` call succeeds but the script function (or Apps Script itself)
|
106
|
+
# throws an exception, the response body's `error` field will contain this `
|
107
|
+
# Status` object.
|
108
|
+
# Corresponds to the JSON property `error`
|
109
|
+
# @return [Google::Apis::ScriptV1::Status]
|
110
|
+
attr_accessor :error
|
111
|
+
|
112
|
+
# If the script function returns successfully, this field will contain an `
|
113
|
+
# ExecutionResponse` object with the function's return value as the object's `
|
114
|
+
# result` field.
|
115
|
+
# Corresponds to the JSON property `response`
|
116
|
+
# @return [Hash<String,Object>]
|
117
|
+
attr_accessor :response
|
118
|
+
|
119
|
+
def initialize(**args)
|
120
|
+
update!(**args)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Update properties of this object
|
124
|
+
def update!(**args)
|
125
|
+
@name = args[:name] unless args[:name].nil?
|
126
|
+
@metadata = args[:metadata] unless args[:metadata].nil?
|
127
|
+
@done = args[:done] unless args[:done].nil?
|
128
|
+
@error = args[:error] unless args[:error].nil?
|
129
|
+
@response = args[:response] unless args[:response].nil?
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
# If a `run` call succeeds but the script function (or Apps Script itself)
|
134
|
+
# throws an exception, the response body's `error` field will contain this `
|
135
|
+
# Status` object.
|
136
|
+
class Status
|
137
|
+
include Google::Apis::Core::Hashable
|
138
|
+
|
139
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
140
|
+
# Corresponds to the JSON property `code`
|
141
|
+
# @return [Fixnum]
|
142
|
+
attr_accessor :code
|
143
|
+
|
144
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
145
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
146
|
+
# field, or localized by the client.
|
147
|
+
# Corresponds to the JSON property `message`
|
148
|
+
# @return [String]
|
149
|
+
attr_accessor :message
|
150
|
+
|
151
|
+
# An array that contains a single `ExecutionError` object that provides
|
152
|
+
# information about the nature of the error.
|
153
|
+
# Corresponds to the JSON property `details`
|
154
|
+
# @return [Array<Hash<String,Object>>]
|
155
|
+
attr_accessor :details
|
156
|
+
|
157
|
+
def initialize(**args)
|
158
|
+
update!(**args)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Update properties of this object
|
162
|
+
def update!(**args)
|
163
|
+
@code = args[:code] unless args[:code].nil?
|
164
|
+
@message = args[:message] unless args[:message].nil?
|
165
|
+
@details = args[:details] unless args[:details].nil?
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# An object that provides information about the nature of an error in the Apps
|
170
|
+
# Script Execution API. If an `run` call succeeds but the script function (or
|
171
|
+
# Apps Script itself) throws an exception, the response body's `error` field
|
172
|
+
# will contain a `Status` object. The `Status` object's `details` field will
|
173
|
+
# contain an array with a single one of these `ExecutionError` objects.
|
174
|
+
class ExecutionError
|
175
|
+
include Google::Apis::Core::Hashable
|
176
|
+
|
177
|
+
# An array of objects that provide a stack trace through the script to show
|
178
|
+
# where the execution failed, with the deepest call first.
|
179
|
+
# Corresponds to the JSON property `scriptStackTraceElements`
|
180
|
+
# @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
|
181
|
+
attr_accessor :script_stack_trace_elements
|
182
|
+
|
183
|
+
# The error message thrown by Apps Script, usually localized into the user's
|
184
|
+
# language.
|
185
|
+
# Corresponds to the JSON property `errorMessage`
|
186
|
+
# @return [String]
|
187
|
+
attr_accessor :error_message
|
188
|
+
|
189
|
+
# The error type, for example `TypeError` or `ReferenceError`. If the error type
|
190
|
+
# is unavailable, this field is not included.
|
191
|
+
# Corresponds to the JSON property `errorType`
|
192
|
+
# @return [String]
|
193
|
+
attr_accessor :error_type
|
194
|
+
|
195
|
+
def initialize(**args)
|
196
|
+
update!(**args)
|
197
|
+
end
|
198
|
+
|
199
|
+
# Update properties of this object
|
200
|
+
def update!(**args)
|
201
|
+
@script_stack_trace_elements = args[:script_stack_trace_elements] unless args[:script_stack_trace_elements].nil?
|
202
|
+
@error_message = args[:error_message] unless args[:error_message].nil?
|
203
|
+
@error_type = args[:error_type] unless args[:error_type].nil?
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
# A stack trace through the script that shows where the execution failed.
|
208
|
+
class ScriptStackTraceElement
|
209
|
+
include Google::Apis::Core::Hashable
|
210
|
+
|
211
|
+
# The name of the function that failed.
|
212
|
+
# Corresponds to the JSON property `function`
|
213
|
+
# @return [String]
|
214
|
+
attr_accessor :function
|
215
|
+
|
216
|
+
# The line number where the script failed.
|
217
|
+
# Corresponds to the JSON property `lineNumber`
|
218
|
+
# @return [Fixnum]
|
219
|
+
attr_accessor :line_number
|
220
|
+
|
221
|
+
def initialize(**args)
|
222
|
+
update!(**args)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Update properties of this object
|
226
|
+
def update!(**args)
|
227
|
+
@function = args[:function] unless args[:function].nil?
|
228
|
+
@line_number = args[:line_number] unless args[:line_number].nil?
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# An object that provides the return value of a function executed through the
|
233
|
+
# Apps Script Execution API. If an `run` call succeeds and the script function
|
234
|
+
# returns successfully, the response body's `response` field will contain this `
|
235
|
+
# ExecutionResponse` object.
|
236
|
+
class ExecutionResponse
|
237
|
+
include Google::Apis::Core::Hashable
|
238
|
+
|
239
|
+
# The return value of the script function. The type will match the type returned
|
240
|
+
# in Apps Script. Functions called through the Execution API cannot return Apps
|
241
|
+
# Script-specific objects (such as a `Document` or `Calendar`); they can only
|
242
|
+
# return primitive types such as a `string`, `number`, `array`, `object`, or `
|
243
|
+
# boolean`.
|
244
|
+
# Corresponds to the JSON property `result`
|
245
|
+
# @return [Object]
|
246
|
+
attr_accessor :result
|
247
|
+
|
248
|
+
def initialize(**args)
|
249
|
+
update!(**args)
|
250
|
+
end
|
251
|
+
|
252
|
+
# Update properties of this object
|
253
|
+
def update!(**args)
|
254
|
+
@result = args[:result] unless args[:result].nil?
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|
259
|
+
end
|