google-api-client 0.9.pre3 → 0.9.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.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
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/google-apps/activity/
|
|
26
26
|
module AppsactivityV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20150417'
|
|
29
29
|
|
|
30
30
|
# View the activity history of your Google Apps
|
|
31
31
|
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
|
|
@@ -99,8 +99,7 @@ module Google
|
|
|
99
99
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
100
100
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
101
101
|
def list_activities(drive_ancestor_id: nil, drive_file_id: nil, grouping_strategy: nil, page_size: nil, page_token: nil, source: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
102
|
-
|
|
103
|
-
command = make_simple_command(:get, path, options)
|
|
102
|
+
command = make_simple_command(:get, 'activities', options)
|
|
104
103
|
command.response_representation = Google::Apis::AppsactivityV1::ListActivitiesResponse::Representation
|
|
105
104
|
command.response_class = Google::Apis::AppsactivityV1::ListActivitiesResponse
|
|
106
105
|
command.query['drive.ancestorId'] = drive_ancestor_id unless drive_ancestor_id.nil?
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/games/services/web/api/states
|
|
26
26
|
module AppstateV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20151209'
|
|
29
29
|
|
|
30
30
|
# View and manage your data for this application
|
|
31
31
|
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
|
@@ -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 clear_state(state_key, current_data_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
85
|
-
|
|
86
|
-
command = make_simple_command(:post, path, options)
|
|
85
|
+
command = make_simple_command(:post, 'states/{stateKey}/clear', options)
|
|
87
86
|
command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
|
|
88
87
|
command.response_class = Google::Apis::AppstateV1::WriteResult
|
|
89
88
|
command.params['stateKey'] = state_key unless state_key.nil?
|
|
@@ -123,8 +122,7 @@ module Google
|
|
|
123
122
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
124
123
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
125
124
|
def delete_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
126
|
-
|
|
127
|
-
command = make_simple_command(:delete, path, options)
|
|
125
|
+
command = make_simple_command(:delete, 'states/{stateKey}', options)
|
|
128
126
|
command.params['stateKey'] = state_key unless state_key.nil?
|
|
129
127
|
command.query['fields'] = fields unless fields.nil?
|
|
130
128
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -158,8 +156,7 @@ module Google
|
|
|
158
156
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
159
157
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
160
158
|
def get_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
161
|
-
|
|
162
|
-
command = make_simple_command(:get, path, options)
|
|
159
|
+
command = make_simple_command(:get, 'states/{stateKey}', options)
|
|
163
160
|
command.response_representation = Google::Apis::AppstateV1::GetResponse::Representation
|
|
164
161
|
command.response_class = Google::Apis::AppstateV1::GetResponse
|
|
165
162
|
command.params['stateKey'] = state_key unless state_key.nil?
|
|
@@ -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 list_states(include_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
197
|
-
|
|
198
|
-
command = make_simple_command(:get, path, options)
|
|
194
|
+
command = make_simple_command(:get, 'states', options)
|
|
199
195
|
command.response_representation = Google::Apis::AppstateV1::ListResponse::Representation
|
|
200
196
|
command.response_class = Google::Apis::AppstateV1::ListResponse
|
|
201
197
|
command.query['includeData'] = include_data unless include_data.nil?
|
|
@@ -237,9 +233,8 @@ module Google
|
|
|
237
233
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
238
234
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
239
235
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
240
|
-
def
|
|
241
|
-
|
|
242
|
-
command = make_simple_command(:put, path, options)
|
|
236
|
+
def update_state(state_key, update_request_object = nil, current_state_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
237
|
+
command = make_simple_command(:put, 'states/{stateKey}', options)
|
|
243
238
|
command.request_representation = Google::Apis::AppstateV1::UpdateRequest::Representation
|
|
244
239
|
command.request_object = update_request_object
|
|
245
240
|
command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
|
|
@@ -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 delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
85
|
-
|
|
86
|
-
command = make_simple_command(:delete, path, options)
|
|
85
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
|
87
86
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
|
88
87
|
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
|
|
89
88
|
command.params['project'] = project unless project.nil?
|
|
@@ -124,8 +123,7 @@ module Google
|
|
|
124
123
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
125
124
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
126
125
|
def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
127
|
-
|
|
128
|
-
command = make_simple_command(:get, path, options)
|
|
126
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
|
129
127
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
|
130
128
|
command.response_class = Google::Apis::AutoscalerV1beta2::Autoscaler
|
|
131
129
|
command.params['project'] = project unless project.nil?
|
|
@@ -165,8 +163,7 @@ module Google
|
|
|
165
163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
166
164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
167
165
|
def insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
168
|
-
|
|
169
|
-
command = make_simple_command(:post, path, options)
|
|
166
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers', options)
|
|
170
167
|
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
|
171
168
|
command.request_object = autoscaler_object
|
|
172
169
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
|
@@ -209,8 +206,7 @@ module Google
|
|
|
209
206
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
210
207
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
211
208
|
def list_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
212
|
-
|
|
213
|
-
command = make_simple_command(:get, path, options)
|
|
209
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers', options)
|
|
214
210
|
command.response_representation = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse::Representation
|
|
215
211
|
command.response_class = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse
|
|
216
212
|
command.params['project'] = project unless project.nil?
|
|
@@ -255,8 +251,7 @@ module Google
|
|
|
255
251
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
256
252
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
257
253
|
def patch_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
258
|
-
|
|
259
|
-
command = make_simple_command(:patch, path, options)
|
|
254
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
|
260
255
|
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
|
261
256
|
command.request_object = autoscaler_object
|
|
262
257
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
|
@@ -300,8 +295,7 @@ module Google
|
|
|
300
295
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
301
296
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
302
297
|
def update_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
303
|
-
|
|
304
|
-
command = make_simple_command(:put, path, options)
|
|
298
|
+
command = make_simple_command(:put, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
|
305
299
|
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
|
306
300
|
command.request_object = autoscaler_object
|
|
307
301
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
|
@@ -341,8 +335,7 @@ module Google
|
|
|
341
335
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
342
336
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
343
337
|
def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
344
|
-
|
|
345
|
-
command = make_simple_command(:delete, path, options)
|
|
338
|
+
command = make_simple_command(:delete, '{project}/zones/{zone}/operations/{operation}', options)
|
|
346
339
|
command.params['project'] = project unless project.nil?
|
|
347
340
|
command.params['zone'] = zone unless zone.nil?
|
|
348
341
|
command.params['operation'] = operation unless operation.nil?
|
|
@@ -378,8 +371,7 @@ module Google
|
|
|
378
371
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
379
372
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
380
373
|
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
381
|
-
|
|
382
|
-
command = make_simple_command(:get, path, options)
|
|
374
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
|
|
383
375
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
|
384
376
|
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
|
|
385
377
|
command.params['project'] = project unless project.nil?
|
|
@@ -419,8 +411,7 @@ module Google
|
|
|
419
411
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
420
412
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
421
413
|
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)
|
|
422
|
-
|
|
423
|
-
command = make_simple_command(:get, path, options)
|
|
414
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
|
|
424
415
|
command.response_representation = Google::Apis::AutoscalerV1beta2::OperationList::Representation
|
|
425
416
|
command.response_class = Google::Apis::AutoscalerV1beta2::OperationList
|
|
426
417
|
command.params['project'] = project unless project.nil?
|
|
@@ -461,8 +452,7 @@ module Google
|
|
|
461
452
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
462
453
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
463
454
|
def list_zones(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
464
|
-
|
|
465
|
-
command = make_simple_command(:get, path, options)
|
|
455
|
+
command = make_simple_command(:get, '{project}/zones', options)
|
|
466
456
|
command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation
|
|
467
457
|
command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList
|
|
468
458
|
command.params['project'] = project unless project.nil?
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
|
26
26
|
module BigqueryV2
|
|
27
27
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20151211'
|
|
29
29
|
|
|
30
30
|
# View and manage your data in Google BigQuery
|
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
|
@@ -36,6 +36,9 @@ module Google
|
|
|
36
36
|
# View and manage your data across Google Cloud Platform services
|
|
37
37
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
38
38
|
|
|
39
|
+
# View your data across Google Cloud Platform services
|
|
40
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
|
41
|
+
|
|
39
42
|
# Manage your data and permissions in Google Cloud Storage
|
|
40
43
|
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
|
|
41
44
|
|
|
@@ -406,12 +406,130 @@ module Google
|
|
|
406
406
|
end
|
|
407
407
|
end
|
|
408
408
|
|
|
409
|
+
#
|
|
410
|
+
class ExplainQueryStage
|
|
411
|
+
include Google::Apis::Core::Hashable
|
|
412
|
+
|
|
413
|
+
# Relative amount of time the average shard spent on CPU-bound tasks.
|
|
414
|
+
# Corresponds to the JSON property `computeRatioAvg`
|
|
415
|
+
# @return [Float]
|
|
416
|
+
attr_accessor :compute_ratio_avg
|
|
417
|
+
|
|
418
|
+
# Relative amount of time the slowest shard spent on CPU-bound tasks.
|
|
419
|
+
# Corresponds to the JSON property `computeRatioMax`
|
|
420
|
+
# @return [Float]
|
|
421
|
+
attr_accessor :compute_ratio_max
|
|
422
|
+
|
|
423
|
+
# Unique ID for stage within plan.
|
|
424
|
+
# Corresponds to the JSON property `id`
|
|
425
|
+
# @return [String]
|
|
426
|
+
attr_accessor :id
|
|
427
|
+
|
|
428
|
+
# Human-readable name for stage.
|
|
429
|
+
# Corresponds to the JSON property `name`
|
|
430
|
+
# @return [String]
|
|
431
|
+
attr_accessor :name
|
|
432
|
+
|
|
433
|
+
# Relative amount of time the average shard spent reading input.
|
|
434
|
+
# Corresponds to the JSON property `readRatioAvg`
|
|
435
|
+
# @return [Float]
|
|
436
|
+
attr_accessor :read_ratio_avg
|
|
437
|
+
|
|
438
|
+
# Relative amount of time the slowest shard spent reading input.
|
|
439
|
+
# Corresponds to the JSON property `readRatioMax`
|
|
440
|
+
# @return [Float]
|
|
441
|
+
attr_accessor :read_ratio_max
|
|
442
|
+
|
|
443
|
+
# Number of records read into the stage.
|
|
444
|
+
# Corresponds to the JSON property `recordsRead`
|
|
445
|
+
# @return [String]
|
|
446
|
+
attr_accessor :records_read
|
|
447
|
+
|
|
448
|
+
# Number of records written by the stage.
|
|
449
|
+
# Corresponds to the JSON property `recordsWritten`
|
|
450
|
+
# @return [String]
|
|
451
|
+
attr_accessor :records_written
|
|
452
|
+
|
|
453
|
+
# List of operations within the stage in dependency order (approximately
|
|
454
|
+
# chronological).
|
|
455
|
+
# Corresponds to the JSON property `steps`
|
|
456
|
+
# @return [Array<Google::Apis::BigqueryV2::ExplainQueryStep>]
|
|
457
|
+
attr_accessor :steps
|
|
458
|
+
|
|
459
|
+
# Relative amount of time the average shard spent waiting to be scheduled.
|
|
460
|
+
# Corresponds to the JSON property `waitRatioAvg`
|
|
461
|
+
# @return [Float]
|
|
462
|
+
attr_accessor :wait_ratio_avg
|
|
463
|
+
|
|
464
|
+
# Relative amount of time the slowest shard spent waiting to be scheduled.
|
|
465
|
+
# Corresponds to the JSON property `waitRatioMax`
|
|
466
|
+
# @return [Float]
|
|
467
|
+
attr_accessor :wait_ratio_max
|
|
468
|
+
|
|
469
|
+
# Relative amount of time the average shard spent on writing output.
|
|
470
|
+
# Corresponds to the JSON property `writeRatioAvg`
|
|
471
|
+
# @return [Float]
|
|
472
|
+
attr_accessor :write_ratio_avg
|
|
473
|
+
|
|
474
|
+
# Relative amount of time the slowest shard spent on writing output.
|
|
475
|
+
# Corresponds to the JSON property `writeRatioMax`
|
|
476
|
+
# @return [Float]
|
|
477
|
+
attr_accessor :write_ratio_max
|
|
478
|
+
|
|
479
|
+
def initialize(**args)
|
|
480
|
+
update!(**args)
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Update properties of this object
|
|
484
|
+
def update!(**args)
|
|
485
|
+
@compute_ratio_avg = args[:compute_ratio_avg] unless args[:compute_ratio_avg].nil?
|
|
486
|
+
@compute_ratio_max = args[:compute_ratio_max] unless args[:compute_ratio_max].nil?
|
|
487
|
+
@id = args[:id] unless args[:id].nil?
|
|
488
|
+
@name = args[:name] unless args[:name].nil?
|
|
489
|
+
@read_ratio_avg = args[:read_ratio_avg] unless args[:read_ratio_avg].nil?
|
|
490
|
+
@read_ratio_max = args[:read_ratio_max] unless args[:read_ratio_max].nil?
|
|
491
|
+
@records_read = args[:records_read] unless args[:records_read].nil?
|
|
492
|
+
@records_written = args[:records_written] unless args[:records_written].nil?
|
|
493
|
+
@steps = args[:steps] unless args[:steps].nil?
|
|
494
|
+
@wait_ratio_avg = args[:wait_ratio_avg] unless args[:wait_ratio_avg].nil?
|
|
495
|
+
@wait_ratio_max = args[:wait_ratio_max] unless args[:wait_ratio_max].nil?
|
|
496
|
+
@write_ratio_avg = args[:write_ratio_avg] unless args[:write_ratio_avg].nil?
|
|
497
|
+
@write_ratio_max = args[:write_ratio_max] unless args[:write_ratio_max].nil?
|
|
498
|
+
end
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
#
|
|
502
|
+
class ExplainQueryStep
|
|
503
|
+
include Google::Apis::Core::Hashable
|
|
504
|
+
|
|
505
|
+
# Machine-readable operation type.
|
|
506
|
+
# Corresponds to the JSON property `kind`
|
|
507
|
+
# @return [String]
|
|
508
|
+
attr_accessor :kind
|
|
509
|
+
|
|
510
|
+
# Human-readable stage descriptions.
|
|
511
|
+
# Corresponds to the JSON property `substeps`
|
|
512
|
+
# @return [Array<String>]
|
|
513
|
+
attr_accessor :substeps
|
|
514
|
+
|
|
515
|
+
def initialize(**args)
|
|
516
|
+
update!(**args)
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Update properties of this object
|
|
520
|
+
def update!(**args)
|
|
521
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
522
|
+
@substeps = args[:substeps] unless args[:substeps].nil?
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
409
526
|
#
|
|
410
527
|
class ExternalDataConfiguration
|
|
411
528
|
include Google::Apis::Core::Hashable
|
|
412
529
|
|
|
413
530
|
# [Optional] The compression type of the data source. Possible values include
|
|
414
|
-
# GZIP and NONE. The default value is NONE.
|
|
531
|
+
# GZIP and NONE. The default value is NONE. This setting is ignored for Google
|
|
532
|
+
# Cloud Datastore backups.
|
|
415
533
|
# Corresponds to the JSON property `compression`
|
|
416
534
|
# @return [String]
|
|
417
535
|
attr_accessor :compression
|
|
@@ -426,7 +544,8 @@ module Google
|
|
|
426
544
|
# false, records with extra columns are treated as bad records, and if there are
|
|
427
545
|
# too many bad records, an invalid error is returned in the job result. The
|
|
428
546
|
# default value is false. The sourceFormat property determines what BigQuery
|
|
429
|
-
# treats as an extra value: CSV: Trailing columns
|
|
547
|
+
# treats as an extra value: CSV: Trailing columns JSON: Named values that don't
|
|
548
|
+
# match any column names Google Cloud Datastore backups: This setting is ignored.
|
|
430
549
|
# Corresponds to the JSON property `ignoreUnknownValues`
|
|
431
550
|
# @return [Boolean]
|
|
432
551
|
attr_accessor :ignore_unknown_values
|
|
@@ -435,26 +554,31 @@ module Google
|
|
|
435
554
|
# [Optional] The maximum number of bad records that BigQuery can ignore when
|
|
436
555
|
# reading data. If the number of bad records exceeds this value, an invalid
|
|
437
556
|
# error is returned in the job result. The default value is 0, which requires
|
|
438
|
-
# that all records are valid.
|
|
557
|
+
# that all records are valid. This setting is ignored for Google Cloud Datastore
|
|
558
|
+
# backups.
|
|
439
559
|
# Corresponds to the JSON property `maxBadRecords`
|
|
440
560
|
# @return [Fixnum]
|
|
441
561
|
attr_accessor :max_bad_records
|
|
442
562
|
|
|
443
|
-
# [
|
|
563
|
+
# [Optional] The schema for the data. Schema is required for CSV and JSON
|
|
564
|
+
# formats. Schema is disallowed for Google Cloud Datastore backups.
|
|
444
565
|
# Corresponds to the JSON property `schema`
|
|
445
566
|
# @return [Google::Apis::BigqueryV2::TableSchema]
|
|
446
567
|
attr_accessor :schema
|
|
447
568
|
|
|
448
|
-
# [
|
|
449
|
-
#
|
|
569
|
+
# [Required] The data format. For CSV files, specify "CSV". For newline-
|
|
570
|
+
# delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Google Cloud Datastore
|
|
571
|
+
# backups, specify "DATASTORE_BACKUP".
|
|
450
572
|
# Corresponds to the JSON property `sourceFormat`
|
|
451
573
|
# @return [String]
|
|
452
574
|
attr_accessor :source_format
|
|
453
575
|
|
|
454
576
|
# [Required] The fully-qualified URIs that point to your data in Google Cloud
|
|
455
577
|
# Storage. Each URI can contain one '*' wildcard character and it must come
|
|
456
|
-
# after the 'bucket' name.
|
|
578
|
+
# after the 'bucket' name. Size limits related to load jobs apply to external
|
|
457
579
|
# data sources, plus an additional limit of 10 GB maximum size across all URIs.
|
|
580
|
+
# For Google Cloud Datastore backups, exactly one URI can be specified, and it
|
|
581
|
+
# must end with '.backup_info'. Also, the '*' wildcard character is not allowed.
|
|
458
582
|
# Corresponds to the JSON property `sourceUris`
|
|
459
583
|
# @return [Array<String>]
|
|
460
584
|
attr_accessor :source_uris
|
|
@@ -485,6 +609,13 @@ module Google
|
|
|
485
609
|
attr_accessor :cache_hit
|
|
486
610
|
alias_method :cache_hit?, :cache_hit
|
|
487
611
|
|
|
612
|
+
# [Output-only] All errors and warnings encountered during the running of the
|
|
613
|
+
# job. Errors here do not necessarily mean that the job has completed or was
|
|
614
|
+
# unsuccessful.
|
|
615
|
+
# Corresponds to the JSON property `errors`
|
|
616
|
+
# @return [Array<Google::Apis::BigqueryV2::ErrorProto>]
|
|
617
|
+
attr_accessor :errors
|
|
618
|
+
|
|
488
619
|
# A hash of this response.
|
|
489
620
|
# Corresponds to the JSON property `etag`
|
|
490
621
|
# @return [String]
|
|
@@ -548,6 +679,7 @@ module Google
|
|
|
548
679
|
# Update properties of this object
|
|
549
680
|
def update!(**args)
|
|
550
681
|
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
|
682
|
+
@errors = args[:errors] unless args[:errors].nil?
|
|
551
683
|
@etag = args[:etag] unless args[:etag].nil?
|
|
552
684
|
@job_complete = args[:job_complete] unless args[:job_complete].nil?
|
|
553
685
|
@job_reference = args[:job_reference] unless args[:job_reference].nil?
|
|
@@ -1353,13 +1485,29 @@ module Google
|
|
|
1353
1485
|
class JobStatistics2
|
|
1354
1486
|
include Google::Apis::Core::Hashable
|
|
1355
1487
|
|
|
1488
|
+
# [Output-only] Billing tier for the job.
|
|
1489
|
+
# Corresponds to the JSON property `billingTier`
|
|
1490
|
+
# @return [Fixnum]
|
|
1491
|
+
attr_accessor :billing_tier
|
|
1492
|
+
|
|
1356
1493
|
# [Output-only] Whether the query result was fetched from the query cache.
|
|
1357
1494
|
# Corresponds to the JSON property `cacheHit`
|
|
1358
1495
|
# @return [Boolean]
|
|
1359
1496
|
attr_accessor :cache_hit
|
|
1360
1497
|
alias_method :cache_hit?, :cache_hit
|
|
1361
1498
|
|
|
1362
|
-
# [Output-only]
|
|
1499
|
+
# [Output-only, Experimental] Describes execution plan for the query as a list
|
|
1500
|
+
# of stages.
|
|
1501
|
+
# Corresponds to the JSON property `queryPlan`
|
|
1502
|
+
# @return [Array<Google::Apis::BigqueryV2::ExplainQueryStage>]
|
|
1503
|
+
attr_accessor :query_plan
|
|
1504
|
+
|
|
1505
|
+
# [Output-only] Total bytes billed for the job.
|
|
1506
|
+
# Corresponds to the JSON property `totalBytesBilled`
|
|
1507
|
+
# @return [String]
|
|
1508
|
+
attr_accessor :total_bytes_billed
|
|
1509
|
+
|
|
1510
|
+
# [Output-only] Total bytes processed for the job.
|
|
1363
1511
|
# Corresponds to the JSON property `totalBytesProcessed`
|
|
1364
1512
|
# @return [String]
|
|
1365
1513
|
attr_accessor :total_bytes_processed
|
|
@@ -1370,7 +1518,10 @@ module Google
|
|
|
1370
1518
|
|
|
1371
1519
|
# Update properties of this object
|
|
1372
1520
|
def update!(**args)
|
|
1521
|
+
@billing_tier = args[:billing_tier] unless args[:billing_tier].nil?
|
|
1373
1522
|
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
|
1523
|
+
@query_plan = args[:query_plan] unless args[:query_plan].nil?
|
|
1524
|
+
@total_bytes_billed = args[:total_bytes_billed] unless args[:total_bytes_billed].nil?
|
|
1374
1525
|
@total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil?
|
|
1375
1526
|
end
|
|
1376
1527
|
end
|
|
@@ -1379,7 +1530,7 @@ module Google
|
|
|
1379
1530
|
class JobStatistics3
|
|
1380
1531
|
include Google::Apis::Core::Hashable
|
|
1381
1532
|
|
|
1382
|
-
# [Output-only] Number of bytes of source data in a
|
|
1533
|
+
# [Output-only] Number of bytes of source data in a load job.
|
|
1383
1534
|
# Corresponds to the JSON property `inputFileBytes`
|
|
1384
1535
|
# @return [String]
|
|
1385
1536
|
attr_accessor :input_file_bytes
|
|
@@ -1389,8 +1540,8 @@ module Google
|
|
|
1389
1540
|
# @return [String]
|
|
1390
1541
|
attr_accessor :input_files
|
|
1391
1542
|
|
|
1392
|
-
# [Output-only] Size of the loaded data in bytes. Note that while
|
|
1393
|
-
#
|
|
1543
|
+
# [Output-only] Size of the loaded data in bytes. Note that while a load job is
|
|
1544
|
+
# in the running state, this value may change.
|
|
1394
1545
|
# Corresponds to the JSON property `outputBytes`
|
|
1395
1546
|
# @return [String]
|
|
1396
1547
|
attr_accessor :output_bytes
|
|
@@ -1418,7 +1569,7 @@ module Google
|
|
|
1418
1569
|
class JobStatistics4
|
|
1419
1570
|
include Google::Apis::Core::Hashable
|
|
1420
1571
|
|
|
1421
|
-
# [
|
|
1572
|
+
# [Output-only] Number of files per destination URI or URI pattern specified in
|
|
1422
1573
|
# the extract configuration. These values will be in the same order as the URIs
|
|
1423
1574
|
# specified in the 'destinationUris' field.
|
|
1424
1575
|
# Corresponds to the JSON property `destinationUriFileCounts`
|
|
@@ -1666,6 +1817,13 @@ module Google
|
|
|
1666
1817
|
attr_accessor :cache_hit
|
|
1667
1818
|
alias_method :cache_hit?, :cache_hit
|
|
1668
1819
|
|
|
1820
|
+
# [Output-only] All errors and warnings encountered during the running of the
|
|
1821
|
+
# job. Errors here do not necessarily mean that the job has completed or was
|
|
1822
|
+
# unsuccessful.
|
|
1823
|
+
# Corresponds to the JSON property `errors`
|
|
1824
|
+
# @return [Array<Google::Apis::BigqueryV2::ErrorProto>]
|
|
1825
|
+
attr_accessor :errors
|
|
1826
|
+
|
|
1669
1827
|
# Whether the query has completed or not. If rows or totalRows are present, this
|
|
1670
1828
|
# will always be true. If this is false, totalRows will not be available.
|
|
1671
1829
|
# Corresponds to the JSON property `jobComplete`
|
|
@@ -1723,6 +1881,7 @@ module Google
|
|
|
1723
1881
|
# Update properties of this object
|
|
1724
1882
|
def update!(**args)
|
|
1725
1883
|
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
|
1884
|
+
@errors = args[:errors] unless args[:errors].nil?
|
|
1726
1885
|
@job_complete = args[:job_complete] unless args[:job_complete].nil?
|
|
1727
1886
|
@job_reference = args[:job_reference] unless args[:job_reference].nil?
|
|
1728
1887
|
@kind = args[:kind] unless args[:kind].nil?
|
|
@@ -1734,6 +1893,40 @@ module Google
|
|
|
1734
1893
|
end
|
|
1735
1894
|
end
|
|
1736
1895
|
|
|
1896
|
+
#
|
|
1897
|
+
class Streamingbuffer
|
|
1898
|
+
include Google::Apis::Core::Hashable
|
|
1899
|
+
|
|
1900
|
+
# [Output-only] A lower-bound estimate of the number of bytes currently in the
|
|
1901
|
+
# streaming buffer.
|
|
1902
|
+
# Corresponds to the JSON property `estimatedBytes`
|
|
1903
|
+
# @return [String]
|
|
1904
|
+
attr_accessor :estimated_bytes
|
|
1905
|
+
|
|
1906
|
+
# [Output-only] A lower-bound estimate of the number of rows currently in the
|
|
1907
|
+
# streaming buffer.
|
|
1908
|
+
# Corresponds to the JSON property `estimatedRows`
|
|
1909
|
+
# @return [String]
|
|
1910
|
+
attr_accessor :estimated_rows
|
|
1911
|
+
|
|
1912
|
+
# [Output-only] Contains the timestamp of the oldest entry in the streaming
|
|
1913
|
+
# buffer, in milliseconds since the epoch, if the streaming buffer is available.
|
|
1914
|
+
# Corresponds to the JSON property `oldestEntryTime`
|
|
1915
|
+
# @return [String]
|
|
1916
|
+
attr_accessor :oldest_entry_time
|
|
1917
|
+
|
|
1918
|
+
def initialize(**args)
|
|
1919
|
+
update!(**args)
|
|
1920
|
+
end
|
|
1921
|
+
|
|
1922
|
+
# Update properties of this object
|
|
1923
|
+
def update!(**args)
|
|
1924
|
+
@estimated_bytes = args[:estimated_bytes] unless args[:estimated_bytes].nil?
|
|
1925
|
+
@estimated_rows = args[:estimated_rows] unless args[:estimated_rows].nil?
|
|
1926
|
+
@oldest_entry_time = args[:oldest_entry_time] unless args[:oldest_entry_time].nil?
|
|
1927
|
+
end
|
|
1928
|
+
end
|
|
1929
|
+
|
|
1737
1930
|
#
|
|
1738
1931
|
class Table
|
|
1739
1932
|
include Google::Apis::Core::Hashable
|
|
@@ -1795,14 +1988,14 @@ module Google
|
|
|
1795
1988
|
# @return [String]
|
|
1796
1989
|
attr_accessor :location
|
|
1797
1990
|
|
|
1798
|
-
# [Output-only] The size of
|
|
1799
|
-
#
|
|
1991
|
+
# [Output-only] The size of this table in bytes, excluding any data in the
|
|
1992
|
+
# streaming buffer.
|
|
1800
1993
|
# Corresponds to the JSON property `numBytes`
|
|
1801
1994
|
# @return [String]
|
|
1802
1995
|
attr_accessor :num_bytes
|
|
1803
1996
|
|
|
1804
|
-
# [Output-only] The number of rows of data in this table
|
|
1805
|
-
#
|
|
1997
|
+
# [Output-only] The number of rows of data in this table, excluding any data in
|
|
1998
|
+
# the streaming buffer.
|
|
1806
1999
|
# Corresponds to the JSON property `numRows`
|
|
1807
2000
|
# @return [String]
|
|
1808
2001
|
attr_accessor :num_rows
|
|
@@ -1817,6 +2010,13 @@ module Google
|
|
|
1817
2010
|
# @return [String]
|
|
1818
2011
|
attr_accessor :self_link
|
|
1819
2012
|
|
|
2013
|
+
# [Output-only] Contains information regarding this table's streaming buffer, if
|
|
2014
|
+
# one is present. This field will be absent if the table is not being streamed
|
|
2015
|
+
# to or if there is no data in the streaming buffer.
|
|
2016
|
+
# Corresponds to the JSON property `streamingBuffer`
|
|
2017
|
+
# @return [Google::Apis::BigqueryV2::Streamingbuffer]
|
|
2018
|
+
attr_accessor :streaming_buffer
|
|
2019
|
+
|
|
1820
2020
|
# [Required] Reference describing the ID of this table.
|
|
1821
2021
|
# Corresponds to the JSON property `tableReference`
|
|
1822
2022
|
# @return [Google::Apis::BigqueryV2::TableReference]
|
|
@@ -1854,6 +2054,7 @@ module Google
|
|
|
1854
2054
|
@num_rows = args[:num_rows] unless args[:num_rows].nil?
|
|
1855
2055
|
@schema = args[:schema] unless args[:schema].nil?
|
|
1856
2056
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
|
2057
|
+
@streaming_buffer = args[:streaming_buffer] unless args[:streaming_buffer].nil?
|
|
1857
2058
|
@table_reference = args[:table_reference] unless args[:table_reference].nil?
|
|
1858
2059
|
@type = args[:type] unless args[:type].nil?
|
|
1859
2060
|
@view = args[:view] unless args[:view].nil?
|
|
@@ -1909,6 +2110,13 @@ module Google
|
|
|
1909
2110
|
attr_accessor :skip_invalid_rows
|
|
1910
2111
|
alias_method :skip_invalid_rows?, :skip_invalid_rows
|
|
1911
2112
|
|
|
2113
|
+
# [Experimental] If specified, treats the destination table as a base template,
|
|
2114
|
+
# and inserts the rows into an instance table named "". BigQuery will manage
|
|
2115
|
+
# creation of the instance table, using the schema of the base template table.
|
|
2116
|
+
# Corresponds to the JSON property `templateSuffix`
|
|
2117
|
+
# @return [String]
|
|
2118
|
+
attr_accessor :template_suffix
|
|
2119
|
+
|
|
1912
2120
|
def initialize(**args)
|
|
1913
2121
|
update!(**args)
|
|
1914
2122
|
end
|
|
@@ -1919,6 +2127,7 @@ module Google
|
|
|
1919
2127
|
@kind = args[:kind] unless args[:kind].nil?
|
|
1920
2128
|
@rows = args[:rows] unless args[:rows].nil?
|
|
1921
2129
|
@skip_invalid_rows = args[:skip_invalid_rows] unless args[:skip_invalid_rows].nil?
|
|
2130
|
+
@template_suffix = args[:template_suffix] unless args[:template_suffix].nil?
|
|
1922
2131
|
end
|
|
1923
2132
|
|
|
1924
2133
|
#
|
|
@@ -2285,6 +2494,11 @@ module Google
|
|
|
2285
2494
|
# @return [String]
|
|
2286
2495
|
attr_accessor :query
|
|
2287
2496
|
|
|
2497
|
+
# [Experimental] Describes user-defined function resources used in the query.
|
|
2498
|
+
# Corresponds to the JSON property `userDefinedFunctionResources`
|
|
2499
|
+
# @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]
|
|
2500
|
+
attr_accessor :user_defined_function_resources
|
|
2501
|
+
|
|
2288
2502
|
def initialize(**args)
|
|
2289
2503
|
update!(**args)
|
|
2290
2504
|
end
|
|
@@ -2292,6 +2506,7 @@ module Google
|
|
|
2292
2506
|
# Update properties of this object
|
|
2293
2507
|
def update!(**args)
|
|
2294
2508
|
@query = args[:query] unless args[:query].nil?
|
|
2509
|
+
@user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil?
|
|
2295
2510
|
end
|
|
2296
2511
|
end
|
|
2297
2512
|
end
|