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
|
@@ -78,8 +78,7 @@ module Google
|
|
|
78
78
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
79
79
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
80
80
|
def get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
81
|
-
|
|
82
|
-
command = make_simple_command(:get, path, options)
|
|
81
|
+
command = make_simple_command(:get, 'accounts/{id}', options)
|
|
83
82
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
|
84
83
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
|
|
85
84
|
command.params['id'] = id unless id.nil?
|
|
@@ -112,8 +111,7 @@ module Google
|
|
|
112
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
113
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
114
113
|
def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
115
|
-
|
|
116
|
-
command = make_simple_command(:get, path, options)
|
|
114
|
+
command = make_simple_command(:get, 'accounts', options)
|
|
117
115
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::AccountsList::Representation
|
|
118
116
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::AccountsList
|
|
119
117
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -148,8 +146,7 @@ module Google
|
|
|
148
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
149
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
150
148
|
def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
151
|
-
|
|
152
|
-
command = make_simple_command(:patch, path, options)
|
|
149
|
+
command = make_simple_command(:patch, 'accounts/{id}', options)
|
|
153
150
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
|
154
151
|
command.request_object = account_object
|
|
155
152
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
|
@@ -187,8 +184,7 @@ module Google
|
|
|
187
184
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
188
185
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
189
186
|
def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
190
|
-
|
|
191
|
-
command = make_simple_command(:put, path, options)
|
|
187
|
+
command = make_simple_command(:put, 'accounts/{id}', options)
|
|
192
188
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
|
193
189
|
command.request_object = account_object
|
|
194
190
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
|
@@ -225,8 +221,7 @@ module Google
|
|
|
225
221
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
226
222
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
227
223
|
def get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
228
|
-
|
|
229
|
-
command = make_simple_command(:get, path, options)
|
|
224
|
+
command = make_simple_command(:get, 'billinginfo/{accountId}', options)
|
|
230
225
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation
|
|
231
226
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfo
|
|
232
227
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -260,8 +255,7 @@ module Google
|
|
|
260
255
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
261
256
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
262
257
|
def list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
263
|
-
|
|
264
|
-
command = make_simple_command(:get, path, options)
|
|
258
|
+
command = make_simple_command(:get, 'billinginfo', options)
|
|
265
259
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfoList::Representation
|
|
266
260
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfoList
|
|
267
261
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -298,8 +292,7 @@ module Google
|
|
|
298
292
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
299
293
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
300
294
|
def get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
301
|
-
|
|
302
|
-
command = make_simple_command(:get, path, options)
|
|
295
|
+
command = make_simple_command(:get, 'billinginfo/{accountId}/{billingId}', options)
|
|
303
296
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
|
304
297
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
|
|
305
298
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -340,8 +333,7 @@ module Google
|
|
|
340
333
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
341
334
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
342
335
|
def patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
343
|
-
|
|
344
|
-
command = make_simple_command(:patch, path, options)
|
|
336
|
+
command = make_simple_command(:patch, 'billinginfo/{accountId}/{billingId}', options)
|
|
345
337
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
|
346
338
|
command.request_object = budget_object
|
|
347
339
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
|
@@ -383,8 +375,7 @@ module Google
|
|
|
383
375
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
384
376
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
385
377
|
def update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
386
|
-
|
|
387
|
-
command = make_simple_command(:put, path, options)
|
|
378
|
+
command = make_simple_command(:put, 'billinginfo/{accountId}/{billingId}', options)
|
|
388
379
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
|
389
380
|
command.request_object = budget_object
|
|
390
381
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
|
@@ -425,8 +416,7 @@ module Google
|
|
|
425
416
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
426
417
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
427
418
|
def get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
428
|
-
|
|
429
|
-
command = make_simple_command(:get, path, options)
|
|
419
|
+
command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}', options)
|
|
430
420
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
|
431
421
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative
|
|
432
422
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -461,8 +451,7 @@ module Google
|
|
|
461
451
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
462
452
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
463
453
|
def insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
464
|
-
|
|
465
|
-
command = make_simple_command(:post, path, options)
|
|
454
|
+
command = make_simple_command(:post, 'creatives', options)
|
|
466
455
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
|
467
456
|
command.request_object = creative_object
|
|
468
457
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
|
@@ -510,8 +499,7 @@ module Google
|
|
|
510
499
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
511
500
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
512
501
|
def list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
513
|
-
|
|
514
|
-
command = make_simple_command(:get, path, options)
|
|
502
|
+
command = make_simple_command(:get, 'creatives', options)
|
|
515
503
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::CreativesList::Representation
|
|
516
504
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::CreativesList
|
|
517
505
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
@@ -550,8 +538,7 @@ module Google
|
|
|
550
538
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
551
539
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
552
540
|
def get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
553
|
-
|
|
554
|
-
command = make_simple_command(:get, path, options)
|
|
541
|
+
command = make_simple_command(:get, 'directdeals/{id}', options)
|
|
555
542
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation
|
|
556
543
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDeal
|
|
557
544
|
command.params['id'] = id unless id.nil?
|
|
@@ -584,8 +571,7 @@ module Google
|
|
|
584
571
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
585
572
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
586
573
|
def list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
587
|
-
|
|
588
|
-
command = make_simple_command(:get, path, options)
|
|
574
|
+
command = make_simple_command(:get, 'directdeals', options)
|
|
589
575
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDealsList::Representation
|
|
590
576
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDealsList
|
|
591
577
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -630,8 +616,7 @@ module Google
|
|
|
630
616
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
631
617
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
632
618
|
def list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
633
|
-
|
|
634
|
-
command = make_simple_command(:get, path, options)
|
|
619
|
+
command = make_simple_command(:get, 'performancereport', options)
|
|
635
620
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation
|
|
636
621
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList
|
|
637
622
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
@@ -672,8 +657,7 @@ module Google
|
|
|
672
657
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
673
658
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
674
659
|
def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
675
|
-
|
|
676
|
-
command = make_simple_command(:delete, path, options)
|
|
660
|
+
command = make_simple_command(:delete, 'pretargetingconfigs/{accountId}/{configId}', options)
|
|
677
661
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
678
662
|
command.params['configId'] = config_id unless config_id.nil?
|
|
679
663
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -709,8 +693,7 @@ module Google
|
|
|
709
693
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
710
694
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
711
695
|
def get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
712
|
-
|
|
713
|
-
command = make_simple_command(:get, path, options)
|
|
696
|
+
command = make_simple_command(:get, 'pretargetingconfigs/{accountId}/{configId}', options)
|
|
714
697
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
|
715
698
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
|
|
716
699
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -747,8 +730,7 @@ module Google
|
|
|
747
730
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
748
731
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
749
732
|
def insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
750
|
-
|
|
751
|
-
command = make_simple_command(:post, path, options)
|
|
733
|
+
command = make_simple_command(:post, 'pretargetingconfigs/{accountId}', options)
|
|
752
734
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
|
753
735
|
command.request_object = pretargeting_config_object
|
|
754
736
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
|
@@ -785,8 +767,7 @@ module Google
|
|
|
785
767
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
786
768
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
787
769
|
def list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
788
|
-
|
|
789
|
-
command = make_simple_command(:get, path, options)
|
|
770
|
+
command = make_simple_command(:get, 'pretargetingconfigs/{accountId}', options)
|
|
790
771
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList::Representation
|
|
791
772
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList
|
|
792
773
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -824,8 +805,7 @@ module Google
|
|
|
824
805
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
825
806
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
826
807
|
def patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
827
|
-
|
|
828
|
-
command = make_simple_command(:patch, path, options)
|
|
808
|
+
command = make_simple_command(:patch, 'pretargetingconfigs/{accountId}/{configId}', options)
|
|
829
809
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
|
830
810
|
command.request_object = pretargeting_config_object
|
|
831
811
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
|
@@ -866,8 +846,7 @@ module Google
|
|
|
866
846
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
867
847
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
868
848
|
def update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
869
|
-
|
|
870
|
-
command = make_simple_command(:put, path, options)
|
|
849
|
+
command = make_simple_command(:put, 'pretargetingconfigs/{accountId}/{configId}', options)
|
|
871
850
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
|
872
851
|
command.request_object = pretargeting_config_object
|
|
873
852
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/ad-exchange/seller-rest/
|
|
27
27
|
module AdexchangesellerV2_0
|
|
28
28
|
VERSION = 'V2_0'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20151127'
|
|
30
30
|
|
|
31
31
|
# View and manage your Ad Exchange data
|
|
32
32
|
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'
|
|
@@ -78,8 +78,7 @@ module Google
|
|
|
78
78
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
79
79
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
80
80
|
def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
81
|
-
|
|
82
|
-
command = make_simple_command(:get, path, options)
|
|
81
|
+
command = make_simple_command(:get, 'accounts/{accountId}', options)
|
|
83
82
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Account::Representation
|
|
84
83
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Account
|
|
85
84
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -117,8 +116,7 @@ module Google
|
|
|
117
116
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
118
117
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
119
118
|
def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
120
|
-
|
|
121
|
-
command = make_simple_command(:get, path, options)
|
|
119
|
+
command = make_simple_command(:get, 'accounts', options)
|
|
122
120
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Accounts::Representation
|
|
123
121
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Accounts
|
|
124
122
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -160,8 +158,7 @@ module Google
|
|
|
160
158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
161
159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
162
160
|
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
163
|
-
|
|
164
|
-
command = make_simple_command(:get, path, options)
|
|
161
|
+
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
|
|
165
162
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation
|
|
166
163
|
command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients
|
|
167
164
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -202,8 +199,7 @@ module Google
|
|
|
202
199
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
203
200
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
204
201
|
def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
205
|
-
|
|
206
|
-
command = make_simple_command(:get, path, options)
|
|
202
|
+
command = make_simple_command(:get, 'accounts/{accountId}/alerts', options)
|
|
207
203
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Alerts::Representation
|
|
208
204
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Alerts
|
|
209
205
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -243,8 +239,7 @@ module Google
|
|
|
243
239
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
244
240
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
245
241
|
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
246
|
-
|
|
247
|
-
command = make_simple_command(:get, path, options)
|
|
242
|
+
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
|
|
248
243
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation
|
|
249
244
|
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel
|
|
250
245
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -291,8 +286,7 @@ module Google
|
|
|
291
286
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
292
287
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
293
288
|
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
294
|
-
|
|
295
|
-
command = make_simple_command(:get, path, options)
|
|
289
|
+
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
|
|
296
290
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation
|
|
297
291
|
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels
|
|
298
292
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -330,8 +324,7 @@ module Google
|
|
|
330
324
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
331
325
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
332
326
|
def list_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
333
|
-
|
|
334
|
-
command = make_simple_command(:get, path, options)
|
|
327
|
+
command = make_simple_command(:get, 'accounts/{accountId}/metadata/dimensions', options)
|
|
335
328
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
|
336
329
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
|
337
330
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -366,8 +359,7 @@ module Google
|
|
|
366
359
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
367
360
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
368
361
|
def list_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
369
|
-
|
|
370
|
-
command = make_simple_command(:get, path, options)
|
|
362
|
+
command = make_simple_command(:get, 'accounts/{accountId}/metadata/metrics', options)
|
|
371
363
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
|
372
364
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
|
373
365
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -404,8 +396,7 @@ module Google
|
|
|
404
396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
405
397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
406
398
|
def get_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
407
|
-
|
|
408
|
-
command = make_simple_command(:get, path, options)
|
|
399
|
+
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals/{dealId}', options)
|
|
409
400
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation
|
|
410
401
|
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal
|
|
411
402
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -441,8 +432,7 @@ module Google
|
|
|
441
432
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
442
433
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
443
434
|
def list_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
444
|
-
|
|
445
|
-
command = make_simple_command(:get, path, options)
|
|
435
|
+
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options)
|
|
446
436
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation
|
|
447
437
|
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals
|
|
448
438
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -502,11 +492,10 @@ module Google
|
|
|
502
492
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
503
493
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
504
494
|
def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
505
|
-
path = 'accounts/{accountId}/reports'
|
|
506
495
|
if download_dest.nil?
|
|
507
|
-
command = make_simple_command(:get,
|
|
496
|
+
command = make_simple_command(:get, 'accounts/{accountId}/reports', options)
|
|
508
497
|
else
|
|
509
|
-
command = make_download_command(:get,
|
|
498
|
+
command = make_download_command(:get, 'accounts/{accountId}/reports', options)
|
|
510
499
|
command.download_dest = download_dest
|
|
511
500
|
end
|
|
512
501
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
|
@@ -562,8 +551,7 @@ module Google
|
|
|
562
551
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
563
552
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
564
553
|
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
565
|
-
|
|
566
|
-
command = make_simple_command(:get, path, options)
|
|
554
|
+
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
|
|
567
555
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
|
568
556
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Report
|
|
569
557
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -609,8 +597,7 @@ module Google
|
|
|
609
597
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
610
598
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
611
599
|
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
612
|
-
|
|
613
|
-
command = make_simple_command(:get, path, options)
|
|
600
|
+
command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
|
|
614
601
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation
|
|
615
602
|
command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports
|
|
616
603
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -655,8 +642,7 @@ module Google
|
|
|
655
642
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
656
643
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
657
644
|
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
658
|
-
|
|
659
|
-
command = make_simple_command(:get, path, options)
|
|
645
|
+
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
|
|
660
646
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation
|
|
661
647
|
command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels
|
|
662
648
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
@@ -0,0 +1,37 @@
|
|
|
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/admin_datatransfer_v1/service.rb'
|
|
16
|
+
require 'google/apis/admin_datatransfer_v1/classes.rb'
|
|
17
|
+
require 'google/apis/admin_datatransfer_v1/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Admin Data Transfer API
|
|
22
|
+
#
|
|
23
|
+
# Admin Data Transfer API lets you transfer user data from one user to another.
|
|
24
|
+
#
|
|
25
|
+
# @see https://developers.google.com/admin-sdk/data-transfer/
|
|
26
|
+
module AdminDatatransferV1
|
|
27
|
+
VERSION = 'DatatransferV1'
|
|
28
|
+
REVISION = '20150917'
|
|
29
|
+
|
|
30
|
+
# View and manage data transfers between users in your organization
|
|
31
|
+
AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer'
|
|
32
|
+
|
|
33
|
+
# View data transfers between users in your organization
|
|
34
|
+
AUTH_ADMIN_DATATRANSFER_READONLY = 'https://www.googleapis.com/auth/admin.datatransfer.readonly'
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,267 @@
|
|
|
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 AdminDatatransferV1
|
|
24
|
+
|
|
25
|
+
# The JSON template for an Application resource.
|
|
26
|
+
class Application
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Etag of the resource.
|
|
30
|
+
# Corresponds to the JSON property `etag`
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :etag
|
|
33
|
+
|
|
34
|
+
# The application's ID.
|
|
35
|
+
# Corresponds to the JSON property `id`
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :id
|
|
38
|
+
|
|
39
|
+
# Identifies the resource as a DataTransfer Application Resource.
|
|
40
|
+
# Corresponds to the JSON property `kind`
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :kind
|
|
43
|
+
|
|
44
|
+
# The application's name.
|
|
45
|
+
# Corresponds to the JSON property `name`
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :name
|
|
48
|
+
|
|
49
|
+
# The list of all possible transfer parameters for this application. These
|
|
50
|
+
# parameters can be used to select the data of the user in this application to
|
|
51
|
+
# be transfered.
|
|
52
|
+
# Corresponds to the JSON property `transferParams`
|
|
53
|
+
# @return [Array<Google::Apis::AdminDatatransferV1::ApplicationTransferParam>]
|
|
54
|
+
attr_accessor :transfer_params
|
|
55
|
+
|
|
56
|
+
def initialize(**args)
|
|
57
|
+
update!(**args)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Update properties of this object
|
|
61
|
+
def update!(**args)
|
|
62
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
63
|
+
@id = args[:id] unless args[:id].nil?
|
|
64
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
65
|
+
@name = args[:name] unless args[:name].nil?
|
|
66
|
+
@transfer_params = args[:transfer_params] unless args[:transfer_params].nil?
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Template to map fields of ApplicationDataTransfer resource.
|
|
71
|
+
class ApplicationDataTransfer
|
|
72
|
+
include Google::Apis::Core::Hashable
|
|
73
|
+
|
|
74
|
+
# The application's ID.
|
|
75
|
+
# Corresponds to the JSON property `applicationId`
|
|
76
|
+
# @return [String]
|
|
77
|
+
attr_accessor :application_id
|
|
78
|
+
|
|
79
|
+
# The transfer parameters for the application. These parameters are used to
|
|
80
|
+
# select the data which will get transfered in context of this application.
|
|
81
|
+
# Corresponds to the JSON property `applicationTransferParams`
|
|
82
|
+
# @return [Array<Google::Apis::AdminDatatransferV1::ApplicationTransferParam>]
|
|
83
|
+
attr_accessor :application_transfer_params
|
|
84
|
+
|
|
85
|
+
# Current status of transfer for this application. (Read-only)
|
|
86
|
+
# Corresponds to the JSON property `applicationTransferStatus`
|
|
87
|
+
# @return [String]
|
|
88
|
+
attr_accessor :application_transfer_status
|
|
89
|
+
|
|
90
|
+
def initialize(**args)
|
|
91
|
+
update!(**args)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Update properties of this object
|
|
95
|
+
def update!(**args)
|
|
96
|
+
@application_id = args[:application_id] unless args[:application_id].nil?
|
|
97
|
+
@application_transfer_params = args[:application_transfer_params] unless args[:application_transfer_params].nil?
|
|
98
|
+
@application_transfer_status = args[:application_transfer_status] unless args[:application_transfer_status].nil?
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Template for application transfer parameters.
|
|
103
|
+
class ApplicationTransferParam
|
|
104
|
+
include Google::Apis::Core::Hashable
|
|
105
|
+
|
|
106
|
+
# The type of the transfer parameter. eg: 'PRIVACY_LEVEL'
|
|
107
|
+
# Corresponds to the JSON property `key`
|
|
108
|
+
# @return [String]
|
|
109
|
+
attr_accessor :key
|
|
110
|
+
|
|
111
|
+
# The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'
|
|
112
|
+
# Corresponds to the JSON property `value`
|
|
113
|
+
# @return [Array<String>]
|
|
114
|
+
attr_accessor :value
|
|
115
|
+
|
|
116
|
+
def initialize(**args)
|
|
117
|
+
update!(**args)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Update properties of this object
|
|
121
|
+
def update!(**args)
|
|
122
|
+
@key = args[:key] unless args[:key].nil?
|
|
123
|
+
@value = args[:value] unless args[:value].nil?
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Template for a collection of Applications.
|
|
128
|
+
class ApplicationsListResponse
|
|
129
|
+
include Google::Apis::Core::Hashable
|
|
130
|
+
|
|
131
|
+
# List of applications that support data transfer and are also installed for the
|
|
132
|
+
# customer.
|
|
133
|
+
# Corresponds to the JSON property `applications`
|
|
134
|
+
# @return [Array<Google::Apis::AdminDatatransferV1::Application>]
|
|
135
|
+
attr_accessor :applications
|
|
136
|
+
|
|
137
|
+
# ETag of the resource.
|
|
138
|
+
# Corresponds to the JSON property `etag`
|
|
139
|
+
# @return [String]
|
|
140
|
+
attr_accessor :etag
|
|
141
|
+
|
|
142
|
+
# Identifies the resource as a collection of Applications.
|
|
143
|
+
# Corresponds to the JSON property `kind`
|
|
144
|
+
# @return [String]
|
|
145
|
+
attr_accessor :kind
|
|
146
|
+
|
|
147
|
+
# Continuation token which will be used to specify next page in list API.
|
|
148
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
149
|
+
# @return [String]
|
|
150
|
+
attr_accessor :next_page_token
|
|
151
|
+
|
|
152
|
+
def initialize(**args)
|
|
153
|
+
update!(**args)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Update properties of this object
|
|
157
|
+
def update!(**args)
|
|
158
|
+
@applications = args[:applications] unless args[:applications].nil?
|
|
159
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
160
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
161
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# The JSON template for a DataTransfer resource.
|
|
166
|
+
class DataTransfer
|
|
167
|
+
include Google::Apis::Core::Hashable
|
|
168
|
+
|
|
169
|
+
# List of per application data transfer resources. It contains data transfer
|
|
170
|
+
# details of the applications associated with this transfer resource. Note that
|
|
171
|
+
# this list is also used to specify the applications for which data transfer has
|
|
172
|
+
# to be done at the time of the transfer resource creation.
|
|
173
|
+
# Corresponds to the JSON property `applicationDataTransfers`
|
|
174
|
+
# @return [Array<Google::Apis::AdminDatatransferV1::ApplicationDataTransfer>]
|
|
175
|
+
attr_accessor :application_data_transfers
|
|
176
|
+
|
|
177
|
+
# ETag of the resource.
|
|
178
|
+
# Corresponds to the JSON property `etag`
|
|
179
|
+
# @return [String]
|
|
180
|
+
attr_accessor :etag
|
|
181
|
+
|
|
182
|
+
# The transfer's ID (Read-only).
|
|
183
|
+
# Corresponds to the JSON property `id`
|
|
184
|
+
# @return [String]
|
|
185
|
+
attr_accessor :id
|
|
186
|
+
|
|
187
|
+
# Identifies the resource as a DataTransfer request.
|
|
188
|
+
# Corresponds to the JSON property `kind`
|
|
189
|
+
# @return [String]
|
|
190
|
+
attr_accessor :kind
|
|
191
|
+
|
|
192
|
+
# ID of the user to whom the data is being transfered.
|
|
193
|
+
# Corresponds to the JSON property `newOwnerUserId`
|
|
194
|
+
# @return [String]
|
|
195
|
+
attr_accessor :new_owner_user_id
|
|
196
|
+
|
|
197
|
+
# ID of the user whose data is being transfered.
|
|
198
|
+
# Corresponds to the JSON property `oldOwnerUserId`
|
|
199
|
+
# @return [String]
|
|
200
|
+
attr_accessor :old_owner_user_id
|
|
201
|
+
|
|
202
|
+
# Overall transfer status (Read-only).
|
|
203
|
+
# Corresponds to the JSON property `overallTransferStatusCode`
|
|
204
|
+
# @return [String]
|
|
205
|
+
attr_accessor :overall_transfer_status_code
|
|
206
|
+
|
|
207
|
+
# The time at which the data transfer was requested (Read-only).
|
|
208
|
+
# Corresponds to the JSON property `requestTime`
|
|
209
|
+
# @return [DateTime]
|
|
210
|
+
attr_accessor :request_time
|
|
211
|
+
|
|
212
|
+
def initialize(**args)
|
|
213
|
+
update!(**args)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Update properties of this object
|
|
217
|
+
def update!(**args)
|
|
218
|
+
@application_data_transfers = args[:application_data_transfers] unless args[:application_data_transfers].nil?
|
|
219
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
220
|
+
@id = args[:id] unless args[:id].nil?
|
|
221
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
222
|
+
@new_owner_user_id = args[:new_owner_user_id] unless args[:new_owner_user_id].nil?
|
|
223
|
+
@old_owner_user_id = args[:old_owner_user_id] unless args[:old_owner_user_id].nil?
|
|
224
|
+
@overall_transfer_status_code = args[:overall_transfer_status_code] unless args[:overall_transfer_status_code].nil?
|
|
225
|
+
@request_time = args[:request_time] unless args[:request_time].nil?
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Template for a collection of DataTransfer resources.
|
|
230
|
+
class DataTransfersListResponse
|
|
231
|
+
include Google::Apis::Core::Hashable
|
|
232
|
+
|
|
233
|
+
# List of data transfer requests.
|
|
234
|
+
# Corresponds to the JSON property `dataTransfers`
|
|
235
|
+
# @return [Array<Google::Apis::AdminDatatransferV1::DataTransfer>]
|
|
236
|
+
attr_accessor :data_transfers
|
|
237
|
+
|
|
238
|
+
# ETag of the resource.
|
|
239
|
+
# Corresponds to the JSON property `etag`
|
|
240
|
+
# @return [String]
|
|
241
|
+
attr_accessor :etag
|
|
242
|
+
|
|
243
|
+
# Identifies the resource as a collection of data transfer requests.
|
|
244
|
+
# Corresponds to the JSON property `kind`
|
|
245
|
+
# @return [String]
|
|
246
|
+
attr_accessor :kind
|
|
247
|
+
|
|
248
|
+
# Continuation token which will be used to specify next page in list API.
|
|
249
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
250
|
+
# @return [String]
|
|
251
|
+
attr_accessor :next_page_token
|
|
252
|
+
|
|
253
|
+
def initialize(**args)
|
|
254
|
+
update!(**args)
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Update properties of this object
|
|
258
|
+
def update!(**args)
|
|
259
|
+
@data_transfers = args[:data_transfers] unless args[:data_transfers].nil?
|
|
260
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
261
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
262
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
end
|