google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -0,0 +1,402 @@
|
|
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 PartnersV2
|
24
|
+
|
25
|
+
class LogUserEventRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
end
|
28
|
+
|
29
|
+
class RequestMetadata
|
30
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
31
|
+
end
|
32
|
+
|
33
|
+
class UserOverrides
|
34
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
35
|
+
end
|
36
|
+
|
37
|
+
class TrafficSource
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
end
|
40
|
+
|
41
|
+
class EventData
|
42
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
43
|
+
end
|
44
|
+
|
45
|
+
class Lead
|
46
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
47
|
+
end
|
48
|
+
|
49
|
+
class Money
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
end
|
52
|
+
|
53
|
+
class LogUserEventResponse
|
54
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
55
|
+
end
|
56
|
+
|
57
|
+
class ResponseMetadata
|
58
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
59
|
+
end
|
60
|
+
|
61
|
+
class DebugInfo
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
end
|
64
|
+
|
65
|
+
class LogMessageRequest
|
66
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
67
|
+
end
|
68
|
+
|
69
|
+
class LogMessageResponse
|
70
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListUserStatesResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
end
|
76
|
+
|
77
|
+
class GetCompanyResponse
|
78
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
79
|
+
end
|
80
|
+
|
81
|
+
class Company
|
82
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
83
|
+
end
|
84
|
+
|
85
|
+
class LocalizedCompanyInfo
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
end
|
88
|
+
|
89
|
+
class Location
|
90
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
91
|
+
end
|
92
|
+
|
93
|
+
class LatLng
|
94
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
95
|
+
end
|
96
|
+
|
97
|
+
class PublicProfile
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
end
|
100
|
+
|
101
|
+
class CertificationStatus
|
102
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
103
|
+
end
|
104
|
+
|
105
|
+
class CertificationExamStatus
|
106
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
107
|
+
end
|
108
|
+
|
109
|
+
class Rank
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
end
|
112
|
+
|
113
|
+
class ListCompaniesResponse
|
114
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
115
|
+
end
|
116
|
+
|
117
|
+
class CreateLeadRequest
|
118
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
119
|
+
end
|
120
|
+
|
121
|
+
class RecaptchaChallenge
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
end
|
124
|
+
|
125
|
+
class CreateLeadResponse
|
126
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
127
|
+
end
|
128
|
+
|
129
|
+
class LogUserEventRequest
|
130
|
+
# @private
|
131
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
132
|
+
property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation
|
133
|
+
|
134
|
+
property :event_action, as: 'eventAction'
|
135
|
+
property :event_category, as: 'eventCategory'
|
136
|
+
property :event_scope, as: 'eventScope'
|
137
|
+
collection :event_datas, as: 'eventDatas', class: Google::Apis::PartnersV2::EventData, decorator: Google::Apis::PartnersV2::EventData::Representation
|
138
|
+
|
139
|
+
property :url, as: 'url'
|
140
|
+
property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation
|
141
|
+
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
class RequestMetadata
|
146
|
+
# @private
|
147
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
148
|
+
property :user_overrides, as: 'userOverrides', class: Google::Apis::PartnersV2::UserOverrides, decorator: Google::Apis::PartnersV2::UserOverrides::Representation
|
149
|
+
|
150
|
+
property :locale, as: 'locale'
|
151
|
+
property :partners_session_id, as: 'partnersSessionId'
|
152
|
+
collection :experiment_ids, as: 'experimentIds'
|
153
|
+
property :traffic_source, as: 'trafficSource', class: Google::Apis::PartnersV2::TrafficSource, decorator: Google::Apis::PartnersV2::TrafficSource::Representation
|
154
|
+
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
class UserOverrides
|
159
|
+
# @private
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
+
property :ip_address, as: 'ipAddress'
|
162
|
+
property :user_id, as: 'userId'
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
class TrafficSource
|
167
|
+
# @private
|
168
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
+
property :traffic_source_id, as: 'trafficSourceId'
|
170
|
+
property :traffic_sub_id, as: 'trafficSubId'
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class EventData
|
175
|
+
# @private
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
+
property :key, as: 'key'
|
178
|
+
collection :values, as: 'values'
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class Lead
|
183
|
+
# @private
|
184
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
185
|
+
property :id, as: 'id'
|
186
|
+
property :type, as: 'type'
|
187
|
+
property :email, as: 'email'
|
188
|
+
property :given_name, as: 'givenName'
|
189
|
+
property :family_name, as: 'familyName'
|
190
|
+
property :website_url, as: 'websiteUrl'
|
191
|
+
property :phone_number, as: 'phoneNumber'
|
192
|
+
property :comments, as: 'comments'
|
193
|
+
collection :gps_motivations, as: 'gpsMotivations'
|
194
|
+
property :min_monthly_budget, as: 'minMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation
|
195
|
+
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
class Money
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
property :currency_code, as: 'currencyCode'
|
203
|
+
property :units, as: 'units'
|
204
|
+
property :nanos, as: 'nanos'
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
class LogUserEventResponse
|
209
|
+
# @private
|
210
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
211
|
+
property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation
|
212
|
+
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
class ResponseMetadata
|
217
|
+
# @private
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
+
property :debug_info, as: 'debugInfo', class: Google::Apis::PartnersV2::DebugInfo, decorator: Google::Apis::PartnersV2::DebugInfo::Representation
|
220
|
+
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class DebugInfo
|
225
|
+
# @private
|
226
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
227
|
+
property :server_info, as: 'serverInfo'
|
228
|
+
property :service_url, as: 'serviceUrl'
|
229
|
+
property :server_trace_info, as: 'serverTraceInfo'
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class LogMessageRequest
|
234
|
+
# @private
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation
|
237
|
+
|
238
|
+
property :level, as: 'level'
|
239
|
+
property :details, as: 'details'
|
240
|
+
hash :client_info, as: 'clientInfo'
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
class LogMessageResponse
|
245
|
+
# @private
|
246
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
247
|
+
property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation
|
248
|
+
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class ListUserStatesResponse
|
253
|
+
# @private
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
255
|
+
property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation
|
256
|
+
|
257
|
+
collection :user_states, as: 'userStates'
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
class GetCompanyResponse
|
262
|
+
# @private
|
263
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
264
|
+
property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation
|
265
|
+
|
266
|
+
property :company, as: 'company', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation
|
267
|
+
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
class Company
|
272
|
+
# @private
|
273
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
274
|
+
property :id, as: 'id'
|
275
|
+
property :name, as: 'name'
|
276
|
+
collection :localized_infos, as: 'localizedInfos', class: Google::Apis::PartnersV2::LocalizedCompanyInfo, decorator: Google::Apis::PartnersV2::LocalizedCompanyInfo::Representation
|
277
|
+
|
278
|
+
collection :locations, as: 'locations', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation
|
279
|
+
|
280
|
+
property :converted_min_monthly_budget, as: 'convertedMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation
|
281
|
+
|
282
|
+
property :original_min_monthly_budget, as: 'originalMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation
|
283
|
+
|
284
|
+
property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation
|
285
|
+
|
286
|
+
collection :certification_statuses, as: 'certificationStatuses', class: Google::Apis::PartnersV2::CertificationStatus, decorator: Google::Apis::PartnersV2::CertificationStatus::Representation
|
287
|
+
|
288
|
+
collection :ranks, as: 'ranks', class: Google::Apis::PartnersV2::Rank, decorator: Google::Apis::PartnersV2::Rank::Representation
|
289
|
+
|
290
|
+
property :website_url, as: 'websiteUrl'
|
291
|
+
collection :industries, as: 'industries'
|
292
|
+
collection :services, as: 'services'
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
class LocalizedCompanyInfo
|
297
|
+
# @private
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
property :language_code, as: 'languageCode'
|
300
|
+
property :display_name, as: 'displayName'
|
301
|
+
property :overview, as: 'overview'
|
302
|
+
collection :country_codes, as: 'countryCodes'
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
class Location
|
307
|
+
# @private
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
+
property :address, as: 'address'
|
310
|
+
property :lat_lng, as: 'latLng', class: Google::Apis::PartnersV2::LatLng, decorator: Google::Apis::PartnersV2::LatLng::Representation
|
311
|
+
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
class LatLng
|
316
|
+
# @private
|
317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
+
property :latitude, as: 'latitude'
|
319
|
+
property :longitude, as: 'longitude'
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
class PublicProfile
|
324
|
+
# @private
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
+
property :id, as: 'id'
|
327
|
+
property :display_name, as: 'displayName'
|
328
|
+
property :url, as: 'url'
|
329
|
+
property :display_image_url, as: 'displayImageUrl'
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
class CertificationStatus
|
334
|
+
# @private
|
335
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
336
|
+
property :type, as: 'type'
|
337
|
+
collection :exam_statuses, as: 'examStatuses', class: Google::Apis::PartnersV2::CertificationExamStatus, decorator: Google::Apis::PartnersV2::CertificationExamStatus::Representation
|
338
|
+
|
339
|
+
property :is_certified, as: 'isCertified'
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
class CertificationExamStatus
|
344
|
+
# @private
|
345
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
346
|
+
property :type, as: 'type'
|
347
|
+
property :number_users_pass, as: 'numberUsersPass'
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
class Rank
|
352
|
+
# @private
|
353
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
354
|
+
property :type, as: 'type'
|
355
|
+
property :value, as: 'value'
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
class ListCompaniesResponse
|
360
|
+
# @private
|
361
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
362
|
+
property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation
|
363
|
+
|
364
|
+
collection :companies, as: 'companies', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation
|
365
|
+
|
366
|
+
property :next_page_token, as: 'nextPageToken'
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
class CreateLeadRequest
|
371
|
+
# @private
|
372
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
373
|
+
property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation
|
374
|
+
|
375
|
+
property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation
|
376
|
+
|
377
|
+
property :recaptcha_challenge, as: 'recaptchaChallenge', class: Google::Apis::PartnersV2::RecaptchaChallenge, decorator: Google::Apis::PartnersV2::RecaptchaChallenge::Representation
|
378
|
+
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
382
|
+
class RecaptchaChallenge
|
383
|
+
# @private
|
384
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
385
|
+
property :id, as: 'id'
|
386
|
+
property :response, as: 'response'
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
390
|
+
class CreateLeadResponse
|
391
|
+
# @private
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
393
|
+
property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation
|
394
|
+
|
395
|
+
property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation
|
396
|
+
|
397
|
+
property :recaptcha_status, as: 'recaptchaStatus'
|
398
|
+
end
|
399
|
+
end
|
400
|
+
end
|
401
|
+
end
|
402
|
+
end
|
@@ -0,0 +1,400 @@
|
|
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/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module PartnersV2
|
23
|
+
# Google Partners API
|
24
|
+
#
|
25
|
+
# Lets advertisers search certified companies and create contact leads with them,
|
26
|
+
# and also audits the usage of clients.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/partners_v2'
|
30
|
+
#
|
31
|
+
# Partners = Google::Apis::PartnersV2 # Alias the module
|
32
|
+
# service = Partners::PartnersService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/partners/
|
35
|
+
class PartnersService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://partners.googleapis.com/', '')
|
48
|
+
end
|
49
|
+
|
50
|
+
# Logs a user event.
|
51
|
+
# @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
|
52
|
+
# @param [String] fields
|
53
|
+
# Selector specifying which fields to include in a partial response.
|
54
|
+
# @param [String] quota_user
|
55
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
56
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
57
|
+
# @param [Google::Apis::RequestOptions] options
|
58
|
+
# Request-specific options
|
59
|
+
#
|
60
|
+
# @yield [result, err] Result & error if block supplied
|
61
|
+
# @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
|
62
|
+
# @yieldparam err [StandardError] error object if request failed
|
63
|
+
#
|
64
|
+
# @return [Google::Apis::PartnersV2::LogUserEventResponse]
|
65
|
+
#
|
66
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
67
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
68
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
69
|
+
def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
70
|
+
command = make_simple_command(:post, 'v2/userEvents:log', options)
|
71
|
+
command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
|
72
|
+
command.request_object = log_user_event_request_object
|
73
|
+
command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
|
74
|
+
command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
76
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
77
|
+
execute_or_queue_command(command, &block)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Logs a generic message from the client, such as `Failed to render component`, `
|
81
|
+
# Profile page is running slow`, `More than 500 users have accessed this result.`
|
82
|
+
# , etc.
|
83
|
+
# @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
|
84
|
+
# @param [String] fields
|
85
|
+
# Selector specifying which fields to include in a partial response.
|
86
|
+
# @param [String] quota_user
|
87
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
88
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
89
|
+
# @param [Google::Apis::RequestOptions] options
|
90
|
+
# Request-specific options
|
91
|
+
#
|
92
|
+
# @yield [result, err] Result & error if block supplied
|
93
|
+
# @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
|
94
|
+
# @yieldparam err [StandardError] error object if request failed
|
95
|
+
#
|
96
|
+
# @return [Google::Apis::PartnersV2::LogMessageResponse]
|
97
|
+
#
|
98
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
99
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
100
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
101
|
+
def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
102
|
+
command = make_simple_command(:post, 'v2/clientMessages:log', options)
|
103
|
+
command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
|
104
|
+
command.request_object = log_message_request_object
|
105
|
+
command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
|
106
|
+
command.response_class = Google::Apis::PartnersV2::LogMessageResponse
|
107
|
+
command.query['fields'] = fields unless fields.nil?
|
108
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
109
|
+
execute_or_queue_command(command, &block)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Lists states for current user.
|
113
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
114
|
+
# IP address to use instead of the user's geo-located IP address.
|
115
|
+
# @param [String] request_metadata_user_overrides_user_id
|
116
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
117
|
+
# @param [String] request_metadata_locale
|
118
|
+
# Locale to use for the current request.
|
119
|
+
# @param [String] request_metadata_partners_session_id
|
120
|
+
# Google Partners session ID.
|
121
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
122
|
+
# Experiment IDs the current request belongs to.
|
123
|
+
# @param [String] request_metadata_traffic_source_traffic_source_id
|
124
|
+
# Identifier to indicate where the traffic comes from. An identifier has
|
125
|
+
# multiple letters created by a team which redirected the traffic to us.
|
126
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
127
|
+
# Second level identifier to indicate where the traffic comes from. An
|
128
|
+
# identifier has multiple letters created by a team which redirected the traffic
|
129
|
+
# to us.
|
130
|
+
# @param [String] fields
|
131
|
+
# Selector specifying which fields to include in a partial response.
|
132
|
+
# @param [String] quota_user
|
133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
135
|
+
# @param [Google::Apis::RequestOptions] options
|
136
|
+
# Request-specific options
|
137
|
+
#
|
138
|
+
# @yield [result, err] Result & error if block supplied
|
139
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
|
140
|
+
# @yieldparam err [StandardError] error object if request failed
|
141
|
+
#
|
142
|
+
# @return [Google::Apis::PartnersV2::ListUserStatesResponse]
|
143
|
+
#
|
144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
+
def list_user_states(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
+
command = make_simple_command(:get, 'v2/userStates', options)
|
149
|
+
command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
|
150
|
+
command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
|
151
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
152
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
153
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
154
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
155
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
156
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
157
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
158
|
+
command.query['fields'] = fields unless fields.nil?
|
159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
160
|
+
execute_or_queue_command(command, &block)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Gets a company.
|
164
|
+
# @param [String] company_id
|
165
|
+
# The ID of the company to retrieve.
|
166
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
167
|
+
# IP address to use instead of the user's geo-located IP address.
|
168
|
+
# @param [String] request_metadata_user_overrides_user_id
|
169
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
170
|
+
# @param [String] request_metadata_locale
|
171
|
+
# Locale to use for the current request.
|
172
|
+
# @param [String] request_metadata_partners_session_id
|
173
|
+
# Google Partners session ID.
|
174
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
175
|
+
# Experiment IDs the current request belongs to.
|
176
|
+
# @param [String] request_metadata_traffic_source_traffic_source_id
|
177
|
+
# Identifier to indicate where the traffic comes from. An identifier has
|
178
|
+
# multiple letters created by a team which redirected the traffic to us.
|
179
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
180
|
+
# Second level identifier to indicate where the traffic comes from. An
|
181
|
+
# identifier has multiple letters created by a team which redirected the traffic
|
182
|
+
# to us.
|
183
|
+
# @param [String] view
|
184
|
+
# The view of `Company` resource to be returned. This must not be `
|
185
|
+
# COMPANY_VIEW_UNSPECIFIED`.
|
186
|
+
# @param [String] order_by
|
187
|
+
# How to order addresses within the returned company. Currently, only `address`
|
188
|
+
# and `address desc` is supported which will sorted by closest to farthest in
|
189
|
+
# distance from given address and farthest to closest distance from given
|
190
|
+
# address respectively.
|
191
|
+
# @param [String] currency_code
|
192
|
+
# If the company's budget is in a different currency code than this one, then
|
193
|
+
# the converted budget is converted to this currency code.
|
194
|
+
# @param [String] address
|
195
|
+
# The address to use for sorting the company's addresses by proximity. If not
|
196
|
+
# given, the geo-located address of the request is used. Used when order_by is
|
197
|
+
# set.
|
198
|
+
# @param [String] fields
|
199
|
+
# Selector specifying which fields to include in a partial response.
|
200
|
+
# @param [String] quota_user
|
201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
203
|
+
# @param [Google::Apis::RequestOptions] options
|
204
|
+
# Request-specific options
|
205
|
+
#
|
206
|
+
# @yield [result, err] Result & error if block supplied
|
207
|
+
# @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object
|
208
|
+
# @yieldparam err [StandardError] error object if request failed
|
209
|
+
#
|
210
|
+
# @return [Google::Apis::PartnersV2::GetCompanyResponse]
|
211
|
+
#
|
212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
+
def get_company(company_id, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, view: nil, order_by: nil, currency_code: nil, address: nil, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
command = make_simple_command(:get, 'v2/companies/{companyId}', options)
|
217
|
+
command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
|
218
|
+
command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
|
219
|
+
command.params['companyId'] = company_id unless company_id.nil?
|
220
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
221
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
222
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
223
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
224
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
225
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
226
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
227
|
+
command.query['view'] = view unless view.nil?
|
228
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
229
|
+
command.query['currencyCode'] = currency_code unless currency_code.nil?
|
230
|
+
command.query['address'] = address unless address.nil?
|
231
|
+
command.query['fields'] = fields unless fields.nil?
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
+
execute_or_queue_command(command, &block)
|
234
|
+
end
|
235
|
+
|
236
|
+
# Lists companies.
|
237
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
238
|
+
# IP address to use instead of the user's geo-located IP address.
|
239
|
+
# @param [String] request_metadata_user_overrides_user_id
|
240
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
241
|
+
# @param [String] request_metadata_locale
|
242
|
+
# Locale to use for the current request.
|
243
|
+
# @param [String] request_metadata_partners_session_id
|
244
|
+
# Google Partners session ID.
|
245
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
246
|
+
# Experiment IDs the current request belongs to.
|
247
|
+
# @param [String] request_metadata_traffic_source_traffic_source_id
|
248
|
+
# Identifier to indicate where the traffic comes from. An identifier has
|
249
|
+
# multiple letters created by a team which redirected the traffic to us.
|
250
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
251
|
+
# Second level identifier to indicate where the traffic comes from. An
|
252
|
+
# identifier has multiple letters created by a team which redirected the traffic
|
253
|
+
# to us.
|
254
|
+
# @param [Fixnum] page_size
|
255
|
+
# Requested page size. Server may return fewer companies than requested. If
|
256
|
+
# unspecified, server picks an appropriate default.
|
257
|
+
# @param [String] page_token
|
258
|
+
# A token identifying a page of results that the server returns. Typically, this
|
259
|
+
# is the value of `ListCompaniesResponse.next_page_token` returned from the
|
260
|
+
# previous call to ListCompanies.
|
261
|
+
# @param [String] company_name
|
262
|
+
# Company name to search for.
|
263
|
+
# @param [String] view
|
264
|
+
# The view of the `Company` resource to be returned. This must not be `
|
265
|
+
# COMPANY_VIEW_UNSPECIFIED`.
|
266
|
+
# @param [String] min_monthly_budget_currency_code
|
267
|
+
# The 3-letter currency code defined in ISO 4217.
|
268
|
+
# @param [String] min_monthly_budget_units
|
269
|
+
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
|
270
|
+
# 1 unit is one US dollar.
|
271
|
+
# @param [Fixnum] min_monthly_budget_nanos
|
272
|
+
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
|
273
|
+
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
|
274
|
+
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
|
275
|
+
# negative. If `units` is negative, `nanos` must be negative or zero. For
|
276
|
+
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
277
|
+
# @param [String] max_monthly_budget_currency_code
|
278
|
+
# The 3-letter currency code defined in ISO 4217.
|
279
|
+
# @param [String] max_monthly_budget_units
|
280
|
+
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
|
281
|
+
# 1 unit is one US dollar.
|
282
|
+
# @param [Fixnum] max_monthly_budget_nanos
|
283
|
+
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
|
284
|
+
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
|
285
|
+
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
|
286
|
+
# negative. If `units` is negative, `nanos` must be negative or zero. For
|
287
|
+
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
288
|
+
# @param [Array<String>, String] industries
|
289
|
+
# List of industries the company can help with.
|
290
|
+
# @param [Array<String>, String] services
|
291
|
+
# List of services the company can help with.
|
292
|
+
# @param [Array<String>, String] language_codes
|
293
|
+
# List of language codes that company can support. Only primary language subtags
|
294
|
+
# are accepted as defined by BCP 47 (IETF BCP 47, "Tags for Identifying
|
295
|
+
# Languages").
|
296
|
+
# @param [String] address
|
297
|
+
# The address to use when searching for companies. If not given, the geo-located
|
298
|
+
# address of the request is used.
|
299
|
+
# @param [String] order_by
|
300
|
+
# How to order addresses within the returned companies. Currently, only `address`
|
301
|
+
# and `address desc` is supported which will sorted by closest to farthest in
|
302
|
+
# distance from given address and farthest to closest distance from given
|
303
|
+
# address respectively.
|
304
|
+
# @param [Array<String>, String] gps_motivations
|
305
|
+
# List of reasons for using Google Partner Search to get companies.
|
306
|
+
# @param [String] website_url
|
307
|
+
# Website URL that will help to find a better matched company. .
|
308
|
+
# @param [String] fields
|
309
|
+
# Selector specifying which fields to include in a partial response.
|
310
|
+
# @param [String] quota_user
|
311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
313
|
+
# @param [Google::Apis::RequestOptions] options
|
314
|
+
# Request-specific options
|
315
|
+
#
|
316
|
+
# @yield [result, err] Result & error if block supplied
|
317
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListCompaniesResponse] parsed result object
|
318
|
+
# @yieldparam err [StandardError] error object if request failed
|
319
|
+
#
|
320
|
+
# @return [Google::Apis::PartnersV2::ListCompaniesResponse]
|
321
|
+
#
|
322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
325
|
+
def list_companies(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, page_size: nil, page_token: nil, company_name: nil, view: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_units: nil, min_monthly_budget_nanos: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_units: nil, max_monthly_budget_nanos: nil, industries: nil, services: nil, language_codes: nil, address: nil, order_by: nil, gps_motivations: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block)
|
326
|
+
command = make_simple_command(:get, 'v2/companies', options)
|
327
|
+
command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
|
328
|
+
command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
|
329
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
330
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
331
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
332
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
333
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
334
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
335
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
336
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
337
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
338
|
+
command.query['companyName'] = company_name unless company_name.nil?
|
339
|
+
command.query['view'] = view unless view.nil?
|
340
|
+
command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
|
341
|
+
command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
|
342
|
+
command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
|
343
|
+
command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
|
344
|
+
command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
|
345
|
+
command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
|
346
|
+
command.query['industries'] = industries unless industries.nil?
|
347
|
+
command.query['services'] = services unless services.nil?
|
348
|
+
command.query['languageCodes'] = language_codes unless language_codes.nil?
|
349
|
+
command.query['address'] = address unless address.nil?
|
350
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
351
|
+
command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
|
352
|
+
command.query['websiteUrl'] = website_url unless website_url.nil?
|
353
|
+
command.query['fields'] = fields unless fields.nil?
|
354
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
355
|
+
execute_or_queue_command(command, &block)
|
356
|
+
end
|
357
|
+
|
358
|
+
# Creates an advertiser lead for the given company ID.
|
359
|
+
# @param [String] company_id
|
360
|
+
# The ID of the company to contact.
|
361
|
+
# @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
|
362
|
+
# @param [String] fields
|
363
|
+
# Selector specifying which fields to include in a partial response.
|
364
|
+
# @param [String] quota_user
|
365
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
366
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
367
|
+
# @param [Google::Apis::RequestOptions] options
|
368
|
+
# Request-specific options
|
369
|
+
#
|
370
|
+
# @yield [result, err] Result & error if block supplied
|
371
|
+
# @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object
|
372
|
+
# @yieldparam err [StandardError] error object if request failed
|
373
|
+
#
|
374
|
+
# @return [Google::Apis::PartnersV2::CreateLeadResponse]
|
375
|
+
#
|
376
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
377
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
378
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
379
|
+
def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
380
|
+
command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
|
381
|
+
command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
|
382
|
+
command.request_object = create_lead_request_object
|
383
|
+
command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
|
384
|
+
command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
|
385
|
+
command.params['companyId'] = company_id unless company_id.nil?
|
386
|
+
command.query['fields'] = fields unless fields.nil?
|
387
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
388
|
+
execute_or_queue_command(command, &block)
|
389
|
+
end
|
390
|
+
|
391
|
+
protected
|
392
|
+
|
393
|
+
def apply_command_defaults(command)
|
394
|
+
command.query['key'] = key unless key.nil?
|
395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
396
|
+
end
|
397
|
+
end
|
398
|
+
end
|
399
|
+
end
|
400
|
+
end
|