google-api-client 0.8.7 → 0.9.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +21 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +6 -3
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +28 -2
- data/MIGRATING.md +171 -0
- data/README.md +158 -150
- data/Rakefile +1 -40
- data/api_names.yaml +872 -0
- data/api_names_out.yaml +20843 -0
- data/bin/generate-api +93 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
- data/generated/google/apis/admin_directory_v1.rb +89 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
- data/generated/google/apis/admin_reports_v1.rb +38 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
- data/generated/google/apis/admin_reports_v1/service.rb +341 -0
- data/generated/google/apis/adsense_v1_4.rb +38 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
- data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/analytics_v3/classes.rb +5113 -0
- data/generated/google/apis/analytics_v3/representations.rb +1661 -0
- data/generated/google/apis/analytics_v3/service.rb +3600 -0
- data/generated/google/apis/androidenterprise_v1.rb +34 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
- data/generated/google/apis/appsactivity_v1.rb +46 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
- data/generated/google/apis/appsactivity_v1/service.rb +129 -0
- data/generated/google/apis/appstate_v1.rb +34 -0
- data/generated/google/apis/appstate_v1/classes.rb +154 -0
- data/generated/google/apis/appstate_v1/representations.rb +79 -0
- data/generated/google/apis/appstate_v1/service.rb +265 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
- data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
- data/generated/google/apis/bigquery_v2.rb +49 -0
- data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
- data/generated/google/apis/bigquery_v2/representations.rb +754 -0
- data/generated/google/apis/bigquery_v2/service.rb +1003 -0
- data/generated/google/apis/blogger_v3.rb +37 -0
- data/generated/google/apis/blogger_v3/classes.rb +1354 -0
- data/generated/google/apis/blogger_v3/representations.rb +562 -0
- data/generated/google/apis/blogger_v3/service.rb +1620 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/books_v1/classes.rb +3515 -0
- data/generated/google/apis/books_v1/representations.rb +1361 -0
- data/generated/google/apis/books_v1/service.rb +2170 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/calendar_v3/classes.rb +1702 -0
- data/generated/google/apis/calendar_v3/representations.rb +566 -0
- data/generated/google/apis/calendar_v3/service.rb +1943 -0
- data/generated/google/apis/civicinfo_v2.rb +31 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
- data/generated/google/apis/civicinfo_v2/service.rb +284 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
- data/generated/google/apis/compute_v1.rb +49 -0
- data/generated/google/apis/compute_v1/classes.rb +6391 -0
- data/generated/google/apis/compute_v1/representations.rb +2209 -0
- data/generated/google/apis/compute_v1/service.rb +6352 -0
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +466 -0
- data/generated/google/apis/container_v1beta1/representations.rb +177 -0
- data/generated/google/apis/container_v1beta1/service.rb +394 -0
- data/generated/google/apis/content_v2.rb +35 -0
- data/generated/google/apis/content_v2/classes.rb +3780 -0
- data/generated/google/apis/content_v2/representations.rb +1456 -0
- data/generated/google/apis/content_v2/service.rb +1706 -0
- data/generated/google/apis/coordinate_v1.rb +37 -0
- data/generated/google/apis/coordinate_v1/classes.rb +669 -0
- data/generated/google/apis/coordinate_v1/representations.rb +285 -0
- data/generated/google/apis/coordinate_v1/service.rb +687 -0
- data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +276 -0
- data/generated/google/apis/customsearch_v1/service.rb +208 -0
- data/generated/google/apis/datastore_v1beta2.rb +40 -0
- data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
- data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
- data/generated/google/apis/dfareporting_v2_1.rb +37 -0
- data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
- data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
- data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/discovery_v1/classes.rb +947 -0
- data/generated/google/apis/discovery_v1/representations.rb +355 -0
- data/generated/google/apis/discovery_v1/service.rb +144 -0
- data/generated/google/apis/dns_v1.rb +41 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +151 -0
- data/generated/google/apis/dns_v1/service.rb +460 -0
- data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
- data/generated/google/apis/drive_v2.rb +55 -0
- data/generated/google/apis/drive_v2/classes.rb +2519 -0
- data/generated/google/apis/drive_v2/representations.rb +781 -0
- data/generated/google/apis/drive_v2/service.rb +2685 -0
- data/generated/google/apis/fitness_v1.rb +49 -0
- data/generated/google/apis/fitness_v1/classes.rb +809 -0
- data/generated/google/apis/fitness_v1/representations.rb +295 -0
- data/generated/google/apis/fitness_v1/service.rb +684 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
- data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
- data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
- data/generated/google/apis/games_v1.rb +40 -0
- data/generated/google/apis/games_v1/classes.rb +4578 -0
- data/generated/google/apis/games_v1/representations.rb +1570 -0
- data/generated/google/apis/games_v1/service.rb +2306 -0
- data/generated/google/apis/gan_v1beta1.rb +31 -0
- data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
- data/generated/google/apis/gan_v1beta1/service.rb +692 -0
- data/generated/google/apis/genomics_v1beta2.rb +46 -0
- data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
- data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
- data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
- data/generated/google/apis/gmail_v1.rb +49 -0
- data/generated/google/apis/gmail_v1/classes.rb +794 -0
- data/generated/google/apis/gmail_v1/representations.rb +339 -0
- data/generated/google/apis/gmail_v1/service.rb +1502 -0
- data/generated/google/apis/groupsmigration_v1.rb +34 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
- data/generated/google/apis/groupssettings_v1.rb +34 -0
- data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/identitytoolkit_v3.rb +31 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
- data/generated/google/apis/licensing_v1.rb +34 -0
- data/generated/google/apis/licensing_v1/classes.rb +132 -0
- data/generated/google/apis/licensing_v1/representations.rb +68 -0
- data/generated/google/apis/licensing_v1/service.rb +376 -0
- data/generated/google/apis/logging_v1beta3.rb +35 -0
- data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
- data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
- data/generated/google/apis/logging_v1beta3/service.rb +670 -0
- data/generated/google/apis/manager_v1beta2.rb +50 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
- data/generated/google/apis/manager_v1beta2/service.rb +380 -0
- data/generated/google/apis/mapsengine_v1.rb +38 -0
- data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
- data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
- data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
- data/generated/google/apis/mirror_v1.rb +37 -0
- data/generated/google/apis/mirror_v1/classes.rb +1072 -0
- data/generated/google/apis/mirror_v1/representations.rb +350 -0
- data/generated/google/apis/mirror_v1/service.rb +1001 -0
- data/generated/google/apis/oauth2_v2.rb +43 -0
- data/generated/google/apis/oauth2_v2/classes.rb +245 -0
- data/generated/google/apis/oauth2_v2/representations.rb +94 -0
- data/generated/google/apis/oauth2_v2/service.rb +203 -0
- data/generated/google/apis/pagespeedonline_v2.rb +32 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
- data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
- data/generated/google/apis/plus_domains_v1.rb +61 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
- data/generated/google/apis/plus_domains_v1/service.rb +924 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/plus_v1/classes.rb +2384 -0
- data/generated/google/apis/plus_v1/representations.rb +812 -0
- data/generated/google/apis/plus_v1/service.rb +616 -0
- data/generated/google/apis/prediction_v1_6.rb +44 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
- data/generated/google/apis/prediction_v1_6/service.rb +388 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
- data/generated/google/apis/qpx_express_v1.rb +31 -0
- data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
- data/generated/google/apis/qpx_express_v1/service.rb +101 -0
- data/generated/google/apis/replicapool_v1beta2.rb +41 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +502 -0
- data/generated/google/apis/reseller_v1/representations.rb +199 -0
- data/generated/google/apis/reseller_v1/service.rb +637 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
- data/generated/google/apis/site_verification_v1.rb +37 -0
- data/generated/google/apis/site_verification_v1/classes.rb +185 -0
- data/generated/google/apis/site_verification_v1/representations.rb +101 -0
- data/generated/google/apis/site_verification_v1/service.rb +322 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
- data/generated/google/apis/storage_v1.rb +43 -0
- data/generated/google/apis/storage_v1/classes.rb +1177 -0
- data/generated/google/apis/storage_v1/representations.rb +427 -0
- data/generated/google/apis/storage_v1/service.rb +1920 -0
- data/generated/google/apis/tagmanager_v1.rb +52 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
- data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
- data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
- data/generated/google/apis/tasks_v1.rb +37 -0
- data/generated/google/apis/tasks_v1/classes.rb +296 -0
- data/generated/google/apis/tasks_v1/representations.rb +115 -0
- data/generated/google/apis/tasks_v1/service.rb +657 -0
- data/generated/google/apis/translate_v2.rb +31 -0
- data/generated/google/apis/translate_v2/classes.rb +168 -0
- data/generated/google/apis/translate_v2/representations.rb +109 -0
- data/generated/google/apis/translate_v2/service.rb +185 -0
- data/generated/google/apis/urlshortener_v1.rb +34 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
- data/generated/google/apis/urlshortener_v1/service.rb +179 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/webmasters_v3/classes.rb +563 -0
- data/generated/google/apis/webmasters_v3/representations.rb +250 -0
- data/generated/google/apis/webmasters_v3/service.rb +587 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
- data/generated/google/apis/youtube_v3.rb +49 -0
- data/generated/google/apis/youtube_v3/classes.rb +7225 -0
- data/generated/google/apis/youtube_v3/representations.rb +2529 -0
- data/generated/google/apis/youtube_v3/service.rb +4051 -0
- data/google-api-client.gemspec +27 -39
- data/lib/google/api_client/auth/storage.rb +3 -2
- data/lib/google/api_client/auth/storages/file_store.rb +1 -3
- data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
- data/lib/google/apis.rb +48 -0
- data/lib/google/apis/core/api_command.rb +128 -0
- data/lib/google/apis/core/base_service.rb +314 -0
- data/lib/google/apis/core/batch.rb +222 -0
- data/lib/google/apis/core/download.rb +94 -0
- data/lib/google/apis/core/hashable.rb +44 -0
- data/lib/google/apis/core/http_command.rb +275 -0
- data/lib/google/apis/core/json_representation.rb +122 -0
- data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
- data/lib/google/apis/core/multipart.rb +173 -0
- data/lib/google/apis/core/upload.rb +275 -0
- data/lib/google/{api_client → apis}/errors.rb +32 -28
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +271 -0
- data/lib/google/apis/generator/helpers.rb +74 -0
- data/lib/google/apis/generator/model.rb +130 -0
- data/lib/google/apis/generator/template.rb +124 -0
- data/lib/google/apis/generator/templates/_class.tmpl +40 -0
- data/lib/google/apis/generator/templates/_method.tmpl +90 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
- data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
- data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
- data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
- data/lib/google/apis/options.rb +79 -0
- data/lib/google/apis/version.rb +39 -0
- data/rakelib/metrics.rake +22 -0
- data/rakelib/rubocop.rake +10 -0
- data/rakelib/spec.rake +11 -0
- data/rakelib/yard.rake +11 -0
- data/samples/calendar/calendar.rb +43 -0
- data/samples/drive/drive.rb +40 -0
- data/samples/pubsub/pubsub.rb +52 -0
- data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
- data/script/generate +79 -0
- data/script/package +8 -0
- data/script/release +15 -0
- data/spec/fixtures/files/api_names.yaml +3 -0
- data/spec/fixtures/files/auth_stored_credentials.json +8 -0
- data/spec/fixtures/files/client_secrets.json +1 -0
- data/spec/fixtures/files/test.blah +1 -0
- data/spec/fixtures/files/test.txt +1 -0
- data/spec/fixtures/files/test_api.json +440 -0
- data/spec/google/api_client/auth/storage_spec.rb +1 -3
- data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
- data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
- data/spec/google/apis/core/api_command_spec.rb +170 -0
- data/spec/google/apis/core/batch_spec.rb +128 -0
- data/spec/google/apis/core/download_spec.rb +90 -0
- data/spec/google/apis/core/hashable_spec.rb +60 -0
- data/spec/google/apis/core/http_command_spec.rb +238 -0
- data/spec/google/apis/core/json_representation_spec.rb +192 -0
- data/spec/google/apis/core/service_spec.rb +247 -0
- data/spec/google/apis/core/upload_spec.rb +238 -0
- data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
- data/spec/google/apis/generator/generator_spec.rb +272 -0
- data/spec/google/apis/logging_spec.rb +45 -0
- data/spec/google/apis/options_spec.rb +40 -0
- data/spec/integration_tests/drive_spec.rb +35 -0
- data/spec/integration_tests/pubsub_spec.rb +48 -0
- data/spec/integration_tests/url_shortener_spec.rb +31 -0
- data/spec/spec_helper.rb +102 -46
- metadata +433 -178
- data/lib/compat/multi_json.rb +0 -19
- data/lib/google/api_client.rb +0 -750
- data/lib/google/api_client/auth/file_storage.rb +0 -59
- data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
- data/lib/google/api_client/auth/key_utils.rb +0 -93
- data/lib/google/api_client/auth/pkcs12.rb +0 -41
- data/lib/google/api_client/batch.rb +0 -326
- data/lib/google/api_client/charset.rb +0 -33
- data/lib/google/api_client/discovery/api.rb +0 -310
- data/lib/google/api_client/discovery/media.rb +0 -77
- data/lib/google/api_client/discovery/method.rb +0 -363
- data/lib/google/api_client/discovery/resource.rb +0 -156
- data/lib/google/api_client/discovery/schema.rb +0 -117
- data/lib/google/api_client/environment.rb +0 -42
- data/lib/google/api_client/gzip.rb +0 -28
- data/lib/google/api_client/logging.rb +0 -32
- data/lib/google/api_client/media.rb +0 -259
- data/lib/google/api_client/railtie.rb +0 -18
- data/lib/google/api_client/request.rb +0 -350
- data/lib/google/api_client/result.rb +0 -255
- data/lib/google/api_client/service.rb +0 -233
- data/lib/google/api_client/service/batch.rb +0 -110
- data/lib/google/api_client/service/request.rb +0 -144
- data/lib/google/api_client/service/resource.rb +0 -40
- data/lib/google/api_client/service/result.rb +0 -162
- data/lib/google/api_client/service/simple_file_store.rb +0 -151
- data/lib/google/api_client/service/stub_generator.rb +0 -61
- data/spec/google/api_client/batch_spec.rb +0 -248
- data/spec/google/api_client/discovery_spec.rb +0 -708
- data/spec/google/api_client/gzip_spec.rb +0 -98
- data/spec/google/api_client/media_spec.rb +0 -178
- data/spec/google/api_client/result_spec.rb +0 -207
- data/spec/google/api_client/service_account_spec.rb +0 -169
- data/spec/google/api_client/service_spec.rb +0 -618
- data/spec/google/api_client/simple_file_store_spec.rb +0 -133
- data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1978 @@
|
|
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 TagmanagerV1
|
23
|
+
# Tag Manager API
|
24
|
+
#
|
25
|
+
# API for accessing Tag Manager accounts and containers.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/tagmanager_v1'
|
29
|
+
#
|
30
|
+
# Tagmanager = Google::Apis::TagmanagerV1 # Alias the module
|
31
|
+
# service = Tagmanager::TagManagerService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/tag-manager/api/v1/
|
34
|
+
class TagManagerService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
# Overrides userIp if both are provided.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
# @return [String]
|
47
|
+
# IP address of the site where the request originates. Use this if you want to
|
48
|
+
# enforce per-user limits.
|
49
|
+
attr_accessor :user_ip
|
50
|
+
|
51
|
+
def initialize
|
52
|
+
super('https://www.googleapis.com/', 'tagmanager/v1/')
|
53
|
+
end
|
54
|
+
|
55
|
+
# Gets a GTM Account.
|
56
|
+
# @param [String] account_id
|
57
|
+
# The GTM Account ID.
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# Overrides userIp if both are provided.
|
64
|
+
# @param [String] user_ip
|
65
|
+
# IP address of the site where the request originates. Use this if you want to
|
66
|
+
# enforce per-user limits.
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
68
|
+
# Request-specific options
|
69
|
+
#
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
71
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Account] parsed result object
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
73
|
+
#
|
74
|
+
# @return [Google::Apis::TagmanagerV1::Account]
|
75
|
+
#
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
+
def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
80
|
+
path = 'accounts/{accountId}'
|
81
|
+
command = make_simple_command(:get, path, options)
|
82
|
+
command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
|
83
|
+
command.response_class = Google::Apis::TagmanagerV1::Account
|
84
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Lists all GTM Accounts that a user has access to.
|
92
|
+
# @param [String] fields
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
94
|
+
# @param [String] quota_user
|
95
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
96
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
97
|
+
# Overrides userIp if both are provided.
|
98
|
+
# @param [String] user_ip
|
99
|
+
# IP address of the site where the request originates. Use this if you want to
|
100
|
+
# enforce per-user limits.
|
101
|
+
# @param [Google::Apis::RequestOptions] options
|
102
|
+
# Request-specific options
|
103
|
+
#
|
104
|
+
# @yield [result, err] Result & error if block supplied
|
105
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListAccountsResponse] parsed result object
|
106
|
+
# @yieldparam err [StandardError] error object if request failed
|
107
|
+
#
|
108
|
+
# @return [Google::Apis::TagmanagerV1::ListAccountsResponse]
|
109
|
+
#
|
110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
|
+
def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
114
|
+
path = 'accounts'
|
115
|
+
command = make_simple_command(:get, path, options)
|
116
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListAccountsResponse::Representation
|
117
|
+
command.response_class = Google::Apis::TagmanagerV1::ListAccountsResponse
|
118
|
+
command.query['fields'] = fields unless fields.nil?
|
119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
120
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
121
|
+
execute_or_queue_command(command, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Updates a GTM Account.
|
125
|
+
# @param [String] account_id
|
126
|
+
# The GTM Account ID.
|
127
|
+
# @param [Google::Apis::TagmanagerV1::Account] account_object
|
128
|
+
# @param [String] fingerprint
|
129
|
+
# When provided, this fingerprint must match the fingerprint of the account in
|
130
|
+
# storage.
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# Overrides userIp if both are provided.
|
137
|
+
# @param [String] user_ip
|
138
|
+
# IP address of the site where the request originates. Use this if you want to
|
139
|
+
# enforce per-user limits.
|
140
|
+
# @param [Google::Apis::RequestOptions] options
|
141
|
+
# Request-specific options
|
142
|
+
#
|
143
|
+
# @yield [result, err] Result & error if block supplied
|
144
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Account] parsed result object
|
145
|
+
# @yieldparam err [StandardError] error object if request failed
|
146
|
+
#
|
147
|
+
# @return [Google::Apis::TagmanagerV1::Account]
|
148
|
+
#
|
149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
+
def update_account(account_id, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
153
|
+
path = 'accounts/{accountId}'
|
154
|
+
command = make_simple_command(:put, path, options)
|
155
|
+
command.request_representation = Google::Apis::TagmanagerV1::Account::Representation
|
156
|
+
command.request_object = account_object
|
157
|
+
command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
|
158
|
+
command.response_class = Google::Apis::TagmanagerV1::Account
|
159
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
160
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
161
|
+
command.query['fields'] = fields unless fields.nil?
|
162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
163
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
164
|
+
execute_or_queue_command(command, &block)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Creates a Container.
|
168
|
+
# @param [String] account_id
|
169
|
+
# The GTM Account ID.
|
170
|
+
# @param [Google::Apis::TagmanagerV1::Container] container_object
|
171
|
+
# @param [String] fields
|
172
|
+
# Selector specifying which fields to include in a partial response.
|
173
|
+
# @param [String] quota_user
|
174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
176
|
+
# Overrides userIp if both are provided.
|
177
|
+
# @param [String] user_ip
|
178
|
+
# IP address of the site where the request originates. Use this if you want to
|
179
|
+
# enforce per-user limits.
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::TagmanagerV1::Container]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def create_container(account_id, container_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
193
|
+
path = 'accounts/{accountId}/containers'
|
194
|
+
command = make_simple_command(:post, path, options)
|
195
|
+
command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
|
196
|
+
command.request_object = container_object
|
197
|
+
command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
|
198
|
+
command.response_class = Google::Apis::TagmanagerV1::Container
|
199
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
202
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
203
|
+
execute_or_queue_command(command, &block)
|
204
|
+
end
|
205
|
+
|
206
|
+
# Deletes a Container.
|
207
|
+
# @param [String] account_id
|
208
|
+
# The GTM Account ID.
|
209
|
+
# @param [String] container_id
|
210
|
+
# The GTM Container ID.
|
211
|
+
# @param [String] fields
|
212
|
+
# Selector specifying which fields to include in a partial response.
|
213
|
+
# @param [String] quota_user
|
214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
216
|
+
# Overrides userIp if both are provided.
|
217
|
+
# @param [String] user_ip
|
218
|
+
# IP address of the site where the request originates. Use this if you want to
|
219
|
+
# enforce per-user limits.
|
220
|
+
# @param [Google::Apis::RequestOptions] options
|
221
|
+
# Request-specific options
|
222
|
+
#
|
223
|
+
# @yield [result, err] Result & error if block supplied
|
224
|
+
# @yieldparam result [NilClass] No result returned for this method
|
225
|
+
# @yieldparam err [StandardError] error object if request failed
|
226
|
+
#
|
227
|
+
# @return [void]
|
228
|
+
#
|
229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
232
|
+
def delete_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
233
|
+
path = 'accounts/{accountId}/containers/{containerId}'
|
234
|
+
command = make_simple_command(:delete, path, options)
|
235
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
236
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
237
|
+
command.query['fields'] = fields unless fields.nil?
|
238
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
239
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
240
|
+
execute_or_queue_command(command, &block)
|
241
|
+
end
|
242
|
+
|
243
|
+
# Gets a Container.
|
244
|
+
# @param [String] account_id
|
245
|
+
# The GTM Account ID.
|
246
|
+
# @param [String] container_id
|
247
|
+
# The GTM Container ID.
|
248
|
+
# @param [String] fields
|
249
|
+
# Selector specifying which fields to include in a partial response.
|
250
|
+
# @param [String] quota_user
|
251
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
252
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
253
|
+
# Overrides userIp if both are provided.
|
254
|
+
# @param [String] user_ip
|
255
|
+
# IP address of the site where the request originates. Use this if you want to
|
256
|
+
# enforce per-user limits.
|
257
|
+
# @param [Google::Apis::RequestOptions] options
|
258
|
+
# Request-specific options
|
259
|
+
#
|
260
|
+
# @yield [result, err] Result & error if block supplied
|
261
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
|
262
|
+
# @yieldparam err [StandardError] error object if request failed
|
263
|
+
#
|
264
|
+
# @return [Google::Apis::TagmanagerV1::Container]
|
265
|
+
#
|
266
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
267
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
268
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
269
|
+
def get_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
270
|
+
path = 'accounts/{accountId}/containers/{containerId}'
|
271
|
+
command = make_simple_command(:get, path, options)
|
272
|
+
command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
|
273
|
+
command.response_class = Google::Apis::TagmanagerV1::Container
|
274
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
275
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
276
|
+
command.query['fields'] = fields unless fields.nil?
|
277
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
278
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
279
|
+
execute_or_queue_command(command, &block)
|
280
|
+
end
|
281
|
+
|
282
|
+
# Lists all Containers that belongs to a GTM Account.
|
283
|
+
# @param [String] account_id
|
284
|
+
# The GTM Account ID.
|
285
|
+
# @param [String] fields
|
286
|
+
# Selector specifying which fields to include in a partial response.
|
287
|
+
# @param [String] quota_user
|
288
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
289
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
290
|
+
# Overrides userIp if both are provided.
|
291
|
+
# @param [String] user_ip
|
292
|
+
# IP address of the site where the request originates. Use this if you want to
|
293
|
+
# enforce per-user limits.
|
294
|
+
# @param [Google::Apis::RequestOptions] options
|
295
|
+
# Request-specific options
|
296
|
+
#
|
297
|
+
# @yield [result, err] Result & error if block supplied
|
298
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListContainersResponse] parsed result object
|
299
|
+
# @yieldparam err [StandardError] error object if request failed
|
300
|
+
#
|
301
|
+
# @return [Google::Apis::TagmanagerV1::ListContainersResponse]
|
302
|
+
#
|
303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
+
def list_containers(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
307
|
+
path = 'accounts/{accountId}/containers'
|
308
|
+
command = make_simple_command(:get, path, options)
|
309
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListContainersResponse::Representation
|
310
|
+
command.response_class = Google::Apis::TagmanagerV1::ListContainersResponse
|
311
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
312
|
+
command.query['fields'] = fields unless fields.nil?
|
313
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
314
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
315
|
+
execute_or_queue_command(command, &block)
|
316
|
+
end
|
317
|
+
|
318
|
+
# Updates a Container.
|
319
|
+
# @param [String] account_id
|
320
|
+
# The GTM Account ID.
|
321
|
+
# @param [String] container_id
|
322
|
+
# The GTM Container ID.
|
323
|
+
# @param [Google::Apis::TagmanagerV1::Container] container_object
|
324
|
+
# @param [String] fingerprint
|
325
|
+
# When provided, this fingerprint must match the fingerprint of the container in
|
326
|
+
# storage.
|
327
|
+
# @param [String] fields
|
328
|
+
# Selector specifying which fields to include in a partial response.
|
329
|
+
# @param [String] quota_user
|
330
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
331
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
332
|
+
# Overrides userIp if both are provided.
|
333
|
+
# @param [String] user_ip
|
334
|
+
# IP address of the site where the request originates. Use this if you want to
|
335
|
+
# enforce per-user limits.
|
336
|
+
# @param [Google::Apis::RequestOptions] options
|
337
|
+
# Request-specific options
|
338
|
+
#
|
339
|
+
# @yield [result, err] Result & error if block supplied
|
340
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
|
341
|
+
# @yieldparam err [StandardError] error object if request failed
|
342
|
+
#
|
343
|
+
# @return [Google::Apis::TagmanagerV1::Container]
|
344
|
+
#
|
345
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
346
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
347
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
348
|
+
def update_container(account_id, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
349
|
+
path = 'accounts/{accountId}/containers/{containerId}'
|
350
|
+
command = make_simple_command(:put, path, options)
|
351
|
+
command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
|
352
|
+
command.request_object = container_object
|
353
|
+
command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
|
354
|
+
command.response_class = Google::Apis::TagmanagerV1::Container
|
355
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
356
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
357
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
358
|
+
command.query['fields'] = fields unless fields.nil?
|
359
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
360
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
361
|
+
execute_or_queue_command(command, &block)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Creates a GTM Macro.
|
365
|
+
# @param [String] account_id
|
366
|
+
# The GTM Account ID.
|
367
|
+
# @param [String] container_id
|
368
|
+
# The GTM Container ID.
|
369
|
+
# @param [Google::Apis::TagmanagerV1::Macro] macro_object
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
372
|
+
# @param [String] quota_user
|
373
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
374
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
375
|
+
# Overrides userIp if both are provided.
|
376
|
+
# @param [String] user_ip
|
377
|
+
# IP address of the site where the request originates. Use this if you want to
|
378
|
+
# enforce per-user limits.
|
379
|
+
# @param [Google::Apis::RequestOptions] options
|
380
|
+
# Request-specific options
|
381
|
+
#
|
382
|
+
# @yield [result, err] Result & error if block supplied
|
383
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Macro] parsed result object
|
384
|
+
# @yieldparam err [StandardError] error object if request failed
|
385
|
+
#
|
386
|
+
# @return [Google::Apis::TagmanagerV1::Macro]
|
387
|
+
#
|
388
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
389
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
390
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
391
|
+
def create_macro(account_id, container_id, macro_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
392
|
+
path = 'accounts/{accountId}/containers/{containerId}/macros'
|
393
|
+
command = make_simple_command(:post, path, options)
|
394
|
+
command.request_representation = Google::Apis::TagmanagerV1::Macro::Representation
|
395
|
+
command.request_object = macro_object
|
396
|
+
command.response_representation = Google::Apis::TagmanagerV1::Macro::Representation
|
397
|
+
command.response_class = Google::Apis::TagmanagerV1::Macro
|
398
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
399
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
400
|
+
command.query['fields'] = fields unless fields.nil?
|
401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
402
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
403
|
+
execute_or_queue_command(command, &block)
|
404
|
+
end
|
405
|
+
|
406
|
+
# Deletes a GTM Macro.
|
407
|
+
# @param [String] account_id
|
408
|
+
# The GTM Account ID.
|
409
|
+
# @param [String] container_id
|
410
|
+
# The GTM Container ID.
|
411
|
+
# @param [String] macro_id
|
412
|
+
# The GTM Macro ID.
|
413
|
+
# @param [String] fields
|
414
|
+
# Selector specifying which fields to include in a partial response.
|
415
|
+
# @param [String] quota_user
|
416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
418
|
+
# Overrides userIp if both are provided.
|
419
|
+
# @param [String] user_ip
|
420
|
+
# IP address of the site where the request originates. Use this if you want to
|
421
|
+
# enforce per-user limits.
|
422
|
+
# @param [Google::Apis::RequestOptions] options
|
423
|
+
# Request-specific options
|
424
|
+
#
|
425
|
+
# @yield [result, err] Result & error if block supplied
|
426
|
+
# @yieldparam result [NilClass] No result returned for this method
|
427
|
+
# @yieldparam err [StandardError] error object if request failed
|
428
|
+
#
|
429
|
+
# @return [void]
|
430
|
+
#
|
431
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
432
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
433
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
434
|
+
def delete_macro(account_id, container_id, macro_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
435
|
+
path = 'accounts/{accountId}/containers/{containerId}/macros/{macroId}'
|
436
|
+
command = make_simple_command(:delete, path, options)
|
437
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
438
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
439
|
+
command.params['macroId'] = macro_id unless macro_id.nil?
|
440
|
+
command.query['fields'] = fields unless fields.nil?
|
441
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
442
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
443
|
+
execute_or_queue_command(command, &block)
|
444
|
+
end
|
445
|
+
|
446
|
+
# Gets a GTM Macro.
|
447
|
+
# @param [String] account_id
|
448
|
+
# The GTM Account ID.
|
449
|
+
# @param [String] container_id
|
450
|
+
# The GTM Container ID.
|
451
|
+
# @param [String] macro_id
|
452
|
+
# The GTM Macro ID.
|
453
|
+
# @param [String] fields
|
454
|
+
# Selector specifying which fields to include in a partial response.
|
455
|
+
# @param [String] quota_user
|
456
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
457
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
458
|
+
# Overrides userIp if both are provided.
|
459
|
+
# @param [String] user_ip
|
460
|
+
# IP address of the site where the request originates. Use this if you want to
|
461
|
+
# enforce per-user limits.
|
462
|
+
# @param [Google::Apis::RequestOptions] options
|
463
|
+
# Request-specific options
|
464
|
+
#
|
465
|
+
# @yield [result, err] Result & error if block supplied
|
466
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Macro] parsed result object
|
467
|
+
# @yieldparam err [StandardError] error object if request failed
|
468
|
+
#
|
469
|
+
# @return [Google::Apis::TagmanagerV1::Macro]
|
470
|
+
#
|
471
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
472
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
473
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
474
|
+
def get_macro(account_id, container_id, macro_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
475
|
+
path = 'accounts/{accountId}/containers/{containerId}/macros/{macroId}'
|
476
|
+
command = make_simple_command(:get, path, options)
|
477
|
+
command.response_representation = Google::Apis::TagmanagerV1::Macro::Representation
|
478
|
+
command.response_class = Google::Apis::TagmanagerV1::Macro
|
479
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
480
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
481
|
+
command.params['macroId'] = macro_id unless macro_id.nil?
|
482
|
+
command.query['fields'] = fields unless fields.nil?
|
483
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
484
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
485
|
+
execute_or_queue_command(command, &block)
|
486
|
+
end
|
487
|
+
|
488
|
+
# Lists all GTM Macros of a Container.
|
489
|
+
# @param [String] account_id
|
490
|
+
# The GTM Account ID.
|
491
|
+
# @param [String] container_id
|
492
|
+
# The GTM Container ID.
|
493
|
+
# @param [String] fields
|
494
|
+
# Selector specifying which fields to include in a partial response.
|
495
|
+
# @param [String] quota_user
|
496
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
497
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
498
|
+
# Overrides userIp if both are provided.
|
499
|
+
# @param [String] user_ip
|
500
|
+
# IP address of the site where the request originates. Use this if you want to
|
501
|
+
# enforce per-user limits.
|
502
|
+
# @param [Google::Apis::RequestOptions] options
|
503
|
+
# Request-specific options
|
504
|
+
#
|
505
|
+
# @yield [result, err] Result & error if block supplied
|
506
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListMacrosResponse] parsed result object
|
507
|
+
# @yieldparam err [StandardError] error object if request failed
|
508
|
+
#
|
509
|
+
# @return [Google::Apis::TagmanagerV1::ListMacrosResponse]
|
510
|
+
#
|
511
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
512
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
513
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
514
|
+
def list_macros(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
515
|
+
path = 'accounts/{accountId}/containers/{containerId}/macros'
|
516
|
+
command = make_simple_command(:get, path, options)
|
517
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListMacrosResponse::Representation
|
518
|
+
command.response_class = Google::Apis::TagmanagerV1::ListMacrosResponse
|
519
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
520
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
521
|
+
command.query['fields'] = fields unless fields.nil?
|
522
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
523
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
524
|
+
execute_or_queue_command(command, &block)
|
525
|
+
end
|
526
|
+
|
527
|
+
# Updates a GTM Macro.
|
528
|
+
# @param [String] account_id
|
529
|
+
# The GTM Account ID.
|
530
|
+
# @param [String] container_id
|
531
|
+
# The GTM Container ID.
|
532
|
+
# @param [String] macro_id
|
533
|
+
# The GTM Macro ID.
|
534
|
+
# @param [Google::Apis::TagmanagerV1::Macro] macro_object
|
535
|
+
# @param [String] fingerprint
|
536
|
+
# When provided, this fingerprint must match the fingerprint of the macro in
|
537
|
+
# storage.
|
538
|
+
# @param [String] fields
|
539
|
+
# Selector specifying which fields to include in a partial response.
|
540
|
+
# @param [String] quota_user
|
541
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
542
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
543
|
+
# Overrides userIp if both are provided.
|
544
|
+
# @param [String] user_ip
|
545
|
+
# IP address of the site where the request originates. Use this if you want to
|
546
|
+
# enforce per-user limits.
|
547
|
+
# @param [Google::Apis::RequestOptions] options
|
548
|
+
# Request-specific options
|
549
|
+
#
|
550
|
+
# @yield [result, err] Result & error if block supplied
|
551
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Macro] parsed result object
|
552
|
+
# @yieldparam err [StandardError] error object if request failed
|
553
|
+
#
|
554
|
+
# @return [Google::Apis::TagmanagerV1::Macro]
|
555
|
+
#
|
556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
559
|
+
def update_macro(account_id, container_id, macro_id, macro_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
560
|
+
path = 'accounts/{accountId}/containers/{containerId}/macros/{macroId}'
|
561
|
+
command = make_simple_command(:put, path, options)
|
562
|
+
command.request_representation = Google::Apis::TagmanagerV1::Macro::Representation
|
563
|
+
command.request_object = macro_object
|
564
|
+
command.response_representation = Google::Apis::TagmanagerV1::Macro::Representation
|
565
|
+
command.response_class = Google::Apis::TagmanagerV1::Macro
|
566
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
567
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
568
|
+
command.params['macroId'] = macro_id unless macro_id.nil?
|
569
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
570
|
+
command.query['fields'] = fields unless fields.nil?
|
571
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
572
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
573
|
+
execute_or_queue_command(command, &block)
|
574
|
+
end
|
575
|
+
|
576
|
+
# Creates a GTM Rule.
|
577
|
+
# @param [String] account_id
|
578
|
+
# The GTM Account ID.
|
579
|
+
# @param [String] container_id
|
580
|
+
# The GTM Container ID.
|
581
|
+
# @param [Google::Apis::TagmanagerV1::Rule] rule_object
|
582
|
+
# @param [String] fields
|
583
|
+
# Selector specifying which fields to include in a partial response.
|
584
|
+
# @param [String] quota_user
|
585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
587
|
+
# Overrides userIp if both are provided.
|
588
|
+
# @param [String] user_ip
|
589
|
+
# IP address of the site where the request originates. Use this if you want to
|
590
|
+
# enforce per-user limits.
|
591
|
+
# @param [Google::Apis::RequestOptions] options
|
592
|
+
# Request-specific options
|
593
|
+
#
|
594
|
+
# @yield [result, err] Result & error if block supplied
|
595
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Rule] parsed result object
|
596
|
+
# @yieldparam err [StandardError] error object if request failed
|
597
|
+
#
|
598
|
+
# @return [Google::Apis::TagmanagerV1::Rule]
|
599
|
+
#
|
600
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
601
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
602
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
603
|
+
def create_rule(account_id, container_id, rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
604
|
+
path = 'accounts/{accountId}/containers/{containerId}/rules'
|
605
|
+
command = make_simple_command(:post, path, options)
|
606
|
+
command.request_representation = Google::Apis::TagmanagerV1::Rule::Representation
|
607
|
+
command.request_object = rule_object
|
608
|
+
command.response_representation = Google::Apis::TagmanagerV1::Rule::Representation
|
609
|
+
command.response_class = Google::Apis::TagmanagerV1::Rule
|
610
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
611
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
612
|
+
command.query['fields'] = fields unless fields.nil?
|
613
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
615
|
+
execute_or_queue_command(command, &block)
|
616
|
+
end
|
617
|
+
|
618
|
+
# Deletes a GTM Rule.
|
619
|
+
# @param [String] account_id
|
620
|
+
# The GTM Account ID.
|
621
|
+
# @param [String] container_id
|
622
|
+
# The GTM Container ID.
|
623
|
+
# @param [String] rule_id
|
624
|
+
# The GTM Rule ID.
|
625
|
+
# @param [String] fields
|
626
|
+
# Selector specifying which fields to include in a partial response.
|
627
|
+
# @param [String] quota_user
|
628
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
629
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
630
|
+
# Overrides userIp if both are provided.
|
631
|
+
# @param [String] user_ip
|
632
|
+
# IP address of the site where the request originates. Use this if you want to
|
633
|
+
# enforce per-user limits.
|
634
|
+
# @param [Google::Apis::RequestOptions] options
|
635
|
+
# Request-specific options
|
636
|
+
#
|
637
|
+
# @yield [result, err] Result & error if block supplied
|
638
|
+
# @yieldparam result [NilClass] No result returned for this method
|
639
|
+
# @yieldparam err [StandardError] error object if request failed
|
640
|
+
#
|
641
|
+
# @return [void]
|
642
|
+
#
|
643
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
644
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
645
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
646
|
+
def delete_rule(account_id, container_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
647
|
+
path = 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}'
|
648
|
+
command = make_simple_command(:delete, path, options)
|
649
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
650
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
651
|
+
command.params['ruleId'] = rule_id unless rule_id.nil?
|
652
|
+
command.query['fields'] = fields unless fields.nil?
|
653
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
654
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
655
|
+
execute_or_queue_command(command, &block)
|
656
|
+
end
|
657
|
+
|
658
|
+
# Gets a GTM Rule.
|
659
|
+
# @param [String] account_id
|
660
|
+
# The GTM Account ID.
|
661
|
+
# @param [String] container_id
|
662
|
+
# The GTM Container ID.
|
663
|
+
# @param [String] rule_id
|
664
|
+
# The GTM Rule ID.
|
665
|
+
# @param [String] fields
|
666
|
+
# Selector specifying which fields to include in a partial response.
|
667
|
+
# @param [String] quota_user
|
668
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
669
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
670
|
+
# Overrides userIp if both are provided.
|
671
|
+
# @param [String] user_ip
|
672
|
+
# IP address of the site where the request originates. Use this if you want to
|
673
|
+
# enforce per-user limits.
|
674
|
+
# @param [Google::Apis::RequestOptions] options
|
675
|
+
# Request-specific options
|
676
|
+
#
|
677
|
+
# @yield [result, err] Result & error if block supplied
|
678
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Rule] parsed result object
|
679
|
+
# @yieldparam err [StandardError] error object if request failed
|
680
|
+
#
|
681
|
+
# @return [Google::Apis::TagmanagerV1::Rule]
|
682
|
+
#
|
683
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
684
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
685
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
686
|
+
def get_rule(account_id, container_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
687
|
+
path = 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}'
|
688
|
+
command = make_simple_command(:get, path, options)
|
689
|
+
command.response_representation = Google::Apis::TagmanagerV1::Rule::Representation
|
690
|
+
command.response_class = Google::Apis::TagmanagerV1::Rule
|
691
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
692
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
693
|
+
command.params['ruleId'] = rule_id unless rule_id.nil?
|
694
|
+
command.query['fields'] = fields unless fields.nil?
|
695
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
696
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
697
|
+
execute_or_queue_command(command, &block)
|
698
|
+
end
|
699
|
+
|
700
|
+
# Lists all GTM Rules of a Container.
|
701
|
+
# @param [String] account_id
|
702
|
+
# The GTM Account ID.
|
703
|
+
# @param [String] container_id
|
704
|
+
# The GTM Container ID.
|
705
|
+
# @param [String] fields
|
706
|
+
# Selector specifying which fields to include in a partial response.
|
707
|
+
# @param [String] quota_user
|
708
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
709
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
710
|
+
# Overrides userIp if both are provided.
|
711
|
+
# @param [String] user_ip
|
712
|
+
# IP address of the site where the request originates. Use this if you want to
|
713
|
+
# enforce per-user limits.
|
714
|
+
# @param [Google::Apis::RequestOptions] options
|
715
|
+
# Request-specific options
|
716
|
+
#
|
717
|
+
# @yield [result, err] Result & error if block supplied
|
718
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListRulesResponse] parsed result object
|
719
|
+
# @yieldparam err [StandardError] error object if request failed
|
720
|
+
#
|
721
|
+
# @return [Google::Apis::TagmanagerV1::ListRulesResponse]
|
722
|
+
#
|
723
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
724
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
725
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
726
|
+
def list_rules(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
727
|
+
path = 'accounts/{accountId}/containers/{containerId}/rules'
|
728
|
+
command = make_simple_command(:get, path, options)
|
729
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListRulesResponse::Representation
|
730
|
+
command.response_class = Google::Apis::TagmanagerV1::ListRulesResponse
|
731
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
732
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
733
|
+
command.query['fields'] = fields unless fields.nil?
|
734
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
735
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
736
|
+
execute_or_queue_command(command, &block)
|
737
|
+
end
|
738
|
+
|
739
|
+
# Updates a GTM Rule.
|
740
|
+
# @param [String] account_id
|
741
|
+
# The GTM Account ID.
|
742
|
+
# @param [String] container_id
|
743
|
+
# The GTM Container ID.
|
744
|
+
# @param [String] rule_id
|
745
|
+
# The GTM Rule ID.
|
746
|
+
# @param [Google::Apis::TagmanagerV1::Rule] rule_object
|
747
|
+
# @param [String] fingerprint
|
748
|
+
# When provided, this fingerprint must match the fingerprint of the rule in
|
749
|
+
# storage.
|
750
|
+
# @param [String] fields
|
751
|
+
# Selector specifying which fields to include in a partial response.
|
752
|
+
# @param [String] quota_user
|
753
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
754
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
755
|
+
# Overrides userIp if both are provided.
|
756
|
+
# @param [String] user_ip
|
757
|
+
# IP address of the site where the request originates. Use this if you want to
|
758
|
+
# enforce per-user limits.
|
759
|
+
# @param [Google::Apis::RequestOptions] options
|
760
|
+
# Request-specific options
|
761
|
+
#
|
762
|
+
# @yield [result, err] Result & error if block supplied
|
763
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Rule] parsed result object
|
764
|
+
# @yieldparam err [StandardError] error object if request failed
|
765
|
+
#
|
766
|
+
# @return [Google::Apis::TagmanagerV1::Rule]
|
767
|
+
#
|
768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
771
|
+
def update_rule(account_id, container_id, rule_id, rule_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
772
|
+
path = 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}'
|
773
|
+
command = make_simple_command(:put, path, options)
|
774
|
+
command.request_representation = Google::Apis::TagmanagerV1::Rule::Representation
|
775
|
+
command.request_object = rule_object
|
776
|
+
command.response_representation = Google::Apis::TagmanagerV1::Rule::Representation
|
777
|
+
command.response_class = Google::Apis::TagmanagerV1::Rule
|
778
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
779
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
780
|
+
command.params['ruleId'] = rule_id unless rule_id.nil?
|
781
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
782
|
+
command.query['fields'] = fields unless fields.nil?
|
783
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
784
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
785
|
+
execute_or_queue_command(command, &block)
|
786
|
+
end
|
787
|
+
|
788
|
+
# Creates a GTM Tag.
|
789
|
+
# @param [String] account_id
|
790
|
+
# The GTM Account ID.
|
791
|
+
# @param [String] container_id
|
792
|
+
# The GTM Container ID.
|
793
|
+
# @param [Google::Apis::TagmanagerV1::Tag] tag_object
|
794
|
+
# @param [String] fields
|
795
|
+
# Selector specifying which fields to include in a partial response.
|
796
|
+
# @param [String] quota_user
|
797
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
798
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
799
|
+
# Overrides userIp if both are provided.
|
800
|
+
# @param [String] user_ip
|
801
|
+
# IP address of the site where the request originates. Use this if you want to
|
802
|
+
# enforce per-user limits.
|
803
|
+
# @param [Google::Apis::RequestOptions] options
|
804
|
+
# Request-specific options
|
805
|
+
#
|
806
|
+
# @yield [result, err] Result & error if block supplied
|
807
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
|
808
|
+
# @yieldparam err [StandardError] error object if request failed
|
809
|
+
#
|
810
|
+
# @return [Google::Apis::TagmanagerV1::Tag]
|
811
|
+
#
|
812
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
813
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
814
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
815
|
+
def create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
816
|
+
path = 'accounts/{accountId}/containers/{containerId}/tags'
|
817
|
+
command = make_simple_command(:post, path, options)
|
818
|
+
command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
819
|
+
command.request_object = tag_object
|
820
|
+
command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
821
|
+
command.response_class = Google::Apis::TagmanagerV1::Tag
|
822
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
823
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
824
|
+
command.query['fields'] = fields unless fields.nil?
|
825
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
826
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
827
|
+
execute_or_queue_command(command, &block)
|
828
|
+
end
|
829
|
+
|
830
|
+
# Deletes a GTM Tag.
|
831
|
+
# @param [String] account_id
|
832
|
+
# The GTM Account ID.
|
833
|
+
# @param [String] container_id
|
834
|
+
# The GTM Container ID.
|
835
|
+
# @param [String] tag_id
|
836
|
+
# The GTM Tag ID.
|
837
|
+
# @param [String] fields
|
838
|
+
# Selector specifying which fields to include in a partial response.
|
839
|
+
# @param [String] quota_user
|
840
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
841
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
842
|
+
# Overrides userIp if both are provided.
|
843
|
+
# @param [String] user_ip
|
844
|
+
# IP address of the site where the request originates. Use this if you want to
|
845
|
+
# enforce per-user limits.
|
846
|
+
# @param [Google::Apis::RequestOptions] options
|
847
|
+
# Request-specific options
|
848
|
+
#
|
849
|
+
# @yield [result, err] Result & error if block supplied
|
850
|
+
# @yieldparam result [NilClass] No result returned for this method
|
851
|
+
# @yieldparam err [StandardError] error object if request failed
|
852
|
+
#
|
853
|
+
# @return [void]
|
854
|
+
#
|
855
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
856
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
857
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
858
|
+
def delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
859
|
+
path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}'
|
860
|
+
command = make_simple_command(:delete, path, options)
|
861
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
862
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
863
|
+
command.params['tagId'] = tag_id unless tag_id.nil?
|
864
|
+
command.query['fields'] = fields unless fields.nil?
|
865
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
866
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
867
|
+
execute_or_queue_command(command, &block)
|
868
|
+
end
|
869
|
+
|
870
|
+
# Gets a GTM Tag.
|
871
|
+
# @param [String] account_id
|
872
|
+
# The GTM Account ID.
|
873
|
+
# @param [String] container_id
|
874
|
+
# The GTM Container ID.
|
875
|
+
# @param [String] tag_id
|
876
|
+
# The GTM Tag ID.
|
877
|
+
# @param [String] fields
|
878
|
+
# Selector specifying which fields to include in a partial response.
|
879
|
+
# @param [String] quota_user
|
880
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
881
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
882
|
+
# Overrides userIp if both are provided.
|
883
|
+
# @param [String] user_ip
|
884
|
+
# IP address of the site where the request originates. Use this if you want to
|
885
|
+
# enforce per-user limits.
|
886
|
+
# @param [Google::Apis::RequestOptions] options
|
887
|
+
# Request-specific options
|
888
|
+
#
|
889
|
+
# @yield [result, err] Result & error if block supplied
|
890
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
|
891
|
+
# @yieldparam err [StandardError] error object if request failed
|
892
|
+
#
|
893
|
+
# @return [Google::Apis::TagmanagerV1::Tag]
|
894
|
+
#
|
895
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
896
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
897
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
898
|
+
def get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
899
|
+
path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}'
|
900
|
+
command = make_simple_command(:get, path, options)
|
901
|
+
command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
902
|
+
command.response_class = Google::Apis::TagmanagerV1::Tag
|
903
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
904
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
905
|
+
command.params['tagId'] = tag_id unless tag_id.nil?
|
906
|
+
command.query['fields'] = fields unless fields.nil?
|
907
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
908
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
909
|
+
execute_or_queue_command(command, &block)
|
910
|
+
end
|
911
|
+
|
912
|
+
# Lists all GTM Tags of a Container.
|
913
|
+
# @param [String] account_id
|
914
|
+
# The GTM Account ID.
|
915
|
+
# @param [String] container_id
|
916
|
+
# The GTM Container ID.
|
917
|
+
# @param [String] fields
|
918
|
+
# Selector specifying which fields to include in a partial response.
|
919
|
+
# @param [String] quota_user
|
920
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
921
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
922
|
+
# Overrides userIp if both are provided.
|
923
|
+
# @param [String] user_ip
|
924
|
+
# IP address of the site where the request originates. Use this if you want to
|
925
|
+
# enforce per-user limits.
|
926
|
+
# @param [Google::Apis::RequestOptions] options
|
927
|
+
# Request-specific options
|
928
|
+
#
|
929
|
+
# @yield [result, err] Result & error if block supplied
|
930
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListTagsResponse] parsed result object
|
931
|
+
# @yieldparam err [StandardError] error object if request failed
|
932
|
+
#
|
933
|
+
# @return [Google::Apis::TagmanagerV1::ListTagsResponse]
|
934
|
+
#
|
935
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
936
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
937
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
938
|
+
def list_tags(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
939
|
+
path = 'accounts/{accountId}/containers/{containerId}/tags'
|
940
|
+
command = make_simple_command(:get, path, options)
|
941
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListTagsResponse::Representation
|
942
|
+
command.response_class = Google::Apis::TagmanagerV1::ListTagsResponse
|
943
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
944
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
945
|
+
command.query['fields'] = fields unless fields.nil?
|
946
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
947
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
948
|
+
execute_or_queue_command(command, &block)
|
949
|
+
end
|
950
|
+
|
951
|
+
# Updates a GTM Tag.
|
952
|
+
# @param [String] account_id
|
953
|
+
# The GTM Account ID.
|
954
|
+
# @param [String] container_id
|
955
|
+
# The GTM Container ID.
|
956
|
+
# @param [String] tag_id
|
957
|
+
# The GTM Tag ID.
|
958
|
+
# @param [Google::Apis::TagmanagerV1::Tag] tag_object
|
959
|
+
# @param [String] fingerprint
|
960
|
+
# When provided, this fingerprint must match the fingerprint of the tag in
|
961
|
+
# storage.
|
962
|
+
# @param [String] fields
|
963
|
+
# Selector specifying which fields to include in a partial response.
|
964
|
+
# @param [String] quota_user
|
965
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
966
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
967
|
+
# Overrides userIp if both are provided.
|
968
|
+
# @param [String] user_ip
|
969
|
+
# IP address of the site where the request originates. Use this if you want to
|
970
|
+
# enforce per-user limits.
|
971
|
+
# @param [Google::Apis::RequestOptions] options
|
972
|
+
# Request-specific options
|
973
|
+
#
|
974
|
+
# @yield [result, err] Result & error if block supplied
|
975
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
|
976
|
+
# @yieldparam err [StandardError] error object if request failed
|
977
|
+
#
|
978
|
+
# @return [Google::Apis::TagmanagerV1::Tag]
|
979
|
+
#
|
980
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
981
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
982
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
983
|
+
def update_tag(account_id, container_id, tag_id, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
984
|
+
path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}'
|
985
|
+
command = make_simple_command(:put, path, options)
|
986
|
+
command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
987
|
+
command.request_object = tag_object
|
988
|
+
command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
989
|
+
command.response_class = Google::Apis::TagmanagerV1::Tag
|
990
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
991
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
992
|
+
command.params['tagId'] = tag_id unless tag_id.nil?
|
993
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
994
|
+
command.query['fields'] = fields unless fields.nil?
|
995
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
996
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
997
|
+
execute_or_queue_command(command, &block)
|
998
|
+
end
|
999
|
+
|
1000
|
+
# Creates a GTM Trigger.
|
1001
|
+
# @param [String] account_id
|
1002
|
+
# The GTM Account ID.
|
1003
|
+
# @param [String] container_id
|
1004
|
+
# The GTM Container ID.
|
1005
|
+
# @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
|
1006
|
+
# @param [String] fields
|
1007
|
+
# Selector specifying which fields to include in a partial response.
|
1008
|
+
# @param [String] quota_user
|
1009
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1010
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1011
|
+
# Overrides userIp if both are provided.
|
1012
|
+
# @param [String] user_ip
|
1013
|
+
# IP address of the site where the request originates. Use this if you want to
|
1014
|
+
# enforce per-user limits.
|
1015
|
+
# @param [Google::Apis::RequestOptions] options
|
1016
|
+
# Request-specific options
|
1017
|
+
#
|
1018
|
+
# @yield [result, err] Result & error if block supplied
|
1019
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
|
1020
|
+
# @yieldparam err [StandardError] error object if request failed
|
1021
|
+
#
|
1022
|
+
# @return [Google::Apis::TagmanagerV1::Trigger]
|
1023
|
+
#
|
1024
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1025
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1026
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1027
|
+
def create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1028
|
+
path = 'accounts/{accountId}/containers/{containerId}/triggers'
|
1029
|
+
command = make_simple_command(:post, path, options)
|
1030
|
+
command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
1031
|
+
command.request_object = trigger_object
|
1032
|
+
command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
1033
|
+
command.response_class = Google::Apis::TagmanagerV1::Trigger
|
1034
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1035
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1036
|
+
command.query['fields'] = fields unless fields.nil?
|
1037
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1038
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1039
|
+
execute_or_queue_command(command, &block)
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# Deletes a GTM Trigger.
|
1043
|
+
# @param [String] account_id
|
1044
|
+
# The GTM Account ID.
|
1045
|
+
# @param [String] container_id
|
1046
|
+
# The GTM Container ID.
|
1047
|
+
# @param [String] trigger_id
|
1048
|
+
# The GTM Trigger ID.
|
1049
|
+
# @param [String] fields
|
1050
|
+
# Selector specifying which fields to include in a partial response.
|
1051
|
+
# @param [String] quota_user
|
1052
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1053
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1054
|
+
# Overrides userIp if both are provided.
|
1055
|
+
# @param [String] user_ip
|
1056
|
+
# IP address of the site where the request originates. Use this if you want to
|
1057
|
+
# enforce per-user limits.
|
1058
|
+
# @param [Google::Apis::RequestOptions] options
|
1059
|
+
# Request-specific options
|
1060
|
+
#
|
1061
|
+
# @yield [result, err] Result & error if block supplied
|
1062
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1063
|
+
# @yieldparam err [StandardError] error object if request failed
|
1064
|
+
#
|
1065
|
+
# @return [void]
|
1066
|
+
#
|
1067
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1068
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1069
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1070
|
+
def delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1071
|
+
path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}'
|
1072
|
+
command = make_simple_command(:delete, path, options)
|
1073
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1074
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1075
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
1076
|
+
command.query['fields'] = fields unless fields.nil?
|
1077
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1078
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1079
|
+
execute_or_queue_command(command, &block)
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
# Gets a GTM Trigger.
|
1083
|
+
# @param [String] account_id
|
1084
|
+
# The GTM Account ID.
|
1085
|
+
# @param [String] container_id
|
1086
|
+
# The GTM Container ID.
|
1087
|
+
# @param [String] trigger_id
|
1088
|
+
# The GTM Trigger ID.
|
1089
|
+
# @param [String] fields
|
1090
|
+
# Selector specifying which fields to include in a partial response.
|
1091
|
+
# @param [String] quota_user
|
1092
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1093
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1094
|
+
# Overrides userIp if both are provided.
|
1095
|
+
# @param [String] user_ip
|
1096
|
+
# IP address of the site where the request originates. Use this if you want to
|
1097
|
+
# enforce per-user limits.
|
1098
|
+
# @param [Google::Apis::RequestOptions] options
|
1099
|
+
# Request-specific options
|
1100
|
+
#
|
1101
|
+
# @yield [result, err] Result & error if block supplied
|
1102
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
|
1103
|
+
# @yieldparam err [StandardError] error object if request failed
|
1104
|
+
#
|
1105
|
+
# @return [Google::Apis::TagmanagerV1::Trigger]
|
1106
|
+
#
|
1107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1110
|
+
def get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1111
|
+
path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}'
|
1112
|
+
command = make_simple_command(:get, path, options)
|
1113
|
+
command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
1114
|
+
command.response_class = Google::Apis::TagmanagerV1::Trigger
|
1115
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1116
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1117
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
1118
|
+
command.query['fields'] = fields unless fields.nil?
|
1119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1120
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1121
|
+
execute_or_queue_command(command, &block)
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
# Lists all GTM Triggers of a Container.
|
1125
|
+
# @param [String] account_id
|
1126
|
+
# The GTM Account ID.
|
1127
|
+
# @param [String] container_id
|
1128
|
+
# The GTM Container ID.
|
1129
|
+
# @param [String] fields
|
1130
|
+
# Selector specifying which fields to include in a partial response.
|
1131
|
+
# @param [String] quota_user
|
1132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1134
|
+
# Overrides userIp if both are provided.
|
1135
|
+
# @param [String] user_ip
|
1136
|
+
# IP address of the site where the request originates. Use this if you want to
|
1137
|
+
# enforce per-user limits.
|
1138
|
+
# @param [Google::Apis::RequestOptions] options
|
1139
|
+
# Request-specific options
|
1140
|
+
#
|
1141
|
+
# @yield [result, err] Result & error if block supplied
|
1142
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListTriggersResponse] parsed result object
|
1143
|
+
# @yieldparam err [StandardError] error object if request failed
|
1144
|
+
#
|
1145
|
+
# @return [Google::Apis::TagmanagerV1::ListTriggersResponse]
|
1146
|
+
#
|
1147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1150
|
+
def list_triggers(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1151
|
+
path = 'accounts/{accountId}/containers/{containerId}/triggers'
|
1152
|
+
command = make_simple_command(:get, path, options)
|
1153
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListTriggersResponse::Representation
|
1154
|
+
command.response_class = Google::Apis::TagmanagerV1::ListTriggersResponse
|
1155
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1156
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1157
|
+
command.query['fields'] = fields unless fields.nil?
|
1158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1159
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1160
|
+
execute_or_queue_command(command, &block)
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Updates a GTM Trigger.
|
1164
|
+
# @param [String] account_id
|
1165
|
+
# The GTM Account ID.
|
1166
|
+
# @param [String] container_id
|
1167
|
+
# The GTM Container ID.
|
1168
|
+
# @param [String] trigger_id
|
1169
|
+
# The GTM Trigger ID.
|
1170
|
+
# @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
|
1171
|
+
# @param [String] fingerprint
|
1172
|
+
# When provided, this fingerprint must match the fingerprint of the trigger in
|
1173
|
+
# storage.
|
1174
|
+
# @param [String] fields
|
1175
|
+
# Selector specifying which fields to include in a partial response.
|
1176
|
+
# @param [String] quota_user
|
1177
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1178
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1179
|
+
# Overrides userIp if both are provided.
|
1180
|
+
# @param [String] user_ip
|
1181
|
+
# IP address of the site where the request originates. Use this if you want to
|
1182
|
+
# enforce per-user limits.
|
1183
|
+
# @param [Google::Apis::RequestOptions] options
|
1184
|
+
# Request-specific options
|
1185
|
+
#
|
1186
|
+
# @yield [result, err] Result & error if block supplied
|
1187
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
|
1188
|
+
# @yieldparam err [StandardError] error object if request failed
|
1189
|
+
#
|
1190
|
+
# @return [Google::Apis::TagmanagerV1::Trigger]
|
1191
|
+
#
|
1192
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1193
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1194
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1195
|
+
def update_trigger(account_id, container_id, trigger_id, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1196
|
+
path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}'
|
1197
|
+
command = make_simple_command(:put, path, options)
|
1198
|
+
command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
1199
|
+
command.request_object = trigger_object
|
1200
|
+
command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
1201
|
+
command.response_class = Google::Apis::TagmanagerV1::Trigger
|
1202
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1203
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1204
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
1205
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
1206
|
+
command.query['fields'] = fields unless fields.nil?
|
1207
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1208
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1209
|
+
execute_or_queue_command(command, &block)
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
# Creates a GTM Variable.
|
1213
|
+
# @param [String] account_id
|
1214
|
+
# The GTM Account ID.
|
1215
|
+
# @param [String] container_id
|
1216
|
+
# The GTM Container ID.
|
1217
|
+
# @param [Google::Apis::TagmanagerV1::Variable] variable_object
|
1218
|
+
# @param [String] fields
|
1219
|
+
# Selector specifying which fields to include in a partial response.
|
1220
|
+
# @param [String] quota_user
|
1221
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1222
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1223
|
+
# Overrides userIp if both are provided.
|
1224
|
+
# @param [String] user_ip
|
1225
|
+
# IP address of the site where the request originates. Use this if you want to
|
1226
|
+
# enforce per-user limits.
|
1227
|
+
# @param [Google::Apis::RequestOptions] options
|
1228
|
+
# Request-specific options
|
1229
|
+
#
|
1230
|
+
# @yield [result, err] Result & error if block supplied
|
1231
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
|
1232
|
+
# @yieldparam err [StandardError] error object if request failed
|
1233
|
+
#
|
1234
|
+
# @return [Google::Apis::TagmanagerV1::Variable]
|
1235
|
+
#
|
1236
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1237
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1238
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1239
|
+
def create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1240
|
+
path = 'accounts/{accountId}/containers/{containerId}/variables'
|
1241
|
+
command = make_simple_command(:post, path, options)
|
1242
|
+
command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
1243
|
+
command.request_object = variable_object
|
1244
|
+
command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
1245
|
+
command.response_class = Google::Apis::TagmanagerV1::Variable
|
1246
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1247
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1248
|
+
command.query['fields'] = fields unless fields.nil?
|
1249
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1250
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1251
|
+
execute_or_queue_command(command, &block)
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
# Deletes a GTM Variable.
|
1255
|
+
# @param [String] account_id
|
1256
|
+
# The GTM Account ID.
|
1257
|
+
# @param [String] container_id
|
1258
|
+
# The GTM Container ID.
|
1259
|
+
# @param [String] variable_id
|
1260
|
+
# The GTM Variable ID.
|
1261
|
+
# @param [String] fields
|
1262
|
+
# Selector specifying which fields to include in a partial response.
|
1263
|
+
# @param [String] quota_user
|
1264
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1265
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1266
|
+
# Overrides userIp if both are provided.
|
1267
|
+
# @param [String] user_ip
|
1268
|
+
# IP address of the site where the request originates. Use this if you want to
|
1269
|
+
# enforce per-user limits.
|
1270
|
+
# @param [Google::Apis::RequestOptions] options
|
1271
|
+
# Request-specific options
|
1272
|
+
#
|
1273
|
+
# @yield [result, err] Result & error if block supplied
|
1274
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1275
|
+
# @yieldparam err [StandardError] error object if request failed
|
1276
|
+
#
|
1277
|
+
# @return [void]
|
1278
|
+
#
|
1279
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1280
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1281
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1282
|
+
def delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1283
|
+
path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}'
|
1284
|
+
command = make_simple_command(:delete, path, options)
|
1285
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1286
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1287
|
+
command.params['variableId'] = variable_id unless variable_id.nil?
|
1288
|
+
command.query['fields'] = fields unless fields.nil?
|
1289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1290
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1291
|
+
execute_or_queue_command(command, &block)
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
# Gets a GTM Variable.
|
1295
|
+
# @param [String] account_id
|
1296
|
+
# The GTM Account ID.
|
1297
|
+
# @param [String] container_id
|
1298
|
+
# The GTM Container ID.
|
1299
|
+
# @param [String] variable_id
|
1300
|
+
# The GTM Variable ID.
|
1301
|
+
# @param [String] fields
|
1302
|
+
# Selector specifying which fields to include in a partial response.
|
1303
|
+
# @param [String] quota_user
|
1304
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1305
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1306
|
+
# Overrides userIp if both are provided.
|
1307
|
+
# @param [String] user_ip
|
1308
|
+
# IP address of the site where the request originates. Use this if you want to
|
1309
|
+
# enforce per-user limits.
|
1310
|
+
# @param [Google::Apis::RequestOptions] options
|
1311
|
+
# Request-specific options
|
1312
|
+
#
|
1313
|
+
# @yield [result, err] Result & error if block supplied
|
1314
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
|
1315
|
+
# @yieldparam err [StandardError] error object if request failed
|
1316
|
+
#
|
1317
|
+
# @return [Google::Apis::TagmanagerV1::Variable]
|
1318
|
+
#
|
1319
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1320
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1321
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1322
|
+
def get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1323
|
+
path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}'
|
1324
|
+
command = make_simple_command(:get, path, options)
|
1325
|
+
command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
1326
|
+
command.response_class = Google::Apis::TagmanagerV1::Variable
|
1327
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1328
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1329
|
+
command.params['variableId'] = variable_id unless variable_id.nil?
|
1330
|
+
command.query['fields'] = fields unless fields.nil?
|
1331
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1332
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1333
|
+
execute_or_queue_command(command, &block)
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
# Lists all GTM Variables of a Container.
|
1337
|
+
# @param [String] account_id
|
1338
|
+
# The GTM Account ID.
|
1339
|
+
# @param [String] container_id
|
1340
|
+
# The GTM Container ID.
|
1341
|
+
# @param [String] fields
|
1342
|
+
# Selector specifying which fields to include in a partial response.
|
1343
|
+
# @param [String] quota_user
|
1344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1346
|
+
# Overrides userIp if both are provided.
|
1347
|
+
# @param [String] user_ip
|
1348
|
+
# IP address of the site where the request originates. Use this if you want to
|
1349
|
+
# enforce per-user limits.
|
1350
|
+
# @param [Google::Apis::RequestOptions] options
|
1351
|
+
# Request-specific options
|
1352
|
+
#
|
1353
|
+
# @yield [result, err] Result & error if block supplied
|
1354
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListVariablesResponse] parsed result object
|
1355
|
+
# @yieldparam err [StandardError] error object if request failed
|
1356
|
+
#
|
1357
|
+
# @return [Google::Apis::TagmanagerV1::ListVariablesResponse]
|
1358
|
+
#
|
1359
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1360
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1361
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1362
|
+
def list_variables(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1363
|
+
path = 'accounts/{accountId}/containers/{containerId}/variables'
|
1364
|
+
command = make_simple_command(:get, path, options)
|
1365
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListVariablesResponse::Representation
|
1366
|
+
command.response_class = Google::Apis::TagmanagerV1::ListVariablesResponse
|
1367
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1368
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1369
|
+
command.query['fields'] = fields unless fields.nil?
|
1370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1371
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1372
|
+
execute_or_queue_command(command, &block)
|
1373
|
+
end
|
1374
|
+
|
1375
|
+
# Updates a GTM Variable.
|
1376
|
+
# @param [String] account_id
|
1377
|
+
# The GTM Account ID.
|
1378
|
+
# @param [String] container_id
|
1379
|
+
# The GTM Container ID.
|
1380
|
+
# @param [String] variable_id
|
1381
|
+
# The GTM Variable ID.
|
1382
|
+
# @param [Google::Apis::TagmanagerV1::Variable] variable_object
|
1383
|
+
# @param [String] fingerprint
|
1384
|
+
# When provided, this fingerprint must match the fingerprint of the variable in
|
1385
|
+
# storage.
|
1386
|
+
# @param [String] fields
|
1387
|
+
# Selector specifying which fields to include in a partial response.
|
1388
|
+
# @param [String] quota_user
|
1389
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1390
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1391
|
+
# Overrides userIp if both are provided.
|
1392
|
+
# @param [String] user_ip
|
1393
|
+
# IP address of the site where the request originates. Use this if you want to
|
1394
|
+
# enforce per-user limits.
|
1395
|
+
# @param [Google::Apis::RequestOptions] options
|
1396
|
+
# Request-specific options
|
1397
|
+
#
|
1398
|
+
# @yield [result, err] Result & error if block supplied
|
1399
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
|
1400
|
+
# @yieldparam err [StandardError] error object if request failed
|
1401
|
+
#
|
1402
|
+
# @return [Google::Apis::TagmanagerV1::Variable]
|
1403
|
+
#
|
1404
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1405
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1406
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1407
|
+
def update_variable(account_id, container_id, variable_id, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1408
|
+
path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}'
|
1409
|
+
command = make_simple_command(:put, path, options)
|
1410
|
+
command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
1411
|
+
command.request_object = variable_object
|
1412
|
+
command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
1413
|
+
command.response_class = Google::Apis::TagmanagerV1::Variable
|
1414
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1415
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1416
|
+
command.params['variableId'] = variable_id unless variable_id.nil?
|
1417
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
1418
|
+
command.query['fields'] = fields unless fields.nil?
|
1419
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1420
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1421
|
+
execute_or_queue_command(command, &block)
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
# Creates a Container Version.
|
1425
|
+
# @param [String] account_id
|
1426
|
+
# The GTM Account ID.
|
1427
|
+
# @param [String] container_id
|
1428
|
+
# The GTM Container ID.
|
1429
|
+
# @param [Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions] create_container_version_request_version_options_object
|
1430
|
+
# @param [String] fields
|
1431
|
+
# Selector specifying which fields to include in a partial response.
|
1432
|
+
# @param [String] quota_user
|
1433
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1434
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1435
|
+
# Overrides userIp if both are provided.
|
1436
|
+
# @param [String] user_ip
|
1437
|
+
# IP address of the site where the request originates. Use this if you want to
|
1438
|
+
# enforce per-user limits.
|
1439
|
+
# @param [Google::Apis::RequestOptions] options
|
1440
|
+
# Request-specific options
|
1441
|
+
#
|
1442
|
+
# @yield [result, err] Result & error if block supplied
|
1443
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::CreateContainerVersionResponse] parsed result object
|
1444
|
+
# @yieldparam err [StandardError] error object if request failed
|
1445
|
+
#
|
1446
|
+
# @return [Google::Apis::TagmanagerV1::CreateContainerVersionResponse]
|
1447
|
+
#
|
1448
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1449
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1450
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1451
|
+
def create_version(account_id, container_id, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1452
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions'
|
1453
|
+
command = make_simple_command(:post, path, options)
|
1454
|
+
command.request_representation = Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions::Representation
|
1455
|
+
command.request_object = create_container_version_request_version_options_object
|
1456
|
+
command.response_representation = Google::Apis::TagmanagerV1::CreateContainerVersionResponse::Representation
|
1457
|
+
command.response_class = Google::Apis::TagmanagerV1::CreateContainerVersionResponse
|
1458
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1459
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1460
|
+
command.query['fields'] = fields unless fields.nil?
|
1461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1462
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1463
|
+
execute_or_queue_command(command, &block)
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
# Deletes a Container Version.
|
1467
|
+
# @param [String] account_id
|
1468
|
+
# The GTM Account ID.
|
1469
|
+
# @param [String] container_id
|
1470
|
+
# The GTM Container ID.
|
1471
|
+
# @param [String] container_version_id
|
1472
|
+
# The GTM Container Version ID.
|
1473
|
+
# @param [String] fields
|
1474
|
+
# Selector specifying which fields to include in a partial response.
|
1475
|
+
# @param [String] quota_user
|
1476
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1477
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1478
|
+
# Overrides userIp if both are provided.
|
1479
|
+
# @param [String] user_ip
|
1480
|
+
# IP address of the site where the request originates. Use this if you want to
|
1481
|
+
# enforce per-user limits.
|
1482
|
+
# @param [Google::Apis::RequestOptions] options
|
1483
|
+
# Request-specific options
|
1484
|
+
#
|
1485
|
+
# @yield [result, err] Result & error if block supplied
|
1486
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1487
|
+
# @yieldparam err [StandardError] error object if request failed
|
1488
|
+
#
|
1489
|
+
# @return [void]
|
1490
|
+
#
|
1491
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1492
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1493
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1494
|
+
def delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1495
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}'
|
1496
|
+
command = make_simple_command(:delete, path, options)
|
1497
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1498
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1499
|
+
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
1500
|
+
command.query['fields'] = fields unless fields.nil?
|
1501
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1502
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1503
|
+
execute_or_queue_command(command, &block)
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
# Gets a Container Version.
|
1507
|
+
# @param [String] account_id
|
1508
|
+
# The GTM Account ID.
|
1509
|
+
# @param [String] container_id
|
1510
|
+
# The GTM Container ID.
|
1511
|
+
# @param [String] container_version_id
|
1512
|
+
# The GTM Container Version ID. Specify published to retrieve the currently
|
1513
|
+
# published version.
|
1514
|
+
# @param [String] fields
|
1515
|
+
# Selector specifying which fields to include in a partial response.
|
1516
|
+
# @param [String] quota_user
|
1517
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1518
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1519
|
+
# Overrides userIp if both are provided.
|
1520
|
+
# @param [String] user_ip
|
1521
|
+
# IP address of the site where the request originates. Use this if you want to
|
1522
|
+
# enforce per-user limits.
|
1523
|
+
# @param [Google::Apis::RequestOptions] options
|
1524
|
+
# Request-specific options
|
1525
|
+
#
|
1526
|
+
# @yield [result, err] Result & error if block supplied
|
1527
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
1528
|
+
# @yieldparam err [StandardError] error object if request failed
|
1529
|
+
#
|
1530
|
+
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
1531
|
+
#
|
1532
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1533
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1534
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1535
|
+
def get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1536
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}'
|
1537
|
+
command = make_simple_command(:get, path, options)
|
1538
|
+
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
1539
|
+
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
1540
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1541
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1542
|
+
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
1543
|
+
command.query['fields'] = fields unless fields.nil?
|
1544
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1545
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1546
|
+
execute_or_queue_command(command, &block)
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
# Lists all Container Versions of a GTM Container.
|
1550
|
+
# @param [String] account_id
|
1551
|
+
# The GTM Account ID.
|
1552
|
+
# @param [String] container_id
|
1553
|
+
# The GTM Container ID.
|
1554
|
+
# @param [Boolean] headers
|
1555
|
+
# Retrieve headers only when true.
|
1556
|
+
# @param [String] fields
|
1557
|
+
# Selector specifying which fields to include in a partial response.
|
1558
|
+
# @param [String] quota_user
|
1559
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1560
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1561
|
+
# Overrides userIp if both are provided.
|
1562
|
+
# @param [String] user_ip
|
1563
|
+
# IP address of the site where the request originates. Use this if you want to
|
1564
|
+
# enforce per-user limits.
|
1565
|
+
# @param [Google::Apis::RequestOptions] options
|
1566
|
+
# Request-specific options
|
1567
|
+
#
|
1568
|
+
# @yield [result, err] Result & error if block supplied
|
1569
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListContainerVersionsResponse] parsed result object
|
1570
|
+
# @yieldparam err [StandardError] error object if request failed
|
1571
|
+
#
|
1572
|
+
# @return [Google::Apis::TagmanagerV1::ListContainerVersionsResponse]
|
1573
|
+
#
|
1574
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1575
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1576
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1577
|
+
def list_versions(account_id, container_id, headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1578
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions'
|
1579
|
+
command = make_simple_command(:get, path, options)
|
1580
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListContainerVersionsResponse::Representation
|
1581
|
+
command.response_class = Google::Apis::TagmanagerV1::ListContainerVersionsResponse
|
1582
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1583
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1584
|
+
command.query['headers'] = headers unless headers.nil?
|
1585
|
+
command.query['fields'] = fields unless fields.nil?
|
1586
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1587
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1588
|
+
execute_or_queue_command(command, &block)
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
# Publishes a Container Version.
|
1592
|
+
# @param [String] account_id
|
1593
|
+
# The GTM Account ID.
|
1594
|
+
# @param [String] container_id
|
1595
|
+
# The GTM Container ID.
|
1596
|
+
# @param [String] container_version_id
|
1597
|
+
# The GTM Container Version ID.
|
1598
|
+
# @param [String] fingerprint
|
1599
|
+
# When provided, this fingerprint must match the fingerprint of the container
|
1600
|
+
# version in storage.
|
1601
|
+
# @param [String] fields
|
1602
|
+
# Selector specifying which fields to include in a partial response.
|
1603
|
+
# @param [String] quota_user
|
1604
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1605
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1606
|
+
# Overrides userIp if both are provided.
|
1607
|
+
# @param [String] user_ip
|
1608
|
+
# IP address of the site where the request originates. Use this if you want to
|
1609
|
+
# enforce per-user limits.
|
1610
|
+
# @param [Google::Apis::RequestOptions] options
|
1611
|
+
# Request-specific options
|
1612
|
+
#
|
1613
|
+
# @yield [result, err] Result & error if block supplied
|
1614
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::PublishContainerVersionResponse] parsed result object
|
1615
|
+
# @yieldparam err [StandardError] error object if request failed
|
1616
|
+
#
|
1617
|
+
# @return [Google::Apis::TagmanagerV1::PublishContainerVersionResponse]
|
1618
|
+
#
|
1619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1622
|
+
def publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1623
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish'
|
1624
|
+
command = make_simple_command(:post, path, options)
|
1625
|
+
command.response_representation = Google::Apis::TagmanagerV1::PublishContainerVersionResponse::Representation
|
1626
|
+
command.response_class = Google::Apis::TagmanagerV1::PublishContainerVersionResponse
|
1627
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1628
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1629
|
+
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
1630
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
1631
|
+
command.query['fields'] = fields unless fields.nil?
|
1632
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1633
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1634
|
+
execute_or_queue_command(command, &block)
|
1635
|
+
end
|
1636
|
+
|
1637
|
+
# Restores a Container Version. This will overwrite the container's current
|
1638
|
+
# configuration (including its macros, rules and tags). The operation will not
|
1639
|
+
# have any effect on the version that is being served (i.e. the published
|
1640
|
+
# version).
|
1641
|
+
# @param [String] account_id
|
1642
|
+
# The GTM Account ID.
|
1643
|
+
# @param [String] container_id
|
1644
|
+
# The GTM Container ID.
|
1645
|
+
# @param [String] container_version_id
|
1646
|
+
# The GTM Container Version ID.
|
1647
|
+
# @param [String] fields
|
1648
|
+
# Selector specifying which fields to include in a partial response.
|
1649
|
+
# @param [String] quota_user
|
1650
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1651
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1652
|
+
# Overrides userIp if both are provided.
|
1653
|
+
# @param [String] user_ip
|
1654
|
+
# IP address of the site where the request originates. Use this if you want to
|
1655
|
+
# enforce per-user limits.
|
1656
|
+
# @param [Google::Apis::RequestOptions] options
|
1657
|
+
# Request-specific options
|
1658
|
+
#
|
1659
|
+
# @yield [result, err] Result & error if block supplied
|
1660
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
1661
|
+
# @yieldparam err [StandardError] error object if request failed
|
1662
|
+
#
|
1663
|
+
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
1664
|
+
#
|
1665
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1666
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1667
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1668
|
+
def restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1669
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore'
|
1670
|
+
command = make_simple_command(:post, path, options)
|
1671
|
+
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
1672
|
+
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
1673
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1674
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1675
|
+
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
1676
|
+
command.query['fields'] = fields unless fields.nil?
|
1677
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1678
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1679
|
+
execute_or_queue_command(command, &block)
|
1680
|
+
end
|
1681
|
+
|
1682
|
+
# Undeletes a Container Version.
|
1683
|
+
# @param [String] account_id
|
1684
|
+
# The GTM Account ID.
|
1685
|
+
# @param [String] container_id
|
1686
|
+
# The GTM Container ID.
|
1687
|
+
# @param [String] container_version_id
|
1688
|
+
# The GTM Container Version ID.
|
1689
|
+
# @param [String] fields
|
1690
|
+
# Selector specifying which fields to include in a partial response.
|
1691
|
+
# @param [String] quota_user
|
1692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1694
|
+
# Overrides userIp if both are provided.
|
1695
|
+
# @param [String] user_ip
|
1696
|
+
# IP address of the site where the request originates. Use this if you want to
|
1697
|
+
# enforce per-user limits.
|
1698
|
+
# @param [Google::Apis::RequestOptions] options
|
1699
|
+
# Request-specific options
|
1700
|
+
#
|
1701
|
+
# @yield [result, err] Result & error if block supplied
|
1702
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
1703
|
+
# @yieldparam err [StandardError] error object if request failed
|
1704
|
+
#
|
1705
|
+
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
1706
|
+
#
|
1707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1710
|
+
def undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1711
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete'
|
1712
|
+
command = make_simple_command(:post, path, options)
|
1713
|
+
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
1714
|
+
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
1715
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1716
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1717
|
+
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
1718
|
+
command.query['fields'] = fields unless fields.nil?
|
1719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1720
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1721
|
+
execute_or_queue_command(command, &block)
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
# Updates a Container Version.
|
1725
|
+
# @param [String] account_id
|
1726
|
+
# The GTM Account ID.
|
1727
|
+
# @param [String] container_id
|
1728
|
+
# The GTM Container ID.
|
1729
|
+
# @param [String] container_version_id
|
1730
|
+
# The GTM Container Version ID.
|
1731
|
+
# @param [Google::Apis::TagmanagerV1::ContainerVersion] container_version_object
|
1732
|
+
# @param [String] fingerprint
|
1733
|
+
# When provided, this fingerprint must match the fingerprint of the container
|
1734
|
+
# version in storage.
|
1735
|
+
# @param [String] fields
|
1736
|
+
# Selector specifying which fields to include in a partial response.
|
1737
|
+
# @param [String] quota_user
|
1738
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1739
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1740
|
+
# Overrides userIp if both are provided.
|
1741
|
+
# @param [String] user_ip
|
1742
|
+
# IP address of the site where the request originates. Use this if you want to
|
1743
|
+
# enforce per-user limits.
|
1744
|
+
# @param [Google::Apis::RequestOptions] options
|
1745
|
+
# Request-specific options
|
1746
|
+
#
|
1747
|
+
# @yield [result, err] Result & error if block supplied
|
1748
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
1749
|
+
# @yieldparam err [StandardError] error object if request failed
|
1750
|
+
#
|
1751
|
+
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
1752
|
+
#
|
1753
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1754
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1755
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1756
|
+
def update_version(account_id, container_id, container_version_id, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1757
|
+
path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}'
|
1758
|
+
command = make_simple_command(:put, path, options)
|
1759
|
+
command.request_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
1760
|
+
command.request_object = container_version_object
|
1761
|
+
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
1762
|
+
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
1763
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1764
|
+
command.params['containerId'] = container_id unless container_id.nil?
|
1765
|
+
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
1766
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
1767
|
+
command.query['fields'] = fields unless fields.nil?
|
1768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1769
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1770
|
+
execute_or_queue_command(command, &block)
|
1771
|
+
end
|
1772
|
+
|
1773
|
+
# Creates a user's Account & Container Permissions.
|
1774
|
+
# @param [String] account_id
|
1775
|
+
# The GTM Account ID.
|
1776
|
+
# @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
|
1777
|
+
# @param [String] fields
|
1778
|
+
# Selector specifying which fields to include in a partial response.
|
1779
|
+
# @param [String] quota_user
|
1780
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1781
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1782
|
+
# Overrides userIp if both are provided.
|
1783
|
+
# @param [String] user_ip
|
1784
|
+
# IP address of the site where the request originates. Use this if you want to
|
1785
|
+
# enforce per-user limits.
|
1786
|
+
# @param [Google::Apis::RequestOptions] options
|
1787
|
+
# Request-specific options
|
1788
|
+
#
|
1789
|
+
# @yield [result, err] Result & error if block supplied
|
1790
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
|
1791
|
+
# @yieldparam err [StandardError] error object if request failed
|
1792
|
+
#
|
1793
|
+
# @return [Google::Apis::TagmanagerV1::UserAccess]
|
1794
|
+
#
|
1795
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1796
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1797
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1798
|
+
def create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1799
|
+
path = 'accounts/{accountId}/permissions'
|
1800
|
+
command = make_simple_command(:post, path, options)
|
1801
|
+
command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
1802
|
+
command.request_object = user_access_object
|
1803
|
+
command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
1804
|
+
command.response_class = Google::Apis::TagmanagerV1::UserAccess
|
1805
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1806
|
+
command.query['fields'] = fields unless fields.nil?
|
1807
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1808
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1809
|
+
execute_or_queue_command(command, &block)
|
1810
|
+
end
|
1811
|
+
|
1812
|
+
# Removes a user from the account, revoking access to it and all of its
|
1813
|
+
# containers.
|
1814
|
+
# @param [String] account_id
|
1815
|
+
# The GTM Account ID.
|
1816
|
+
# @param [String] permission_id
|
1817
|
+
# The GTM User ID.
|
1818
|
+
# @param [String] fields
|
1819
|
+
# Selector specifying which fields to include in a partial response.
|
1820
|
+
# @param [String] quota_user
|
1821
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1822
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1823
|
+
# Overrides userIp if both are provided.
|
1824
|
+
# @param [String] user_ip
|
1825
|
+
# IP address of the site where the request originates. Use this if you want to
|
1826
|
+
# enforce per-user limits.
|
1827
|
+
# @param [Google::Apis::RequestOptions] options
|
1828
|
+
# Request-specific options
|
1829
|
+
#
|
1830
|
+
# @yield [result, err] Result & error if block supplied
|
1831
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1832
|
+
# @yieldparam err [StandardError] error object if request failed
|
1833
|
+
#
|
1834
|
+
# @return [void]
|
1835
|
+
#
|
1836
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1837
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1838
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1839
|
+
def delete_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1840
|
+
path = 'accounts/{accountId}/permissions/{permissionId}'
|
1841
|
+
command = make_simple_command(:delete, path, options)
|
1842
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1843
|
+
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1844
|
+
command.query['fields'] = fields unless fields.nil?
|
1845
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1846
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1847
|
+
execute_or_queue_command(command, &block)
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
# Gets a user's Account & Container Permissions.
|
1851
|
+
# @param [String] account_id
|
1852
|
+
# The GTM Account ID.
|
1853
|
+
# @param [String] permission_id
|
1854
|
+
# The GTM User ID.
|
1855
|
+
# @param [String] fields
|
1856
|
+
# Selector specifying which fields to include in a partial response.
|
1857
|
+
# @param [String] quota_user
|
1858
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1859
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1860
|
+
# Overrides userIp if both are provided.
|
1861
|
+
# @param [String] user_ip
|
1862
|
+
# IP address of the site where the request originates. Use this if you want to
|
1863
|
+
# enforce per-user limits.
|
1864
|
+
# @param [Google::Apis::RequestOptions] options
|
1865
|
+
# Request-specific options
|
1866
|
+
#
|
1867
|
+
# @yield [result, err] Result & error if block supplied
|
1868
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
|
1869
|
+
# @yieldparam err [StandardError] error object if request failed
|
1870
|
+
#
|
1871
|
+
# @return [Google::Apis::TagmanagerV1::UserAccess]
|
1872
|
+
#
|
1873
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1874
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1875
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1876
|
+
def get_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1877
|
+
path = 'accounts/{accountId}/permissions/{permissionId}'
|
1878
|
+
command = make_simple_command(:get, path, options)
|
1879
|
+
command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
1880
|
+
command.response_class = Google::Apis::TagmanagerV1::UserAccess
|
1881
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1882
|
+
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1883
|
+
command.query['fields'] = fields unless fields.nil?
|
1884
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1885
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1886
|
+
execute_or_queue_command(command, &block)
|
1887
|
+
end
|
1888
|
+
|
1889
|
+
# List all users that have access to the account along with Account and
|
1890
|
+
# Container Permissions granted to each of them.
|
1891
|
+
# @param [String] account_id
|
1892
|
+
# The GTM Account ID. @required tagmanager.accounts.permissions.list
|
1893
|
+
# @param [String] fields
|
1894
|
+
# Selector specifying which fields to include in a partial response.
|
1895
|
+
# @param [String] quota_user
|
1896
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1897
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1898
|
+
# Overrides userIp if both are provided.
|
1899
|
+
# @param [String] user_ip
|
1900
|
+
# IP address of the site where the request originates. Use this if you want to
|
1901
|
+
# enforce per-user limits.
|
1902
|
+
# @param [Google::Apis::RequestOptions] options
|
1903
|
+
# Request-specific options
|
1904
|
+
#
|
1905
|
+
# @yield [result, err] Result & error if block supplied
|
1906
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::ListAccountUsersResponse] parsed result object
|
1907
|
+
# @yieldparam err [StandardError] error object if request failed
|
1908
|
+
#
|
1909
|
+
# @return [Google::Apis::TagmanagerV1::ListAccountUsersResponse]
|
1910
|
+
#
|
1911
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1912
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1913
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1914
|
+
def list_permissions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1915
|
+
path = 'accounts/{accountId}/permissions'
|
1916
|
+
command = make_simple_command(:get, path, options)
|
1917
|
+
command.response_representation = Google::Apis::TagmanagerV1::ListAccountUsersResponse::Representation
|
1918
|
+
command.response_class = Google::Apis::TagmanagerV1::ListAccountUsersResponse
|
1919
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1920
|
+
command.query['fields'] = fields unless fields.nil?
|
1921
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1922
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1923
|
+
execute_or_queue_command(command, &block)
|
1924
|
+
end
|
1925
|
+
|
1926
|
+
# Updates a user's Account & Container Permissions.
|
1927
|
+
# @param [String] account_id
|
1928
|
+
# The GTM Account ID.
|
1929
|
+
# @param [String] permission_id
|
1930
|
+
# The GTM User ID.
|
1931
|
+
# @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
|
1932
|
+
# @param [String] fields
|
1933
|
+
# Selector specifying which fields to include in a partial response.
|
1934
|
+
# @param [String] quota_user
|
1935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1937
|
+
# Overrides userIp if both are provided.
|
1938
|
+
# @param [String] user_ip
|
1939
|
+
# IP address of the site where the request originates. Use this if you want to
|
1940
|
+
# enforce per-user limits.
|
1941
|
+
# @param [Google::Apis::RequestOptions] options
|
1942
|
+
# Request-specific options
|
1943
|
+
#
|
1944
|
+
# @yield [result, err] Result & error if block supplied
|
1945
|
+
# @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
|
1946
|
+
# @yieldparam err [StandardError] error object if request failed
|
1947
|
+
#
|
1948
|
+
# @return [Google::Apis::TagmanagerV1::UserAccess]
|
1949
|
+
#
|
1950
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1951
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1952
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1953
|
+
def update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1954
|
+
path = 'accounts/{accountId}/permissions/{permissionId}'
|
1955
|
+
command = make_simple_command(:put, path, options)
|
1956
|
+
command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
1957
|
+
command.request_object = user_access_object
|
1958
|
+
command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
1959
|
+
command.response_class = Google::Apis::TagmanagerV1::UserAccess
|
1960
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
1961
|
+
command.params['permissionId'] = permission_id unless permission_id.nil?
|
1962
|
+
command.query['fields'] = fields unless fields.nil?
|
1963
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1964
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1965
|
+
execute_or_queue_command(command, &block)
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
protected
|
1969
|
+
|
1970
|
+
def apply_command_defaults(command)
|
1971
|
+
command.query['key'] = key unless key.nil?
|
1972
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1973
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1974
|
+
end
|
1975
|
+
end
|
1976
|
+
end
|
1977
|
+
end
|
1978
|
+
end
|