From 99a5f8de62b409710405ea2cb465a28e3b7cd2fc Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Wed, 2 Dec 2015 17:10:07 -0800 Subject: [PATCH] Update generated APIs --- api_names.yaml | 71 +- api_names_out.yaml | 3607 ++++++++++++++--- generated/google/apis/adexchangebuyer_v1_3.rb | 2 +- .../apis/adexchangebuyer_v1_3/classes.rb | 215 +- .../adexchangebuyer_v1_3/representations.rb | 71 + .../apis/adexchangebuyer_v1_3/service.rb | 63 +- .../google/apis/adexchangeseller_v2_0.rb | 2 +- .../apis/adexchangeseller_v2_0/service.rb | 44 +- .../google/apis/admin_datatransfer_v1.rb | 37 + .../apis/admin_datatransfer_v1/classes.rb | 267 ++ .../admin_datatransfer_v1/representations.rb | 118 + .../apis/admin_datatransfer_v1/service.rb | 262 ++ generated/google/apis/admin_directory_v1.rb | 20 +- .../google/apis/admin_directory_v1/classes.rb | 621 +++ .../admin_directory_v1/representations.rb | 212 + .../google/apis/admin_directory_v1/service.rb | 1042 ++++- generated/google/apis/admin_reports_v1.rb | 2 +- .../google/apis/admin_reports_v1/service.rb | 15 +- generated/google/apis/adsense_v1_4.rb | 2 +- generated/google/apis/adsense_v1_4/classes.rb | 6 + .../apis/adsense_v1_4/representations.rb | 1 + generated/google/apis/adsense_v1_4/service.rb | 118 +- generated/google/apis/adsensehost_v4_1.rb | 2 +- .../google/apis/adsensehost_v4_1/service.rb | 78 +- generated/google/apis/analytics_v3.rb | 2 +- generated/google/apis/analytics_v3/classes.rb | 24 +- generated/google/apis/analytics_v3/service.rb | 242 +- generated/google/apis/androidenterprise_v1.rb | 4 +- .../apis/androidenterprise_v1/classes.rb | 74 +- .../androidenterprise_v1/representations.rb | 25 + .../apis/androidenterprise_v1/service.rb | 261 +- generated/google/apis/androidpublisher_v2.rb | 2 +- .../apis/androidpublisher_v2/classes.rb | 4 +- .../apis/androidpublisher_v2/service.rb | 162 +- generated/google/apis/appengine_v1beta4.rb | 35 + .../google/apis/appengine_v1beta4/classes.rb | 1532 +++++++ .../apis/appengine_v1beta4/representations.rb | 526 +++ .../google/apis/appengine_v1beta4/service.rb | 476 +++ .../google/apis/appsactivity_v1/service.rb | 3 +- generated/google/apis/appstate_v1.rb | 2 +- generated/google/apis/appstate_v1/service.rb | 17 +- .../google/apis/autoscaler_v1beta2/service.rb | 30 +- generated/google/apis/bigquery_v2.rb | 5 +- generated/google/apis/bigquery_v2/classes.rb | 247 +- .../apis/bigquery_v2/representations.rb | 62 + generated/google/apis/bigquery_v2/service.rb | 69 +- generated/google/apis/blogger_v3/service.rb | 99 +- generated/google/apis/books_v1.rb | 2 +- generated/google/apis/books_v1/classes.rb | 441 ++ .../google/apis/books_v1/representations.rb | 177 + generated/google/apis/books_v1/service.rb | 300 +- generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/calendar_v3/classes.rb | 52 +- generated/google/apis/calendar_v3/service.rb | 221 +- generated/google/apis/civicinfo_v2.rb | 2 +- generated/google/apis/civicinfo_v2/classes.rb | 15 +- .../apis/civicinfo_v2/representations.rb | 1 + generated/google/apis/civicinfo_v2/service.rb | 15 +- generated/google/apis/classroom_v1.rb | 49 + generated/google/apis/classroom_v1/classes.rb | 512 +++ .../apis/classroom_v1/representations.rb | 217 + generated/google/apis/classroom_v1/service.rb | 970 +++++ generated/google/apis/cloudbilling_v1.rb | 35 + .../google/apis/cloudbilling_v1/classes.rb | 169 + .../apis/cloudbilling_v1/representations.rb | 79 + .../google/apis/cloudbilling_v1/service.rb | 258 ++ generated/google/apis/clouddebugger_v2.rb | 41 + .../google/apis/clouddebugger_v2/classes.rb | 1004 +++++ .../apis/clouddebugger_v2/representations.rb | 410 ++ .../google/apis/clouddebugger_v2/service.rb | 370 ++ .../google/apis/cloudmonitoring_v2beta2.rb | 2 +- .../apis/cloudmonitoring_v2beta2/service.rb | 18 +- .../apis/cloudresourcemanager_v1beta1.rb | 5 +- .../cloudresourcemanager_v1beta1/classes.rb | 454 +-- .../representations.rb | 138 +- .../cloudresourcemanager_v1beta1/service.rb | 313 +- generated/google/apis/cloudtrace_v1.rb | 35 + .../google/apis/cloudtrace_v1/classes.rb | 184 + .../apis/cloudtrace_v1/representations.rb | 92 + .../google/apis/cloudtrace_v1/service.rb | 226 ++ .../google/apis/clouduseraccounts_beta.rb | 43 + .../apis/clouduseraccounts_beta/classes.rb | 823 ++++ .../clouduseraccounts_beta/representations.rb | 313 ++ .../apis/clouduseraccounts_beta/service.rb | 854 ++++ generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 1021 +++-- .../google/apis/compute_v1/representations.rb | 136 +- generated/google/apis/compute_v1/service.rb | 1361 +++++-- generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/classes.rb | 87 +- .../apis/container_v1/representations.rb | 12 + generated/google/apis/container_v1/service.rb | 103 +- generated/google/apis/content_v2.rb | 4 +- generated/google/apis/content_v2/classes.rb | 2231 +++++++++- .../google/apis/content_v2/representations.rb | 854 +++- generated/google/apis/content_v2/service.rb | 765 +++- generated/google/apis/coordinate_v1.rb | 2 +- .../google/apis/coordinate_v1/service.rb | 41 +- .../google/apis/customsearch_v1/service.rb | 3 +- generated/google/apis/datastore_v1beta2.rb | 2 +- .../google/apis/datastore_v1beta2/service.rb | 30 +- generated/google/apis/deploymentmanager_v2.rb | 44 + .../apis/deploymentmanager_v2/classes.rb | 1059 +++++ .../deploymentmanager_v2/representations.rb | 421 ++ .../apis/deploymentmanager_v2/service.rb | 797 ++++ .../google/apis/deploymentmanager_v2beta2.rb | 7 +- .../apis/deploymentmanager_v2beta2/classes.rb | 25 +- .../representations.rb | 3 + .../apis/deploymentmanager_v2beta2/service.rb | 41 +- generated/google/apis/dfareporting_v2_1.rb | 2 +- .../google/apis/dfareporting_v2_1/classes.rb | 43 +- .../google/apis/dfareporting_v2_1/service.rb | 585 +-- generated/google/apis/discovery_v1/classes.rb | 7 + .../apis/discovery_v1/representations.rb | 1 + generated/google/apis/discovery_v1/service.rb | 6 +- generated/google/apis/dns_v1.rb | 5 +- generated/google/apis/dns_v1/service.rb | 27 +- .../google/apis/doubleclickbidmanager_v1.rb | 2 +- .../apis/doubleclickbidmanager_v1/classes.rb | 11 +- .../representations.rb | 1 + .../apis/doubleclickbidmanager_v1/service.rb | 24 +- generated/google/apis/doubleclicksearch_v2.rb | 2 +- .../apis/doubleclicksearch_v2/classes.rb | 9 +- .../doubleclicksearch_v2/representations.rb | 1 + .../apis/doubleclicksearch_v2/service.rb | 36 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 80 +- .../google/apis/drive_v2/representations.rb | 14 + generated/google/apis/drive_v2/service.rb | 274 +- generated/google/apis/fitness_v1.rb | 2 +- generated/google/apis/fitness_v1/service.rb | 41 +- .../google/apis/fusiontables_v2/service.rb | 113 +- .../games_configuration_v1configuration.rb | 2 +- .../service.rb | 41 +- .../apis/games_management_v1management.rb | 37 + .../games_management_v1management/classes.rb | 524 +++ .../representations.rb | 231 ++ .../games_management_v1management/service.rb | 994 +++++ generated/google/apis/games_v1.rb | 2 +- generated/google/apis/games_v1/classes.rb | 12 + .../google/apis/games_v1/representations.rb | 2 + generated/google/apis/games_v1/service.rb | 166 +- generated/google/apis/gan_v1beta1/service.rb | 30 +- generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/genomics_v1/classes.rb | 402 +- .../apis/genomics_v1/representations.rb | 84 +- generated/google/apis/genomics_v1/service.rb | 560 ++- generated/google/apis/gmail_v1.rb | 5 +- generated/google/apis/gmail_v1/service.rb | 110 +- .../google/apis/groupsmigration_v1/service.rb | 5 +- .../google/apis/groupssettings_v1/service.rb | 9 +- generated/google/apis/identitytoolkit_v3.rb | 2 +- .../google/apis/identitytoolkit_v3/classes.rb | 125 + .../identitytoolkit_v3/representations.rb | 37 + .../google/apis/identitytoolkit_v3/service.rb | 68 +- generated/google/apis/licensing_v1/service.rb | 21 +- generated/google/apis/logging_v1beta3.rb | 20 +- .../google/apis/logging_v1beta3/classes.rb | 666 ++- .../apis/logging_v1beta3/representations.rb | 144 + .../google/apis/logging_v1beta3/service.rb | 539 ++- generated/google/apis/manager_v1beta2.rb | 3 + .../google/apis/manager_v1beta2/service.rb | 24 +- .../google/apis/mapsengine_v1/service.rb | 247 +- generated/google/apis/mirror_v1.rb | 2 +- generated/google/apis/mirror_v1/service.rb | 80 +- generated/google/apis/oauth2_v2.rb | 2 +- generated/google/apis/oauth2_v2/service.rb | 12 +- .../google/apis/pagespeedonline_v2/service.rb | 3 +- generated/google/apis/partners_v2.rb | 32 + generated/google/apis/partners_v2/classes.rb | 942 +++++ .../apis/partners_v2/representations.rb | 402 ++ generated/google/apis/partners_v2/service.rb | 400 ++ generated/google/apis/plus_domains_v1.rb | 2 +- .../google/apis/plus_domains_v1/classes.rb | 207 + .../apis/plus_domains_v1/representations.rb | 114 + .../google/apis/plus_domains_v1/service.rb | 62 +- generated/google/apis/plus_v1.rb | 2 +- generated/google/apis/plus_v1/classes.rb | 207 + .../google/apis/plus_v1/representations.rb | 114 + generated/google/apis/plus_v1/service.rb | 67 +- generated/google/apis/prediction_v1_6.rb | 2 +- .../google/apis/prediction_v1_6/classes.rb | 2 +- .../google/apis/prediction_v1_6/service.rb | 24 +- .../google/apis/proximitybeacon_v1beta1.rb | 31 + .../apis/proximitybeacon_v1beta1/classes.rb | 639 +++ .../representations.rb | 274 ++ .../apis/proximitybeacon_v1beta1/service.rb | 591 +++ generated/google/apis/pubsub_v1.rb | 37 + generated/google/apis/pubsub_v1/classes.rb | 614 +++ .../google/apis/pubsub_v1/representations.rb | 281 ++ generated/google/apis/pubsub_v1/service.rb | 774 ++++ generated/google/apis/pubsub_v1beta2.rb | 2 +- .../google/apis/pubsub_v1beta2/classes.rb | 361 +- .../apis/pubsub_v1beta2/representations.rb | 86 +- .../google/apis/pubsub_v1beta2/service.rb | 166 +- .../google/apis/qpx_express_v1/service.rb | 3 +- generated/google/apis/replicapool_v1beta2.rb | 3 + .../apis/replicapool_v1beta2/service.rb | 36 +- .../google/apis/replicapoolupdater_v1beta1.rb | 5 +- .../replicapoolupdater_v1beta1/classes.rb | 48 +- .../representations.rb | 16 + .../replicapoolupdater_v1beta1/service.rb | 76 +- generated/google/apis/reseller_v1.rb | 2 +- generated/google/apis/reseller_v1/classes.rb | 20 +- .../apis/reseller_v1/representations.rb | 1 + generated/google/apis/reseller_v1/service.rb | 46 +- .../google/apis/resourceviews_v1beta2.rb | 3 + .../apis/resourceviews_v1beta2/service.rb | 43 +- generated/google/apis/script_v1.rb | 61 + generated/google/apis/script_v1/classes.rb | 259 ++ .../google/apis/script_v1/representations.rb | 106 + generated/google/apis/script_v1/service.rb | 98 + generated/google/apis/site_verification_v1.rb | 2 +- .../apis/site_verification_v1/service.rb | 23 +- generated/google/apis/sqladmin_v1beta4.rb | 2 +- .../google/apis/sqladmin_v1beta4/classes.rb | 188 +- .../apis/sqladmin_v1beta4/representations.rb | 70 + .../google/apis/sqladmin_v1beta4/service.rb | 241 +- generated/google/apis/storage_v1.rb | 7 +- generated/google/apis/storage_v1/classes.rb | 51 +- .../google/apis/storage_v1/representations.rb | 18 + generated/google/apis/storage_v1/service.rb | 171 +- generated/google/apis/storagetransfer_v1.rb | 35 + .../google/apis/storagetransfer_v1/classes.rb | 1046 +++++ .../storagetransfer_v1/representations.rb | 370 ++ .../google/apis/storagetransfer_v1/service.rb | 473 +++ generated/google/apis/tagmanager_v1.rb | 2 +- .../google/apis/tagmanager_v1/classes.rb | 220 +- .../apis/tagmanager_v1/representations.rb | 84 +- .../google/apis/tagmanager_v1/service.rb | 389 +- .../google/apis/taskqueue_v1beta2/service.rb | 24 +- generated/google/apis/tasks_v1/service.rb | 42 +- generated/google/apis/translate_v2/service.rb | 9 +- .../google/apis/urlshortener_v1/service.rb | 9 +- generated/google/apis/webmasters_v3.rb | 6 +- .../google/apis/webmasters_v3/classes.rb | 8 +- .../google/apis/webmasters_v3/service.rb | 46 +- generated/google/apis/youtube_analytics_v1.rb | 2 +- .../apis/youtube_analytics_v1/service.rb | 30 +- generated/google/apis/youtube_v3.rb | 2 +- generated/google/apis/youtube_v3/classes.rb | 189 +- .../google/apis/youtube_v3/representations.rb | 2 + generated/google/apis/youtube_v3/service.rb | 324 +- generated/google/apis/youtubereporting_v1.rb | 38 + .../apis/youtubereporting_v1/classes.rb | 258 ++ .../youtubereporting_v1/representations.rb | 128 + .../apis/youtubereporting_v1/service.rb | 364 ++ script/generate | 19 +- 248 files changed, 40771 insertions(+), 6559 deletions(-) create mode 100644 generated/google/apis/admin_datatransfer_v1.rb create mode 100644 generated/google/apis/admin_datatransfer_v1/classes.rb create mode 100644 generated/google/apis/admin_datatransfer_v1/representations.rb create mode 100644 generated/google/apis/admin_datatransfer_v1/service.rb create mode 100644 generated/google/apis/appengine_v1beta4.rb create mode 100644 generated/google/apis/appengine_v1beta4/classes.rb create mode 100644 generated/google/apis/appengine_v1beta4/representations.rb create mode 100644 generated/google/apis/appengine_v1beta4/service.rb create mode 100644 generated/google/apis/classroom_v1.rb create mode 100644 generated/google/apis/classroom_v1/classes.rb create mode 100644 generated/google/apis/classroom_v1/representations.rb create mode 100644 generated/google/apis/classroom_v1/service.rb create mode 100644 generated/google/apis/cloudbilling_v1.rb create mode 100644 generated/google/apis/cloudbilling_v1/classes.rb create mode 100644 generated/google/apis/cloudbilling_v1/representations.rb create mode 100644 generated/google/apis/cloudbilling_v1/service.rb create mode 100644 generated/google/apis/clouddebugger_v2.rb create mode 100644 generated/google/apis/clouddebugger_v2/classes.rb create mode 100644 generated/google/apis/clouddebugger_v2/representations.rb create mode 100644 generated/google/apis/clouddebugger_v2/service.rb create mode 100644 generated/google/apis/cloudtrace_v1.rb create mode 100644 generated/google/apis/cloudtrace_v1/classes.rb create mode 100644 generated/google/apis/cloudtrace_v1/representations.rb create mode 100644 generated/google/apis/cloudtrace_v1/service.rb create mode 100644 generated/google/apis/clouduseraccounts_beta.rb create mode 100644 generated/google/apis/clouduseraccounts_beta/classes.rb create mode 100644 generated/google/apis/clouduseraccounts_beta/representations.rb create mode 100644 generated/google/apis/clouduseraccounts_beta/service.rb create mode 100644 generated/google/apis/deploymentmanager_v2.rb create mode 100644 generated/google/apis/deploymentmanager_v2/classes.rb create mode 100644 generated/google/apis/deploymentmanager_v2/representations.rb create mode 100644 generated/google/apis/deploymentmanager_v2/service.rb create mode 100644 generated/google/apis/games_management_v1management.rb create mode 100644 generated/google/apis/games_management_v1management/classes.rb create mode 100644 generated/google/apis/games_management_v1management/representations.rb create mode 100644 generated/google/apis/games_management_v1management/service.rb create mode 100644 generated/google/apis/partners_v2.rb create mode 100644 generated/google/apis/partners_v2/classes.rb create mode 100644 generated/google/apis/partners_v2/representations.rb create mode 100644 generated/google/apis/partners_v2/service.rb create mode 100644 generated/google/apis/proximitybeacon_v1beta1.rb create mode 100644 generated/google/apis/proximitybeacon_v1beta1/classes.rb create mode 100644 generated/google/apis/proximitybeacon_v1beta1/representations.rb create mode 100644 generated/google/apis/proximitybeacon_v1beta1/service.rb create mode 100644 generated/google/apis/pubsub_v1.rb create mode 100644 generated/google/apis/pubsub_v1/classes.rb create mode 100644 generated/google/apis/pubsub_v1/representations.rb create mode 100644 generated/google/apis/pubsub_v1/service.rb create mode 100644 generated/google/apis/script_v1.rb create mode 100644 generated/google/apis/script_v1/classes.rb create mode 100644 generated/google/apis/script_v1/representations.rb create mode 100644 generated/google/apis/script_v1/service.rb create mode 100644 generated/google/apis/storagetransfer_v1.rb create mode 100644 generated/google/apis/storagetransfer_v1/classes.rb create mode 100644 generated/google/apis/storagetransfer_v1/representations.rb create mode 100644 generated/google/apis/storagetransfer_v1/service.rb create mode 100644 generated/google/apis/youtubereporting_v1.rb create mode 100644 generated/google/apis/youtubereporting_v1/classes.rb create mode 100644 generated/google/apis/youtubereporting_v1/representations.rb create mode 100644 generated/google/apis/youtubereporting_v1/service.rb diff --git a/api_names.yaml b/api_names.yaml index 8e25931fb..aac2c9345 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -163,6 +163,7 @@ "/androidenterprise:v1/CollectionsListResponse": list_collections_response "/androidenterprise:v1/DevicesListResponse": list_devices_response "/androidenterprise:v1/EnterprisesListResponse": list_enterprises_response +"/androidenterprise:v1/EnterprisesSendTestPushNotificationResponse": send_test_push_notification_response "/androidenterprise:v1/EntitlementsListResponse": list_entitlements_response "/androidenterprise:v1/GroupLicenseUsersListResponse": list_group_license_users_response "/androidenterprise:v1/GroupLicensesListResponse": list_group_licenses_response @@ -317,6 +318,7 @@ "/books:v1/books.promooffer.accept": accept_promo_offer "/books:v1/books.promooffer.dismiss": dismiss_promo_offer "/books:v1/books.promooffer.get": get_promo_offer +"/books:v1/Seriesmembership": series_membership "/books:v1/books.volumes.associated.list": list_associated_volumes "/books:v1/books.volumes.mybooks.list": list_my_books "/books:v1/books.volumes.recommended.list": list_recommended_volumes @@ -508,6 +510,15 @@ "/content:v2/content.productstatuses.custombatch": batch_product_status "/content:v2/content.productstatuses.get": get_product_status "/content:v2/content.productstatuses.list": list_product_statuses +"/content:v2/content.orders.advancetestorder": advance_test_order +"/content:v2/content.orders.getbymerchantorderid": get_order_by_merchant_order_id +"/content:v2/content.orders.cancellineitem": cancel_order_line_item +"/content:v2/content.orders.createtestorder": create_test_order +"/content:v2/content.orders.custombatch": custom_order_batch +"/content:v2/content.orders.gettestordertemplate": get_test_order_template +"/content:v2/content.orders.updatemerchantorderid": update_merchant_order_id +"/content:v2/content.orders.updateshipment": update_order_shipment +"/content:v2/content.orders.returnlineitem": return_order_line_item "/coordinate:v1/CustomFieldDefListResponse": list_custom_field_def_response "/coordinate:v1/JobListResponse": list_job_response "/coordinate:v1/LocationListResponse": list_location_response @@ -517,6 +528,16 @@ "/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response "/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request "/datastore:v1beta2/BeginTransactionResponse": begin_transaction_response +"/deploymentmanager:v2/DeploymentsListResponse": list_deployments_response +"/deploymentmanager:v2/ManifestsListResponse": list_manifests_response +"/deploymentmanager:v2/OperationsListResponse": list_operations_response +"/deploymentmanager:v2/ResourcesListResponse": list_resources_response +"/deploymentmanager:v2/TypesListResponse": list_types_response +"/deploymentmanager:v2/DeploymentsListResponse": list_deployments_response +"/deploymentmanager:v2/ManifestsListResponse": list_manifests_response +"/deploymentmanager:v2/OperationsListResponse": list_operations_response +"/deploymentmanager:v2/ResourcesListResponse": list_resources_response +"/deploymentmanager:v2/TypesListResponse": list_types_response "/deploymentmanager:v2beta1/DeploymentsListResponse": list_deployments_response "/deploymentmanager:v2beta1/ManifestsListResponse": list_manifests_response "/deploymentmanager:v2beta1/OperationsListResponse": list_operations_response @@ -584,6 +605,7 @@ "/dfareporting:v2.1/dfareporting.placements.generatetags": generate_placement_tags "/discovery:v1/RestDescription/methods": api_methods "/discovery:v1/RestResource/methods": api_methods +"/discovery:v1/discovery.apis.getRest": get_rest_api "/dns:v1/ChangesListResponse": list_changes_response "/dns:v1/ManagedZonesListResponse": list_managed_zones_response "/dns:v1/ResourceRecordSetsListResponse": list_resource_record_sets_response @@ -686,6 +708,9 @@ "/genomics:v1/genomics.references.bases.list/start": start_position "/genomics:v1/genomics.referencesets.get": get_reference_set "/genomics:v1/genomics.streamingReadstore.streamreads": stream_reads +"/genomics:v1/genomics.variantsets.export": export_variant_set +"/genomics:v1/genomics.variantsets.search": search_variant_sets +"/genomics:v1/genomics.referencesets.search": search_reference_sets "/gmail:v1/gmail.users.getProfile": get_user_profile "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request @@ -710,6 +735,7 @@ "/identitytoolkit:v3/identitytoolkit.relyingparty.uploadAccount": upload_account "/identitytoolkit:v3/identitytoolkit.relyingparty.verifyAssertion": verify_assertion "/identitytoolkit:v3/identitytoolkit.relyingparty.verifyPassword": verify_password +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse": get_project_config_response "/licensing:v1/licensing.licenseAssignments.listForProduct": list_license_assignment_for_product "/licensing:v1/licensing.licenseAssignments.listForProductAndSku": list_license_assignment_for_product_and_sku "/logging:v1beta3/logging.projects.logServices.indexes.list": list_log_service_indexes @@ -726,6 +752,7 @@ "/logging:v1beta3/logging.projects.logs.sinks.get": get_log_sink "/logging:v1beta3/logging.projects.logs.sinks.list": list_log_sinks "/logging:v1beta3/logging.projects.logs.sinks.update": update_log_sink +"/logging:v1beta3/logging.projects.logs.entries.write": write_log_entries "/manager:v1beta2/DeploymentsListResponse": list_deployments_response "/manager:v1beta2/TemplatesListResponse": list_templates_response "/mapsengine:v1/AssetsListResponse": list_assets_response @@ -753,6 +780,24 @@ "/mapsengine:v1/RasterCollectionsRastersListResponse": list_raster_collections_rasters_response "/mapsengine:v1/RastersListResponse": list_rasters_response "/mapsengine:v1/TablesListResponse": list_tables_response +"/mapsengine:v1/mapsengine.layers.getPublished": get_published_layer +"/mapsengine:v1/mapsengine.layers.listPublished": list_published_layers +"/mapsengine:v1/mapsengine.layers.permissions.batchDelete": batch_delete_layer_permission +"/mapsengine:v1/mapsengine.layers.permissions.batchUpdate": batch_update_layer_permission +"/mapsengine:v1/mapsengine.maps.getPublished": get_published_map +"/mapsengine:v1/mapsengine.maps.permissions.batchDelete": batch_delete_map_permission +"/mapsengine:v1/mapsengine.maps.permissions.batchUpdate": batch_update_map_permission +"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchDelete": batch_delete_raster_collection_permission +"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchUpdate": batch_update_raster_collection_permission +"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchDelete": batch_delete_raster_collection_raster +"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchInsert": batch_insert_raster_collection_raster +"/mapsengine:v1/mapsengine.rasters.permissions.batchDelete": batch_delete_raster_permission +"/mapsengine:v1/mapsengine.rasters.permissions.batchUpdate": batch_update_raster_permission +"/mapsengine:v1/mapsengine.tables.features.batchDelete": batch_delete_table_feature +"/mapsengine:v1/mapsengine.tables.features.batchInsert": batch_insert_table_feature +"/mapsengine:v1/mapsengine.tables.features.batchPatch": batch_patch_table_feature +"/mapsengine:v1/mapsengine.tables.permissions.batchDelete": batch_delete_table_permission +"/mapsengine:v1/mapsengine.tables.permissions.batchUpdate": batch_update_table_permission "/mirror:v1/AttachmentsListResponse": list_attachments_response "/mirror:v1/ContactsListResponse": list_contacts_response "/mirror:v1/LocationsListResponse": list_locations_response @@ -775,20 +820,16 @@ "/prediction:v1.6/prediction.trainedmodels.list": list_trained_models "/prediction:v1.6/prediction.trainedmodels.predict": predict_trained_model "/prediction:v1.6/prediction.trainedmodels.update": update_trained_model -"/pubsub:v1beta2/PubsubMessage": message -"/pubsub:v1beta2/pubsub.projects.subscriptions.create": create_subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.delete": delete_subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.get": get_subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.list": list_subscriptions -"/pubsub:v1beta2/pubsub.projects.subscriptions.setIamPolicy": set_subscription_policy -"/pubsub:v1beta2/pubsub.projects.subscriptions.testIamPermissions": test_subscription_permissions -"/pubsub:v1beta2/pubsub.projects.topics.create": create_topic -"/pubsub:v1beta2/pubsub.projects.topics.delete": delete_topic -"/pubsub:v1beta2/pubsub.projects.topics.get": get_topic -"/pubsub:v1beta2/pubsub.projects.topics.list": list_topics -"/pubsub:v1beta2/pubsub.projects.topics.setIamPolicy": set_topic_policy -"/pubsub:v1beta2/pubsub.projects.topics.testIamPermissions": test_topic_permissions -"/pubsub:v1beta2/pubsub.projects.topics.subscriptions.list": list_topic_subscriptions +"/pubsub:v1/PubsubMessage": message +"/pubsub:v1/pubsub.projects.subscriptions.create": create_subscription +"/pubsub:v1/pubsub.projects.subscriptions.delete": delete_subscription +"/pubsub:v1/pubsub.projects.subscriptions.get": get_subscription +"/pubsub:v1/pubsub.projects.subscriptions.list": list_subscriptions +"/pubsub:v1/pubsub.projects.topics.create": create_topic +"/pubsub:v1/pubsub.projects.topics.delete": delete_topic +"/pubsub:v1/pubsub.projects.topics.get": get_topic +"/pubsub:v1/pubsub.projects.topics.list": list_topics +"/pubsub:v1/pubsub.projects.topics.subscriptions.list": list_topic_subscriptions "/qpxExpress:v1/TripsSearchRequest": search_trips_request "/qpxExpress:v1/TripsSearchResponse": search_trips_response "/replicapool:v1beta2/InstanceGroupManagersAbandonInstancesRequest": abandon_instances_request @@ -831,6 +872,8 @@ "/sqladmin:v1beta4/UsersListResponse": list_users_response "/storage:v1/Bucket/cors": cors_configurations "/storage:v1/Bucket/cors/cors_configuration/method": http_method +"/storagetransfer:v1/storagetransfer.getGoogleServiceAccount": get_google_service_account_v1 +"/storage:v1/storage.objects.watchAll": watch_all_objects "/tagmanager:v1/tagmanager.accounts.containers.create": create_container "/tagmanager:v1/tagmanager.accounts.containers.delete": delete_container "/tagmanager:v1/tagmanager.accounts.containers.get": get_container diff --git a/api_names_out.yaml b/api_names_out.yaml index b0f289919..2be39ee01 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -163,6 +163,7 @@ "/androidenterprise:v1/CollectionsListResponse": list_collections_response "/androidenterprise:v1/DevicesListResponse": list_devices_response "/androidenterprise:v1/EnterprisesListResponse": list_enterprises_response +"/androidenterprise:v1/EnterprisesSendTestPushNotificationResponse": send_test_push_notification_response "/androidenterprise:v1/EntitlementsListResponse": list_entitlements_response "/androidenterprise:v1/GroupLicenseUsersListResponse": list_group_license_users_response "/androidenterprise:v1/GroupLicensesListResponse": list_group_licenses_response @@ -317,6 +318,7 @@ "/books:v1/books.promooffer.accept": accept_promo_offer "/books:v1/books.promooffer.dismiss": dismiss_promo_offer "/books:v1/books.promooffer.get": get_promo_offer +"/books:v1/Seriesmembership": series_membership "/books:v1/books.volumes.associated.list": list_associated_volumes "/books:v1/books.volumes.mybooks.list": list_my_books "/books:v1/books.volumes.recommended.list": list_recommended_volumes @@ -490,6 +492,15 @@ "/content:v2/content.productstatuses.custombatch": batch_product_status "/content:v2/content.productstatuses.get": get_product_status "/content:v2/content.productstatuses.list": list_product_statuses +"/content:v2/content.orders.advancetestorder": advance_test_order +"/content:v2/content.orders.getbymerchantorderid": get_order_by_merchant_order_id +"/content:v2/content.orders.cancellineitem": cancel_order_line_item +"/content:v2/content.orders.createtestorder": create_test_order +"/content:v2/content.orders.custombatch": custom_order_batch +"/content:v2/content.orders.gettestordertemplate": get_test_order_template +"/content:v2/content.orders.updatemerchantorderid": update_merchant_order_id +"/content:v2/content.orders.updateshipment": update_order_shipment +"/content:v2/content.orders.returnlineitem": return_order_line_item "/coordinate:v1/CustomFieldDefListResponse": list_custom_field_def_response "/coordinate:v1/JobListResponse": list_job_response "/coordinate:v1/LocationListResponse": list_location_response @@ -499,6 +510,11 @@ "/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response "/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request "/datastore:v1beta2/BeginTransactionResponse": begin_transaction_response +"/deploymentmanager:v2/DeploymentsListResponse": list_deployments_response +"/deploymentmanager:v2/ManifestsListResponse": list_manifests_response +"/deploymentmanager:v2/OperationsListResponse": list_operations_response +"/deploymentmanager:v2/ResourcesListResponse": list_resources_response +"/deploymentmanager:v2/TypesListResponse": list_types_response "/deploymentmanager:v2beta1/DeploymentsListResponse": list_deployments_response "/deploymentmanager:v2beta1/ManifestsListResponse": list_manifests_response "/deploymentmanager:v2beta1/OperationsListResponse": list_operations_response @@ -566,6 +582,7 @@ "/dfareporting:v2.1/dfareporting.placements.generatetags": generate_placement_tags "/discovery:v1/RestDescription/methods": api_methods "/discovery:v1/RestResource/methods": api_methods +"/discovery:v1/discovery.apis.getRest": get_rest_api "/dns:v1/ChangesListResponse": list_changes_response "/dns:v1/ManagedZonesListResponse": list_managed_zones_response "/dns:v1/ResourceRecordSetsListResponse": list_resource_record_sets_response @@ -668,6 +685,9 @@ "/genomics:v1/genomics.references.bases.list/start": start_position "/genomics:v1/genomics.referencesets.get": get_reference_set "/genomics:v1/genomics.streamingReadstore.streamreads": stream_reads +"/genomics:v1/genomics.variantsets.export": export_variant_set +"/genomics:v1/genomics.variantsets.search": search_variant_sets +"/genomics:v1/genomics.referencesets.search": search_reference_sets "/gmail:v1/gmail.users.getProfile": get_user_profile "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request @@ -692,6 +712,7 @@ "/identitytoolkit:v3/identitytoolkit.relyingparty.uploadAccount": upload_account "/identitytoolkit:v3/identitytoolkit.relyingparty.verifyAssertion": verify_assertion "/identitytoolkit:v3/identitytoolkit.relyingparty.verifyPassword": verify_password +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse": get_project_config_response "/licensing:v1/licensing.licenseAssignments.listForProduct": list_license_assignment_for_product "/licensing:v1/licensing.licenseAssignments.listForProductAndSku": list_license_assignment_for_product_and_sku "/logging:v1beta3/logging.projects.logServices.indexes.list": list_log_service_indexes @@ -708,6 +729,7 @@ "/logging:v1beta3/logging.projects.logs.sinks.get": get_log_sink "/logging:v1beta3/logging.projects.logs.sinks.list": list_log_sinks "/logging:v1beta3/logging.projects.logs.sinks.update": update_log_sink +"/logging:v1beta3/logging.projects.logs.entries.write": write_log_entries "/manager:v1beta2/DeploymentsListResponse": list_deployments_response "/manager:v1beta2/TemplatesListResponse": list_templates_response "/mapsengine:v1/AssetsListResponse": list_assets_response @@ -735,6 +757,24 @@ "/mapsengine:v1/RasterCollectionsRastersListResponse": list_raster_collections_rasters_response "/mapsengine:v1/RastersListResponse": list_rasters_response "/mapsengine:v1/TablesListResponse": list_tables_response +"/mapsengine:v1/mapsengine.layers.getPublished": get_published_layer +"/mapsengine:v1/mapsengine.layers.listPublished": list_published_layers +"/mapsengine:v1/mapsengine.layers.permissions.batchDelete": batch_delete_layer_permission +"/mapsengine:v1/mapsengine.layers.permissions.batchUpdate": batch_update_layer_permission +"/mapsengine:v1/mapsengine.maps.getPublished": get_published_map +"/mapsengine:v1/mapsengine.maps.permissions.batchDelete": batch_delete_map_permission +"/mapsengine:v1/mapsengine.maps.permissions.batchUpdate": batch_update_map_permission +"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchDelete": batch_delete_raster_collection_permission +"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchUpdate": batch_update_raster_collection_permission +"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchDelete": batch_delete_raster_collection_raster +"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchInsert": batch_insert_raster_collection_raster +"/mapsengine:v1/mapsengine.rasters.permissions.batchDelete": batch_delete_raster_permission +"/mapsengine:v1/mapsengine.rasters.permissions.batchUpdate": batch_update_raster_permission +"/mapsengine:v1/mapsengine.tables.features.batchDelete": batch_delete_table_feature +"/mapsengine:v1/mapsengine.tables.features.batchInsert": batch_insert_table_feature +"/mapsengine:v1/mapsengine.tables.features.batchPatch": batch_patch_table_feature +"/mapsengine:v1/mapsengine.tables.permissions.batchDelete": batch_delete_table_permission +"/mapsengine:v1/mapsengine.tables.permissions.batchUpdate": batch_update_table_permission "/mirror:v1/AttachmentsListResponse": list_attachments_response "/mirror:v1/ContactsListResponse": list_contacts_response "/mirror:v1/LocationsListResponse": list_locations_response @@ -757,20 +797,16 @@ "/prediction:v1.6/prediction.trainedmodels.list": list_trained_models "/prediction:v1.6/prediction.trainedmodels.predict": predict_trained_model "/prediction:v1.6/prediction.trainedmodels.update": update_trained_model -"/pubsub:v1beta2/PubsubMessage": message -"/pubsub:v1beta2/pubsub.projects.subscriptions.create": create_subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.delete": delete_subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.get": get_subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.list": list_subscriptions -"/pubsub:v1beta2/pubsub.projects.subscriptions.setIamPolicy": set_subscription_policy -"/pubsub:v1beta2/pubsub.projects.subscriptions.testIamPermissions": test_subscription_permissions -"/pubsub:v1beta2/pubsub.projects.topics.create": create_topic -"/pubsub:v1beta2/pubsub.projects.topics.delete": delete_topic -"/pubsub:v1beta2/pubsub.projects.topics.get": get_topic -"/pubsub:v1beta2/pubsub.projects.topics.list": list_topics -"/pubsub:v1beta2/pubsub.projects.topics.setIamPolicy": set_topic_policy -"/pubsub:v1beta2/pubsub.projects.topics.testIamPermissions": test_topic_permissions -"/pubsub:v1beta2/pubsub.projects.topics.subscriptions.list": list_topic_subscriptions +"/pubsub:v1/PubsubMessage": message +"/pubsub:v1/pubsub.projects.subscriptions.create": create_subscription +"/pubsub:v1/pubsub.projects.subscriptions.delete": delete_subscription +"/pubsub:v1/pubsub.projects.subscriptions.get": get_subscription +"/pubsub:v1/pubsub.projects.subscriptions.list": list_subscriptions +"/pubsub:v1/pubsub.projects.topics.create": create_topic +"/pubsub:v1/pubsub.projects.topics.delete": delete_topic +"/pubsub:v1/pubsub.projects.topics.get": get_topic +"/pubsub:v1/pubsub.projects.topics.list": list_topics +"/pubsub:v1/pubsub.projects.topics.subscriptions.list": list_topic_subscriptions "/qpxExpress:v1/TripsSearchRequest": search_trips_request "/qpxExpress:v1/TripsSearchResponse": search_trips_response "/replicapool:v1beta2/InstanceGroupManagersAbandonInstancesRequest": abandon_instances_request @@ -813,6 +849,8 @@ "/sqladmin:v1beta4/UsersListResponse": list_users_response "/storage:v1/Bucket/cors": cors_configurations "/storage:v1/Bucket/cors/cors_configuration/method": http_method +"/storagetransfer:v1/storagetransfer.getGoogleServiceAccount": get_google_service_account_v1 +"/storage:v1/storage.objects.watchAll": watch_all_objects "/tagmanager:v1/tagmanager.accounts.containers.create": create_container "/tagmanager:v1/tagmanager.accounts.containers.delete": delete_container "/tagmanager:v1/tagmanager.accounts.containers.get": get_container @@ -993,6 +1031,7 @@ "/adexchangebuyer:v1.3/Creative/advertiserId/advertiser_id": advertiser_id "/adexchangebuyer:v1.3/Creative/advertiserName": advertiser_name "/adexchangebuyer:v1.3/Creative/agencyId": agency_id +"/adexchangebuyer:v1.3/Creative/apiUploadTimestamp": api_upload_timestamp "/adexchangebuyer:v1.3/Creative/attribute": attribute "/adexchangebuyer:v1.3/Creative/attribute/attribute": attribute "/adexchangebuyer:v1.3/Creative/buyerCreativeId": buyer_creative_id @@ -1015,7 +1054,32 @@ "/adexchangebuyer:v1.3/Creative/filteringReasons/reasons/reason/filteringCount": filtering_count "/adexchangebuyer:v1.3/Creative/filteringReasons/reasons/reason/filteringStatus": filtering_status "/adexchangebuyer:v1.3/Creative/height": height +"/adexchangebuyer:v1.3/Creative/impressionTrackingUrl": impression_tracking_url +"/adexchangebuyer:v1.3/Creative/impressionTrackingUrl/impression_tracking_url": impression_tracking_url "/adexchangebuyer:v1.3/Creative/kind": kind +"/adexchangebuyer:v1.3/Creative/nativeAd": native_ad +"/adexchangebuyer:v1.3/Creative/nativeAd/advertiser": advertiser +"/adexchangebuyer:v1.3/Creative/nativeAd/appIcon": app_icon +"/adexchangebuyer:v1.3/Creative/nativeAd/appIcon/height": height +"/adexchangebuyer:v1.3/Creative/nativeAd/appIcon/url": url +"/adexchangebuyer:v1.3/Creative/nativeAd/appIcon/width": width +"/adexchangebuyer:v1.3/Creative/nativeAd/body": body +"/adexchangebuyer:v1.3/Creative/nativeAd/callToAction": call_to_action +"/adexchangebuyer:v1.3/Creative/nativeAd/clickTrackingUrl": click_tracking_url +"/adexchangebuyer:v1.3/Creative/nativeAd/headline": headline +"/adexchangebuyer:v1.3/Creative/nativeAd/image": image +"/adexchangebuyer:v1.3/Creative/nativeAd/image/height": height +"/adexchangebuyer:v1.3/Creative/nativeAd/image/url": url +"/adexchangebuyer:v1.3/Creative/nativeAd/image/width": width +"/adexchangebuyer:v1.3/Creative/nativeAd/impressionTrackingUrl": impression_tracking_url +"/adexchangebuyer:v1.3/Creative/nativeAd/impressionTrackingUrl/impression_tracking_url": impression_tracking_url +"/adexchangebuyer:v1.3/Creative/nativeAd/logo": logo +"/adexchangebuyer:v1.3/Creative/nativeAd/logo/height": height +"/adexchangebuyer:v1.3/Creative/nativeAd/logo/url": url +"/adexchangebuyer:v1.3/Creative/nativeAd/logo/width": width +"/adexchangebuyer:v1.3/Creative/nativeAd/price": price +"/adexchangebuyer:v1.3/Creative/nativeAd/starRating": star_rating +"/adexchangebuyer:v1.3/Creative/nativeAd/store": store "/adexchangebuyer:v1.3/Creative/productCategories": product_categories "/adexchangebuyer:v1.3/Creative/productCategories/product_category": product_category "/adexchangebuyer:v1.3/Creative/restrictedCategories": restricted_categories @@ -1025,6 +1089,7 @@ "/adexchangebuyer:v1.3/Creative/status": status "/adexchangebuyer:v1.3/Creative/vendorType": vendor_type "/adexchangebuyer:v1.3/Creative/vendorType/vendor_type": vendor_type +"/adexchangebuyer:v1.3/Creative/version": version "/adexchangebuyer:v1.3/Creative/videoURL": video_url "/adexchangebuyer:v1.3/Creative/width": width "/adexchangebuyer:v1.3/CreativesList": creatives_list @@ -1036,6 +1101,7 @@ "/adexchangebuyer:v1.3/DirectDeal/accountId": account_id "/adexchangebuyer:v1.3/DirectDeal/advertiser": advertiser "/adexchangebuyer:v1.3/DirectDeal/currencyCode": currency_code +"/adexchangebuyer:v1.3/DirectDeal/dealTier": deal_tier "/adexchangebuyer:v1.3/DirectDeal/endTime": end_time "/adexchangebuyer:v1.3/DirectDeal/fixedCpm": fixed_cpm "/adexchangebuyer:v1.3/DirectDeal/id": id @@ -1294,6 +1360,64 @@ "/adexchangeseller:v2.0/UrlChannels/items/item": item "/adexchangeseller:v2.0/UrlChannels/kind": kind "/adexchangeseller:v2.0/UrlChannels/nextPageToken": next_page_token +"/admin:datatransfer_v1/fields": fields +"/admin:datatransfer_v1/key": key +"/admin:datatransfer_v1/quotaUser": quota_user +"/admin:datatransfer_v1/userIp": user_ip +"/admin:datatransfer_v1/datatransfer.applications.get": get_application +"/admin:datatransfer_v1/datatransfer.applications.get/applicationId": application_id +"/admin:datatransfer_v1/datatransfer.applications.list": list_applications +"/admin:datatransfer_v1/datatransfer.applications.list/customerId": customer_id +"/admin:datatransfer_v1/datatransfer.applications.list/maxResults": max_results +"/admin:datatransfer_v1/datatransfer.applications.list/pageToken": page_token +"/admin:datatransfer_v1/datatransfer.transfers.get": get_transfer +"/admin:datatransfer_v1/datatransfer.transfers.get/dataTransferId": data_transfer_id +"/admin:datatransfer_v1/datatransfer.transfers.insert": insert_transfer +"/admin:datatransfer_v1/datatransfer.transfers.list": list_transfers +"/admin:datatransfer_v1/datatransfer.transfers.list/customerId": customer_id +"/admin:datatransfer_v1/datatransfer.transfers.list/maxResults": max_results +"/admin:datatransfer_v1/datatransfer.transfers.list/newOwnerUserId": new_owner_user_id +"/admin:datatransfer_v1/datatransfer.transfers.list/oldOwnerUserId": old_owner_user_id +"/admin:datatransfer_v1/datatransfer.transfers.list/pageToken": page_token +"/admin:datatransfer_v1/datatransfer.transfers.list/status": status +"/admin:datatransfer_v1/Application": application +"/admin:datatransfer_v1/Application/etag": etag +"/admin:datatransfer_v1/Application/id": id +"/admin:datatransfer_v1/Application/kind": kind +"/admin:datatransfer_v1/Application/name": name +"/admin:datatransfer_v1/Application/transferParams": transfer_params +"/admin:datatransfer_v1/Application/transferParams/transfer_param": transfer_param +"/admin:datatransfer_v1/ApplicationDataTransfer": application_data_transfer +"/admin:datatransfer_v1/ApplicationDataTransfer/applicationId": application_id +"/admin:datatransfer_v1/ApplicationDataTransfer/applicationTransferParams": application_transfer_params +"/admin:datatransfer_v1/ApplicationDataTransfer/applicationTransferParams/application_transfer_param": application_transfer_param +"/admin:datatransfer_v1/ApplicationDataTransfer/applicationTransferStatus": application_transfer_status +"/admin:datatransfer_v1/ApplicationTransferParam": application_transfer_param +"/admin:datatransfer_v1/ApplicationTransferParam/key": key +"/admin:datatransfer_v1/ApplicationTransferParam/value": value +"/admin:datatransfer_v1/ApplicationTransferParam/value/value": value +"/admin:datatransfer_v1/ApplicationsListResponse": applications_list_response +"/admin:datatransfer_v1/ApplicationsListResponse/applications": applications +"/admin:datatransfer_v1/ApplicationsListResponse/applications/application": application +"/admin:datatransfer_v1/ApplicationsListResponse/etag": etag +"/admin:datatransfer_v1/ApplicationsListResponse/kind": kind +"/admin:datatransfer_v1/ApplicationsListResponse/nextPageToken": next_page_token +"/admin:datatransfer_v1/DataTransfer": data_transfer +"/admin:datatransfer_v1/DataTransfer/applicationDataTransfers": application_data_transfers +"/admin:datatransfer_v1/DataTransfer/applicationDataTransfers/application_data_transfer": application_data_transfer +"/admin:datatransfer_v1/DataTransfer/etag": etag +"/admin:datatransfer_v1/DataTransfer/id": id +"/admin:datatransfer_v1/DataTransfer/kind": kind +"/admin:datatransfer_v1/DataTransfer/newOwnerUserId": new_owner_user_id +"/admin:datatransfer_v1/DataTransfer/oldOwnerUserId": old_owner_user_id +"/admin:datatransfer_v1/DataTransfer/overallTransferStatusCode": overall_transfer_status_code +"/admin:datatransfer_v1/DataTransfer/requestTime": request_time +"/admin:datatransfer_v1/DataTransfersListResponse": data_transfers_list_response +"/admin:datatransfer_v1/DataTransfersListResponse/dataTransfers": data_transfers +"/admin:datatransfer_v1/DataTransfersListResponse/dataTransfers/data_transfer": data_transfer +"/admin:datatransfer_v1/DataTransfersListResponse/etag": etag +"/admin:datatransfer_v1/DataTransfersListResponse/kind": kind +"/admin:datatransfer_v1/DataTransfersListResponse/nextPageToken": next_page_token "/admin:directory_v1/fields": fields "/admin:directory_v1/key": key "/admin:directory_v1/quotaUser": quota_user @@ -1323,6 +1447,33 @@ "/admin:directory_v1/directory.chromeosdevices.update/customerId": customer_id "/admin:directory_v1/directory.chromeosdevices.update/deviceId": device_id "/admin:directory_v1/directory.chromeosdevices.update/projection": projection +"/admin:directory_v1/directory.customers.get": get_customer +"/admin:directory_v1/directory.customers.get/customerKey": customer_key +"/admin:directory_v1/directory.customers.patch": patch_customer +"/admin:directory_v1/directory.customers.patch/customerKey": customer_key +"/admin:directory_v1/directory.customers.update": update_customer +"/admin:directory_v1/directory.customers.update/customerKey": customer_key +"/admin:directory_v1/directory.domainAliases.delete": delete_domain_alias +"/admin:directory_v1/directory.domainAliases.delete/customer": customer +"/admin:directory_v1/directory.domainAliases.delete/domainAliasName": domain_alias_name +"/admin:directory_v1/directory.domainAliases.get": get_domain_alias +"/admin:directory_v1/directory.domainAliases.get/customer": customer +"/admin:directory_v1/directory.domainAliases.get/domainAliasName": domain_alias_name +"/admin:directory_v1/directory.domainAliases.insert": insert_domain_alias +"/admin:directory_v1/directory.domainAliases.insert/customer": customer +"/admin:directory_v1/directory.domainAliases.list": list_domain_aliases +"/admin:directory_v1/directory.domainAliases.list/customer": customer +"/admin:directory_v1/directory.domainAliases.list/parentDomainName": parent_domain_name +"/admin:directory_v1/directory.domains.delete": delete_domain +"/admin:directory_v1/directory.domains.delete/customer": customer +"/admin:directory_v1/directory.domains.delete/domainName": domain_name +"/admin:directory_v1/directory.domains.get": get_domain +"/admin:directory_v1/directory.domains.get/customer": customer +"/admin:directory_v1/directory.domains.get/domainName": domain_name +"/admin:directory_v1/directory.domains.insert": insert_domain +"/admin:directory_v1/directory.domains.insert/customer": customer +"/admin:directory_v1/directory.domains.list": list_domains +"/admin:directory_v1/directory.domains.list/customer": customer "/admin:directory_v1/directory.groups.delete": delete_group "/admin:directory_v1/directory.groups.delete/groupKey": group_key "/admin:directory_v1/directory.groups.get": get_group @@ -1406,6 +1557,40 @@ "/admin:directory_v1/directory.orgunits.patch/orgUnitPath": org_unit_path "/admin:directory_v1/directory.orgunits.update/customerId": customer_id "/admin:directory_v1/directory.orgunits.update/orgUnitPath": org_unit_path +"/admin:directory_v1/directory.privileges.list": list_privileges +"/admin:directory_v1/directory.privileges.list/customer": customer +"/admin:directory_v1/directory.roleAssignments.delete": delete_role_assignment +"/admin:directory_v1/directory.roleAssignments.delete/customer": customer +"/admin:directory_v1/directory.roleAssignments.delete/roleAssignmentId": role_assignment_id +"/admin:directory_v1/directory.roleAssignments.get": get_role_assignment +"/admin:directory_v1/directory.roleAssignments.get/customer": customer +"/admin:directory_v1/directory.roleAssignments.get/roleAssignmentId": role_assignment_id +"/admin:directory_v1/directory.roleAssignments.insert": insert_role_assignment +"/admin:directory_v1/directory.roleAssignments.insert/customer": customer +"/admin:directory_v1/directory.roleAssignments.list": list_role_assignments +"/admin:directory_v1/directory.roleAssignments.list/customer": customer +"/admin:directory_v1/directory.roleAssignments.list/maxResults": max_results +"/admin:directory_v1/directory.roleAssignments.list/pageToken": page_token +"/admin:directory_v1/directory.roleAssignments.list/roleId": role_id +"/admin:directory_v1/directory.roleAssignments.list/userKey": user_key +"/admin:directory_v1/directory.roles.delete": delete_role +"/admin:directory_v1/directory.roles.delete/customer": customer +"/admin:directory_v1/directory.roles.delete/roleId": role_id +"/admin:directory_v1/directory.roles.get": get_role +"/admin:directory_v1/directory.roles.get/customer": customer +"/admin:directory_v1/directory.roles.get/roleId": role_id +"/admin:directory_v1/directory.roles.insert": insert_role +"/admin:directory_v1/directory.roles.insert/customer": customer +"/admin:directory_v1/directory.roles.list": list_roles +"/admin:directory_v1/directory.roles.list/customer": customer +"/admin:directory_v1/directory.roles.list/maxResults": max_results +"/admin:directory_v1/directory.roles.list/pageToken": page_token +"/admin:directory_v1/directory.roles.patch": patch_role +"/admin:directory_v1/directory.roles.patch/customer": customer +"/admin:directory_v1/directory.roles.patch/roleId": role_id +"/admin:directory_v1/directory.roles.update": update_role +"/admin:directory_v1/directory.roles.update/customer": customer +"/admin:directory_v1/directory.roles.update/roleId": role_id "/admin:directory_v1/directory.schemas.delete": delete_schema "/admin:directory_v1/directory.schemas.delete/customerId": customer_id "/admin:directory_v1/directory.schemas.delete/schemaKey": schema_key @@ -1451,7 +1636,7 @@ "/admin:directory_v1/directory.users.list/showDeleted": show_deleted "/admin:directory_v1/directory.users.list/sortOrder": sort_order "/admin:directory_v1/directory.users.list/viewType": view_type -"/admin:directory_v1/directory.users.makeAdmin": make_admin_user +"/admin:directory_v1/directory.users.makeAdmin": make_user_admin "/admin:directory_v1/directory.users.makeAdmin/userKey": user_key "/admin:directory_v1/directory.users.patch": patch_user "/admin:directory_v1/directory.users.patch/userKey": user_key @@ -1570,6 +1755,52 @@ "/admin:directory_v1/ChromeOsDevices/etag": etag "/admin:directory_v1/ChromeOsDevices/kind": kind "/admin:directory_v1/ChromeOsDevices/nextPageToken": next_page_token +"/admin:directory_v1/Customer": customer +"/admin:directory_v1/Customer/alternateEmail": alternate_email +"/admin:directory_v1/Customer/customerCreationTime": customer_creation_time +"/admin:directory_v1/Customer/customerDomain": customer_domain +"/admin:directory_v1/Customer/etag": etag +"/admin:directory_v1/Customer/id": id +"/admin:directory_v1/Customer/kind": kind +"/admin:directory_v1/Customer/language": language +"/admin:directory_v1/Customer/phoneNumber": phone_number +"/admin:directory_v1/Customer/postalAddress": postal_address +"/admin:directory_v1/CustomerPostalAddress": customer_postal_address +"/admin:directory_v1/CustomerPostalAddress/addressLine1": address_line1 +"/admin:directory_v1/CustomerPostalAddress/addressLine2": address_line2 +"/admin:directory_v1/CustomerPostalAddress/addressLine3": address_line3 +"/admin:directory_v1/CustomerPostalAddress/contactName": contact_name +"/admin:directory_v1/CustomerPostalAddress/countryCode": country_code +"/admin:directory_v1/CustomerPostalAddress/locality": locality +"/admin:directory_v1/CustomerPostalAddress/organizationName": organization_name +"/admin:directory_v1/CustomerPostalAddress/postalCode": postal_code +"/admin:directory_v1/CustomerPostalAddress/region": region +"/admin:directory_v1/DomainAlias": domain_alias +"/admin:directory_v1/DomainAlias/creationTime": creation_time +"/admin:directory_v1/DomainAlias/domainAliasName": domain_alias_name +"/admin:directory_v1/DomainAlias/etag": etag +"/admin:directory_v1/DomainAlias/kind": kind +"/admin:directory_v1/DomainAlias/parentDomainName": parent_domain_name +"/admin:directory_v1/DomainAlias/verified": verified +"/admin:directory_v1/DomainAliases": domain_aliases +"/admin:directory_v1/DomainAliases/domainAliases": domain_aliases +"/admin:directory_v1/DomainAliases/domainAliases/domain_alias": domain_alias +"/admin:directory_v1/DomainAliases/etag": etag +"/admin:directory_v1/DomainAliases/kind": kind +"/admin:directory_v1/Domains": domains +"/admin:directory_v1/Domains/creationTime": creation_time +"/admin:directory_v1/Domains/domainAliases": domain_aliases +"/admin:directory_v1/Domains/domainAliases/domain_alias": domain_alias +"/admin:directory_v1/Domains/domainName": domain_name +"/admin:directory_v1/Domains/etag": etag +"/admin:directory_v1/Domains/isPrimary": is_primary +"/admin:directory_v1/Domains/kind": kind +"/admin:directory_v1/Domains/verified": verified +"/admin:directory_v1/Domains2": domains2 +"/admin:directory_v1/Domains2/domains": domains +"/admin:directory_v1/Domains2/domains/domain": domain +"/admin:directory_v1/Domains2/etag": etag +"/admin:directory_v1/Domains2/kind": kind "/admin:directory_v1/Group": group "/admin:directory_v1/Group/adminCreated": admin_created "/admin:directory_v1/Group/aliases": aliases @@ -1683,6 +1914,52 @@ "/admin:directory_v1/OrgUnits/kind": kind "/admin:directory_v1/OrgUnits/organizationUnits": organization_units "/admin:directory_v1/OrgUnits/organizationUnits/organization_unit": organization_unit +"/admin:directory_v1/Privilege": privilege +"/admin:directory_v1/Privilege/childPrivileges": child_privileges +"/admin:directory_v1/Privilege/childPrivileges/child_privilege": child_privilege +"/admin:directory_v1/Privilege/etag": etag +"/admin:directory_v1/Privilege/isOuScopable": is_ou_scopable +"/admin:directory_v1/Privilege/kind": kind +"/admin:directory_v1/Privilege/privilegeName": privilege_name +"/admin:directory_v1/Privilege/serviceId": service_id +"/admin:directory_v1/Privilege/serviceName": service_name +"/admin:directory_v1/Privileges": privileges +"/admin:directory_v1/Privileges/etag": etag +"/admin:directory_v1/Privileges/items": items +"/admin:directory_v1/Privileges/items/item": item +"/admin:directory_v1/Privileges/kind": kind +"/admin:directory_v1/Role": role +"/admin:directory_v1/Role/etag": etag +"/admin:directory_v1/Role/isSuperAdminRole": is_super_admin_role +"/admin:directory_v1/Role/isSystemRole": is_system_role +"/admin:directory_v1/Role/kind": kind +"/admin:directory_v1/Role/roleDescription": role_description +"/admin:directory_v1/Role/roleId": role_id +"/admin:directory_v1/Role/roleName": role_name +"/admin:directory_v1/Role/rolePrivileges": role_privileges +"/admin:directory_v1/Role/rolePrivileges/role_privilege": role_privilege +"/admin:directory_v1/Role/rolePrivileges/role_privilege/privilegeName": privilege_name +"/admin:directory_v1/Role/rolePrivileges/role_privilege/serviceId": service_id +"/admin:directory_v1/RoleAssignment": role_assignment +"/admin:directory_v1/RoleAssignment/assignedTo": assigned_to +"/admin:directory_v1/RoleAssignment/etag": etag +"/admin:directory_v1/RoleAssignment/kind": kind +"/admin:directory_v1/RoleAssignment/orgUnitId": org_unit_id +"/admin:directory_v1/RoleAssignment/roleAssignmentId": role_assignment_id +"/admin:directory_v1/RoleAssignment/roleId": role_id +"/admin:directory_v1/RoleAssignment/scopeType": scope_type +"/admin:directory_v1/RoleAssignments": role_assignments +"/admin:directory_v1/RoleAssignments/etag": etag +"/admin:directory_v1/RoleAssignments/items": items +"/admin:directory_v1/RoleAssignments/items/item": item +"/admin:directory_v1/RoleAssignments/kind": kind +"/admin:directory_v1/RoleAssignments/nextPageToken": next_page_token +"/admin:directory_v1/Roles": roles +"/admin:directory_v1/Roles/etag": etag +"/admin:directory_v1/Roles/items": items +"/admin:directory_v1/Roles/items/item": item +"/admin:directory_v1/Roles/kind": kind +"/admin:directory_v1/Roles/nextPageToken": next_page_token "/admin:directory_v1/Schema": schema "/admin:directory_v1/Schema/etag": etag "/admin:directory_v1/Schema/fields": fields @@ -2111,6 +2388,7 @@ "/adsense:v1.4/adsense.urlchannels.list/maxResults": max_results "/adsense:v1.4/adsense.urlchannels.list/pageToken": page_token "/adsense:v1.4/Account": account +"/adsense:v1.4/Account/creation_time": creation_time "/adsense:v1.4/Account/id": id "/adsense:v1.4/Account/kind": kind "/adsense:v1.4/Account/name": name @@ -2486,6 +2764,7 @@ "/analytics:v3/analytics.data.ga.get/end-date": end_date "/analytics:v3/analytics.data.ga.get/filters": filters "/analytics:v3/analytics.data.ga.get/ids": ids +"/analytics:v3/analytics.data.ga.get/include-empty-rows": include_empty_rows "/analytics:v3/analytics.data.ga.get/max-results": max_results "/analytics:v3/analytics.data.ga.get/metrics": metrics "/analytics:v3/analytics.data.ga.get/output": output @@ -3465,14 +3744,14 @@ "/androidenterprise:v1/androidenterprise.devices.get/deviceId": device_id "/androidenterprise:v1/androidenterprise.devices.get/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.devices.get/userId": user_id -"/androidenterprise:v1/androidenterprise.devices.getState": get_state_device +"/androidenterprise:v1/androidenterprise.devices.getState": get_device_state "/androidenterprise:v1/androidenterprise.devices.getState/deviceId": device_id "/androidenterprise:v1/androidenterprise.devices.getState/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.devices.getState/userId": user_id "/androidenterprise:v1/androidenterprise.devices.list": list_devices "/androidenterprise:v1/androidenterprise.devices.list/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.devices.list/userId": user_id -"/androidenterprise:v1/androidenterprise.devices.setState": set_state_device +"/androidenterprise:v1/androidenterprise.devices.setState": set_device_state "/androidenterprise:v1/androidenterprise.devices.setState/deviceId": device_id "/androidenterprise:v1/androidenterprise.devices.setState/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.devices.setState/userId": user_id @@ -3486,7 +3765,9 @@ "/androidenterprise:v1/androidenterprise.enterprises.insert/token": token "/androidenterprise:v1/androidenterprise.enterprises.list": list_enterprises "/androidenterprise:v1/androidenterprise.enterprises.list/domain": domain -"/androidenterprise:v1/androidenterprise.enterprises.setAccount": set_account_enterprise +"/androidenterprise:v1/androidenterprise.enterprises.sendTestPushNotification": send_enterprise_test_push_notification +"/androidenterprise:v1/androidenterprise.enterprises.sendTestPushNotification/enterpriseId": enterprise_id +"/androidenterprise:v1/androidenterprise.enterprises.setAccount": set_enterprise_account "/androidenterprise:v1/androidenterprise.enterprises.setAccount/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.enterprises.unenroll": unenroll_enterprise "/androidenterprise:v1/androidenterprise.enterprises.unenroll/enterpriseId": enterprise_id @@ -3565,12 +3846,19 @@ "/androidenterprise:v1/androidenterprise.users.get": get_user "/androidenterprise:v1/androidenterprise.users.get/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.users.get/userId": user_id +"/androidenterprise:v1/androidenterprise.users.getAvailableProductSet": get_user_available_product_set +"/androidenterprise:v1/androidenterprise.users.getAvailableProductSet/enterpriseId": enterprise_id +"/androidenterprise:v1/androidenterprise.users.getAvailableProductSet/userId": user_id "/androidenterprise:v1/androidenterprise.users.list": list_users "/androidenterprise:v1/androidenterprise.users.list/email": email "/androidenterprise:v1/androidenterprise.users.list/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.users.revokeToken/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.users.revokeToken/userId": user_id +"/androidenterprise:v1/androidenterprise.users.setAvailableProductSet": set_user_available_product_set +"/androidenterprise:v1/androidenterprise.users.setAvailableProductSet/enterpriseId": enterprise_id +"/androidenterprise:v1/androidenterprise.users.setAvailableProductSet/userId": user_id "/androidenterprise:v1/AppRestrictionsSchema": app_restrictions_schema +"/androidenterprise:v1/AppRestrictionsSchema/kind": kind "/androidenterprise:v1/AppRestrictionsSchema/restrictions": restrictions "/androidenterprise:v1/AppRestrictionsSchema/restrictions/restriction": restriction "/androidenterprise:v1/AppRestrictionsSchemaRestriction": app_restrictions_schema_restriction @@ -3630,6 +3918,8 @@ "/androidenterprise:v1/EnterprisesListResponse/enterprise": enterprise "/androidenterprise:v1/EnterprisesListResponse/enterprise/enterprise": enterprise "/androidenterprise:v1/EnterprisesListResponse/kind": kind +"/androidenterprise:v1/EnterprisesSendTestPushNotificationResponse/messageId": message_id +"/androidenterprise:v1/EnterprisesSendTestPushNotificationResponse/topicName": topic_name "/androidenterprise:v1/Entitlement": entitlement "/androidenterprise:v1/Entitlement/kind": kind "/androidenterprise:v1/Entitlement/productId": product_id @@ -3683,6 +3973,10 @@ "/androidenterprise:v1/ProductPermissions/permission": permission "/androidenterprise:v1/ProductPermissions/permission/permission": permission "/androidenterprise:v1/ProductPermissions/productId": product_id +"/androidenterprise:v1/ProductSet": product_set +"/androidenterprise:v1/ProductSet/kind": kind +"/androidenterprise:v1/ProductSet/productId": product_id +"/androidenterprise:v1/ProductSet/productId/product_id": product_id "/androidenterprise:v1/ProductsApproveRequest/approvalUrlInfo": approval_url_info "/androidenterprise:v1/ProductsGenerateApprovalUrlResponse/url": url "/androidenterprise:v1/User": user @@ -4095,7 +4389,7 @@ "/appstate:v1/appstate.states.get/stateKey": state_key "/appstate:v1/appstate.states.list": list_states "/appstate:v1/appstate.states.list/includeData": include_data -"/appstate:v1/appstate.states.update": update +"/appstate:v1/appstate.states.update": update_state "/appstate:v1/appstate.states.update/currentStateVersion": current_state_version "/appstate:v1/appstate.states.update/stateKey": state_key "/appstate:v1/GetResponse": get_response @@ -4308,7 +4602,7 @@ "/bigquery:v2/bigquery.jobs.list/projectId": project_id "/bigquery:v2/bigquery.jobs.list/projection": projection "/bigquery:v2/bigquery.jobs.list/stateFilter": state_filter -"/bigquery:v2/bigquery.jobs.query": query +"/bigquery:v2/bigquery.jobs.query": query_job "/bigquery:v2/bigquery.jobs.query/projectId": project_id "/bigquery:v2/bigquery.projects.list": list_projects "/bigquery:v2/bigquery.projects.list/maxResults": max_results @@ -4391,6 +4685,25 @@ "/bigquery:v2/ErrorProto/location": location "/bigquery:v2/ErrorProto/message": message "/bigquery:v2/ErrorProto/reason": reason +"/bigquery:v2/ExplainQueryStage": explain_query_stage +"/bigquery:v2/ExplainQueryStage/computeRatioAvg": compute_ratio_avg +"/bigquery:v2/ExplainQueryStage/computeRatioMax": compute_ratio_max +"/bigquery:v2/ExplainQueryStage/id": id +"/bigquery:v2/ExplainQueryStage/name": name +"/bigquery:v2/ExplainQueryStage/readRatioAvg": read_ratio_avg +"/bigquery:v2/ExplainQueryStage/readRatioMax": read_ratio_max +"/bigquery:v2/ExplainQueryStage/recordsRead": records_read +"/bigquery:v2/ExplainQueryStage/recordsWritten": records_written +"/bigquery:v2/ExplainQueryStage/steps": steps +"/bigquery:v2/ExplainQueryStage/steps/step": step +"/bigquery:v2/ExplainQueryStage/waitRatioAvg": wait_ratio_avg +"/bigquery:v2/ExplainQueryStage/waitRatioMax": wait_ratio_max +"/bigquery:v2/ExplainQueryStage/writeRatioAvg": write_ratio_avg +"/bigquery:v2/ExplainQueryStage/writeRatioMax": write_ratio_max +"/bigquery:v2/ExplainQueryStep": explain_query_step +"/bigquery:v2/ExplainQueryStep/kind": kind +"/bigquery:v2/ExplainQueryStep/substeps": substeps +"/bigquery:v2/ExplainQueryStep/substeps/substep": substep "/bigquery:v2/ExternalDataConfiguration": external_data_configuration "/bigquery:v2/ExternalDataConfiguration/compression": compression "/bigquery:v2/ExternalDataConfiguration/csvOptions": csv_options @@ -4402,6 +4715,8 @@ "/bigquery:v2/ExternalDataConfiguration/sourceUris/source_uri": source_uri "/bigquery:v2/GetQueryResultsResponse": get_query_results_response "/bigquery:v2/GetQueryResultsResponse/cacheHit": cache_hit +"/bigquery:v2/GetQueryResultsResponse/errors": errors +"/bigquery:v2/GetQueryResultsResponse/errors/error": error "/bigquery:v2/GetQueryResultsResponse/etag": etag "/bigquery:v2/GetQueryResultsResponse/jobComplete": job_complete "/bigquery:v2/GetQueryResultsResponse/jobReference": job_reference @@ -4515,7 +4830,11 @@ "/bigquery:v2/JobStatistics/startTime": start_time "/bigquery:v2/JobStatistics/totalBytesProcessed": total_bytes_processed "/bigquery:v2/JobStatistics2": job_statistics2 +"/bigquery:v2/JobStatistics2/billingTier": billing_tier "/bigquery:v2/JobStatistics2/cacheHit": cache_hit +"/bigquery:v2/JobStatistics2/queryPlan": query_plan +"/bigquery:v2/JobStatistics2/queryPlan/query_plan": query_plan +"/bigquery:v2/JobStatistics2/totalBytesBilled": total_bytes_billed "/bigquery:v2/JobStatistics2/totalBytesProcessed": total_bytes_processed "/bigquery:v2/JobStatistics3": job_statistics3 "/bigquery:v2/JobStatistics3/inputFileBytes": input_file_bytes @@ -4558,6 +4877,8 @@ "/bigquery:v2/QueryRequest/useQueryCache": use_query_cache "/bigquery:v2/QueryResponse": query_response "/bigquery:v2/QueryResponse/cacheHit": cache_hit +"/bigquery:v2/QueryResponse/errors": errors +"/bigquery:v2/QueryResponse/errors/error": error "/bigquery:v2/QueryResponse/jobComplete": job_complete "/bigquery:v2/QueryResponse/jobReference": job_reference "/bigquery:v2/QueryResponse/kind": kind @@ -4567,6 +4888,10 @@ "/bigquery:v2/QueryResponse/schema": schema "/bigquery:v2/QueryResponse/totalBytesProcessed": total_bytes_processed "/bigquery:v2/QueryResponse/totalRows": total_rows +"/bigquery:v2/Streamingbuffer": streamingbuffer +"/bigquery:v2/Streamingbuffer/estimatedBytes": estimated_bytes +"/bigquery:v2/Streamingbuffer/estimatedRows": estimated_rows +"/bigquery:v2/Streamingbuffer/oldestEntryTime": oldest_entry_time "/bigquery:v2/Table": table "/bigquery:v2/Table/creationTime": creation_time "/bigquery:v2/Table/description": description @@ -4582,6 +4907,7 @@ "/bigquery:v2/Table/numRows": num_rows "/bigquery:v2/Table/schema": schema "/bigquery:v2/Table/selfLink": self_link +"/bigquery:v2/Table/streamingBuffer": streaming_buffer "/bigquery:v2/Table/tableReference": table_reference "/bigquery:v2/Table/type": type "/bigquery:v2/Table/view": view @@ -4594,6 +4920,7 @@ "/bigquery:v2/TableDataInsertAllRequest/rows/row/insertId": insert_id "/bigquery:v2/TableDataInsertAllRequest/rows/row/json": json "/bigquery:v2/TableDataInsertAllRequest/skipInvalidRows": skip_invalid_rows +"/bigquery:v2/TableDataInsertAllRequest/templateSuffix": template_suffix "/bigquery:v2/TableDataInsertAllResponse/insertErrors": insert_errors "/bigquery:v2/TableDataInsertAllResponse/insertErrors/insert_error": insert_error "/bigquery:v2/TableDataInsertAllResponse/insertErrors/insert_error/errors": errors @@ -4641,6 +4968,8 @@ "/bigquery:v2/UserDefinedFunctionResource/resourceUri": resource_uri "/bigquery:v2/ViewDefinition": view_definition "/bigquery:v2/ViewDefinition/query": query +"/bigquery:v2/ViewDefinition/userDefinedFunctionResources": user_defined_function_resources +"/bigquery:v2/ViewDefinition/userDefinedFunctionResources/user_defined_function_resource": user_defined_function_resource "/blogger:v3/fields": fields "/blogger:v3/key": key "/blogger:v3/quotaUser": quota_user @@ -5123,12 +5452,20 @@ "/books:v1/books.mylibrary.readingpositions.setPosition/source": source "/books:v1/books.mylibrary.readingpositions.setPosition/timestamp": timestamp "/books:v1/books.mylibrary.readingpositions.setPosition/volumeId": volume_id +"/books:v1/books.notification.get": get_notification +"/books:v1/books.notification.get/locale": locale +"/books:v1/books.notification.get/notification_id": notification_id +"/books:v1/books.notification.get/source": source "/books:v1/books.onboarding.listCategories/locale": locale "/books:v1/books.onboarding.listCategoryVolumes/categoryId": category_id "/books:v1/books.onboarding.listCategoryVolumes/locale": locale "/books:v1/books.onboarding.listCategoryVolumes/maxAllowedMaturityRating": max_allowed_maturity_rating "/books:v1/books.onboarding.listCategoryVolumes/pageSize": page_size "/books:v1/books.onboarding.listCategoryVolumes/pageToken": page_token +"/books:v1/books.personalizedstream.get": get_personalizedstream +"/books:v1/books.personalizedstream.get/locale": locale +"/books:v1/books.personalizedstream.get/maxAllowedMaturityRating": max_allowed_maturity_rating +"/books:v1/books.personalizedstream.get/source": source "/books:v1/books.promooffer.accept/androidId": android_id "/books:v1/books.promooffer.accept/device": device "/books:v1/books.promooffer.accept/manufacturer": manufacturer @@ -5150,6 +5487,12 @@ "/books:v1/books.promooffer.get/model": model "/books:v1/books.promooffer.get/product": product "/books:v1/books.promooffer.get/serial": serial +"/books:v1/books.series.get": get_series +"/books:v1/books.series.get/series_id": series_id +"/books:v1/books.series.membership.get": get_series_membership +"/books:v1/books.series.membership.get/page_size": page_size +"/books:v1/books.series.membership.get/page_token": page_token +"/books:v1/books.series.membership.get/series_id": series_id "/books:v1/books.volumes.get": get_volume "/books:v1/books.volumes.get/country": country "/books:v1/books.volumes.get/partner": partner @@ -5185,6 +5528,7 @@ "/books:v1/books.volumes.recommended.list/locale": locale "/books:v1/books.volumes.recommended.list/maxAllowedMaturityRating": max_allowed_maturity_rating "/books:v1/books.volumes.recommended.list/source": source +"/books:v1/books.volumes.recommended.list/targetIds": target_ids "/books:v1/books.volumes.recommended.rate/locale": locale "/books:v1/books.volumes.recommended.rate/rating": rating "/books:v1/books.volumes.recommended.rate/source": source @@ -5350,6 +5694,24 @@ "/books:v1/Dictlayerdata/dict/words/word/source/attribution": attribution "/books:v1/Dictlayerdata/dict/words/word/source/url": url "/books:v1/Dictlayerdata/kind": kind +"/books:v1/Discoveryclusters": discoveryclusters +"/books:v1/Discoveryclusters/clusters": clusters +"/books:v1/Discoveryclusters/clusters/cluster": cluster +"/books:v1/Discoveryclusters/clusters/cluster/banner_with_content_container": banner_with_content_container +"/books:v1/Discoveryclusters/clusters/cluster/banner_with_content_container/fillColorArgb": fill_color_argb +"/books:v1/Discoveryclusters/clusters/cluster/banner_with_content_container/imageUrl": image_url +"/books:v1/Discoveryclusters/clusters/cluster/banner_with_content_container/maskColorArgb": mask_color_argb +"/books:v1/Discoveryclusters/clusters/cluster/banner_with_content_container/moreButtonText": more_button_text +"/books:v1/Discoveryclusters/clusters/cluster/banner_with_content_container/moreButtonUrl": more_button_url +"/books:v1/Discoveryclusters/clusters/cluster/banner_with_content_container/textColorArgb": text_color_argb +"/books:v1/Discoveryclusters/clusters/cluster/subTitle": sub_title +"/books:v1/Discoveryclusters/clusters/cluster/title": title +"/books:v1/Discoveryclusters/clusters/cluster/totalVolumes": total_volumes +"/books:v1/Discoveryclusters/clusters/cluster/uid": uid +"/books:v1/Discoveryclusters/clusters/cluster/volumes": volumes +"/books:v1/Discoveryclusters/clusters/cluster/volumes/volume": volume +"/books:v1/Discoveryclusters/kind": kind +"/books:v1/Discoveryclusters/totalClusters": total_clusters "/books:v1/DownloadAccessRestriction": download_access_restriction "/books:v1/DownloadAccessRestriction/deviceAllowed": device_allowed "/books:v1/DownloadAccessRestriction/downloadsAcquired": downloads_acquired @@ -5420,6 +5782,14 @@ "/books:v1/Metadata/items/item/size": size "/books:v1/Metadata/items/item/version": version "/books:v1/Metadata/kind": kind +"/books:v1/Notification": notification +"/books:v1/Notification/body": body +"/books:v1/Notification/iconUrl": icon_url +"/books:v1/Notification/kind": kind +"/books:v1/Notification/notification_type": notification_type +"/books:v1/Notification/show_notification_settings_action": show_notification_settings_action +"/books:v1/Notification/targetUrl": target_url +"/books:v1/Notification/title": title "/books:v1/Offers": offers "/books:v1/Offers/items": items "/books:v1/Offers/items/item": item @@ -5462,10 +5832,25 @@ "/books:v1/Review/title": title "/books:v1/Review/type": type "/books:v1/Review/volumeId": volume_id +"/books:v1/Series": series +"/books:v1/Series/kind": kind +"/books:v1/Series/series": series +"/books:v1/Series/series/series": series +"/books:v1/Series/series/series/bannerImageUrl": banner_image_url +"/books:v1/Series/series/series/imageUrl": image_url +"/books:v1/Series/series/series/seriesId": series_id +"/books:v1/Series/series/series/title": title +"/books:v1/Seriesmembership/kind": kind +"/books:v1/Seriesmembership/member": member +"/books:v1/Seriesmembership/member/member": member +"/books:v1/Seriesmembership/nextPageToken": next_page_token "/books:v1/Usersettings/kind": kind "/books:v1/Usersettings/notesExport": notes_export "/books:v1/Usersettings/notesExport/folderName": folder_name "/books:v1/Usersettings/notesExport/isEnabled": is_enabled +"/books:v1/Usersettings/notification": notification +"/books:v1/Usersettings/notification/moreFromAuthors": more_from_authors +"/books:v1/Usersettings/notification/moreFromAuthors/opted_state": opted_state "/books:v1/Volume": volume "/books:v1/Volume/accessInfo": access_info "/books:v1/Volume/accessInfo/accessViewStatus": access_view_status @@ -5526,11 +5911,13 @@ "/books:v1/Volume/searchInfo/textSnippet": text_snippet "/books:v1/Volume/selfLink": self_link "/books:v1/Volume/userInfo": user_info +"/books:v1/Volume/userInfo/acquisitionType": acquisition_type "/books:v1/Volume/userInfo/copy": copy "/books:v1/Volume/userInfo/copy/allowedCharacterCount": allowed_character_count "/books:v1/Volume/userInfo/copy/limitType": limit_type "/books:v1/Volume/userInfo/copy/remainingCharacterCount": remaining_character_count "/books:v1/Volume/userInfo/copy/updated": updated +"/books:v1/Volume/userInfo/entitlementType": entitlement_type "/books:v1/Volume/userInfo/isInMyBooks": is_in_my_books "/books:v1/Volume/userInfo/isPreordered": is_preordered "/books:v1/Volume/userInfo/isPurchased": is_purchased @@ -5582,6 +5969,7 @@ "/books:v1/Volume/volumeInfo/ratingsCount": ratings_count "/books:v1/Volume/volumeInfo/readingModes": reading_modes "/books:v1/Volume/volumeInfo/samplePageCount": sample_page_count +"/books:v1/Volume/volumeInfo/seriesInfo": series_info "/books:v1/Volume/volumeInfo/subtitle": subtitle "/books:v1/Volume/volumeInfo/title": title "/books:v1/Volume2": volume2 @@ -5620,6 +6008,19 @@ "/books:v1/Volumes/items/item": item "/books:v1/Volumes/kind": kind "/books:v1/Volumes/totalItems": total_items +"/books:v1/Volumeseriesinfo": volumeseriesinfo +"/books:v1/Volumeseriesinfo/bookDisplayNumber": book_display_number +"/books:v1/Volumeseriesinfo/kind": kind +"/books:v1/Volumeseriesinfo/shortSeriesBookTitle": short_series_book_title +"/books:v1/Volumeseriesinfo/volumeSeries": volume_series +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series": volume_series +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series/issue": issue +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series/issue/issue": issue +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series/issue/issue/issueDisplayNumber": issue_display_number +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series/issue/issue/issueOrderNumber": issue_order_number +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series/orderNumber": order_number +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series/seriesBookType": series_book_type +"/books:v1/Volumeseriesinfo/volumeSeries/volume_series/seriesId": series_id "/calendar:v3/fields": fields "/calendar:v3/key": key "/calendar:v3/quotaUser": quota_user @@ -5750,7 +6151,7 @@ "/calendar:v3/calendar.events.patch/maxAttendees": max_attendees "/calendar:v3/calendar.events.patch/sendNotifications": send_notifications "/calendar:v3/calendar.events.patch/supportsAttachments": supports_attachments -"/calendar:v3/calendar.events.quickAdd": quick_add_event +"/calendar:v3/calendar.events.quickAdd": quick_event_add "/calendar:v3/calendar.events.quickAdd/calendarId": calendar_id "/calendar:v3/calendar.events.quickAdd/sendNotifications": send_notifications "/calendar:v3/calendar.events.quickAdd/text": text @@ -6110,6 +6511,7 @@ "/civicinfo:v2/Election/electionDay": election_day "/civicinfo:v2/Election/id": id "/civicinfo:v2/Election/name": name +"/civicinfo:v2/Election/ocdDivisionId": ocd_division_id "/civicinfo:v2/ElectionOfficial": election_official "/civicinfo:v2/ElectionOfficial/emailAddress": email_address "/civicinfo:v2/ElectionOfficial/faxNumber": fax_number @@ -6333,6 +6735,192 @@ "/cloudmonitoring:v2beta2/WriteTimeseriesRequest/timeseries/timeseries": timeseries "/cloudmonitoring:v2beta2/WriteTimeseriesResponse": write_timeseries_response "/cloudmonitoring:v2beta2/WriteTimeseriesResponse/kind": kind +"/clouduseraccounts:beta/fields": fields +"/clouduseraccounts:beta/key": key +"/clouduseraccounts:beta/quotaUser": quota_user +"/clouduseraccounts:beta/userIp": user_ip +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.delete": delete_global_accounts_operation +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.delete/operation": operation +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.delete/project": project +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.get": get_global_accounts_operation +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.get/operation": operation +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.get/project": project +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.list": list_global_accounts_operations +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.list/filter": filter +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.list/maxResults": max_results +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.list/orderBy": order_by +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.list/pageToken": page_token +"/clouduseraccounts:beta/clouduseraccounts.globalAccountsOperations.list/project": project +"/clouduseraccounts:beta/clouduseraccounts.groups.addMember": add_group_member +"/clouduseraccounts:beta/clouduseraccounts.groups.addMember/groupName": group_name +"/clouduseraccounts:beta/clouduseraccounts.groups.addMember/project": project +"/clouduseraccounts:beta/clouduseraccounts.groups.delete": delete_group +"/clouduseraccounts:beta/clouduseraccounts.groups.delete/groupName": group_name +"/clouduseraccounts:beta/clouduseraccounts.groups.delete/project": project +"/clouduseraccounts:beta/clouduseraccounts.groups.get": get_group +"/clouduseraccounts:beta/clouduseraccounts.groups.get/groupName": group_name +"/clouduseraccounts:beta/clouduseraccounts.groups.get/project": project +"/clouduseraccounts:beta/clouduseraccounts.groups.insert": insert_group +"/clouduseraccounts:beta/clouduseraccounts.groups.insert/project": project +"/clouduseraccounts:beta/clouduseraccounts.groups.list": list_groups +"/clouduseraccounts:beta/clouduseraccounts.groups.list/filter": filter +"/clouduseraccounts:beta/clouduseraccounts.groups.list/maxResults": max_results +"/clouduseraccounts:beta/clouduseraccounts.groups.list/orderBy": order_by +"/clouduseraccounts:beta/clouduseraccounts.groups.list/pageToken": page_token +"/clouduseraccounts:beta/clouduseraccounts.groups.list/project": project +"/clouduseraccounts:beta/clouduseraccounts.groups.removeMember": remove_group_member +"/clouduseraccounts:beta/clouduseraccounts.groups.removeMember/groupName": group_name +"/clouduseraccounts:beta/clouduseraccounts.groups.removeMember/project": project +"/clouduseraccounts:beta/clouduseraccounts.linux.getAuthorizedKeysView": get_linux_authorized_keys_view +"/clouduseraccounts:beta/clouduseraccounts.linux.getAuthorizedKeysView/instance": instance +"/clouduseraccounts:beta/clouduseraccounts.linux.getAuthorizedKeysView/login": login +"/clouduseraccounts:beta/clouduseraccounts.linux.getAuthorizedKeysView/project": project +"/clouduseraccounts:beta/clouduseraccounts.linux.getAuthorizedKeysView/user": user +"/clouduseraccounts:beta/clouduseraccounts.linux.getAuthorizedKeysView/zone": zone +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews": get_linux_linux_account_views +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews/filter": filter +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews/instance": instance +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews/maxResults": max_results +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews/orderBy": order_by +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews/pageToken": page_token +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews/project": project +"/clouduseraccounts:beta/clouduseraccounts.linux.getLinuxAccountViews/zone": zone +"/clouduseraccounts:beta/clouduseraccounts.users.addPublicKey": add_user_public_key +"/clouduseraccounts:beta/clouduseraccounts.users.addPublicKey/project": project +"/clouduseraccounts:beta/clouduseraccounts.users.addPublicKey/user": user +"/clouduseraccounts:beta/clouduseraccounts.users.delete": delete_user +"/clouduseraccounts:beta/clouduseraccounts.users.delete/project": project +"/clouduseraccounts:beta/clouduseraccounts.users.delete/user": user +"/clouduseraccounts:beta/clouduseraccounts.users.get": get_user +"/clouduseraccounts:beta/clouduseraccounts.users.get/project": project +"/clouduseraccounts:beta/clouduseraccounts.users.get/user": user +"/clouduseraccounts:beta/clouduseraccounts.users.insert": insert_user +"/clouduseraccounts:beta/clouduseraccounts.users.insert/project": project +"/clouduseraccounts:beta/clouduseraccounts.users.list": list_users +"/clouduseraccounts:beta/clouduseraccounts.users.list/filter": filter +"/clouduseraccounts:beta/clouduseraccounts.users.list/maxResults": max_results +"/clouduseraccounts:beta/clouduseraccounts.users.list/orderBy": order_by +"/clouduseraccounts:beta/clouduseraccounts.users.list/pageToken": page_token +"/clouduseraccounts:beta/clouduseraccounts.users.list/project": project +"/clouduseraccounts:beta/clouduseraccounts.users.removePublicKey": remove_user_public_key +"/clouduseraccounts:beta/clouduseraccounts.users.removePublicKey/fingerprint": fingerprint +"/clouduseraccounts:beta/clouduseraccounts.users.removePublicKey/project": project +"/clouduseraccounts:beta/clouduseraccounts.users.removePublicKey/user": user +"/clouduseraccounts:beta/AuthorizedKeysView": authorized_keys_view +"/clouduseraccounts:beta/AuthorizedKeysView/keys": keys +"/clouduseraccounts:beta/AuthorizedKeysView/keys/key": key +"/clouduseraccounts:beta/AuthorizedKeysView/sudoer": sudoer +"/clouduseraccounts:beta/Group": group +"/clouduseraccounts:beta/Group/creationTimestamp": creation_timestamp +"/clouduseraccounts:beta/Group/description": description +"/clouduseraccounts:beta/Group/id": id +"/clouduseraccounts:beta/Group/kind": kind +"/clouduseraccounts:beta/Group/members": members +"/clouduseraccounts:beta/Group/members/member": member +"/clouduseraccounts:beta/Group/name": name +"/clouduseraccounts:beta/Group/selfLink": self_link +"/clouduseraccounts:beta/GroupList": group_list +"/clouduseraccounts:beta/GroupList/id": id +"/clouduseraccounts:beta/GroupList/items": items +"/clouduseraccounts:beta/GroupList/items/item": item +"/clouduseraccounts:beta/GroupList/kind": kind +"/clouduseraccounts:beta/GroupList/nextPageToken": next_page_token +"/clouduseraccounts:beta/GroupList/selfLink": self_link +"/clouduseraccounts:beta/GroupsAddMemberRequest": groups_add_member_request +"/clouduseraccounts:beta/GroupsAddMemberRequest/users": users +"/clouduseraccounts:beta/GroupsAddMemberRequest/users/user": user +"/clouduseraccounts:beta/GroupsRemoveMemberRequest": groups_remove_member_request +"/clouduseraccounts:beta/GroupsRemoveMemberRequest/users": users +"/clouduseraccounts:beta/GroupsRemoveMemberRequest/users/user": user +"/clouduseraccounts:beta/LinuxAccountViews": linux_account_views +"/clouduseraccounts:beta/LinuxAccountViews/groupViews": group_views +"/clouduseraccounts:beta/LinuxAccountViews/groupViews/group_view": group_view +"/clouduseraccounts:beta/LinuxAccountViews/kind": kind +"/clouduseraccounts:beta/LinuxAccountViews/userViews": user_views +"/clouduseraccounts:beta/LinuxAccountViews/userViews/user_view": user_view +"/clouduseraccounts:beta/LinuxGetAuthorizedKeysViewResponse": linux_get_authorized_keys_view_response +"/clouduseraccounts:beta/LinuxGetAuthorizedKeysViewResponse/resource": resource +"/clouduseraccounts:beta/LinuxGetLinuxAccountViewsResponse": linux_get_linux_account_views_response +"/clouduseraccounts:beta/LinuxGetLinuxAccountViewsResponse/resource": resource +"/clouduseraccounts:beta/LinuxGroupView": linux_group_view +"/clouduseraccounts:beta/LinuxGroupView/gid": gid +"/clouduseraccounts:beta/LinuxGroupView/groupName": group_name +"/clouduseraccounts:beta/LinuxGroupView/members": members +"/clouduseraccounts:beta/LinuxGroupView/members/member": member +"/clouduseraccounts:beta/LinuxUserView": linux_user_view +"/clouduseraccounts:beta/LinuxUserView/gecos": gecos +"/clouduseraccounts:beta/LinuxUserView/gid": gid +"/clouduseraccounts:beta/LinuxUserView/homeDirectory": home_directory +"/clouduseraccounts:beta/LinuxUserView/shell": shell +"/clouduseraccounts:beta/LinuxUserView/uid": uid +"/clouduseraccounts:beta/LinuxUserView/username": username +"/clouduseraccounts:beta/Operation": operation +"/clouduseraccounts:beta/Operation/clientOperationId": client_operation_id +"/clouduseraccounts:beta/Operation/creationTimestamp": creation_timestamp +"/clouduseraccounts:beta/Operation/endTime": end_time +"/clouduseraccounts:beta/Operation/error": error +"/clouduseraccounts:beta/Operation/error/errors": errors +"/clouduseraccounts:beta/Operation/error/errors/error": error +"/clouduseraccounts:beta/Operation/error/errors/error/code": code +"/clouduseraccounts:beta/Operation/error/errors/error/location": location +"/clouduseraccounts:beta/Operation/error/errors/error/message": message +"/clouduseraccounts:beta/Operation/httpErrorMessage": http_error_message +"/clouduseraccounts:beta/Operation/httpErrorStatusCode": http_error_status_code +"/clouduseraccounts:beta/Operation/id": id +"/clouduseraccounts:beta/Operation/insertTime": insert_time +"/clouduseraccounts:beta/Operation/kind": kind +"/clouduseraccounts:beta/Operation/name": name +"/clouduseraccounts:beta/Operation/operationType": operation_type +"/clouduseraccounts:beta/Operation/progress": progress +"/clouduseraccounts:beta/Operation/region": region +"/clouduseraccounts:beta/Operation/selfLink": self_link +"/clouduseraccounts:beta/Operation/startTime": start_time +"/clouduseraccounts:beta/Operation/status": status +"/clouduseraccounts:beta/Operation/statusMessage": status_message +"/clouduseraccounts:beta/Operation/targetId": target_id +"/clouduseraccounts:beta/Operation/targetLink": target_link +"/clouduseraccounts:beta/Operation/user": user +"/clouduseraccounts:beta/Operation/warnings": warnings +"/clouduseraccounts:beta/Operation/warnings/warning": warning +"/clouduseraccounts:beta/Operation/warnings/warning/code": code +"/clouduseraccounts:beta/Operation/warnings/warning/data": data +"/clouduseraccounts:beta/Operation/warnings/warning/data/datum": datum +"/clouduseraccounts:beta/Operation/warnings/warning/data/datum/key": key +"/clouduseraccounts:beta/Operation/warnings/warning/data/datum/value": value +"/clouduseraccounts:beta/Operation/warnings/warning/message": message +"/clouduseraccounts:beta/Operation/zone": zone +"/clouduseraccounts:beta/OperationList": operation_list +"/clouduseraccounts:beta/OperationList/id": id +"/clouduseraccounts:beta/OperationList/items": items +"/clouduseraccounts:beta/OperationList/items/item": item +"/clouduseraccounts:beta/OperationList/kind": kind +"/clouduseraccounts:beta/OperationList/nextPageToken": next_page_token +"/clouduseraccounts:beta/OperationList/selfLink": self_link +"/clouduseraccounts:beta/PublicKey": public_key +"/clouduseraccounts:beta/PublicKey/creationTimestamp": creation_timestamp +"/clouduseraccounts:beta/PublicKey/description": description +"/clouduseraccounts:beta/PublicKey/expirationTimestamp": expiration_timestamp +"/clouduseraccounts:beta/PublicKey/fingerprint": fingerprint +"/clouduseraccounts:beta/PublicKey/key": key +"/clouduseraccounts:beta/User": user +"/clouduseraccounts:beta/User/creationTimestamp": creation_timestamp +"/clouduseraccounts:beta/User/description": description +"/clouduseraccounts:beta/User/groups": groups +"/clouduseraccounts:beta/User/groups/group": group +"/clouduseraccounts:beta/User/id": id +"/clouduseraccounts:beta/User/kind": kind +"/clouduseraccounts:beta/User/name": name +"/clouduseraccounts:beta/User/owner": owner +"/clouduseraccounts:beta/User/publicKeys": public_keys +"/clouduseraccounts:beta/User/publicKeys/public_key": public_key +"/clouduseraccounts:beta/User/selfLink": self_link +"/clouduseraccounts:beta/UserList": user_list +"/clouduseraccounts:beta/UserList/id": id +"/clouduseraccounts:beta/UserList/items": items +"/clouduseraccounts:beta/UserList/items/item": item +"/clouduseraccounts:beta/UserList/kind": kind +"/clouduseraccounts:beta/UserList/nextPageToken": next_page_token +"/clouduseraccounts:beta/UserList/selfLink": self_link "/compute:v1/fields": fields "/compute:v1/key": key "/compute:v1/quotaUser": quota_user @@ -6358,7 +6946,7 @@ "/compute:v1/compute.addresses.list/pageToken": page_token "/compute:v1/compute.addresses.list/project": project "/compute:v1/compute.addresses.list/region": region -"/compute:v1/compute.autoscalers.aggregatedList": aggregated_list_autoscaler +"/compute:v1/compute.autoscalers.aggregatedList": aggregated_autoscaler_list "/compute:v1/compute.autoscalers.aggregatedList/filter": filter "/compute:v1/compute.autoscalers.aggregatedList/maxResults": max_results "/compute:v1/compute.autoscalers.aggregatedList/pageToken": page_token @@ -6553,6 +7141,25 @@ "/compute:v1/compute.httpHealthChecks.update": update_http_health_check "/compute:v1/compute.httpHealthChecks.update/httpHealthCheck": http_health_check "/compute:v1/compute.httpHealthChecks.update/project": project +"/compute:v1/compute.httpsHealthChecks.delete": delete_https_health_check +"/compute:v1/compute.httpsHealthChecks.delete/httpsHealthCheck": https_health_check +"/compute:v1/compute.httpsHealthChecks.delete/project": project +"/compute:v1/compute.httpsHealthChecks.get": get_https_health_check +"/compute:v1/compute.httpsHealthChecks.get/httpsHealthCheck": https_health_check +"/compute:v1/compute.httpsHealthChecks.get/project": project +"/compute:v1/compute.httpsHealthChecks.insert": insert_https_health_check +"/compute:v1/compute.httpsHealthChecks.insert/project": project +"/compute:v1/compute.httpsHealthChecks.list": list_https_health_checks +"/compute:v1/compute.httpsHealthChecks.list/filter": filter +"/compute:v1/compute.httpsHealthChecks.list/maxResults": max_results +"/compute:v1/compute.httpsHealthChecks.list/pageToken": page_token +"/compute:v1/compute.httpsHealthChecks.list/project": project +"/compute:v1/compute.httpsHealthChecks.patch": patch_https_health_check +"/compute:v1/compute.httpsHealthChecks.patch/httpsHealthCheck": https_health_check +"/compute:v1/compute.httpsHealthChecks.patch/project": project +"/compute:v1/compute.httpsHealthChecks.update": update_https_health_check +"/compute:v1/compute.httpsHealthChecks.update/httpsHealthCheck": https_health_check +"/compute:v1/compute.httpsHealthChecks.update/project": project "/compute:v1/compute.images.delete": delete_image "/compute:v1/compute.images.delete/image": image "/compute:v1/compute.images.delete/project": project @@ -6810,6 +7417,19 @@ "/compute:v1/compute.snapshots.list/maxResults": max_results "/compute:v1/compute.snapshots.list/pageToken": page_token "/compute:v1/compute.snapshots.list/project": project +"/compute:v1/compute.sslCertificates.delete": delete_ssl_certificate +"/compute:v1/compute.sslCertificates.delete/project": project +"/compute:v1/compute.sslCertificates.delete/sslCertificate": ssl_certificate +"/compute:v1/compute.sslCertificates.get": get_ssl_certificate +"/compute:v1/compute.sslCertificates.get/project": project +"/compute:v1/compute.sslCertificates.get/sslCertificate": ssl_certificate +"/compute:v1/compute.sslCertificates.insert": insert_ssl_certificate +"/compute:v1/compute.sslCertificates.insert/project": project +"/compute:v1/compute.sslCertificates.list": list_ssl_certificates +"/compute:v1/compute.sslCertificates.list/filter": filter +"/compute:v1/compute.sslCertificates.list/maxResults": max_results +"/compute:v1/compute.sslCertificates.list/pageToken": page_token +"/compute:v1/compute.sslCertificates.list/project": project "/compute:v1/compute.targetHttpProxies.delete": delete_target_http_proxy "/compute:v1/compute.targetHttpProxies.delete/project": project "/compute:v1/compute.targetHttpProxies.delete/targetHttpProxy": target_http_proxy @@ -6825,6 +7445,25 @@ "/compute:v1/compute.targetHttpProxies.list/project": project "/compute:v1/compute.targetHttpProxies.setUrlMap/project": project "/compute:v1/compute.targetHttpProxies.setUrlMap/targetHttpProxy": target_http_proxy +"/compute:v1/compute.targetHttpsProxies.delete": delete_target_https_proxy +"/compute:v1/compute.targetHttpsProxies.delete/project": project +"/compute:v1/compute.targetHttpsProxies.delete/targetHttpsProxy": target_https_proxy +"/compute:v1/compute.targetHttpsProxies.get": get_target_https_proxy +"/compute:v1/compute.targetHttpsProxies.get/project": project +"/compute:v1/compute.targetHttpsProxies.get/targetHttpsProxy": target_https_proxy +"/compute:v1/compute.targetHttpsProxies.insert": insert_target_https_proxy +"/compute:v1/compute.targetHttpsProxies.insert/project": project +"/compute:v1/compute.targetHttpsProxies.list": list_target_https_proxies +"/compute:v1/compute.targetHttpsProxies.list/filter": filter +"/compute:v1/compute.targetHttpsProxies.list/maxResults": max_results +"/compute:v1/compute.targetHttpsProxies.list/pageToken": page_token +"/compute:v1/compute.targetHttpsProxies.list/project": project +"/compute:v1/compute.targetHttpsProxies.setSslCertificates": set_target_https_proxy_ssl_certificates +"/compute:v1/compute.targetHttpsProxies.setSslCertificates/project": project +"/compute:v1/compute.targetHttpsProxies.setSslCertificates/targetHttpsProxy": target_https_proxy +"/compute:v1/compute.targetHttpsProxies.setUrlMap": set_target_https_proxy_url_map +"/compute:v1/compute.targetHttpsProxies.setUrlMap/project": project +"/compute:v1/compute.targetHttpsProxies.setUrlMap/targetHttpsProxy": target_https_proxy "/compute:v1/compute.targetInstances.aggregatedList/filter": filter "/compute:v1/compute.targetInstances.aggregatedList/maxResults": max_results "/compute:v1/compute.targetInstances.aggregatedList/pageToken": page_token @@ -7296,6 +7935,27 @@ "/compute:v1/HttpHealthCheckList/kind": kind "/compute:v1/HttpHealthCheckList/nextPageToken": next_page_token "/compute:v1/HttpHealthCheckList/selfLink": self_link +"/compute:v1/HttpsHealthCheck": https_health_check +"/compute:v1/HttpsHealthCheck/checkIntervalSec": check_interval_sec +"/compute:v1/HttpsHealthCheck/creationTimestamp": creation_timestamp +"/compute:v1/HttpsHealthCheck/description": description +"/compute:v1/HttpsHealthCheck/healthyThreshold": healthy_threshold +"/compute:v1/HttpsHealthCheck/host": host +"/compute:v1/HttpsHealthCheck/id": id +"/compute:v1/HttpsHealthCheck/kind": kind +"/compute:v1/HttpsHealthCheck/name": name +"/compute:v1/HttpsHealthCheck/port": port +"/compute:v1/HttpsHealthCheck/requestPath": request_path +"/compute:v1/HttpsHealthCheck/selfLink": self_link +"/compute:v1/HttpsHealthCheck/timeoutSec": timeout_sec +"/compute:v1/HttpsHealthCheck/unhealthyThreshold": unhealthy_threshold +"/compute:v1/HttpsHealthCheckList": https_health_check_list +"/compute:v1/HttpsHealthCheckList/id": id +"/compute:v1/HttpsHealthCheckList/items": items +"/compute:v1/HttpsHealthCheckList/items/item": item +"/compute:v1/HttpsHealthCheckList/kind": kind +"/compute:v1/HttpsHealthCheckList/nextPageToken": next_page_token +"/compute:v1/HttpsHealthCheckList/selfLink": self_link "/compute:v1/Image": image "/compute:v1/Image/archiveSizeBytes": archive_size_bytes "/compute:v1/Image/creationTimestamp": creation_timestamp @@ -7380,8 +8040,6 @@ "/compute:v1/InstanceGroupList/nextPageToken": next_page_token "/compute:v1/InstanceGroupList/selfLink": self_link "/compute:v1/InstanceGroupManager": instance_group_manager -"/compute:v1/InstanceGroupManager/autoHealingPolicies": auto_healing_policies -"/compute:v1/InstanceGroupManager/autoHealingPolicies/auto_healing_policy": auto_healing_policy "/compute:v1/InstanceGroupManager/baseInstanceName": base_instance_name "/compute:v1/InstanceGroupManager/creationTimestamp": creation_timestamp "/compute:v1/InstanceGroupManager/currentActions": current_actions @@ -7392,6 +8050,8 @@ "/compute:v1/InstanceGroupManager/instanceTemplate": instance_template "/compute:v1/InstanceGroupManager/kind": kind "/compute:v1/InstanceGroupManager/name": name +"/compute:v1/InstanceGroupManager/namedPorts": named_ports +"/compute:v1/InstanceGroupManager/namedPorts/named_port": named_port "/compute:v1/InstanceGroupManager/selfLink": self_link "/compute:v1/InstanceGroupManager/targetPools": target_pools "/compute:v1/InstanceGroupManager/targetPools/target_pool": target_pool @@ -7412,9 +8072,6 @@ "/compute:v1/InstanceGroupManagerAggregatedList/kind": kind "/compute:v1/InstanceGroupManagerAggregatedList/nextPageToken": next_page_token "/compute:v1/InstanceGroupManagerAggregatedList/selfLink": self_link -"/compute:v1/InstanceGroupManagerAutoHealingPolicy": instance_group_manager_auto_healing_policy -"/compute:v1/InstanceGroupManagerAutoHealingPolicy/actionType": action_type -"/compute:v1/InstanceGroupManagerAutoHealingPolicy/healthCheck": health_check "/compute:v1/InstanceGroupManagerList": instance_group_manager_list "/compute:v1/InstanceGroupManagerList/id": id "/compute:v1/InstanceGroupManagerList/items": items @@ -7462,7 +8119,6 @@ "/compute:v1/InstanceGroupsListInstances/selfLink": self_link "/compute:v1/InstanceGroupsListInstancesRequest": instance_groups_list_instances_request "/compute:v1/InstanceGroupsListInstancesRequest/instanceState": instance_state -"/compute:v1/InstanceGroupsListInstancesRequest/portName": port_name "/compute:v1/InstanceGroupsRemoveInstancesRequest": instance_groups_remove_instances_request "/compute:v1/InstanceGroupsRemoveInstancesRequest/instances": instances "/compute:v1/InstanceGroupsRemoveInstancesRequest/instances/instance": instance @@ -7698,6 +8354,8 @@ "/compute:v1/Project/commonInstanceMetadata": common_instance_metadata "/compute:v1/Project/creationTimestamp": creation_timestamp "/compute:v1/Project/description": description +"/compute:v1/Project/enabledFeatures": enabled_features +"/compute:v1/Project/enabledFeatures/enabled_feature": enabled_feature "/compute:v1/Project/id": id "/compute:v1/Project/kind": kind "/compute:v1/Project/name": name @@ -7797,6 +8455,22 @@ "/compute:v1/SnapshotList/kind": kind "/compute:v1/SnapshotList/nextPageToken": next_page_token "/compute:v1/SnapshotList/selfLink": self_link +"/compute:v1/SslCertificate": ssl_certificate +"/compute:v1/SslCertificate/certificate": certificate +"/compute:v1/SslCertificate/creationTimestamp": creation_timestamp +"/compute:v1/SslCertificate/description": description +"/compute:v1/SslCertificate/id": id +"/compute:v1/SslCertificate/kind": kind +"/compute:v1/SslCertificate/name": name +"/compute:v1/SslCertificate/privateKey": private_key +"/compute:v1/SslCertificate/selfLink": self_link +"/compute:v1/SslCertificateList": ssl_certificate_list +"/compute:v1/SslCertificateList/id": id +"/compute:v1/SslCertificateList/items": items +"/compute:v1/SslCertificateList/items/item": item +"/compute:v1/SslCertificateList/kind": kind +"/compute:v1/SslCertificateList/nextPageToken": next_page_token +"/compute:v1/SslCertificateList/selfLink": self_link "/compute:v1/Tags": tags "/compute:v1/Tags/fingerprint": fingerprint "/compute:v1/Tags/items": items @@ -7816,6 +8490,26 @@ "/compute:v1/TargetHttpProxyList/kind": kind "/compute:v1/TargetHttpProxyList/nextPageToken": next_page_token "/compute:v1/TargetHttpProxyList/selfLink": self_link +"/compute:v1/TargetHttpsProxiesSetSslCertificatesRequest": target_https_proxies_set_ssl_certificates_request +"/compute:v1/TargetHttpsProxiesSetSslCertificatesRequest/sslCertificates": ssl_certificates +"/compute:v1/TargetHttpsProxiesSetSslCertificatesRequest/sslCertificates/ssl_certificate": ssl_certificate +"/compute:v1/TargetHttpsProxy": target_https_proxy +"/compute:v1/TargetHttpsProxy/creationTimestamp": creation_timestamp +"/compute:v1/TargetHttpsProxy/description": description +"/compute:v1/TargetHttpsProxy/id": id +"/compute:v1/TargetHttpsProxy/kind": kind +"/compute:v1/TargetHttpsProxy/name": name +"/compute:v1/TargetHttpsProxy/selfLink": self_link +"/compute:v1/TargetHttpsProxy/sslCertificates": ssl_certificates +"/compute:v1/TargetHttpsProxy/sslCertificates/ssl_certificate": ssl_certificate +"/compute:v1/TargetHttpsProxy/urlMap": url_map +"/compute:v1/TargetHttpsProxyList": target_https_proxy_list +"/compute:v1/TargetHttpsProxyList/id": id +"/compute:v1/TargetHttpsProxyList/items": items +"/compute:v1/TargetHttpsProxyList/items/item": item +"/compute:v1/TargetHttpsProxyList/kind": kind +"/compute:v1/TargetHttpsProxyList/nextPageToken": next_page_token +"/compute:v1/TargetHttpsProxyList/selfLink": self_link "/compute:v1/TargetInstance": target_instance "/compute:v1/TargetInstance/creationTimestamp": creation_timestamp "/compute:v1/TargetInstance/description": description @@ -8138,6 +8832,45 @@ "/content:v2/content.inventory.set/merchantId": merchant_id "/content:v2/content.inventory.set/productId": product_id "/content:v2/content.inventory.set/storeCode": store_code +"/content:v2/content.orders.acknowledge": acknowledge_order +"/content:v2/content.orders.acknowledge/merchantId": merchant_id +"/content:v2/content.orders.acknowledge/orderId": order_id +"/content:v2/content.orders.advancetestorder/merchantId": merchant_id +"/content:v2/content.orders.advancetestorder/orderId": order_id +"/content:v2/content.orders.cancel": cancel_order +"/content:v2/content.orders.cancel/merchantId": merchant_id +"/content:v2/content.orders.cancel/orderId": order_id +"/content:v2/content.orders.cancellineitem/merchantId": merchant_id +"/content:v2/content.orders.cancellineitem/orderId": order_id +"/content:v2/content.orders.createtestorder/merchantId": merchant_id +"/content:v2/content.orders.get": get_order +"/content:v2/content.orders.get/merchantId": merchant_id +"/content:v2/content.orders.get/orderId": order_id +"/content:v2/content.orders.getbymerchantorderid/merchantId": merchant_id +"/content:v2/content.orders.getbymerchantorderid/merchantOrderId": merchant_order_id +"/content:v2/content.orders.gettestordertemplate/merchantId": merchant_id +"/content:v2/content.orders.gettestordertemplate/templateName": template_name +"/content:v2/content.orders.list": list_orders +"/content:v2/content.orders.list/acknowledged": acknowledged +"/content:v2/content.orders.list/maxResults": max_results +"/content:v2/content.orders.list/merchantId": merchant_id +"/content:v2/content.orders.list/orderBy": order_by +"/content:v2/content.orders.list/pageToken": page_token +"/content:v2/content.orders.list/placedDateEnd": placed_date_end +"/content:v2/content.orders.list/placedDateStart": placed_date_start +"/content:v2/content.orders.list/statuses": statuses +"/content:v2/content.orders.refund": refund_order +"/content:v2/content.orders.refund/merchantId": merchant_id +"/content:v2/content.orders.refund/orderId": order_id +"/content:v2/content.orders.returnlineitem/merchantId": merchant_id +"/content:v2/content.orders.returnlineitem/orderId": order_id +"/content:v2/content.orders.shiplineitems": shiplineitems_order +"/content:v2/content.orders.shiplineitems/merchantId": merchant_id +"/content:v2/content.orders.shiplineitems/orderId": order_id +"/content:v2/content.orders.updatemerchantorderid/merchantId": merchant_id +"/content:v2/content.orders.updatemerchantorderid/orderId": order_id +"/content:v2/content.orders.updateshipment/merchantId": merchant_id +"/content:v2/content.orders.updateshipment/orderId": order_id "/content:v2/content.products.custombatch/dryRun": dry_run "/content:v2/content.products.delete": delete_product "/content:v2/content.products.delete/dryRun": dry_run @@ -8150,11 +8883,13 @@ "/content:v2/content.products.insert/dryRun": dry_run "/content:v2/content.products.insert/merchantId": merchant_id "/content:v2/content.products.list": list_products +"/content:v2/content.products.list/includeInvalidInsertedItems": include_invalid_inserted_items "/content:v2/content.products.list/maxResults": max_results "/content:v2/content.products.list/merchantId": merchant_id "/content:v2/content.products.list/pageToken": page_token "/content:v2/content.productstatuses.get/merchantId": merchant_id "/content:v2/content.productstatuses.get/productId": product_id +"/content:v2/content.productstatuses.list/includeInvalidInsertedItems": include_invalid_inserted_items "/content:v2/content.productstatuses.list/maxResults": max_results "/content:v2/content.productstatuses.list/merchantId": merchant_id "/content:v2/content.productstatuses.list/pageToken": page_token @@ -8430,9 +9165,14 @@ "/content:v2/Errors/errors": errors "/content:v2/Errors/errors/error": error "/content:v2/Errors/message": message +"/content:v2/Installment": installment +"/content:v2/Installment/amount": amount +"/content:v2/Installment/months": months "/content:v2/Inventory": inventory "/content:v2/Inventory/availability": availability +"/content:v2/Inventory/installment": installment "/content:v2/Inventory/kind": kind +"/content:v2/Inventory/loyaltyPoints": loyalty_points "/content:v2/Inventory/price": price "/content:v2/Inventory/quantity": quantity "/content:v2/Inventory/salePrice": sale_price @@ -8452,6 +9192,8 @@ "/content:v2/InventoryCustomBatchResponseEntry/errors": errors "/content:v2/InventoryCustomBatchResponseEntry/kind": kind "/content:v2/InventorySetRequest/availability": availability +"/content:v2/InventorySetRequest/installment": installment +"/content:v2/InventorySetRequest/loyaltyPoints": loyalty_points "/content:v2/InventorySetRequest/price": price "/content:v2/InventorySetRequest/quantity": quantity "/content:v2/InventorySetRequest/salePrice": sale_price @@ -8462,6 +9204,269 @@ "/content:v2/LoyaltyPoints/name": name "/content:v2/LoyaltyPoints/pointsValue": points_value "/content:v2/LoyaltyPoints/ratio": ratio +"/content:v2/Order": order +"/content:v2/Order/acknowledged": acknowledged +"/content:v2/Order/customer": customer +"/content:v2/Order/deliveryDetails": delivery_details +"/content:v2/Order/id": id +"/content:v2/Order/kind": kind +"/content:v2/Order/lineItems": line_items +"/content:v2/Order/lineItems/line_item": line_item +"/content:v2/Order/merchantId": merchant_id +"/content:v2/Order/merchantOrderId": merchant_order_id +"/content:v2/Order/netAmount": net_amount +"/content:v2/Order/paymentMethod": payment_method +"/content:v2/Order/paymentStatus": payment_status +"/content:v2/Order/placedDate": placed_date +"/content:v2/Order/refunds": refunds +"/content:v2/Order/refunds/refund": refund +"/content:v2/Order/shipments": shipments +"/content:v2/Order/shipments/shipment": shipment +"/content:v2/Order/shippingCost": shipping_cost +"/content:v2/Order/shippingCostTax": shipping_cost_tax +"/content:v2/Order/shippingOption": shipping_option +"/content:v2/Order/status": status +"/content:v2/OrderAddress": order_address +"/content:v2/OrderAddress/country": country +"/content:v2/OrderAddress/fullAddress": full_address +"/content:v2/OrderAddress/fullAddress/full_address": full_address +"/content:v2/OrderAddress/isPostOfficeBox": is_post_office_box +"/content:v2/OrderAddress/locality": locality +"/content:v2/OrderAddress/postalCode": postal_code +"/content:v2/OrderAddress/recipientName": recipient_name +"/content:v2/OrderAddress/region": region +"/content:v2/OrderAddress/streetAddress": street_address +"/content:v2/OrderAddress/streetAddress/street_address": street_address +"/content:v2/OrderCancellation": order_cancellation +"/content:v2/OrderCancellation/actor": actor +"/content:v2/OrderCancellation/creationDate": creation_date +"/content:v2/OrderCancellation/quantity": quantity +"/content:v2/OrderCancellation/reason": reason +"/content:v2/OrderCancellation/reasonText": reason_text +"/content:v2/OrderCustomer": order_customer +"/content:v2/OrderCustomer/email": email +"/content:v2/OrderCustomer/explicitMarketingPreference": explicit_marketing_preference +"/content:v2/OrderCustomer/fullName": full_name +"/content:v2/OrderDeliveryDetails": order_delivery_details +"/content:v2/OrderDeliveryDetails/address": address +"/content:v2/OrderDeliveryDetails/phoneNumber": phone_number +"/content:v2/OrderLineItem": order_line_item +"/content:v2/OrderLineItem/cancellations": cancellations +"/content:v2/OrderLineItem/cancellations/cancellation": cancellation +"/content:v2/OrderLineItem/id": id +"/content:v2/OrderLineItem/price": price +"/content:v2/OrderLineItem/product": product +"/content:v2/OrderLineItem/quantityCanceled": quantity_canceled +"/content:v2/OrderLineItem/quantityDelivered": quantity_delivered +"/content:v2/OrderLineItem/quantityOrdered": quantity_ordered +"/content:v2/OrderLineItem/quantityPending": quantity_pending +"/content:v2/OrderLineItem/quantityReturned": quantity_returned +"/content:v2/OrderLineItem/quantityShipped": quantity_shipped +"/content:v2/OrderLineItem/returnInfo": return_info +"/content:v2/OrderLineItem/returns": returns +"/content:v2/OrderLineItem/returns/return": return +"/content:v2/OrderLineItem/shippingDetails": shipping_details +"/content:v2/OrderLineItem/tax": tax +"/content:v2/OrderLineItemProduct": order_line_item_product +"/content:v2/OrderLineItemProduct/brand": brand +"/content:v2/OrderLineItemProduct/channel": channel +"/content:v2/OrderLineItemProduct/condition": condition +"/content:v2/OrderLineItemProduct/contentLanguage": content_language +"/content:v2/OrderLineItemProduct/gtin": gtin +"/content:v2/OrderLineItemProduct/id": id +"/content:v2/OrderLineItemProduct/imageLink": image_link +"/content:v2/OrderLineItemProduct/itemGroupId": item_group_id +"/content:v2/OrderLineItemProduct/mpn": mpn +"/content:v2/OrderLineItemProduct/offerId": offer_id +"/content:v2/OrderLineItemProduct/price": price +"/content:v2/OrderLineItemProduct/shownImage": shown_image +"/content:v2/OrderLineItemProduct/targetCountry": target_country +"/content:v2/OrderLineItemProduct/title": title +"/content:v2/OrderLineItemProduct/variantAttributes": variant_attributes +"/content:v2/OrderLineItemProduct/variantAttributes/variant_attribute": variant_attribute +"/content:v2/OrderLineItemProductVariantAttribute": order_line_item_product_variant_attribute +"/content:v2/OrderLineItemProductVariantAttribute/dimension": dimension +"/content:v2/OrderLineItemProductVariantAttribute/value": value +"/content:v2/OrderLineItemReturnInfo": order_line_item_return_info +"/content:v2/OrderLineItemReturnInfo/daysToReturn": days_to_return +"/content:v2/OrderLineItemReturnInfo/isReturnable": is_returnable +"/content:v2/OrderLineItemReturnInfo/policyUrl": policy_url +"/content:v2/OrderLineItemShippingDetails": order_line_item_shipping_details +"/content:v2/OrderLineItemShippingDetails/deliverByDate": deliver_by_date +"/content:v2/OrderLineItemShippingDetails/method": method_prop +"/content:v2/OrderLineItemShippingDetails/shipByDate": ship_by_date +"/content:v2/OrderLineItemShippingDetailsMethod": order_line_item_shipping_details_method +"/content:v2/OrderLineItemShippingDetailsMethod/carrier": carrier +"/content:v2/OrderLineItemShippingDetailsMethod/maxDaysInTransit": max_days_in_transit +"/content:v2/OrderLineItemShippingDetailsMethod/methodName": method_name +"/content:v2/OrderLineItemShippingDetailsMethod/minDaysInTransit": min_days_in_transit +"/content:v2/OrderPaymentMethod": order_payment_method +"/content:v2/OrderPaymentMethod/billingAddress": billing_address +"/content:v2/OrderPaymentMethod/expirationMonth": expiration_month +"/content:v2/OrderPaymentMethod/expirationYear": expiration_year +"/content:v2/OrderPaymentMethod/lastFourDigits": last_four_digits +"/content:v2/OrderPaymentMethod/phoneNumber": phone_number +"/content:v2/OrderPaymentMethod/type": type +"/content:v2/OrderRefund": order_refund +"/content:v2/OrderRefund/actor": actor +"/content:v2/OrderRefund/amount": amount +"/content:v2/OrderRefund/creationDate": creation_date +"/content:v2/OrderRefund/reason": reason +"/content:v2/OrderRefund/reasonText": reason_text +"/content:v2/OrderReturn": order_return +"/content:v2/OrderReturn/actor": actor +"/content:v2/OrderReturn/creationDate": creation_date +"/content:v2/OrderReturn/quantity": quantity +"/content:v2/OrderReturn/reason": reason +"/content:v2/OrderReturn/reasonText": reason_text +"/content:v2/OrderShipment": order_shipment +"/content:v2/OrderShipment/carrier": carrier +"/content:v2/OrderShipment/creationDate": creation_date +"/content:v2/OrderShipment/deliveryDate": delivery_date +"/content:v2/OrderShipment/id": id +"/content:v2/OrderShipment/lineItems": line_items +"/content:v2/OrderShipment/lineItems/line_item": line_item +"/content:v2/OrderShipment/status": status +"/content:v2/OrderShipment/trackingId": tracking_id +"/content:v2/OrderShipmentLineItemShipment": order_shipment_line_item_shipment +"/content:v2/OrderShipmentLineItemShipment/lineItemId": line_item_id +"/content:v2/OrderShipmentLineItemShipment/quantity": quantity +"/content:v2/OrdersAcknowledgeRequest": orders_acknowledge_request +"/content:v2/OrdersAcknowledgeRequest/operationId": operation_id +"/content:v2/OrdersAcknowledgeResponse": orders_acknowledge_response +"/content:v2/OrdersAcknowledgeResponse/executionStatus": execution_status +"/content:v2/OrdersAcknowledgeResponse/kind": kind +"/content:v2/OrdersAdvanceTestOrderResponse": orders_advance_test_order_response +"/content:v2/OrdersAdvanceTestOrderResponse/kind": kind +"/content:v2/OrdersCancelLineItemRequest": orders_cancel_line_item_request +"/content:v2/OrdersCancelLineItemRequest/lineItemId": line_item_id +"/content:v2/OrdersCancelLineItemRequest/operationId": operation_id +"/content:v2/OrdersCancelLineItemRequest/quantity": quantity +"/content:v2/OrdersCancelLineItemRequest/reason": reason +"/content:v2/OrdersCancelLineItemRequest/reasonText": reason_text +"/content:v2/OrdersCancelLineItemResponse": orders_cancel_line_item_response +"/content:v2/OrdersCancelLineItemResponse/executionStatus": execution_status +"/content:v2/OrdersCancelLineItemResponse/kind": kind +"/content:v2/OrdersCancelRequest": orders_cancel_request +"/content:v2/OrdersCancelRequest/operationId": operation_id +"/content:v2/OrdersCancelRequest/reason": reason +"/content:v2/OrdersCancelRequest/reasonText": reason_text +"/content:v2/OrdersCancelResponse": orders_cancel_response +"/content:v2/OrdersCancelResponse/executionStatus": execution_status +"/content:v2/OrdersCancelResponse/kind": kind +"/content:v2/OrdersCreateTestOrderRequest": orders_create_test_order_request +"/content:v2/OrdersCreateTestOrderRequest/templateName": template_name +"/content:v2/OrdersCreateTestOrderRequest/testOrder": test_order +"/content:v2/OrdersCreateTestOrderResponse": orders_create_test_order_response +"/content:v2/OrdersCreateTestOrderResponse/kind": kind +"/content:v2/OrdersCreateTestOrderResponse/orderId": order_id +"/content:v2/OrdersCustomBatchRequest": orders_custom_batch_request +"/content:v2/OrdersCustomBatchRequest/entries": entries +"/content:v2/OrdersCustomBatchRequest/entries/entry": entry +"/content:v2/OrdersCustomBatchRequestEntry": orders_custom_batch_request_entry +"/content:v2/OrdersCustomBatchRequestEntry/batchId": batch_id +"/content:v2/OrdersCustomBatchRequestEntry/cancel": cancel +"/content:v2/OrdersCustomBatchRequestEntry/cancelLineItem": cancel_line_item +"/content:v2/OrdersCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2/OrdersCustomBatchRequestEntry/merchantOrderId": merchant_order_id +"/content:v2/OrdersCustomBatchRequestEntry/method": method_prop +"/content:v2/OrdersCustomBatchRequestEntry/operationId": operation_id +"/content:v2/OrdersCustomBatchRequestEntry/orderId": order_id +"/content:v2/OrdersCustomBatchRequestEntry/refund": refund +"/content:v2/OrdersCustomBatchRequestEntry/returnLineItem": return_line_item +"/content:v2/OrdersCustomBatchRequestEntry/shipLineItems": ship_line_items +"/content:v2/OrdersCustomBatchRequestEntry/updateShipment": update_shipment +"/content:v2/OrdersCustomBatchRequestEntryCancel": orders_custom_batch_request_entry_cancel +"/content:v2/OrdersCustomBatchRequestEntryCancel/reason": reason +"/content:v2/OrdersCustomBatchRequestEntryCancel/reasonText": reason_text +"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem": orders_custom_batch_request_entry_cancel_line_item +"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/lineItemId": line_item_id +"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/quantity": quantity +"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reason": reason +"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reasonText": reason_text +"/content:v2/OrdersCustomBatchRequestEntryRefund": orders_custom_batch_request_entry_refund +"/content:v2/OrdersCustomBatchRequestEntryRefund/amount": amount +"/content:v2/OrdersCustomBatchRequestEntryRefund/reason": reason +"/content:v2/OrdersCustomBatchRequestEntryRefund/reasonText": reason_text +"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem": orders_custom_batch_request_entry_return_line_item +"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/lineItemId": line_item_id +"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/quantity": quantity +"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reason": reason +"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reasonText": reason_text +"/content:v2/OrdersCustomBatchRequestEntryShipLineItems": orders_custom_batch_request_entry_ship_line_items +"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/carrier": carrier +"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/lineItems": line_items +"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/lineItems/line_item": line_item +"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentId": shipment_id +"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/trackingId": tracking_id +"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment": orders_custom_batch_request_entry_update_shipment +"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment/carrier": carrier +"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment/shipmentId": shipment_id +"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment/status": status +"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment/trackingId": tracking_id +"/content:v2/OrdersCustomBatchResponse": orders_custom_batch_response +"/content:v2/OrdersCustomBatchResponse/entries": entries +"/content:v2/OrdersCustomBatchResponse/entries/entry": entry +"/content:v2/OrdersCustomBatchResponse/kind": kind +"/content:v2/OrdersCustomBatchResponseEntry": orders_custom_batch_response_entry +"/content:v2/OrdersCustomBatchResponseEntry/batchId": batch_id +"/content:v2/OrdersCustomBatchResponseEntry/errors": errors +"/content:v2/OrdersCustomBatchResponseEntry/executionStatus": execution_status +"/content:v2/OrdersCustomBatchResponseEntry/kind": kind +"/content:v2/OrdersCustomBatchResponseEntry/order": order +"/content:v2/OrdersGetByMerchantOrderIdResponse": orders_get_by_merchant_order_id_response +"/content:v2/OrdersGetByMerchantOrderIdResponse/kind": kind +"/content:v2/OrdersGetByMerchantOrderIdResponse/order": order +"/content:v2/OrdersGetTestOrderTemplateResponse": orders_get_test_order_template_response +"/content:v2/OrdersGetTestOrderTemplateResponse/kind": kind +"/content:v2/OrdersGetTestOrderTemplateResponse/template": template +"/content:v2/OrdersListResponse": orders_list_response +"/content:v2/OrdersListResponse/kind": kind +"/content:v2/OrdersListResponse/nextPageToken": next_page_token +"/content:v2/OrdersListResponse/resources": resources +"/content:v2/OrdersListResponse/resources/resource": resource +"/content:v2/OrdersRefundRequest": orders_refund_request +"/content:v2/OrdersRefundRequest/amount": amount +"/content:v2/OrdersRefundRequest/operationId": operation_id +"/content:v2/OrdersRefundRequest/reason": reason +"/content:v2/OrdersRefundRequest/reasonText": reason_text +"/content:v2/OrdersRefundResponse": orders_refund_response +"/content:v2/OrdersRefundResponse/executionStatus": execution_status +"/content:v2/OrdersRefundResponse/kind": kind +"/content:v2/OrdersReturnLineItemRequest": orders_return_line_item_request +"/content:v2/OrdersReturnLineItemRequest/lineItemId": line_item_id +"/content:v2/OrdersReturnLineItemRequest/operationId": operation_id +"/content:v2/OrdersReturnLineItemRequest/quantity": quantity +"/content:v2/OrdersReturnLineItemRequest/reason": reason +"/content:v2/OrdersReturnLineItemRequest/reasonText": reason_text +"/content:v2/OrdersReturnLineItemResponse": orders_return_line_item_response +"/content:v2/OrdersReturnLineItemResponse/executionStatus": execution_status +"/content:v2/OrdersReturnLineItemResponse/kind": kind +"/content:v2/OrdersShipLineItemsRequest": orders_ship_line_items_request +"/content:v2/OrdersShipLineItemsRequest/carrier": carrier +"/content:v2/OrdersShipLineItemsRequest/lineItems": line_items +"/content:v2/OrdersShipLineItemsRequest/lineItems/line_item": line_item +"/content:v2/OrdersShipLineItemsRequest/operationId": operation_id +"/content:v2/OrdersShipLineItemsRequest/shipmentId": shipment_id +"/content:v2/OrdersShipLineItemsRequest/trackingId": tracking_id +"/content:v2/OrdersShipLineItemsResponse": orders_ship_line_items_response +"/content:v2/OrdersShipLineItemsResponse/executionStatus": execution_status +"/content:v2/OrdersShipLineItemsResponse/kind": kind +"/content:v2/OrdersUpdateMerchantOrderIdRequest": orders_update_merchant_order_id_request +"/content:v2/OrdersUpdateMerchantOrderIdRequest/merchantOrderId": merchant_order_id +"/content:v2/OrdersUpdateMerchantOrderIdRequest/operationId": operation_id +"/content:v2/OrdersUpdateMerchantOrderIdResponse": orders_update_merchant_order_id_response +"/content:v2/OrdersUpdateMerchantOrderIdResponse/executionStatus": execution_status +"/content:v2/OrdersUpdateMerchantOrderIdResponse/kind": kind +"/content:v2/OrdersUpdateShipmentRequest": orders_update_shipment_request +"/content:v2/OrdersUpdateShipmentRequest/carrier": carrier +"/content:v2/OrdersUpdateShipmentRequest/operationId": operation_id +"/content:v2/OrdersUpdateShipmentRequest/shipmentId": shipment_id +"/content:v2/OrdersUpdateShipmentRequest/status": status +"/content:v2/OrdersUpdateShipmentRequest/trackingId": tracking_id +"/content:v2/OrdersUpdateShipmentResponse": orders_update_shipment_response +"/content:v2/OrdersUpdateShipmentResponse/executionStatus": execution_status +"/content:v2/OrdersUpdateShipmentResponse/kind": kind "/content:v2/Price": price "/content:v2/Price/currency": currency "/content:v2/Price/value": value @@ -8526,6 +9531,7 @@ "/content:v2/Product/productType": product_type "/content:v2/Product/salePrice": sale_price "/content:v2/Product/salePriceEffectiveDate": sale_price_effective_date +"/content:v2/Product/sellOnGoogleQuantity": sell_on_google_quantity "/content:v2/Product/shipping": shipping "/content:v2/Product/shipping/shipping": shipping "/content:v2/Product/shippingHeight": shipping_height @@ -8563,9 +9569,6 @@ "/content:v2/ProductDestination": product_destination "/content:v2/ProductDestination/destinationName": destination_name "/content:v2/ProductDestination/intention": intention -"/content:v2/ProductInstallment": product_installment -"/content:v2/ProductInstallment/amount": amount -"/content:v2/ProductInstallment/months": months "/content:v2/ProductShipping": product_shipping "/content:v2/ProductShipping/country": country "/content:v2/ProductShipping/locationGroupName": location_group_name @@ -8651,6 +9654,47 @@ "/content:v2/ProductstatusesListResponse/nextPageToken": next_page_token "/content:v2/ProductstatusesListResponse/resources": resources "/content:v2/ProductstatusesListResponse/resources/resource": resource +"/content:v2/TestOrder": test_order +"/content:v2/TestOrder/customer": customer +"/content:v2/TestOrder/kind": kind +"/content:v2/TestOrder/lineItems": line_items +"/content:v2/TestOrder/lineItems/line_item": line_item +"/content:v2/TestOrder/paymentMethod": payment_method +"/content:v2/TestOrder/predefinedDeliveryAddress": predefined_delivery_address +"/content:v2/TestOrder/shippingCost": shipping_cost +"/content:v2/TestOrder/shippingCostTax": shipping_cost_tax +"/content:v2/TestOrder/shippingOption": shipping_option +"/content:v2/TestOrderCustomer": test_order_customer +"/content:v2/TestOrderCustomer/email": email +"/content:v2/TestOrderCustomer/explicitMarketingPreference": explicit_marketing_preference +"/content:v2/TestOrderCustomer/fullName": full_name +"/content:v2/TestOrderLineItem": test_order_line_item +"/content:v2/TestOrderLineItem/product": product +"/content:v2/TestOrderLineItem/quantityOrdered": quantity_ordered +"/content:v2/TestOrderLineItem/returnInfo": return_info +"/content:v2/TestOrderLineItem/shippingDetails": shipping_details +"/content:v2/TestOrderLineItem/unitTax": unit_tax +"/content:v2/TestOrderLineItemProduct": test_order_line_item_product +"/content:v2/TestOrderLineItemProduct/brand": brand +"/content:v2/TestOrderLineItemProduct/channel": channel +"/content:v2/TestOrderLineItemProduct/condition": condition +"/content:v2/TestOrderLineItemProduct/contentLanguage": content_language +"/content:v2/TestOrderLineItemProduct/gtin": gtin +"/content:v2/TestOrderLineItemProduct/imageLink": image_link +"/content:v2/TestOrderLineItemProduct/itemGroupId": item_group_id +"/content:v2/TestOrderLineItemProduct/mpn": mpn +"/content:v2/TestOrderLineItemProduct/offerId": offer_id +"/content:v2/TestOrderLineItemProduct/price": price +"/content:v2/TestOrderLineItemProduct/targetCountry": target_country +"/content:v2/TestOrderLineItemProduct/title": title +"/content:v2/TestOrderLineItemProduct/variantAttributes": variant_attributes +"/content:v2/TestOrderLineItemProduct/variantAttributes/variant_attribute": variant_attribute +"/content:v2/TestOrderPaymentMethod": test_order_payment_method +"/content:v2/TestOrderPaymentMethod/expirationMonth": expiration_month +"/content:v2/TestOrderPaymentMethod/expirationYear": expiration_year +"/content:v2/TestOrderPaymentMethod/lastFourDigits": last_four_digits +"/content:v2/TestOrderPaymentMethod/predefinedBillingAddress": predefined_billing_address +"/content:v2/TestOrderPaymentMethod/type": type "/content:v2/Weight": weight "/content:v2/Weight/unit": unit "/content:v2/Weight/value": value @@ -8677,6 +9721,7 @@ "/coordinate:v1/coordinate.jobs.list": list_jobs "/coordinate:v1/coordinate.jobs.list/maxResults": max_results "/coordinate:v1/coordinate.jobs.list/minModifiedTimestampMs": min_modified_timestamp_ms +"/coordinate:v1/coordinate.jobs.list/omitJobChanges": omit_job_changes "/coordinate:v1/coordinate.jobs.list/pageToken": page_token "/coordinate:v1/coordinate.jobs.list/teamId": team_id "/coordinate:v1/coordinate.jobs.patch": patch_job @@ -8976,17 +10021,17 @@ "/datastore:v1beta2/key": key "/datastore:v1beta2/quotaUser": quota_user "/datastore:v1beta2/userIp": user_ip -"/datastore:v1beta2/datastore.datasets.allocateIds": allocate_ids +"/datastore:v1beta2/datastore.datasets.allocateIds": allocate_dataset_ids "/datastore:v1beta2/datastore.datasets.allocateIds/datasetId": dataset_id -"/datastore:v1beta2/datastore.datasets.beginTransaction": begin_transaction +"/datastore:v1beta2/datastore.datasets.beginTransaction": begin_dataset_transaction "/datastore:v1beta2/datastore.datasets.beginTransaction/datasetId": dataset_id -"/datastore:v1beta2/datastore.datasets.commit": commit +"/datastore:v1beta2/datastore.datasets.commit": commit_dataset "/datastore:v1beta2/datastore.datasets.commit/datasetId": dataset_id -"/datastore:v1beta2/datastore.datasets.lookup": lookup +"/datastore:v1beta2/datastore.datasets.lookup": lookup_dataset "/datastore:v1beta2/datastore.datasets.lookup/datasetId": dataset_id -"/datastore:v1beta2/datastore.datasets.rollback": rollback +"/datastore:v1beta2/datastore.datasets.rollback": rollback_dataset "/datastore:v1beta2/datastore.datasets.rollback/datasetId": dataset_id -"/datastore:v1beta2/datastore.datasets.runQuery": run_query +"/datastore:v1beta2/datastore.datasets.runQuery": run_dataset_query "/datastore:v1beta2/datastore.datasets.runQuery/datasetId": dataset_id "/datastore:v1beta2/AllocateIdsRequest/keys": keys "/datastore:v1beta2/AllocateIdsRequest/keys/key": key @@ -9147,172 +10192,204 @@ "/datastore:v1beta2/Value/listValue/list_value": list_value "/datastore:v1beta2/Value/meaning": meaning "/datastore:v1beta2/Value/stringValue": string_value -"/deploymentmanager:v2beta2/fields": fields -"/deploymentmanager:v2beta2/key": key -"/deploymentmanager:v2beta2/quotaUser": quota_user -"/deploymentmanager:v2beta2/userIp": user_ip -"/deploymentmanager:v2beta2/deploymentmanager.deployments.delete": delete_deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.delete/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.delete/project": project -"/deploymentmanager:v2beta2/deploymentmanager.deployments.get": get_deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.get/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.get/project": project -"/deploymentmanager:v2beta2/deploymentmanager.deployments.insert": insert_deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.insert/project": project -"/deploymentmanager:v2beta2/deploymentmanager.deployments.list": list_deployments -"/deploymentmanager:v2beta2/deploymentmanager.deployments.list/filter": filter -"/deploymentmanager:v2beta2/deploymentmanager.deployments.list/maxResults": max_results -"/deploymentmanager:v2beta2/deploymentmanager.deployments.list/pageToken": page_token -"/deploymentmanager:v2beta2/deploymentmanager.deployments.list/project": project -"/deploymentmanager:v2beta2/deploymentmanager.deployments.patch": patch_deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.patch/createPolicy": create_policy -"/deploymentmanager:v2beta2/deploymentmanager.deployments.patch/deletePolicy": delete_policy -"/deploymentmanager:v2beta2/deploymentmanager.deployments.patch/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.patch/project": project -"/deploymentmanager:v2beta2/deploymentmanager.deployments.patch/updatePolicy": update_policy -"/deploymentmanager:v2beta2/deploymentmanager.deployments.update": update_deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.update/createPolicy": create_policy -"/deploymentmanager:v2beta2/deploymentmanager.deployments.update/deletePolicy": delete_policy -"/deploymentmanager:v2beta2/deploymentmanager.deployments.update/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.deployments.update/project": project -"/deploymentmanager:v2beta2/deploymentmanager.deployments.update/updatePolicy": update_policy -"/deploymentmanager:v2beta2/deploymentmanager.manifests.get": get_manifest -"/deploymentmanager:v2beta2/deploymentmanager.manifests.get/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.manifests.get/manifest": manifest -"/deploymentmanager:v2beta2/deploymentmanager.manifests.get/project": project -"/deploymentmanager:v2beta2/deploymentmanager.manifests.list": list_manifests -"/deploymentmanager:v2beta2/deploymentmanager.manifests.list/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.manifests.list/filter": filter -"/deploymentmanager:v2beta2/deploymentmanager.manifests.list/maxResults": max_results -"/deploymentmanager:v2beta2/deploymentmanager.manifests.list/pageToken": page_token -"/deploymentmanager:v2beta2/deploymentmanager.manifests.list/project": project -"/deploymentmanager:v2beta2/deploymentmanager.operations.get": get_operation -"/deploymentmanager:v2beta2/deploymentmanager.operations.get/operation": operation -"/deploymentmanager:v2beta2/deploymentmanager.operations.get/project": project -"/deploymentmanager:v2beta2/deploymentmanager.operations.list": list_operations -"/deploymentmanager:v2beta2/deploymentmanager.operations.list/filter": filter -"/deploymentmanager:v2beta2/deploymentmanager.operations.list/maxResults": max_results -"/deploymentmanager:v2beta2/deploymentmanager.operations.list/pageToken": page_token -"/deploymentmanager:v2beta2/deploymentmanager.operations.list/project": project -"/deploymentmanager:v2beta2/deploymentmanager.resources.get": get_resource -"/deploymentmanager:v2beta2/deploymentmanager.resources.get/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.resources.get/project": project -"/deploymentmanager:v2beta2/deploymentmanager.resources.get/resource": resource -"/deploymentmanager:v2beta2/deploymentmanager.resources.list": list_resources -"/deploymentmanager:v2beta2/deploymentmanager.resources.list/deployment": deployment -"/deploymentmanager:v2beta2/deploymentmanager.resources.list/filter": filter -"/deploymentmanager:v2beta2/deploymentmanager.resources.list/maxResults": max_results -"/deploymentmanager:v2beta2/deploymentmanager.resources.list/pageToken": page_token -"/deploymentmanager:v2beta2/deploymentmanager.resources.list/project": project -"/deploymentmanager:v2beta2/deploymentmanager.types.list": list_types -"/deploymentmanager:v2beta2/deploymentmanager.types.list/filter": filter -"/deploymentmanager:v2beta2/deploymentmanager.types.list/maxResults": max_results -"/deploymentmanager:v2beta2/deploymentmanager.types.list/pageToken": page_token -"/deploymentmanager:v2beta2/deploymentmanager.types.list/project": project -"/deploymentmanager:v2beta2/Deployment": deployment -"/deploymentmanager:v2beta2/Deployment/description": description -"/deploymentmanager:v2beta2/Deployment/fingerprint": fingerprint -"/deploymentmanager:v2beta2/Deployment/id": id -"/deploymentmanager:v2beta2/Deployment/insertTime": insert_time -"/deploymentmanager:v2beta2/Deployment/intent": intent -"/deploymentmanager:v2beta2/Deployment/manifest": manifest -"/deploymentmanager:v2beta2/Deployment/name": name -"/deploymentmanager:v2beta2/Deployment/state": state -"/deploymentmanager:v2beta2/Deployment/target": target -"/deploymentmanager:v2beta2/Deployment/update": update -"/deploymentmanager:v2beta2/Deployment/updateTime": update_time -"/deploymentmanager:v2beta2/DeploymentUpdate": deployment_update -"/deploymentmanager:v2beta2/DeploymentUpdate/errors": errors -"/deploymentmanager:v2beta2/DeploymentUpdate/errors/error": error -"/deploymentmanager:v2beta2/DeploymentUpdate/manifest": manifest -"/deploymentmanager:v2beta2/DeploymentsListResponse/deployments": deployments -"/deploymentmanager:v2beta2/DeploymentsListResponse/deployments/deployment": deployment -"/deploymentmanager:v2beta2/DeploymentsListResponse/nextPageToken": next_page_token -"/deploymentmanager:v2beta2/ImportFile": import_file -"/deploymentmanager:v2beta2/ImportFile/content": content -"/deploymentmanager:v2beta2/ImportFile/name": name -"/deploymentmanager:v2beta2/Manifest": manifest -"/deploymentmanager:v2beta2/Manifest/config": config -"/deploymentmanager:v2beta2/Manifest/evaluatedConfig": evaluated_config -"/deploymentmanager:v2beta2/Manifest/id": id -"/deploymentmanager:v2beta2/Manifest/imports": imports -"/deploymentmanager:v2beta2/Manifest/imports/import": import -"/deploymentmanager:v2beta2/Manifest/insertTime": insert_time -"/deploymentmanager:v2beta2/Manifest/layout": layout -"/deploymentmanager:v2beta2/Manifest/name": name -"/deploymentmanager:v2beta2/Manifest/selfLink": self_link -"/deploymentmanager:v2beta2/ManifestsListResponse/manifests": manifests -"/deploymentmanager:v2beta2/ManifestsListResponse/manifests/manifest": manifest -"/deploymentmanager:v2beta2/ManifestsListResponse/nextPageToken": next_page_token -"/deploymentmanager:v2beta2/Operation": operation -"/deploymentmanager:v2beta2/Operation/clientOperationId": client_operation_id -"/deploymentmanager:v2beta2/Operation/creationTimestamp": creation_timestamp -"/deploymentmanager:v2beta2/Operation/endTime": end_time -"/deploymentmanager:v2beta2/Operation/error": error -"/deploymentmanager:v2beta2/Operation/error/errors": errors -"/deploymentmanager:v2beta2/Operation/error/errors/error": error -"/deploymentmanager:v2beta2/Operation/error/errors/error/code": code -"/deploymentmanager:v2beta2/Operation/error/errors/error/location": location -"/deploymentmanager:v2beta2/Operation/error/errors/error/message": message -"/deploymentmanager:v2beta2/Operation/httpErrorMessage": http_error_message -"/deploymentmanager:v2beta2/Operation/httpErrorStatusCode": http_error_status_code -"/deploymentmanager:v2beta2/Operation/id": id -"/deploymentmanager:v2beta2/Operation/insertTime": insert_time -"/deploymentmanager:v2beta2/Operation/kind": kind -"/deploymentmanager:v2beta2/Operation/name": name -"/deploymentmanager:v2beta2/Operation/operationType": operation_type -"/deploymentmanager:v2beta2/Operation/progress": progress -"/deploymentmanager:v2beta2/Operation/region": region -"/deploymentmanager:v2beta2/Operation/selfLink": self_link -"/deploymentmanager:v2beta2/Operation/startTime": start_time -"/deploymentmanager:v2beta2/Operation/status": status -"/deploymentmanager:v2beta2/Operation/statusMessage": status_message -"/deploymentmanager:v2beta2/Operation/targetId": target_id -"/deploymentmanager:v2beta2/Operation/targetLink": target_link -"/deploymentmanager:v2beta2/Operation/user": user -"/deploymentmanager:v2beta2/Operation/warnings": warnings -"/deploymentmanager:v2beta2/Operation/warnings/warning": warning -"/deploymentmanager:v2beta2/Operation/warnings/warning/code": code -"/deploymentmanager:v2beta2/Operation/warnings/warning/data": data -"/deploymentmanager:v2beta2/Operation/warnings/warning/data/datum": datum -"/deploymentmanager:v2beta2/Operation/warnings/warning/data/datum/key": key -"/deploymentmanager:v2beta2/Operation/warnings/warning/data/datum/value": value -"/deploymentmanager:v2beta2/Operation/warnings/warning/message": message -"/deploymentmanager:v2beta2/Operation/zone": zone -"/deploymentmanager:v2beta2/OperationsListResponse/nextPageToken": next_page_token -"/deploymentmanager:v2beta2/OperationsListResponse/operations": operations -"/deploymentmanager:v2beta2/OperationsListResponse/operations/operation": operation -"/deploymentmanager:v2beta2/Resource": resource -"/deploymentmanager:v2beta2/Resource/finalProperties": final_properties -"/deploymentmanager:v2beta2/Resource/id": id -"/deploymentmanager:v2beta2/Resource/insertTime": insert_time -"/deploymentmanager:v2beta2/Resource/manifest": manifest -"/deploymentmanager:v2beta2/Resource/name": name -"/deploymentmanager:v2beta2/Resource/properties": properties -"/deploymentmanager:v2beta2/Resource/type": type -"/deploymentmanager:v2beta2/Resource/update": update -"/deploymentmanager:v2beta2/Resource/updateTime": update_time -"/deploymentmanager:v2beta2/Resource/url": url -"/deploymentmanager:v2beta2/ResourceUpdate": resource_update -"/deploymentmanager:v2beta2/ResourceUpdate/errors": errors -"/deploymentmanager:v2beta2/ResourceUpdate/errors/error": error -"/deploymentmanager:v2beta2/ResourceUpdate/finalProperties": final_properties -"/deploymentmanager:v2beta2/ResourceUpdate/intent": intent -"/deploymentmanager:v2beta2/ResourceUpdate/manifest": manifest -"/deploymentmanager:v2beta2/ResourceUpdate/properties": properties -"/deploymentmanager:v2beta2/ResourceUpdate/state": state -"/deploymentmanager:v2beta2/ResourcesListResponse/nextPageToken": next_page_token -"/deploymentmanager:v2beta2/ResourcesListResponse/resources": resources -"/deploymentmanager:v2beta2/ResourcesListResponse/resources/resource": resource -"/deploymentmanager:v2beta2/TargetConfiguration": target_configuration -"/deploymentmanager:v2beta2/TargetConfiguration/config": config -"/deploymentmanager:v2beta2/TargetConfiguration/imports": imports -"/deploymentmanager:v2beta2/TargetConfiguration/imports/import": import -"/deploymentmanager:v2beta2/Type": type -"/deploymentmanager:v2beta2/Type/name": name -"/deploymentmanager:v2beta2/TypesListResponse/nextPageToken": next_page_token -"/deploymentmanager:v2beta2/TypesListResponse/types": types -"/deploymentmanager:v2beta2/TypesListResponse/types/type": type +"/deploymentmanager:v2/fields": fields +"/deploymentmanager:v2/key": key +"/deploymentmanager:v2/quotaUser": quota_user +"/deploymentmanager:v2/userIp": user_ip +"/deploymentmanager:v2/deploymentmanager.deployments.cancelPreview": cancel_deployment_preview +"/deploymentmanager:v2/deploymentmanager.deployments.cancelPreview/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.deployments.cancelPreview/project": project +"/deploymentmanager:v2/deploymentmanager.deployments.delete": delete_deployment +"/deploymentmanager:v2/deploymentmanager.deployments.delete/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.deployments.delete/project": project +"/deploymentmanager:v2/deploymentmanager.deployments.get": get_deployment +"/deploymentmanager:v2/deploymentmanager.deployments.get/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.deployments.get/project": project +"/deploymentmanager:v2/deploymentmanager.deployments.insert": insert_deployment +"/deploymentmanager:v2/deploymentmanager.deployments.insert/preview": preview +"/deploymentmanager:v2/deploymentmanager.deployments.insert/project": project +"/deploymentmanager:v2/deploymentmanager.deployments.list": list_deployments +"/deploymentmanager:v2/deploymentmanager.deployments.list/filter": filter +"/deploymentmanager:v2/deploymentmanager.deployments.list/maxResults": max_results +"/deploymentmanager:v2/deploymentmanager.deployments.list/pageToken": page_token +"/deploymentmanager:v2/deploymentmanager.deployments.list/project": project +"/deploymentmanager:v2/deploymentmanager.deployments.patch": patch_deployment +"/deploymentmanager:v2/deploymentmanager.deployments.patch/createPolicy": create_policy +"/deploymentmanager:v2/deploymentmanager.deployments.patch/deletePolicy": delete_policy +"/deploymentmanager:v2/deploymentmanager.deployments.patch/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.deployments.patch/preview": preview +"/deploymentmanager:v2/deploymentmanager.deployments.patch/project": project +"/deploymentmanager:v2/deploymentmanager.deployments.stop": stop_deployment +"/deploymentmanager:v2/deploymentmanager.deployments.stop/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.deployments.stop/project": project +"/deploymentmanager:v2/deploymentmanager.deployments.update": update_deployment +"/deploymentmanager:v2/deploymentmanager.deployments.update/createPolicy": create_policy +"/deploymentmanager:v2/deploymentmanager.deployments.update/deletePolicy": delete_policy +"/deploymentmanager:v2/deploymentmanager.deployments.update/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.deployments.update/preview": preview +"/deploymentmanager:v2/deploymentmanager.deployments.update/project": project +"/deploymentmanager:v2/deploymentmanager.manifests.get": get_manifest +"/deploymentmanager:v2/deploymentmanager.manifests.get/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.manifests.get/manifest": manifest +"/deploymentmanager:v2/deploymentmanager.manifests.get/project": project +"/deploymentmanager:v2/deploymentmanager.manifests.list": list_manifests +"/deploymentmanager:v2/deploymentmanager.manifests.list/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.manifests.list/filter": filter +"/deploymentmanager:v2/deploymentmanager.manifests.list/maxResults": max_results +"/deploymentmanager:v2/deploymentmanager.manifests.list/pageToken": page_token +"/deploymentmanager:v2/deploymentmanager.manifests.list/project": project +"/deploymentmanager:v2/deploymentmanager.operations.get": get_operation +"/deploymentmanager:v2/deploymentmanager.operations.get/operation": operation +"/deploymentmanager:v2/deploymentmanager.operations.get/project": project +"/deploymentmanager:v2/deploymentmanager.operations.list": list_operations +"/deploymentmanager:v2/deploymentmanager.operations.list/filter": filter +"/deploymentmanager:v2/deploymentmanager.operations.list/maxResults": max_results +"/deploymentmanager:v2/deploymentmanager.operations.list/pageToken": page_token +"/deploymentmanager:v2/deploymentmanager.operations.list/project": project +"/deploymentmanager:v2/deploymentmanager.resources.get": get_resource +"/deploymentmanager:v2/deploymentmanager.resources.get/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.resources.get/project": project +"/deploymentmanager:v2/deploymentmanager.resources.get/resource": resource +"/deploymentmanager:v2/deploymentmanager.resources.list": list_resources +"/deploymentmanager:v2/deploymentmanager.resources.list/deployment": deployment +"/deploymentmanager:v2/deploymentmanager.resources.list/filter": filter +"/deploymentmanager:v2/deploymentmanager.resources.list/maxResults": max_results +"/deploymentmanager:v2/deploymentmanager.resources.list/pageToken": page_token +"/deploymentmanager:v2/deploymentmanager.resources.list/project": project +"/deploymentmanager:v2/deploymentmanager.types.list": list_types +"/deploymentmanager:v2/deploymentmanager.types.list/filter": filter +"/deploymentmanager:v2/deploymentmanager.types.list/maxResults": max_results +"/deploymentmanager:v2/deploymentmanager.types.list/pageToken": page_token +"/deploymentmanager:v2/deploymentmanager.types.list/project": project +"/deploymentmanager:v2/ConfigFile": config_file +"/deploymentmanager:v2/ConfigFile/content": content +"/deploymentmanager:v2/Deployment": deployment +"/deploymentmanager:v2/Deployment/description": description +"/deploymentmanager:v2/Deployment/fingerprint": fingerprint +"/deploymentmanager:v2/Deployment/id": id +"/deploymentmanager:v2/Deployment/insertTime": insert_time +"/deploymentmanager:v2/Deployment/manifest": manifest +"/deploymentmanager:v2/Deployment/name": name +"/deploymentmanager:v2/Deployment/operation": operation +"/deploymentmanager:v2/Deployment/target": target +"/deploymentmanager:v2/Deployment/update": update +"/deploymentmanager:v2/DeploymentUpdate": deployment_update +"/deploymentmanager:v2/DeploymentUpdate/manifest": manifest +"/deploymentmanager:v2/DeploymentsCancelPreviewRequest": deployments_cancel_preview_request +"/deploymentmanager:v2/DeploymentsCancelPreviewRequest/fingerprint": fingerprint +"/deploymentmanager:v2/DeploymentsListResponse/deployments": deployments +"/deploymentmanager:v2/DeploymentsListResponse/deployments/deployment": deployment +"/deploymentmanager:v2/DeploymentsListResponse/nextPageToken": next_page_token +"/deploymentmanager:v2/DeploymentsStopRequest": deployments_stop_request +"/deploymentmanager:v2/DeploymentsStopRequest/fingerprint": fingerprint +"/deploymentmanager:v2/ImportFile": import_file +"/deploymentmanager:v2/ImportFile/content": content +"/deploymentmanager:v2/ImportFile/name": name +"/deploymentmanager:v2/Manifest": manifest +"/deploymentmanager:v2/Manifest/config": config +"/deploymentmanager:v2/Manifest/expandedConfig": expanded_config +"/deploymentmanager:v2/Manifest/id": id +"/deploymentmanager:v2/Manifest/imports": imports +"/deploymentmanager:v2/Manifest/imports/import": import +"/deploymentmanager:v2/Manifest/insertTime": insert_time +"/deploymentmanager:v2/Manifest/layout": layout +"/deploymentmanager:v2/Manifest/name": name +"/deploymentmanager:v2/Manifest/selfLink": self_link +"/deploymentmanager:v2/ManifestsListResponse/manifests": manifests +"/deploymentmanager:v2/ManifestsListResponse/manifests/manifest": manifest +"/deploymentmanager:v2/ManifestsListResponse/nextPageToken": next_page_token +"/deploymentmanager:v2/Operation": operation +"/deploymentmanager:v2/Operation/clientOperationId": client_operation_id +"/deploymentmanager:v2/Operation/creationTimestamp": creation_timestamp +"/deploymentmanager:v2/Operation/endTime": end_time +"/deploymentmanager:v2/Operation/error": error +"/deploymentmanager:v2/Operation/error/errors": errors +"/deploymentmanager:v2/Operation/error/errors/error": error +"/deploymentmanager:v2/Operation/error/errors/error/code": code +"/deploymentmanager:v2/Operation/error/errors/error/location": location +"/deploymentmanager:v2/Operation/error/errors/error/message": message +"/deploymentmanager:v2/Operation/httpErrorMessage": http_error_message +"/deploymentmanager:v2/Operation/httpErrorStatusCode": http_error_status_code +"/deploymentmanager:v2/Operation/id": id +"/deploymentmanager:v2/Operation/insertTime": insert_time +"/deploymentmanager:v2/Operation/kind": kind +"/deploymentmanager:v2/Operation/name": name +"/deploymentmanager:v2/Operation/operationType": operation_type +"/deploymentmanager:v2/Operation/progress": progress +"/deploymentmanager:v2/Operation/region": region +"/deploymentmanager:v2/Operation/selfLink": self_link +"/deploymentmanager:v2/Operation/startTime": start_time +"/deploymentmanager:v2/Operation/status": status +"/deploymentmanager:v2/Operation/statusMessage": status_message +"/deploymentmanager:v2/Operation/targetId": target_id +"/deploymentmanager:v2/Operation/targetLink": target_link +"/deploymentmanager:v2/Operation/user": user +"/deploymentmanager:v2/Operation/warnings": warnings +"/deploymentmanager:v2/Operation/warnings/warning": warning +"/deploymentmanager:v2/Operation/warnings/warning/code": code +"/deploymentmanager:v2/Operation/warnings/warning/data": data +"/deploymentmanager:v2/Operation/warnings/warning/data/datum": datum +"/deploymentmanager:v2/Operation/warnings/warning/data/datum/key": key +"/deploymentmanager:v2/Operation/warnings/warning/data/datum/value": value +"/deploymentmanager:v2/Operation/warnings/warning/message": message +"/deploymentmanager:v2/Operation/zone": zone +"/deploymentmanager:v2/OperationsListResponse/nextPageToken": next_page_token +"/deploymentmanager:v2/OperationsListResponse/operations": operations +"/deploymentmanager:v2/OperationsListResponse/operations/operation": operation +"/deploymentmanager:v2/Resource": resource +"/deploymentmanager:v2/Resource/finalProperties": final_properties +"/deploymentmanager:v2/Resource/id": id +"/deploymentmanager:v2/Resource/insertTime": insert_time +"/deploymentmanager:v2/Resource/manifest": manifest +"/deploymentmanager:v2/Resource/name": name +"/deploymentmanager:v2/Resource/properties": properties +"/deploymentmanager:v2/Resource/type": type +"/deploymentmanager:v2/Resource/update": update +"/deploymentmanager:v2/Resource/updateTime": update_time +"/deploymentmanager:v2/Resource/url": url +"/deploymentmanager:v2/Resource/warnings": warnings +"/deploymentmanager:v2/Resource/warnings/warning": warning +"/deploymentmanager:v2/Resource/warnings/warning/code": code +"/deploymentmanager:v2/Resource/warnings/warning/data": data +"/deploymentmanager:v2/Resource/warnings/warning/data/datum": datum +"/deploymentmanager:v2/Resource/warnings/warning/data/datum/key": key +"/deploymentmanager:v2/Resource/warnings/warning/data/datum/value": value +"/deploymentmanager:v2/Resource/warnings/warning/message": message +"/deploymentmanager:v2/ResourceUpdate": resource_update +"/deploymentmanager:v2/ResourceUpdate/error": error +"/deploymentmanager:v2/ResourceUpdate/error/errors": errors +"/deploymentmanager:v2/ResourceUpdate/error/errors/error": error +"/deploymentmanager:v2/ResourceUpdate/error/errors/error/code": code +"/deploymentmanager:v2/ResourceUpdate/error/errors/error/location": location +"/deploymentmanager:v2/ResourceUpdate/error/errors/error/message": message +"/deploymentmanager:v2/ResourceUpdate/finalProperties": final_properties +"/deploymentmanager:v2/ResourceUpdate/intent": intent +"/deploymentmanager:v2/ResourceUpdate/manifest": manifest +"/deploymentmanager:v2/ResourceUpdate/properties": properties +"/deploymentmanager:v2/ResourceUpdate/state": state +"/deploymentmanager:v2/ResourceUpdate/warnings": warnings +"/deploymentmanager:v2/ResourceUpdate/warnings/warning": warning +"/deploymentmanager:v2/ResourceUpdate/warnings/warning/code": code +"/deploymentmanager:v2/ResourceUpdate/warnings/warning/data": data +"/deploymentmanager:v2/ResourceUpdate/warnings/warning/data/datum": datum +"/deploymentmanager:v2/ResourceUpdate/warnings/warning/data/datum/key": key +"/deploymentmanager:v2/ResourceUpdate/warnings/warning/data/datum/value": value +"/deploymentmanager:v2/ResourceUpdate/warnings/warning/message": message +"/deploymentmanager:v2/ResourcesListResponse/nextPageToken": next_page_token +"/deploymentmanager:v2/ResourcesListResponse/resources": resources +"/deploymentmanager:v2/ResourcesListResponse/resources/resource": resource +"/deploymentmanager:v2/TargetConfiguration": target_configuration +"/deploymentmanager:v2/TargetConfiguration/config": config +"/deploymentmanager:v2/TargetConfiguration/imports": imports +"/deploymentmanager:v2/TargetConfiguration/imports/import": import +"/deploymentmanager:v2/Type": type +"/deploymentmanager:v2/Type/id": id +"/deploymentmanager:v2/Type/insertTime": insert_time +"/deploymentmanager:v2/Type/name": name +"/deploymentmanager:v2/Type/selfLink": self_link +"/deploymentmanager:v2/TypesListResponse/nextPageToken": next_page_token +"/deploymentmanager:v2/TypesListResponse/types": types +"/deploymentmanager:v2/TypesListResponse/types/type": type "/dfareporting:v2.1/fields": fields "/dfareporting:v2.1/key": key "/dfareporting:v2.1/quotaUser": quota_user @@ -11627,7 +12704,6 @@ "/discovery:v1/key": key "/discovery:v1/quotaUser": quota_user "/discovery:v1/userIp": user_ip -"/discovery:v1/discovery.apis.getRest": get_rest_api "/discovery:v1/discovery.apis.getRest/api": api "/discovery:v1/discovery.apis.getRest/version": version "/discovery:v1/discovery.apis.list": list_apis @@ -11725,6 +12801,7 @@ "/discovery:v1/RestDescription/servicePath": service_path "/discovery:v1/RestDescription/title": title "/discovery:v1/RestDescription/version": version +"/discovery:v1/RestDescription/version_module": version_module "/discovery:v1/RestMethod": rest_method "/discovery:v1/RestMethod/description": description "/discovery:v1/RestMethod/etagRequired": etag_required @@ -11860,6 +12937,7 @@ "/doubleclickbidmanager:v1/doubleclickbidmanager.queries.getquery/queryId": query_id "/doubleclickbidmanager:v1/doubleclickbidmanager.queries.runquery/queryId": query_id "/doubleclickbidmanager:v1/doubleclickbidmanager.reports.listreports/queryId": query_id +"/doubleclickbidmanager:v1/DownloadLineItemsRequest/fileSpec": file_spec "/doubleclickbidmanager:v1/DownloadLineItemsRequest/filterIds": filter_ids "/doubleclickbidmanager:v1/DownloadLineItemsRequest/filterIds/filter_id": filter_id "/doubleclickbidmanager:v1/DownloadLineItemsRequest/filterType": filter_type @@ -11976,11 +13054,11 @@ "/doubleclicksearch:v2/doubleclicksearch.conversion.patch/startDate": start_date "/doubleclicksearch:v2/doubleclicksearch.conversion.patch/startRow": start_row "/doubleclicksearch:v2/doubleclicksearch.conversion.update": update_conversion -"/doubleclicksearch:v2/doubleclicksearch.conversion.updateAvailability": update_availability +"/doubleclicksearch:v2/doubleclicksearch.conversion.updateAvailability": update_conversion_availability "/doubleclicksearch:v2/doubleclicksearch.reports.generate": generate_report "/doubleclicksearch:v2/doubleclicksearch.reports.get": get_report "/doubleclicksearch:v2/doubleclicksearch.reports.get/reportId": report_id -"/doubleclicksearch:v2/doubleclicksearch.reports.getFile": get_file_report +"/doubleclicksearch:v2/doubleclicksearch.reports.getFile": get_report_file "/doubleclicksearch:v2/doubleclicksearch.reports.getFile/reportFragment": report_fragment "/doubleclicksearch:v2/doubleclicksearch.reports.getFile/reportId": report_id "/doubleclicksearch:v2/doubleclicksearch.reports.request": request_report @@ -12062,6 +13140,7 @@ "/doubleclicksearch:v2/ReportApiColumnSpec/groupByColumn": group_by_column "/doubleclicksearch:v2/ReportApiColumnSpec/headerText": header_text "/doubleclicksearch:v2/ReportApiColumnSpec/platformSource": platform_source +"/doubleclicksearch:v2/ReportApiColumnSpec/productReportPerspective": product_report_perspective "/doubleclicksearch:v2/ReportApiColumnSpec/savedColumnName": saved_column_name "/doubleclicksearch:v2/ReportApiColumnSpec/startDate": start_date "/doubleclicksearch:v2/ReportRequest/columns": columns @@ -12154,6 +13233,7 @@ "/drive:v2/drive.children.list": list_children "/drive:v2/drive.children.list/folderId": folder_id "/drive:v2/drive.children.list/maxResults": max_results +"/drive:v2/drive.children.list/orderBy": order_by "/drive:v2/drive.children.list/pageToken": page_token "/drive:v2/drive.children.list/q": q "/drive:v2/drive.comments.delete": delete_comment @@ -12188,6 +13268,9 @@ "/drive:v2/drive.files.copy/visibility": visibility "/drive:v2/drive.files.delete": delete_file "/drive:v2/drive.files.delete/fileId": file_id +"/drive:v2/drive.files.generateIds": generate_file_ids +"/drive:v2/drive.files.generateIds/maxResults": max_results +"/drive:v2/drive.files.generateIds/space": space "/drive:v2/drive.files.get": get_file "/drive:v2/drive.files.get/acknowledgeAbuse": acknowledge_abuse "/drive:v2/drive.files.get/fileId": file_id @@ -12206,6 +13289,7 @@ "/drive:v2/drive.files.list": list_files "/drive:v2/drive.files.list/corpus": corpus "/drive:v2/drive.files.list/maxResults": max_results +"/drive:v2/drive.files.list/orderBy": order_by "/drive:v2/drive.files.list/pageToken": page_token "/drive:v2/drive.files.list/projection": projection "/drive:v2/drive.files.list/q": q @@ -12543,6 +13627,7 @@ "/drive:v2/File/fileExtension": file_extension "/drive:v2/File/fileSize": file_size "/drive:v2/File/folderColorRgb": folder_color_rgb +"/drive:v2/File/fullFileExtension": full_file_extension "/drive:v2/File/headRevisionId": head_revision_id "/drive:v2/File/iconLink": icon_link "/drive:v2/File/id": id @@ -12632,6 +13717,11 @@ "/drive:v2/FileList/nextLink": next_link "/drive:v2/FileList/nextPageToken": next_page_token "/drive:v2/FileList/selfLink": self_link +"/drive:v2/GeneratedIds": generated_ids +"/drive:v2/GeneratedIds/ids": ids +"/drive:v2/GeneratedIds/ids/id": id +"/drive:v2/GeneratedIds/kind": kind +"/drive:v2/GeneratedIds/space": space "/drive:v2/ParentList": parent_list "/drive:v2/ParentList/etag": etag "/drive:v2/ParentList/items": items @@ -12754,7 +13844,7 @@ "/fitness:v1/fitness.users.dataSources.datasets.patch/dataSourceId": data_source_id "/fitness:v1/fitness.users.dataSources.datasets.patch/datasetId": dataset_id "/fitness:v1/fitness.users.dataSources.datasets.patch/userId": user_id -"/fitness:v1/fitness.users.dataset.aggregate": aggregate +"/fitness:v1/fitness.users.dataset.aggregate": aggregate_dataset "/fitness:v1/fitness.users.dataset.aggregate/userId": user_id "/fitness:v1/fitness.users.sessions.delete": delete_user_session "/fitness:v1/fitness.users.sessions.delete/currentTimeMillis": current_time_millis @@ -12900,7 +13990,7 @@ "/fusiontables:v2/fusiontables.query.sql/hdrs": hdrs "/fusiontables:v2/fusiontables.query.sql/sql": sql "/fusiontables:v2/fusiontables.query.sql/typed": typed -"/fusiontables:v2/fusiontables.query.sqlGet": sql_get_query +"/fusiontables:v2/fusiontables.query.sqlGet": sql_query_get "/fusiontables:v2/fusiontables.query.sqlGet/hdrs": hdrs "/fusiontables:v2/fusiontables.query.sqlGet/sql": sql "/fusiontables:v2/fusiontables.query.sqlGet/typed": typed @@ -12945,7 +14035,7 @@ "/fusiontables:v2/fusiontables.table.patch": patch_table "/fusiontables:v2/fusiontables.table.patch/replaceViewDefinition": replace_view_definition "/fusiontables:v2/fusiontables.table.patch/tableId": table_id -"/fusiontables:v2/fusiontables.table.replaceRows": replace_rows_table +"/fusiontables:v2/fusiontables.table.replaceRows": replace_table_rows "/fusiontables:v2/fusiontables.table.replaceRows/delimiter": delimiter "/fusiontables:v2/fusiontables.table.replaceRows/encoding": encoding "/fusiontables:v2/fusiontables.table.replaceRows/endLine": end_line @@ -13154,7 +14244,7 @@ "/games:v1/games.achievements.list/state": state "/games:v1/games.achievements.reveal": reveal_achievement "/games:v1/games.achievements.reveal/achievementId": achievement_id -"/games:v1/games.achievements.setStepsAtLeast": set_steps_at_least_achievement +"/games:v1/games.achievements.setStepsAtLeast": set_achievement_steps_at_least "/games:v1/games.achievements.setStepsAtLeast/achievementId": achievement_id "/games:v1/games.achievements.setStepsAtLeast/steps": steps "/games:v1/games.achievements.unlock": unlock_achievement @@ -13164,7 +14254,7 @@ "/games:v1/games.applications.get/language": language "/games:v1/games.applications.get/platformType": platform_type "/games:v1/games.applications.played": played_application -"/games:v1/games.events.listByPlayer": list_by_player_event +"/games:v1/games.events.listByPlayer": list_event_by_player "/games:v1/games.events.listByPlayer/language": language "/games:v1/games.events.listByPlayer/maxResults": max_results "/games:v1/games.events.listByPlayer/pageToken": page_token @@ -13180,7 +14270,7 @@ "/games:v1/games.leaderboards.list/language": language "/games:v1/games.leaderboards.list/maxResults": max_results "/games:v1/games.leaderboards.list/pageToken": page_token -"/games:v1/games.metagame.listCategoriesByPlayer": list_categories_by_player_metagame +"/games:v1/games.metagame.listCategoriesByPlayer": list_metagame_categories_by_player "/games:v1/games.metagame.listCategoriesByPlayer/collection": collection "/games:v1/games.metagame.listCategoriesByPlayer/language": language "/games:v1/games.metagame.listCategoriesByPlayer/maxResults": max_results @@ -13247,7 +14337,7 @@ "/games:v1/games.scores.list/maxResults": max_results "/games:v1/games.scores.list/pageToken": page_token "/games:v1/games.scores.list/timeSpan": time_span -"/games:v1/games.scores.listWindow": list_window_score +"/games:v1/games.scores.listWindow": list_score_window "/games:v1/games.scores.listWindow/collection": collection "/games:v1/games.scores.listWindow/language": language "/games:v1/games.scores.listWindow/leaderboardId": leaderboard_id @@ -13261,7 +14351,7 @@ "/games:v1/games.scores.submit/leaderboardId": leaderboard_id "/games:v1/games.scores.submit/score": score "/games:v1/games.scores.submit/scoreTag": score_tag -"/games:v1/games.scores.submitMultiple": submit_multiple_score +"/games:v1/games.scores.submitMultiple": submit_score_multiple "/games:v1/games.scores.submitMultiple/language": language "/games:v1/games.snapshots.get": get_snapshot "/games:v1/games.snapshots.get/language": language @@ -13562,6 +14652,8 @@ "/games:v1/Played/timeMillis": time_millis "/games:v1/Player": player "/games:v1/Player/avatarImageUrl": avatar_image_url +"/games:v1/Player/bannerUrlLandscape": banner_url_landscape +"/games:v1/Player/bannerUrlPortrait": banner_url_portrait "/games:v1/Player/displayName": display_name "/games:v1/Player/experienceInfo": experience_info "/games:v1/Player/kind": kind @@ -13997,6 +15089,120 @@ "/gamesConfiguration:v1configuration/LocalizedStringBundle/kind": kind "/gamesConfiguration:v1configuration/LocalizedStringBundle/translations": translations "/gamesConfiguration:v1configuration/LocalizedStringBundle/translations/translation": translation +"/gamesManagement:v1management/fields": fields +"/gamesManagement:v1management/key": key +"/gamesManagement:v1management/quotaUser": quota_user +"/gamesManagement:v1management/userIp": user_ip +"/gamesManagement:v1management/gamesManagement.achievements.reset": reset_achievement +"/gamesManagement:v1management/gamesManagement.achievements.reset/achievementId": achievement_id +"/gamesManagement:v1management/gamesManagement.achievements.resetAll": reset_achievement_all +"/gamesManagement:v1management/gamesManagement.achievements.resetAllForAllPlayers": reset_achievement_all_for_all_players +"/gamesManagement:v1management/gamesManagement.achievements.resetForAllPlayers": reset_achievement_for_all_players +"/gamesManagement:v1management/gamesManagement.achievements.resetForAllPlayers/achievementId": achievement_id +"/gamesManagement:v1management/gamesManagement.achievements.resetMultipleForAllPlayers": reset_achievement_multiple_for_all_players +"/gamesManagement:v1management/gamesManagement.applications.listHidden": list_application_hidden +"/gamesManagement:v1management/gamesManagement.applications.listHidden/applicationId": application_id +"/gamesManagement:v1management/gamesManagement.applications.listHidden/maxResults": max_results +"/gamesManagement:v1management/gamesManagement.applications.listHidden/pageToken": page_token +"/gamesManagement:v1management/gamesManagement.events.reset": reset_event +"/gamesManagement:v1management/gamesManagement.events.reset/eventId": event_id +"/gamesManagement:v1management/gamesManagement.events.resetAll": reset_event_all +"/gamesManagement:v1management/gamesManagement.events.resetAllForAllPlayers": reset_event_all_for_all_players +"/gamesManagement:v1management/gamesManagement.events.resetForAllPlayers": reset_event_for_all_players +"/gamesManagement:v1management/gamesManagement.events.resetForAllPlayers/eventId": event_id +"/gamesManagement:v1management/gamesManagement.events.resetMultipleForAllPlayers": reset_event_multiple_for_all_players +"/gamesManagement:v1management/gamesManagement.players.hide": hide_player +"/gamesManagement:v1management/gamesManagement.players.hide/applicationId": application_id +"/gamesManagement:v1management/gamesManagement.players.hide/playerId": player_id +"/gamesManagement:v1management/gamesManagement.players.unhide": unhide_player +"/gamesManagement:v1management/gamesManagement.players.unhide/applicationId": application_id +"/gamesManagement:v1management/gamesManagement.players.unhide/playerId": player_id +"/gamesManagement:v1management/gamesManagement.quests.reset": reset_quest +"/gamesManagement:v1management/gamesManagement.quests.reset/questId": quest_id +"/gamesManagement:v1management/gamesManagement.quests.resetAll": reset_quest_all +"/gamesManagement:v1management/gamesManagement.quests.resetAllForAllPlayers": reset_quest_all_for_all_players +"/gamesManagement:v1management/gamesManagement.quests.resetForAllPlayers": reset_quest_for_all_players +"/gamesManagement:v1management/gamesManagement.quests.resetForAllPlayers/questId": quest_id +"/gamesManagement:v1management/gamesManagement.quests.resetMultipleForAllPlayers": reset_quest_multiple_for_all_players +"/gamesManagement:v1management/gamesManagement.rooms.reset": reset_room +"/gamesManagement:v1management/gamesManagement.rooms.resetForAllPlayers": reset_room_for_all_players +"/gamesManagement:v1management/gamesManagement.scores.reset": reset_score +"/gamesManagement:v1management/gamesManagement.scores.reset/leaderboardId": leaderboard_id +"/gamesManagement:v1management/gamesManagement.scores.resetAll": reset_score_all +"/gamesManagement:v1management/gamesManagement.scores.resetAllForAllPlayers": reset_score_all_for_all_players +"/gamesManagement:v1management/gamesManagement.scores.resetForAllPlayers": reset_score_for_all_players +"/gamesManagement:v1management/gamesManagement.scores.resetForAllPlayers/leaderboardId": leaderboard_id +"/gamesManagement:v1management/gamesManagement.scores.resetMultipleForAllPlayers": reset_score_multiple_for_all_players +"/gamesManagement:v1management/gamesManagement.turnBasedMatches.reset": reset_turn_based_match +"/gamesManagement:v1management/gamesManagement.turnBasedMatches.resetForAllPlayers": reset_turn_based_match_for_all_players +"/gamesManagement:v1management/AchievementResetAllResponse": achievement_reset_all_response +"/gamesManagement:v1management/AchievementResetAllResponse/kind": kind +"/gamesManagement:v1management/AchievementResetAllResponse/results": results +"/gamesManagement:v1management/AchievementResetAllResponse/results/result": result +"/gamesManagement:v1management/AchievementResetMultipleForAllRequest": achievement_reset_multiple_for_all_request +"/gamesManagement:v1management/AchievementResetMultipleForAllRequest/achievement_ids": achievement_ids +"/gamesManagement:v1management/AchievementResetMultipleForAllRequest/achievement_ids/achievement_id": achievement_id +"/gamesManagement:v1management/AchievementResetMultipleForAllRequest/kind": kind +"/gamesManagement:v1management/AchievementResetResponse": achievement_reset_response +"/gamesManagement:v1management/AchievementResetResponse/currentState": current_state +"/gamesManagement:v1management/AchievementResetResponse/definitionId": definition_id +"/gamesManagement:v1management/AchievementResetResponse/kind": kind +"/gamesManagement:v1management/AchievementResetResponse/updateOccurred": update_occurred +"/gamesManagement:v1management/EventsResetMultipleForAllRequest": events_reset_multiple_for_all_request +"/gamesManagement:v1management/EventsResetMultipleForAllRequest/event_ids": event_ids +"/gamesManagement:v1management/EventsResetMultipleForAllRequest/event_ids/event_id": event_id +"/gamesManagement:v1management/EventsResetMultipleForAllRequest/kind": kind +"/gamesManagement:v1management/GamesPlayedResource": games_played_resource +"/gamesManagement:v1management/GamesPlayedResource/autoMatched": auto_matched +"/gamesManagement:v1management/GamesPlayedResource/timeMillis": time_millis +"/gamesManagement:v1management/GamesPlayerExperienceInfoResource": games_player_experience_info_resource +"/gamesManagement:v1management/GamesPlayerExperienceInfoResource/currentExperiencePoints": current_experience_points +"/gamesManagement:v1management/GamesPlayerExperienceInfoResource/currentLevel": current_level +"/gamesManagement:v1management/GamesPlayerExperienceInfoResource/lastLevelUpTimestampMillis": last_level_up_timestamp_millis +"/gamesManagement:v1management/GamesPlayerExperienceInfoResource/nextLevel": next_level +"/gamesManagement:v1management/GamesPlayerLevelResource": games_player_level_resource +"/gamesManagement:v1management/GamesPlayerLevelResource/level": level +"/gamesManagement:v1management/GamesPlayerLevelResource/maxExperiencePoints": max_experience_points +"/gamesManagement:v1management/GamesPlayerLevelResource/minExperiencePoints": min_experience_points +"/gamesManagement:v1management/HiddenPlayer": hidden_player +"/gamesManagement:v1management/HiddenPlayer/hiddenTimeMillis": hidden_time_millis +"/gamesManagement:v1management/HiddenPlayer/kind": kind +"/gamesManagement:v1management/HiddenPlayer/player": player +"/gamesManagement:v1management/HiddenPlayerList": hidden_player_list +"/gamesManagement:v1management/HiddenPlayerList/items": items +"/gamesManagement:v1management/HiddenPlayerList/items/item": item +"/gamesManagement:v1management/HiddenPlayerList/kind": kind +"/gamesManagement:v1management/HiddenPlayerList/nextPageToken": next_page_token +"/gamesManagement:v1management/Player": player +"/gamesManagement:v1management/Player/avatarImageUrl": avatar_image_url +"/gamesManagement:v1management/Player/bannerUrlLandscape": banner_url_landscape +"/gamesManagement:v1management/Player/bannerUrlPortrait": banner_url_portrait +"/gamesManagement:v1management/Player/displayName": display_name +"/gamesManagement:v1management/Player/experienceInfo": experience_info +"/gamesManagement:v1management/Player/kind": kind +"/gamesManagement:v1management/Player/lastPlayedWith": last_played_with +"/gamesManagement:v1management/Player/name": name +"/gamesManagement:v1management/Player/name/familyName": family_name +"/gamesManagement:v1management/Player/name/givenName": given_name +"/gamesManagement:v1management/Player/playerId": player_id +"/gamesManagement:v1management/Player/title": title +"/gamesManagement:v1management/PlayerScoreResetAllResponse": player_score_reset_all_response +"/gamesManagement:v1management/PlayerScoreResetAllResponse/kind": kind +"/gamesManagement:v1management/PlayerScoreResetAllResponse/results": results +"/gamesManagement:v1management/PlayerScoreResetAllResponse/results/result": result +"/gamesManagement:v1management/PlayerScoreResetResponse": player_score_reset_response +"/gamesManagement:v1management/PlayerScoreResetResponse/definitionId": definition_id +"/gamesManagement:v1management/PlayerScoreResetResponse/kind": kind +"/gamesManagement:v1management/PlayerScoreResetResponse/resetScoreTimeSpans": reset_score_time_spans +"/gamesManagement:v1management/PlayerScoreResetResponse/resetScoreTimeSpans/reset_score_time_span": reset_score_time_span +"/gamesManagement:v1management/QuestsResetMultipleForAllRequest": quests_reset_multiple_for_all_request +"/gamesManagement:v1management/QuestsResetMultipleForAllRequest/kind": kind +"/gamesManagement:v1management/QuestsResetMultipleForAllRequest/quest_ids": quest_ids +"/gamesManagement:v1management/QuestsResetMultipleForAllRequest/quest_ids/quest_id": quest_id +"/gamesManagement:v1management/ScoresResetMultipleForAllRequest": scores_reset_multiple_for_all_request +"/gamesManagement:v1management/ScoresResetMultipleForAllRequest/kind": kind +"/gamesManagement:v1management/ScoresResetMultipleForAllRequest/leaderboard_ids": leaderboard_ids +"/gamesManagement:v1management/ScoresResetMultipleForAllRequest/leaderboard_ids/leaderboard_id": leaderboard_id "/gan:v1beta1/fields": fields "/gan:v1beta1/key": key "/gan:v1beta1/quotaUser": quota_user @@ -14318,7 +15524,7 @@ "/gmail:v1/gmail.users.getProfile/userId": user_id "/gmail:v1/gmail.users.stop": stop_user "/gmail:v1/gmail.users.stop/userId": user_id -"/gmail:v1/gmail.users.watch": watch +"/gmail:v1/gmail.users.watch": watch_user "/gmail:v1/gmail.users.watch/userId": user_id "/gmail:v1/gmail.users.drafts.create": create_user_draft "/gmail:v1/gmail.users.drafts.create/userId": user_id @@ -14588,113 +15794,561 @@ "/groupssettings:v1/Groups/whoCanPostMessage": who_can_post_message "/groupssettings:v1/Groups/whoCanViewGroup": who_can_view_group "/groupssettings:v1/Groups/whoCanViewMembership": who_can_view_membership -"/classroom:v1beta1/fields": fields -"/classroom:v1beta1/key": key -"/classroom:v1beta1/quotaUser": quota_user -"/classroom:v1beta1/classroom.courses.create": create_course -"/classroom:v1beta1/classroom.courses.get": get_course -"/classroom:v1beta1/classroom.courses.get/id": id -"/classroom:v1beta1/classroom.courses.update": update_course -"/classroom:v1beta1/classroom.courses.update/id": id -"/classroom:v1beta1/classroom.courses.patch": patch_course -"/classroom:v1beta1/classroom.courses.patch/id": id -"/classroom:v1beta1/classroom.courses.patch/updateMask": update_mask -"/classroom:v1beta1/classroom.courses.delete": delete_course -"/classroom:v1beta1/classroom.courses.delete/id": id -"/classroom:v1beta1/classroom.courses.list": list_courses -"/classroom:v1beta1/classroom.courses.list/studentId": student_id -"/classroom:v1beta1/classroom.courses.list/teacherId": teacher_id -"/classroom:v1beta1/classroom.courses.list/pageSize": page_size -"/classroom:v1beta1/classroom.courses.list/pageToken": page_token -"/classroom:v1beta1/classroom.courses.aliases.create": create_course_alias -"/classroom:v1beta1/classroom.courses.aliases.create/courseId": course_id -"/classroom:v1beta1/classroom.courses.aliases.delete": delete_course_alias -"/classroom:v1beta1/classroom.courses.aliases.delete/courseId": course_id -"/classroom:v1beta1/classroom.courses.aliases.delete/alias": alias_ -"/classroom:v1beta1/classroom.courses.aliases.list": list_course_aliases -"/classroom:v1beta1/classroom.courses.aliases.list/courseId": course_id -"/classroom:v1beta1/classroom.courses.aliases.list/pageSize": page_size -"/classroom:v1beta1/classroom.courses.aliases.list/pageToken": page_token -"/classroom:v1beta1/classroom.courses.teachers.create": create_course_teacher -"/classroom:v1beta1/classroom.courses.teachers.create/courseId": course_id -"/classroom:v1beta1/classroom.courses.teachers.get": get_course_teacher -"/classroom:v1beta1/classroom.courses.teachers.get/courseId": course_id -"/classroom:v1beta1/classroom.courses.teachers.get/userId": user_id -"/classroom:v1beta1/classroom.courses.teachers.delete": delete_course_teacher -"/classroom:v1beta1/classroom.courses.teachers.delete/courseId": course_id -"/classroom:v1beta1/classroom.courses.teachers.delete/userId": user_id -"/classroom:v1beta1/classroom.courses.teachers.list": list_course_teachers -"/classroom:v1beta1/classroom.courses.teachers.list/courseId": course_id -"/classroom:v1beta1/classroom.courses.teachers.list/pageSize": page_size -"/classroom:v1beta1/classroom.courses.teachers.list/pageToken": page_token -"/classroom:v1beta1/classroom.courses.students.create": create_course_student -"/classroom:v1beta1/classroom.courses.students.create/courseId": course_id -"/classroom:v1beta1/classroom.courses.students.create/enrollmentCode": enrollment_code -"/classroom:v1beta1/classroom.courses.students.get": get_course_student -"/classroom:v1beta1/classroom.courses.students.get/courseId": course_id -"/classroom:v1beta1/classroom.courses.students.get/userId": user_id -"/classroom:v1beta1/classroom.courses.students.delete": delete_course_student -"/classroom:v1beta1/classroom.courses.students.delete/courseId": course_id -"/classroom:v1beta1/classroom.courses.students.delete/userId": user_id -"/classroom:v1beta1/classroom.courses.students.list": list_course_students -"/classroom:v1beta1/classroom.courses.students.list/courseId": course_id -"/classroom:v1beta1/classroom.courses.students.list/pageSize": page_size -"/classroom:v1beta1/classroom.courses.students.list/pageToken": page_token -"/classroom:v1beta1/classroom.userProfiles.get": get_user_profile -"/classroom:v1beta1/classroom.userProfiles.get/userId": user_id -"/classroom:v1beta1/Course": course -"/classroom:v1beta1/Course/id": id -"/classroom:v1beta1/Course/name": name -"/classroom:v1beta1/Course/section": section -"/classroom:v1beta1/Course/descriptionHeading": description_heading -"/classroom:v1beta1/Course/description": description -"/classroom:v1beta1/Course/room": room -"/classroom:v1beta1/Course/primaryTeacherId": primary_teacher_id -"/classroom:v1beta1/Course/creationTime": creation_time -"/classroom:v1beta1/Course/updateTime": update_time -"/classroom:v1beta1/Course/enrollmentCode": enrollment_code -"/classroom:v1beta1/Course/courseState": course_state -"/classroom:v1beta1/Course/webLink": web_link -"/classroom:v1beta1/Empty": empty -"/classroom:v1beta1/ListCoursesResponse": list_courses_response -"/classroom:v1beta1/ListCoursesResponse/courses": courses -"/classroom:v1beta1/ListCoursesResponse/courses/course": course -"/classroom:v1beta1/ListCoursesResponse/nextPageToken": next_page_token -"/classroom:v1beta1/CourseAlias": course_alias -"/classroom:v1beta1/CourseAlias/alias": alias -"/classroom:v1beta1/ListCourseAliasesResponse": list_course_aliases_response -"/classroom:v1beta1/ListCourseAliasesResponse/aliases": aliases -"/classroom:v1beta1/ListCourseAliasesResponse/aliases/alias": alias -"/classroom:v1beta1/ListCourseAliasesResponse/nextPageToken": next_page_token -"/classroom:v1beta1/UserProfile": user_profile -"/classroom:v1beta1/UserProfile/id": id -"/classroom:v1beta1/UserProfile/name": name -"/classroom:v1beta1/UserProfile/emailAddress": email_address -"/classroom:v1beta1/UserProfile/photoUrl": photo_url -"/classroom:v1beta1/UserProfile/permissions": permissions -"/classroom:v1beta1/UserProfile/permissions/permission": permission -"/classroom:v1beta1/Name": name -"/classroom:v1beta1/Name/givenName": given_name -"/classroom:v1beta1/Name/familyName": family_name -"/classroom:v1beta1/Name/fullName": full_name -"/classroom:v1beta1/GlobalPermission": global_permission -"/classroom:v1beta1/GlobalPermission/permission": permission -"/classroom:v1beta1/Teacher": teacher -"/classroom:v1beta1/Teacher/courseId": course_id -"/classroom:v1beta1/Teacher/userId": user_id -"/classroom:v1beta1/Teacher/profile": profile -"/classroom:v1beta1/ListTeachersResponse": list_teachers_response -"/classroom:v1beta1/ListTeachersResponse/teachers": teachers -"/classroom:v1beta1/ListTeachersResponse/teachers/teacher": teacher -"/classroom:v1beta1/ListTeachersResponse/nextPageToken": next_page_token -"/classroom:v1beta1/Student": student -"/classroom:v1beta1/Student/courseId": course_id -"/classroom:v1beta1/Student/userId": user_id -"/classroom:v1beta1/Student/profile": profile -"/classroom:v1beta1/ListStudentsResponse": list_students_response -"/classroom:v1beta1/ListStudentsResponse/students": students -"/classroom:v1beta1/ListStudentsResponse/students/student": student -"/classroom:v1beta1/ListStudentsResponse/nextPageToken": next_page_token +"/appengine:v1beta4/fields": fields +"/appengine:v1beta4/key": key +"/appengine:v1beta4/quotaUser": quota_user +"/appengine:v1beta4/appengine.apps.get": get_app +"/appengine:v1beta4/appengine.apps.get/appsId": apps_id +"/appengine:v1beta4/appengine.apps.get/ensureResourcesExist": ensure_resources_exist +"/appengine:v1beta4/appengine.apps.modules.delete": delete_app_module +"/appengine:v1beta4/appengine.apps.modules.delete/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.delete/modulesId": modules_id +"/appengine:v1beta4/appengine.apps.modules.get": get_app_module +"/appengine:v1beta4/appengine.apps.modules.get/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.get/modulesId": modules_id +"/appengine:v1beta4/appengine.apps.modules.list": list_app_modules +"/appengine:v1beta4/appengine.apps.modules.list/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.list/pageSize": page_size +"/appengine:v1beta4/appengine.apps.modules.list/pageToken": page_token +"/appengine:v1beta4/appengine.apps.modules.patch": patch_app_module +"/appengine:v1beta4/appengine.apps.modules.patch/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.patch/modulesId": modules_id +"/appengine:v1beta4/appengine.apps.modules.patch/mask": mask +"/appengine:v1beta4/appengine.apps.modules.patch/migrateTraffic": migrate_traffic +"/appengine:v1beta4/appengine.apps.modules.versions.create": create_app_module_version +"/appengine:v1beta4/appengine.apps.modules.versions.create/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.versions.create/modulesId": modules_id +"/appengine:v1beta4/appengine.apps.modules.versions.delete": delete_app_module_version +"/appengine:v1beta4/appengine.apps.modules.versions.delete/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.versions.delete/modulesId": modules_id +"/appengine:v1beta4/appengine.apps.modules.versions.delete/versionsId": versions_id +"/appengine:v1beta4/appengine.apps.modules.versions.get": get_app_module_version +"/appengine:v1beta4/appengine.apps.modules.versions.get/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.versions.get/modulesId": modules_id +"/appengine:v1beta4/appengine.apps.modules.versions.get/versionsId": versions_id +"/appengine:v1beta4/appengine.apps.modules.versions.get/view": view +"/appengine:v1beta4/appengine.apps.modules.versions.list": list_app_module_versions +"/appengine:v1beta4/appengine.apps.modules.versions.list/appsId": apps_id +"/appengine:v1beta4/appengine.apps.modules.versions.list/modulesId": modules_id +"/appengine:v1beta4/appengine.apps.modules.versions.list/view": view +"/appengine:v1beta4/appengine.apps.modules.versions.list/pageSize": page_size +"/appengine:v1beta4/appengine.apps.modules.versions.list/pageToken": page_token +"/appengine:v1beta4/appengine.apps.operations.get": get_app_operation +"/appengine:v1beta4/appengine.apps.operations.get/appsId": apps_id +"/appengine:v1beta4/appengine.apps.operations.get/operationsId": operations_id +"/appengine:v1beta4/appengine.apps.operations.list": list_app_operations +"/appengine:v1beta4/appengine.apps.operations.list/appsId": apps_id +"/appengine:v1beta4/appengine.apps.operations.list/filter": filter +"/appengine:v1beta4/appengine.apps.operations.list/pageSize": page_size +"/appengine:v1beta4/appengine.apps.operations.list/pageToken": page_token +"/appengine:v1beta4/Application": application +"/appengine:v1beta4/Application/name": name +"/appengine:v1beta4/Application/id": id +"/appengine:v1beta4/Application/dispatchRules": dispatch_rules +"/appengine:v1beta4/Application/dispatchRules/dispatch_rule": dispatch_rule +"/appengine:v1beta4/Application/location": location +"/appengine:v1beta4/Application/codeBucket": code_bucket +"/appengine:v1beta4/UrlDispatchRule": url_dispatch_rule +"/appengine:v1beta4/UrlDispatchRule/domain": domain +"/appengine:v1beta4/UrlDispatchRule/path": path +"/appengine:v1beta4/UrlDispatchRule/module": module +"/appengine:v1beta4/Version": version +"/appengine:v1beta4/Version/name": name +"/appengine:v1beta4/Version/id": id +"/appengine:v1beta4/Version/automaticScaling": automatic_scaling +"/appengine:v1beta4/Version/basicScaling": basic_scaling +"/appengine:v1beta4/Version/manualScaling": manual_scaling +"/appengine:v1beta4/Version/inboundServices": inbound_services +"/appengine:v1beta4/Version/inboundServices/inbound_service": inbound_service +"/appengine:v1beta4/Version/instanceClass": instance_class +"/appengine:v1beta4/Version/network": network +"/appengine:v1beta4/Version/resources": resources +"/appengine:v1beta4/Version/runtime": runtime +"/appengine:v1beta4/Version/threadsafe": threadsafe +"/appengine:v1beta4/Version/vm": vm +"/appengine:v1beta4/Version/betaSettings": beta_settings +"/appengine:v1beta4/Version/betaSettings/beta_setting": beta_setting +"/appengine:v1beta4/Version/env": env +"/appengine:v1beta4/Version/servingStatus": serving_status +"/appengine:v1beta4/Version/deployer": deployer +"/appengine:v1beta4/Version/creationTime": creation_time +"/appengine:v1beta4/Version/handlers": handlers +"/appengine:v1beta4/Version/handlers/handler": handler +"/appengine:v1beta4/Version/errorHandlers": error_handlers +"/appengine:v1beta4/Version/errorHandlers/error_handler": error_handler +"/appengine:v1beta4/Version/libraries": libraries +"/appengine:v1beta4/Version/libraries/library": library +"/appengine:v1beta4/Version/apiConfig": api_config +"/appengine:v1beta4/Version/envVariables": env_variables +"/appengine:v1beta4/Version/envVariables/env_variable": env_variable +"/appengine:v1beta4/Version/defaultExpiration": default_expiration +"/appengine:v1beta4/Version/healthCheck": health_check +"/appengine:v1beta4/Version/nobuildFilesRegex": nobuild_files_regex +"/appengine:v1beta4/Version/deployment": deployment +"/appengine:v1beta4/AutomaticScaling": automatic_scaling +"/appengine:v1beta4/AutomaticScaling/coolDownPeriod": cool_down_period +"/appengine:v1beta4/AutomaticScaling/cpuUtilization": cpu_utilization +"/appengine:v1beta4/AutomaticScaling/maxConcurrentRequests": max_concurrent_requests +"/appengine:v1beta4/AutomaticScaling/maxIdleInstances": max_idle_instances +"/appengine:v1beta4/AutomaticScaling/maxTotalInstances": max_total_instances +"/appengine:v1beta4/AutomaticScaling/maxPendingLatency": max_pending_latency +"/appengine:v1beta4/AutomaticScaling/minIdleInstances": min_idle_instances +"/appengine:v1beta4/AutomaticScaling/minTotalInstances": min_total_instances +"/appengine:v1beta4/AutomaticScaling/minPendingLatency": min_pending_latency +"/appengine:v1beta4/AutomaticScaling/requestUtilization": request_utilization +"/appengine:v1beta4/AutomaticScaling/diskUtilization": disk_utilization +"/appengine:v1beta4/AutomaticScaling/networkUtilization": network_utilization +"/appengine:v1beta4/CpuUtilization": cpu_utilization +"/appengine:v1beta4/CpuUtilization/aggregationWindowLength": aggregation_window_length +"/appengine:v1beta4/CpuUtilization/targetUtilization": target_utilization +"/appengine:v1beta4/RequestUtilization": request_utilization +"/appengine:v1beta4/RequestUtilization/targetRequestCountPerSec": target_request_count_per_sec +"/appengine:v1beta4/RequestUtilization/targetConcurrentRequests": target_concurrent_requests +"/appengine:v1beta4/DiskUtilization": disk_utilization +"/appengine:v1beta4/DiskUtilization/targetWriteBytesPerSec": target_write_bytes_per_sec +"/appengine:v1beta4/DiskUtilization/targetWriteOpsPerSec": target_write_ops_per_sec +"/appengine:v1beta4/DiskUtilization/targetReadBytesPerSec": target_read_bytes_per_sec +"/appengine:v1beta4/DiskUtilization/targetReadOpsPerSec": target_read_ops_per_sec +"/appengine:v1beta4/NetworkUtilization": network_utilization +"/appengine:v1beta4/NetworkUtilization/targetSentBytesPerSec": target_sent_bytes_per_sec +"/appengine:v1beta4/NetworkUtilization/targetSentPacketsPerSec": target_sent_packets_per_sec +"/appengine:v1beta4/NetworkUtilization/targetReceivedBytesPerSec": target_received_bytes_per_sec +"/appengine:v1beta4/NetworkUtilization/targetReceivedPacketsPerSec": target_received_packets_per_sec +"/appengine:v1beta4/BasicScaling": basic_scaling +"/appengine:v1beta4/BasicScaling/idleTimeout": idle_timeout +"/appengine:v1beta4/BasicScaling/maxInstances": max_instances +"/appengine:v1beta4/ManualScaling": manual_scaling +"/appengine:v1beta4/ManualScaling/instances": instances +"/appengine:v1beta4/Network": network +"/appengine:v1beta4/Network/forwardedPorts": forwarded_ports +"/appengine:v1beta4/Network/forwardedPorts/forwarded_port": forwarded_port +"/appengine:v1beta4/Network/instanceTag": instance_tag +"/appengine:v1beta4/Network/name": name +"/appengine:v1beta4/Resources": resources +"/appengine:v1beta4/Resources/cpu": cpu +"/appengine:v1beta4/Resources/diskGb": disk_gb +"/appengine:v1beta4/Resources/memoryGb": memory_gb +"/appengine:v1beta4/UrlMap": url_map +"/appengine:v1beta4/UrlMap/urlRegex": url_regex +"/appengine:v1beta4/UrlMap/staticFiles": static_files +"/appengine:v1beta4/UrlMap/staticDirectory": static_directory +"/appengine:v1beta4/UrlMap/script": script +"/appengine:v1beta4/UrlMap/apiEndpoint": api_endpoint +"/appengine:v1beta4/UrlMap/securityLevel": security_level +"/appengine:v1beta4/UrlMap/login": login +"/appengine:v1beta4/UrlMap/authFailAction": auth_fail_action +"/appengine:v1beta4/UrlMap/redirectHttpResponseCode": redirect_http_response_code +"/appengine:v1beta4/StaticFilesHandler": static_files_handler +"/appengine:v1beta4/StaticFilesHandler/path": path +"/appengine:v1beta4/StaticFilesHandler/uploadPathRegex": upload_path_regex +"/appengine:v1beta4/StaticFilesHandler/httpHeaders": http_headers +"/appengine:v1beta4/StaticFilesHandler/httpHeaders/http_header": http_header +"/appengine:v1beta4/StaticFilesHandler/mimeType": mime_type +"/appengine:v1beta4/StaticFilesHandler/expiration": expiration +"/appengine:v1beta4/StaticFilesHandler/requireMatchingFile": require_matching_file +"/appengine:v1beta4/StaticFilesHandler/applicationReadable": application_readable +"/appengine:v1beta4/StaticDirectoryHandler": static_directory_handler +"/appengine:v1beta4/StaticDirectoryHandler/directory": directory +"/appengine:v1beta4/StaticDirectoryHandler/httpHeaders": http_headers +"/appengine:v1beta4/StaticDirectoryHandler/httpHeaders/http_header": http_header +"/appengine:v1beta4/StaticDirectoryHandler/mimeType": mime_type +"/appengine:v1beta4/StaticDirectoryHandler/expiration": expiration +"/appengine:v1beta4/StaticDirectoryHandler/requireMatchingFile": require_matching_file +"/appengine:v1beta4/StaticDirectoryHandler/applicationReadable": application_readable +"/appengine:v1beta4/ScriptHandler": script_handler +"/appengine:v1beta4/ScriptHandler/scriptPath": script_path +"/appengine:v1beta4/ApiEndpointHandler": api_endpoint_handler +"/appengine:v1beta4/ApiEndpointHandler/scriptPath": script_path +"/appengine:v1beta4/ErrorHandler": error_handler +"/appengine:v1beta4/ErrorHandler/errorCode": error_code +"/appengine:v1beta4/ErrorHandler/staticFile": static_file +"/appengine:v1beta4/ErrorHandler/mimeType": mime_type +"/appengine:v1beta4/Library": library +"/appengine:v1beta4/Library/name": name +"/appengine:v1beta4/Library/version": version +"/appengine:v1beta4/ApiConfigHandler": api_config_handler +"/appengine:v1beta4/ApiConfigHandler/authFailAction": auth_fail_action +"/appengine:v1beta4/ApiConfigHandler/login": login +"/appengine:v1beta4/ApiConfigHandler/script": script +"/appengine:v1beta4/ApiConfigHandler/securityLevel": security_level +"/appengine:v1beta4/ApiConfigHandler/url": url +"/appengine:v1beta4/HealthCheck": health_check +"/appengine:v1beta4/HealthCheck/disableHealthCheck": disable_health_check +"/appengine:v1beta4/HealthCheck/host": host +"/appengine:v1beta4/HealthCheck/healthyThreshold": healthy_threshold +"/appengine:v1beta4/HealthCheck/unhealthyThreshold": unhealthy_threshold +"/appengine:v1beta4/HealthCheck/restartThreshold": restart_threshold +"/appengine:v1beta4/HealthCheck/checkInterval": check_interval +"/appengine:v1beta4/HealthCheck/timeout": timeout +"/appengine:v1beta4/Deployment": deployment +"/appengine:v1beta4/Deployment/files": files +"/appengine:v1beta4/Deployment/files/file": file +"/appengine:v1beta4/Deployment/container": container +"/appengine:v1beta4/Deployment/sourceReferences": source_references +"/appengine:v1beta4/Deployment/sourceReferences/source_reference": source_reference +"/appengine:v1beta4/FileInfo": file_info +"/appengine:v1beta4/FileInfo/sourceUrl": source_url +"/appengine:v1beta4/FileInfo/sha1Sum": sha1_sum +"/appengine:v1beta4/FileInfo/mimeType": mime_type +"/appengine:v1beta4/ContainerInfo": container_info +"/appengine:v1beta4/ContainerInfo/image": image +"/appengine:v1beta4/SourceReference": source_reference +"/appengine:v1beta4/SourceReference/repository": repository +"/appengine:v1beta4/SourceReference/revisionId": revision_id +"/appengine:v1beta4/Operation": operation +"/appengine:v1beta4/Operation/name": name +"/appengine:v1beta4/Operation/metadata": metadata +"/appengine:v1beta4/Operation/metadata/metadatum": metadatum +"/appengine:v1beta4/Operation/done": done +"/appengine:v1beta4/Operation/error": error +"/appengine:v1beta4/Operation/response": response +"/appengine:v1beta4/Operation/response/response": response +"/appengine:v1beta4/Status": status +"/appengine:v1beta4/Status/code": code +"/appengine:v1beta4/Status/message": message +"/appengine:v1beta4/Status/details": details +"/appengine:v1beta4/Status/details/detail": detail +"/appengine:v1beta4/Status/details/detail/detail": detail +"/appengine:v1beta4/ListVersionsResponse": list_versions_response +"/appengine:v1beta4/ListVersionsResponse/versions": versions +"/appengine:v1beta4/ListVersionsResponse/versions/version": version +"/appengine:v1beta4/ListVersionsResponse/nextPageToken": next_page_token +"/appengine:v1beta4/Module": module +"/appengine:v1beta4/Module/name": name +"/appengine:v1beta4/Module/id": id +"/appengine:v1beta4/Module/split": split +"/appengine:v1beta4/TrafficSplit": traffic_split +"/appengine:v1beta4/TrafficSplit/shardBy": shard_by +"/appengine:v1beta4/TrafficSplit/allocations": allocations +"/appengine:v1beta4/TrafficSplit/allocations/allocation": allocation +"/appengine:v1beta4/ListModulesResponse": list_modules_response +"/appengine:v1beta4/ListModulesResponse/modules": modules +"/appengine:v1beta4/ListModulesResponse/modules/module": module +"/appengine:v1beta4/ListModulesResponse/nextPageToken": next_page_token +"/appengine:v1beta4/ListOperationsResponse": list_operations_response +"/appengine:v1beta4/ListOperationsResponse/operations": operations +"/appengine:v1beta4/ListOperationsResponse/operations/operation": operation +"/appengine:v1beta4/ListOperationsResponse/nextPageToken": next_page_token +"/appengine:v1beta4/OperationMetadata": operation_metadata +"/appengine:v1beta4/OperationMetadata/operationType": operation_type +"/appengine:v1beta4/OperationMetadata/insertTime": insert_time +"/appengine:v1beta4/OperationMetadata/endTime": end_time +"/appengine:v1beta4/OperationMetadata/user": user +"/appengine:v1beta4/OperationMetadata/target": target +"/appengine:v1beta4/OperationMetadata/method": method_prop +"/classroom:v1/fields": fields +"/classroom:v1/key": key +"/classroom:v1/quotaUser": quota_user +"/classroom:v1/classroom.courses.create": create_course +"/classroom:v1/classroom.courses.get": get_course +"/classroom:v1/classroom.courses.get/id": id +"/classroom:v1/classroom.courses.update": update_course +"/classroom:v1/classroom.courses.update/id": id +"/classroom:v1/classroom.courses.patch": patch_course +"/classroom:v1/classroom.courses.patch/id": id +"/classroom:v1/classroom.courses.patch/updateMask": update_mask +"/classroom:v1/classroom.courses.delete": delete_course +"/classroom:v1/classroom.courses.delete/id": id +"/classroom:v1/classroom.courses.list": list_courses +"/classroom:v1/classroom.courses.list/studentId": student_id +"/classroom:v1/classroom.courses.list/teacherId": teacher_id +"/classroom:v1/classroom.courses.list/pageSize": page_size +"/classroom:v1/classroom.courses.list/pageToken": page_token +"/classroom:v1/classroom.courses.aliases.create": create_course_alias +"/classroom:v1/classroom.courses.aliases.create/courseId": course_id +"/classroom:v1/classroom.courses.aliases.delete": delete_course_alias +"/classroom:v1/classroom.courses.aliases.delete/courseId": course_id +"/classroom:v1/classroom.courses.aliases.delete/alias": alias_ +"/classroom:v1/classroom.courses.aliases.list": list_course_aliases +"/classroom:v1/classroom.courses.aliases.list/courseId": course_id +"/classroom:v1/classroom.courses.aliases.list/pageSize": page_size +"/classroom:v1/classroom.courses.aliases.list/pageToken": page_token +"/classroom:v1/classroom.courses.teachers.create": create_course_teacher +"/classroom:v1/classroom.courses.teachers.create/courseId": course_id +"/classroom:v1/classroom.courses.teachers.get": get_course_teacher +"/classroom:v1/classroom.courses.teachers.get/courseId": course_id +"/classroom:v1/classroom.courses.teachers.get/userId": user_id +"/classroom:v1/classroom.courses.teachers.delete": delete_course_teacher +"/classroom:v1/classroom.courses.teachers.delete/courseId": course_id +"/classroom:v1/classroom.courses.teachers.delete/userId": user_id +"/classroom:v1/classroom.courses.teachers.list": list_course_teachers +"/classroom:v1/classroom.courses.teachers.list/courseId": course_id +"/classroom:v1/classroom.courses.teachers.list/pageSize": page_size +"/classroom:v1/classroom.courses.teachers.list/pageToken": page_token +"/classroom:v1/classroom.courses.students.create": create_course_student +"/classroom:v1/classroom.courses.students.create/courseId": course_id +"/classroom:v1/classroom.courses.students.create/enrollmentCode": enrollment_code +"/classroom:v1/classroom.courses.students.get": get_course_student +"/classroom:v1/classroom.courses.students.get/courseId": course_id +"/classroom:v1/classroom.courses.students.get/userId": user_id +"/classroom:v1/classroom.courses.students.delete": delete_course_student +"/classroom:v1/classroom.courses.students.delete/courseId": course_id +"/classroom:v1/classroom.courses.students.delete/userId": user_id +"/classroom:v1/classroom.courses.students.list": list_course_students +"/classroom:v1/classroom.courses.students.list/courseId": course_id +"/classroom:v1/classroom.courses.students.list/pageSize": page_size +"/classroom:v1/classroom.courses.students.list/pageToken": page_token +"/classroom:v1/classroom.invitations.create": create_invitation +"/classroom:v1/classroom.invitations.get": get_invitation +"/classroom:v1/classroom.invitations.get/id": id +"/classroom:v1/classroom.invitations.delete": delete_invitation +"/classroom:v1/classroom.invitations.delete/id": id +"/classroom:v1/classroom.invitations.list": list_invitations +"/classroom:v1/classroom.invitations.list/userId": user_id +"/classroom:v1/classroom.invitations.list/courseId": course_id +"/classroom:v1/classroom.invitations.list/pageSize": page_size +"/classroom:v1/classroom.invitations.list/pageToken": page_token +"/classroom:v1/classroom.invitations.accept": accept_invitation +"/classroom:v1/classroom.invitations.accept/id": id +"/classroom:v1/classroom.userProfiles.get": get_user_profile +"/classroom:v1/classroom.userProfiles.get/userId": user_id +"/classroom:v1/Course": course +"/classroom:v1/Course/id": id +"/classroom:v1/Course/name": name +"/classroom:v1/Course/section": section +"/classroom:v1/Course/descriptionHeading": description_heading +"/classroom:v1/Course/description": description +"/classroom:v1/Course/room": room +"/classroom:v1/Course/ownerId": owner_id +"/classroom:v1/Course/creationTime": creation_time +"/classroom:v1/Course/updateTime": update_time +"/classroom:v1/Course/enrollmentCode": enrollment_code +"/classroom:v1/Course/courseState": course_state +"/classroom:v1/Course/alternateLink": alternate_link +"/classroom:v1/Empty": empty +"/classroom:v1/ListCoursesResponse": list_courses_response +"/classroom:v1/ListCoursesResponse/courses": courses +"/classroom:v1/ListCoursesResponse/courses/course": course +"/classroom:v1/ListCoursesResponse/nextPageToken": next_page_token +"/classroom:v1/CourseAlias": course_alias +"/classroom:v1/CourseAlias/alias": alias +"/classroom:v1/ListCourseAliasesResponse": list_course_aliases_response +"/classroom:v1/ListCourseAliasesResponse/aliases": aliases +"/classroom:v1/ListCourseAliasesResponse/aliases/alias": alias +"/classroom:v1/ListCourseAliasesResponse/nextPageToken": next_page_token +"/classroom:v1/Invitation": invitation +"/classroom:v1/Invitation/id": id +"/classroom:v1/Invitation/userId": user_id +"/classroom:v1/Invitation/courseId": course_id +"/classroom:v1/Invitation/role": role +"/classroom:v1/ListInvitationsResponse": list_invitations_response +"/classroom:v1/ListInvitationsResponse/invitations": invitations +"/classroom:v1/ListInvitationsResponse/invitations/invitation": invitation +"/classroom:v1/ListInvitationsResponse/nextPageToken": next_page_token +"/classroom:v1/UserProfile": user_profile +"/classroom:v1/UserProfile/id": id +"/classroom:v1/UserProfile/name": name +"/classroom:v1/UserProfile/emailAddress": email_address +"/classroom:v1/UserProfile/photoUrl": photo_url +"/classroom:v1/UserProfile/permissions": permissions +"/classroom:v1/UserProfile/permissions/permission": permission +"/classroom:v1/Name": name +"/classroom:v1/Name/givenName": given_name +"/classroom:v1/Name/familyName": family_name +"/classroom:v1/Name/fullName": full_name +"/classroom:v1/GlobalPermission": global_permission +"/classroom:v1/GlobalPermission/permission": permission +"/classroom:v1/Teacher": teacher +"/classroom:v1/Teacher/courseId": course_id +"/classroom:v1/Teacher/userId": user_id +"/classroom:v1/Teacher/profile": profile +"/classroom:v1/ListTeachersResponse": list_teachers_response +"/classroom:v1/ListTeachersResponse/teachers": teachers +"/classroom:v1/ListTeachersResponse/teachers/teacher": teacher +"/classroom:v1/ListTeachersResponse/nextPageToken": next_page_token +"/classroom:v1/Student": student +"/classroom:v1/Student/courseId": course_id +"/classroom:v1/Student/userId": user_id +"/classroom:v1/Student/profile": profile +"/classroom:v1/ListStudentsResponse": list_students_response +"/classroom:v1/ListStudentsResponse/students": students +"/classroom:v1/ListStudentsResponse/students/student": student +"/classroom:v1/ListStudentsResponse/nextPageToken": next_page_token +"/cloudbilling:v1/fields": fields +"/cloudbilling:v1/key": key +"/cloudbilling:v1/quotaUser": quota_user +"/cloudbilling:v1/cloudbilling.billingAccounts.get": get_billing_account +"/cloudbilling:v1/cloudbilling.billingAccounts.get/name": name +"/cloudbilling:v1/cloudbilling.billingAccounts.list": list_billing_accounts +"/cloudbilling:v1/cloudbilling.billingAccounts.list/pageSize": page_size +"/cloudbilling:v1/cloudbilling.billingAccounts.list/pageToken": page_token +"/cloudbilling:v1/cloudbilling.billingAccounts.projects.list": list_billing_account_projects +"/cloudbilling:v1/cloudbilling.billingAccounts.projects.list/name": name +"/cloudbilling:v1/cloudbilling.billingAccounts.projects.list/pageSize": page_size +"/cloudbilling:v1/cloudbilling.billingAccounts.projects.list/pageToken": page_token +"/cloudbilling:v1/cloudbilling.projects.getBillingInfo": get_project_billing_info +"/cloudbilling:v1/cloudbilling.projects.getBillingInfo/name": name +"/cloudbilling:v1/cloudbilling.projects.updateBillingInfo": update_project_billing_info +"/cloudbilling:v1/cloudbilling.projects.updateBillingInfo/name": name +"/cloudbilling:v1/BillingAccount": billing_account +"/cloudbilling:v1/BillingAccount/name": name +"/cloudbilling:v1/BillingAccount/open": open +"/cloudbilling:v1/BillingAccount/displayName": display_name +"/cloudbilling:v1/ListBillingAccountsResponse": list_billing_accounts_response +"/cloudbilling:v1/ListBillingAccountsResponse/billingAccounts": billing_accounts +"/cloudbilling:v1/ListBillingAccountsResponse/billingAccounts/billing_account": billing_account +"/cloudbilling:v1/ListBillingAccountsResponse/nextPageToken": next_page_token +"/cloudbilling:v1/ListProjectBillingInfoResponse": list_project_billing_info_response +"/cloudbilling:v1/ListProjectBillingInfoResponse/projectBillingInfo": project_billing_info +"/cloudbilling:v1/ListProjectBillingInfoResponse/projectBillingInfo/project_billing_info": project_billing_info +"/cloudbilling:v1/ListProjectBillingInfoResponse/nextPageToken": next_page_token +"/cloudbilling:v1/ProjectBillingInfo": project_billing_info +"/cloudbilling:v1/ProjectBillingInfo/name": name +"/cloudbilling:v1/ProjectBillingInfo/projectId": project_id +"/cloudbilling:v1/ProjectBillingInfo/billingAccountName": billing_account_name +"/cloudbilling:v1/ProjectBillingInfo/billingEnabled": billing_enabled +"/clouddebugger:v2/fields": fields +"/clouddebugger:v2/key": key +"/clouddebugger:v2/quotaUser": quota_user +"/clouddebugger:v2/clouddebugger.controller.debuggees.register": register_debuggee +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list": list_controller_debuggee_breakpoints +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/waitToken": wait_token +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.list/successOnTimeout": success_on_timeout +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.update": update_active_breakpoint +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.update/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.controller.debuggees.breakpoints.update/id": id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.list": list_debugger_debuggees +"/clouddebugger:v2/clouddebugger.debugger.debuggees.list/project": project +"/clouddebugger:v2/clouddebugger.debugger.debuggees.list/includeInactive": include_inactive +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set": set_debugger_debuggee_breakpoint +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get": get_debugger_debuggee_breakpoint +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/breakpointId": breakpoint_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete": delete_debugger_debuggee_breakpoint +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/breakpointId": breakpoint_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list": list_debugger_debuggee_breakpoints +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/includeAllUsers": include_all_users +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/includeInactive": include_inactive +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/action.value": action_value +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/stripResults": strip_results +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/waitToken": wait_token +"/clouddebugger:v2/RegisterDebuggeeRequest": register_debuggee_request +"/clouddebugger:v2/RegisterDebuggeeRequest/debuggee": debuggee +"/clouddebugger:v2/Debuggee": debuggee +"/clouddebugger:v2/Debuggee/id": id +"/clouddebugger:v2/Debuggee/project": project +"/clouddebugger:v2/Debuggee/uniquifier": uniquifier +"/clouddebugger:v2/Debuggee/description": description +"/clouddebugger:v2/Debuggee/isInactive": is_inactive +"/clouddebugger:v2/Debuggee/agentVersion": agent_version +"/clouddebugger:v2/Debuggee/isDisabled": is_disabled +"/clouddebugger:v2/Debuggee/status": status +"/clouddebugger:v2/Debuggee/sourceContexts": source_contexts +"/clouddebugger:v2/Debuggee/sourceContexts/source_context": source_context +"/clouddebugger:v2/Debuggee/extSourceContexts": ext_source_contexts +"/clouddebugger:v2/Debuggee/extSourceContexts/ext_source_context": ext_source_context +"/clouddebugger:v2/Debuggee/labels": labels +"/clouddebugger:v2/Debuggee/labels/label": label +"/clouddebugger:v2/StatusMessage": status_message +"/clouddebugger:v2/StatusMessage/isError": is_error +"/clouddebugger:v2/StatusMessage/refersTo": refers_to +"/clouddebugger:v2/StatusMessage/description": description +"/clouddebugger:v2/FormatMessage": format_message +"/clouddebugger:v2/FormatMessage/format": format +"/clouddebugger:v2/FormatMessage/parameters": parameters +"/clouddebugger:v2/FormatMessage/parameters/parameter": parameter +"/clouddebugger:v2/SourceContext": source_context +"/clouddebugger:v2/SourceContext/cloudRepo": cloud_repo +"/clouddebugger:v2/SourceContext/cloudWorkspace": cloud_workspace +"/clouddebugger:v2/SourceContext/gerrit": gerrit +"/clouddebugger:v2/SourceContext/git": git +"/clouddebugger:v2/CloudRepoSourceContext": cloud_repo_source_context +"/clouddebugger:v2/CloudRepoSourceContext/repoId": repo_id +"/clouddebugger:v2/CloudRepoSourceContext/revisionId": revision_id +"/clouddebugger:v2/CloudRepoSourceContext/aliasName": alias_name +"/clouddebugger:v2/CloudRepoSourceContext/aliasContext": alias_context +"/clouddebugger:v2/RepoId": repo_id +"/clouddebugger:v2/RepoId/projectRepoId": project_repo_id +"/clouddebugger:v2/RepoId/uid": uid +"/clouddebugger:v2/ProjectRepoId": project_repo_id +"/clouddebugger:v2/ProjectRepoId/projectId": project_id +"/clouddebugger:v2/ProjectRepoId/repoName": repo_name +"/clouddebugger:v2/AliasContext": alias_context +"/clouddebugger:v2/AliasContext/kind": kind +"/clouddebugger:v2/AliasContext/name": name +"/clouddebugger:v2/CloudWorkspaceSourceContext": cloud_workspace_source_context +"/clouddebugger:v2/CloudWorkspaceSourceContext/workspaceId": workspace_id +"/clouddebugger:v2/CloudWorkspaceSourceContext/snapshotId": snapshot_id +"/clouddebugger:v2/CloudWorkspaceId": cloud_workspace_id +"/clouddebugger:v2/CloudWorkspaceId/repoId": repo_id +"/clouddebugger:v2/CloudWorkspaceId/name": name +"/clouddebugger:v2/GerritSourceContext": gerrit_source_context +"/clouddebugger:v2/GerritSourceContext/hostUri": host_uri +"/clouddebugger:v2/GerritSourceContext/gerritProject": gerrit_project +"/clouddebugger:v2/GerritSourceContext/revisionId": revision_id +"/clouddebugger:v2/GerritSourceContext/aliasName": alias_name +"/clouddebugger:v2/GerritSourceContext/aliasContext": alias_context +"/clouddebugger:v2/GitSourceContext": git_source_context +"/clouddebugger:v2/GitSourceContext/url": url +"/clouddebugger:v2/GitSourceContext/revisionId": revision_id +"/clouddebugger:v2/ExtendedSourceContext": extended_source_context +"/clouddebugger:v2/ExtendedSourceContext/context": context +"/clouddebugger:v2/ExtendedSourceContext/labels": labels +"/clouddebugger:v2/ExtendedSourceContext/labels/label": label +"/clouddebugger:v2/RegisterDebuggeeResponse": register_debuggee_response +"/clouddebugger:v2/RegisterDebuggeeResponse/debuggee": debuggee +"/clouddebugger:v2/ListActiveBreakpointsResponse": list_active_breakpoints_response +"/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints": breakpoints +"/clouddebugger:v2/ListActiveBreakpointsResponse/breakpoints/breakpoint": breakpoint +"/clouddebugger:v2/ListActiveBreakpointsResponse/nextWaitToken": next_wait_token +"/clouddebugger:v2/ListActiveBreakpointsResponse/waitExpired": wait_expired +"/clouddebugger:v2/Breakpoint": breakpoint +"/clouddebugger:v2/Breakpoint/id": id +"/clouddebugger:v2/Breakpoint/action": action +"/clouddebugger:v2/Breakpoint/location": location +"/clouddebugger:v2/Breakpoint/condition": condition +"/clouddebugger:v2/Breakpoint/expressions": expressions +"/clouddebugger:v2/Breakpoint/expressions/expression": expression +"/clouddebugger:v2/Breakpoint/logMessageFormat": log_message_format +"/clouddebugger:v2/Breakpoint/logLevel": log_level +"/clouddebugger:v2/Breakpoint/isFinalState": is_final_state +"/clouddebugger:v2/Breakpoint/createTime": create_time +"/clouddebugger:v2/Breakpoint/finalTime": final_time +"/clouddebugger:v2/Breakpoint/userEmail": user_email +"/clouddebugger:v2/Breakpoint/status": status +"/clouddebugger:v2/Breakpoint/stackFrames": stack_frames +"/clouddebugger:v2/Breakpoint/stackFrames/stack_frame": stack_frame +"/clouddebugger:v2/Breakpoint/evaluatedExpressions": evaluated_expressions +"/clouddebugger:v2/Breakpoint/evaluatedExpressions/evaluated_expression": evaluated_expression +"/clouddebugger:v2/Breakpoint/variableTable": variable_table +"/clouddebugger:v2/Breakpoint/variableTable/variable_table": variable_table +"/clouddebugger:v2/SourceLocation": source_location +"/clouddebugger:v2/SourceLocation/path": path +"/clouddebugger:v2/SourceLocation/line": line +"/clouddebugger:v2/StackFrame": stack_frame +"/clouddebugger:v2/StackFrame/function": function +"/clouddebugger:v2/StackFrame/location": location +"/clouddebugger:v2/StackFrame/arguments": arguments +"/clouddebugger:v2/StackFrame/arguments/argument": argument +"/clouddebugger:v2/StackFrame/locals": locals +"/clouddebugger:v2/StackFrame/locals/local": local +"/clouddebugger:v2/Variable": variable +"/clouddebugger:v2/Variable/name": name +"/clouddebugger:v2/Variable/value": value +"/clouddebugger:v2/Variable/type": type +"/clouddebugger:v2/Variable/members": members +"/clouddebugger:v2/Variable/members/member": member +"/clouddebugger:v2/Variable/varTableIndex": var_table_index +"/clouddebugger:v2/Variable/status": status +"/clouddebugger:v2/UpdateActiveBreakpointRequest": update_active_breakpoint_request +"/clouddebugger:v2/UpdateActiveBreakpointRequest/breakpoint": breakpoint +"/clouddebugger:v2/UpdateActiveBreakpointResponse": update_active_breakpoint_response +"/clouddebugger:v2/SetBreakpointResponse": set_breakpoint_response +"/clouddebugger:v2/SetBreakpointResponse/breakpoint": breakpoint +"/clouddebugger:v2/GetBreakpointResponse": get_breakpoint_response +"/clouddebugger:v2/GetBreakpointResponse/breakpoint": breakpoint +"/clouddebugger:v2/Empty": empty +"/clouddebugger:v2/ListBreakpointsResponse": list_breakpoints_response +"/clouddebugger:v2/ListBreakpointsResponse/breakpoints": breakpoints +"/clouddebugger:v2/ListBreakpointsResponse/breakpoints/breakpoint": breakpoint +"/clouddebugger:v2/ListBreakpointsResponse/nextWaitToken": next_wait_token +"/clouddebugger:v2/ListDebuggeesResponse": list_debuggees_response +"/clouddebugger:v2/ListDebuggeesResponse/debuggees": debuggees +"/clouddebugger:v2/ListDebuggeesResponse/debuggees/debuggee": debuggee "/cloudresourcemanager:v1beta1/fields": fields "/cloudresourcemanager:v1beta1/key": key "/cloudresourcemanager:v1beta1/quotaUser": quota_user @@ -14711,12 +16365,26 @@ "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.delete/projectId": project_id "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete": undelete_project "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete/projectId": project_id -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy": get_iam_policy +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy": get_project_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy": set_iam_policy +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy": set_project_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy/resource": resource -"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions": test_iam_permissions +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions": test_project_iam_permissions "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions/resource": resource +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list": list_organizations +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list/pageSize": page_size +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list/pageToken": page_token +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.list/filter": filter +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get": get_organization +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.get/organizationId": organization_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.update": update_organization +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.update/organizationId": organization_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setIamPolicy": set_organization_iam_policy +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.setIamPolicy/resource": resource +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getIamPolicy": get_organization_iam_policy +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.getIamPolicy/resource": resource +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.testIamPermissions": test_organization_iam_permissions +"/cloudresourcemanager:v1beta1/cloudresourcemanager.organizations.testIamPermissions/resource": resource "/cloudresourcemanager:v1beta1/Project": project "/cloudresourcemanager:v1beta1/Project/projectNumber": project_number "/cloudresourcemanager:v1beta1/Project/projectId": project_id @@ -14725,6 +16393,10 @@ "/cloudresourcemanager:v1beta1/Project/createTime": create_time "/cloudresourcemanager:v1beta1/Project/labels": labels "/cloudresourcemanager:v1beta1/Project/labels/label": label +"/cloudresourcemanager:v1beta1/Project/parent": parent +"/cloudresourcemanager:v1beta1/ResourceId": resource_id +"/cloudresourcemanager:v1beta1/ResourceId/type": type +"/cloudresourcemanager:v1beta1/ResourceId/id": id "/cloudresourcemanager:v1beta1/ListProjectsResponse": list_projects_response "/cloudresourcemanager:v1beta1/ListProjectsResponse/projects": projects "/cloudresourcemanager:v1beta1/ListProjectsResponse/projects/project": project @@ -14735,43 +16407,11 @@ "/cloudresourcemanager:v1beta1/Policy/version": version "/cloudresourcemanager:v1beta1/Policy/bindings": bindings "/cloudresourcemanager:v1beta1/Policy/bindings/binding": binding -"/cloudresourcemanager:v1beta1/Policy/rules": rules -"/cloudresourcemanager:v1beta1/Policy/rules/rule": rule "/cloudresourcemanager:v1beta1/Policy/etag": etag "/cloudresourcemanager:v1beta1/Binding": binding "/cloudresourcemanager:v1beta1/Binding/role": role "/cloudresourcemanager:v1beta1/Binding/members": members "/cloudresourcemanager:v1beta1/Binding/members/member": member -"/cloudresourcemanager:v1beta1/Rule": rule -"/cloudresourcemanager:v1beta1/Rule/description": description -"/cloudresourcemanager:v1beta1/Rule/permissions": permissions -"/cloudresourcemanager:v1beta1/Rule/permissions/permission": permission -"/cloudresourcemanager:v1beta1/Rule/action": action -"/cloudresourcemanager:v1beta1/Rule/in": in -"/cloudresourcemanager:v1beta1/Rule/in/in": in -"/cloudresourcemanager:v1beta1/Rule/notIn": not_in -"/cloudresourcemanager:v1beta1/Rule/notIn/not_in": not_in -"/cloudresourcemanager:v1beta1/Rule/conditions": conditions -"/cloudresourcemanager:v1beta1/Rule/conditions/condition": condition -"/cloudresourcemanager:v1beta1/Rule/logConfig": log_config -"/cloudresourcemanager:v1beta1/Rule/logConfig/log_config": log_config -"/cloudresourcemanager:v1beta1/Condition": condition -"/cloudresourcemanager:v1beta1/Condition/iam": iam -"/cloudresourcemanager:v1beta1/Condition/sys": sys -"/cloudresourcemanager:v1beta1/Condition/svc": svc -"/cloudresourcemanager:v1beta1/Condition/op": op -"/cloudresourcemanager:v1beta1/Condition/value": value -"/cloudresourcemanager:v1beta1/Condition/values": values -"/cloudresourcemanager:v1beta1/Condition/values/value": value -"/cloudresourcemanager:v1beta1/LogConfig": log_config -"/cloudresourcemanager:v1beta1/LogConfig/counter": counter -"/cloudresourcemanager:v1beta1/LogConfig/dataAccess": data_access -"/cloudresourcemanager:v1beta1/LogConfig/cloudAudit": cloud_audit -"/cloudresourcemanager:v1beta1/CounterOptions": counter_options -"/cloudresourcemanager:v1beta1/CounterOptions/metric": metric -"/cloudresourcemanager:v1beta1/CounterOptions/field": field -"/cloudresourcemanager:v1beta1/DataAccessOptions": data_access_options -"/cloudresourcemanager:v1beta1/CloudAuditOptions": cloud_audit_options "/cloudresourcemanager:v1beta1/SetIamPolicyRequest": set_iam_policy_request "/cloudresourcemanager:v1beta1/SetIamPolicyRequest/policy": policy "/cloudresourcemanager:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request @@ -14780,9 +16420,67 @@ "/cloudresourcemanager:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response "/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions": permissions "/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions/permission": permission +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse": list_organizations_response +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/organizations": organizations +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/organizations/organization": organization +"/cloudresourcemanager:v1beta1/ListOrganizationsResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1beta1/Organization": organization +"/cloudresourcemanager:v1beta1/Organization/organizationId": organization_id +"/cloudresourcemanager:v1beta1/Organization/displayName": display_name +"/cloudresourcemanager:v1beta1/Organization/owner": owner +"/cloudresourcemanager:v1beta1/Organization/creationTime": creation_time +"/cloudresourcemanager:v1beta1/OrganizationOwner": organization_owner +"/cloudresourcemanager:v1beta1/OrganizationOwner/directoryCustomerId": directory_customer_id +"/cloudtrace:v1/fields": fields +"/cloudtrace:v1/key": key +"/cloudtrace:v1/quotaUser": quota_user +"/cloudtrace:v1/cloudtrace.projects.patchTraces": patch_project_traces +"/cloudtrace:v1/cloudtrace.projects.patchTraces/projectId": project_id +"/cloudtrace:v1/cloudtrace.projects.traces.list": list_project_traces +"/cloudtrace:v1/cloudtrace.projects.traces.list/projectId": project_id +"/cloudtrace:v1/cloudtrace.projects.traces.list/view": view +"/cloudtrace:v1/cloudtrace.projects.traces.list/pageSize": page_size +"/cloudtrace:v1/cloudtrace.projects.traces.list/pageToken": page_token +"/cloudtrace:v1/cloudtrace.projects.traces.list/startTime": start_time +"/cloudtrace:v1/cloudtrace.projects.traces.list/endTime": end_time +"/cloudtrace:v1/cloudtrace.projects.traces.list/filter": filter +"/cloudtrace:v1/cloudtrace.projects.traces.list/orderBy": order_by +"/cloudtrace:v1/cloudtrace.projects.traces.get": get_project_trace +"/cloudtrace:v1/cloudtrace.projects.traces.get/projectId": project_id +"/cloudtrace:v1/cloudtrace.projects.traces.get/traceId": trace_id +"/cloudtrace:v1/cloudtrace.getDiscovery": get_discovery +"/cloudtrace:v1/cloudtrace.getDiscovery/format": format +"/cloudtrace:v1/cloudtrace.getDiscovery/labels": labels +"/cloudtrace:v1/cloudtrace.getDiscovery/version": version +"/cloudtrace:v1/cloudtrace.getDiscovery/args": args +"/cloudtrace:v1/ListTracesResponse": list_traces_response +"/cloudtrace:v1/ListTracesResponse/traces": traces +"/cloudtrace:v1/ListTracesResponse/traces/trace": trace +"/cloudtrace:v1/ListTracesResponse/nextPageToken": next_page_token +"/cloudtrace:v1/Trace": trace +"/cloudtrace:v1/Trace/projectId": project_id +"/cloudtrace:v1/Trace/traceId": trace_id +"/cloudtrace:v1/Trace/spans": spans +"/cloudtrace:v1/Trace/spans/span": span +"/cloudtrace:v1/TraceSpan": trace_span +"/cloudtrace:v1/TraceSpan/spanId": span_id +"/cloudtrace:v1/TraceSpan/kind": kind +"/cloudtrace:v1/TraceSpan/name": name +"/cloudtrace:v1/TraceSpan/startTime": start_time +"/cloudtrace:v1/TraceSpan/endTime": end_time +"/cloudtrace:v1/TraceSpan/parentSpanId": parent_span_id +"/cloudtrace:v1/TraceSpan/labels": labels +"/cloudtrace:v1/TraceSpan/labels/label": label +"/cloudtrace:v1/Traces": traces +"/cloudtrace:v1/Traces/traces": traces +"/cloudtrace:v1/Traces/traces/trace": trace +"/cloudtrace:v1/Empty": empty "/container:v1/fields": fields "/container:v1/key": key "/container:v1/quotaUser": quota_user +"/container:v1/container.projects.zones.getServerconfig": get_project_zone_serverconfig +"/container:v1/container.projects.zones.getServerconfig/projectId": project_id +"/container:v1/container.projects.zones.getServerconfig/zone": zone "/container:v1/container.projects.zones.clusters.list/projectId": project_id "/container:v1/container.projects.zones.clusters.list/zone": zone "/container:v1/container.projects.zones.clusters.get/projectId": project_id @@ -14856,6 +16554,10 @@ "/container:v1/ListOperationsResponse": list_operations_response "/container:v1/ListOperationsResponse/operations": operations "/container:v1/ListOperationsResponse/operations/operation": operation +"/container:v1/ServerConfig": server_config +"/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version +"/container:v1/ServerConfig/validNodeVersions": valid_node_versions +"/container:v1/ServerConfig/validNodeVersions/valid_node_version": valid_node_version "/genomics:v1/fields": fields "/genomics:v1/key": key "/genomics:v1/quotaUser": quota_user @@ -14873,6 +16575,12 @@ "/genomics:v1/genomics.datasets.delete/datasetId": dataset_id "/genomics:v1/genomics.datasets.undelete": undelete_dataset "/genomics:v1/genomics.datasets.undelete/datasetId": dataset_id +"/genomics:v1/genomics.datasets.setIamPolicy": set_dataset_iam_policy +"/genomics:v1/genomics.datasets.setIamPolicy/resource": resource +"/genomics:v1/genomics.datasets.getIamPolicy": get_dataset_iam_policy +"/genomics:v1/genomics.datasets.getIamPolicy/resource": resource +"/genomics:v1/genomics.datasets.testIamPermissions": test_dataset_iam_permissions +"/genomics:v1/genomics.datasets.testIamPermissions/resource": resource "/genomics:v1/genomics.operations.get": get_operation "/genomics:v1/genomics.operations.get/name": name "/genomics:v1/genomics.operations.list": list_operations @@ -14897,7 +16605,6 @@ "/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageToken": page_token "/genomics:v1/genomics.readgroupsets.coveragebuckets.list/pageSize": page_size "/genomics:v1/genomics.reads.search": search_reads -"/genomics:v1/genomics.referencesets.search": search_reference_sets "/genomics:v1/genomics.referencesets.get/referenceSetId": reference_set_id "/genomics:v1/genomics.references.search": search_references "/genomics:v1/genomics.references.get": get_reference @@ -14916,13 +16623,10 @@ "/genomics:v1/genomics.variants.delete/variantId": variant_id "/genomics:v1/genomics.variants.get": get_variant "/genomics:v1/genomics.variants.get/variantId": variant_id -"/genomics:v1/genomics.variants.merge": merge_variants "/genomics:v1/genomics.variantsets.create": create_variantset -"/genomics:v1/genomics.variantsets.export": export_variant_set "/genomics:v1/genomics.variantsets.export/variantSetId": variant_set_id "/genomics:v1/genomics.variantsets.get": get_variantset "/genomics:v1/genomics.variantsets.get/variantSetId": variant_set_id -"/genomics:v1/genomics.variantsets.search": search_variant_sets "/genomics:v1/genomics.variantsets.delete": delete_variantset "/genomics:v1/genomics.variantsets.delete/variantSetId": variant_set_id "/genomics:v1/genomics.variantsets.patch": patch_variantset @@ -14943,6 +16647,24 @@ "/genomics:v1/Dataset/createTime": create_time "/genomics:v1/Empty": empty "/genomics:v1/UndeleteDatasetRequest": undelete_dataset_request +"/genomics:v1/SetIamPolicyRequest": set_iam_policy_request +"/genomics:v1/SetIamPolicyRequest/policy": policy +"/genomics:v1/Policy": policy +"/genomics:v1/Policy/version": version +"/genomics:v1/Policy/bindings": bindings +"/genomics:v1/Policy/bindings/binding": binding +"/genomics:v1/Policy/etag": etag +"/genomics:v1/Binding": binding +"/genomics:v1/Binding/role": role +"/genomics:v1/Binding/members": members +"/genomics:v1/Binding/members/member": member +"/genomics:v1/GetIamPolicyRequest": get_iam_policy_request +"/genomics:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/genomics:v1/TestIamPermissionsRequest/permissions": permissions +"/genomics:v1/TestIamPermissionsRequest/permissions/permission": permission +"/genomics:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/genomics:v1/TestIamPermissionsResponse/permissions": permissions +"/genomics:v1/TestIamPermissionsResponse/permissions/permission": permission "/genomics:v1/Operation": operation "/genomics:v1/Operation/name": name "/genomics:v1/Operation/metadata": metadata @@ -15136,6 +16858,7 @@ "/genomics:v1/VariantSet": variant_set "/genomics:v1/VariantSet/datasetId": dataset_id "/genomics:v1/VariantSet/id": id +"/genomics:v1/VariantSet/referenceSetId": reference_set_id "/genomics:v1/VariantSet/referenceBounds": reference_bounds "/genomics:v1/VariantSet/referenceBounds/reference_bound": reference_bound "/genomics:v1/VariantSet/metadata": metadata @@ -15216,10 +16939,6 @@ "/genomics:v1/VariantCall/info": info "/genomics:v1/VariantCall/info/info": info "/genomics:v1/VariantCall/info/info/info": info -"/genomics:v1/MergeVariantsRequest": merge_variants_request -"/genomics:v1/MergeVariantsRequest/variantSetId": variant_set_id -"/genomics:v1/MergeVariantsRequest/variants": variants -"/genomics:v1/MergeVariantsRequest/variants/variant": variant "/genomics:v1/SearchCallSetsRequest": search_call_sets_request "/genomics:v1/SearchCallSetsRequest/variantSetIds": variant_set_ids "/genomics:v1/SearchCallSetsRequest/variantSetIds/variant_set_id": variant_set_id @@ -15265,7 +16984,6 @@ "/logging:v1beta3/logging.projects.logs.list/pageToken": page_token "/logging:v1beta3/logging.projects.logs.delete/projectsId": projects_id "/logging:v1beta3/logging.projects.logs.delete/logsId": logs_id -"/logging:v1beta3/logging.projects.logs.entries.write": write_log_entries "/logging:v1beta3/logging.projects.logs.entries.write/projectsId": projects_id "/logging:v1beta3/logging.projects.logs.entries.write/logsId": logs_id "/logging:v1beta3/logging.projects.logs.sinks.list/projectsId": projects_id @@ -15282,14 +17000,12 @@ "/logging:v1beta3/logging.projects.logs.sinks.delete/logsId": logs_id "/logging:v1beta3/logging.projects.logs.sinks.delete/sinksId": sinks_id "/logging:v1beta3/logging.projects.logServices.list/projectsId": projects_id -"/logging:v1beta3/logging.projects.logServices.list/log": log "/logging:v1beta3/logging.projects.logServices.list/pageSize": page_size "/logging:v1beta3/logging.projects.logServices.list/pageToken": page_token "/logging:v1beta3/logging.projects.logServices.indexes.list/projectsId": projects_id "/logging:v1beta3/logging.projects.logServices.indexes.list/logServicesId": log_services_id "/logging:v1beta3/logging.projects.logServices.indexes.list/indexPrefix": index_prefix "/logging:v1beta3/logging.projects.logServices.indexes.list/depth": depth -"/logging:v1beta3/logging.projects.logServices.indexes.list/log": log "/logging:v1beta3/logging.projects.logServices.indexes.list/pageSize": page_size "/logging:v1beta3/logging.projects.logServices.indexes.list/pageToken": page_token "/logging:v1beta3/logging.projects.logServices.sinks.list/projectsId": projects_id @@ -15305,6 +17021,34 @@ "/logging:v1beta3/logging.projects.logServices.sinks.delete/projectsId": projects_id "/logging:v1beta3/logging.projects.logServices.sinks.delete/logServicesId": log_services_id "/logging:v1beta3/logging.projects.logServices.sinks.delete/sinksId": sinks_id +"/logging:v1beta3/logging.projects.sinks.list": list_project_sinks +"/logging:v1beta3/logging.projects.sinks.list/projectsId": projects_id +"/logging:v1beta3/logging.projects.sinks.get": get_project_sink +"/logging:v1beta3/logging.projects.sinks.get/projectsId": projects_id +"/logging:v1beta3/logging.projects.sinks.get/sinksId": sinks_id +"/logging:v1beta3/logging.projects.sinks.create": create_project_sink +"/logging:v1beta3/logging.projects.sinks.create/projectsId": projects_id +"/logging:v1beta3/logging.projects.sinks.update": update_project_sink +"/logging:v1beta3/logging.projects.sinks.update/projectsId": projects_id +"/logging:v1beta3/logging.projects.sinks.update/sinksId": sinks_id +"/logging:v1beta3/logging.projects.sinks.delete": delete_project_sink +"/logging:v1beta3/logging.projects.sinks.delete/projectsId": projects_id +"/logging:v1beta3/logging.projects.sinks.delete/sinksId": sinks_id +"/logging:v1beta3/logging.projects.metrics.list": list_project_metrics +"/logging:v1beta3/logging.projects.metrics.list/projectsId": projects_id +"/logging:v1beta3/logging.projects.metrics.list/pageToken": page_token +"/logging:v1beta3/logging.projects.metrics.list/pageSize": page_size +"/logging:v1beta3/logging.projects.metrics.get": get_project_metric +"/logging:v1beta3/logging.projects.metrics.get/projectsId": projects_id +"/logging:v1beta3/logging.projects.metrics.get/metricsId": metrics_id +"/logging:v1beta3/logging.projects.metrics.create": create_project_metric +"/logging:v1beta3/logging.projects.metrics.create/projectsId": projects_id +"/logging:v1beta3/logging.projects.metrics.update": update_project_metric +"/logging:v1beta3/logging.projects.metrics.update/projectsId": projects_id +"/logging:v1beta3/logging.projects.metrics.update/metricsId": metrics_id +"/logging:v1beta3/logging.projects.metrics.delete": delete_project_metric +"/logging:v1beta3/logging.projects.metrics.delete/projectsId": projects_id +"/logging:v1beta3/logging.projects.metrics.delete/metricsId": metrics_id "/logging:v1beta3/ListLogsResponse": list_logs_response "/logging:v1beta3/ListLogsResponse/logs": logs "/logging:v1beta3/ListLogsResponse/logs/log": log @@ -15328,6 +17072,7 @@ "/logging:v1beta3/LogEntry/structPayload/struct_payload": struct_payload "/logging:v1beta3/LogEntry/insertId": insert_id "/logging:v1beta3/LogEntry/log": log +"/logging:v1beta3/LogEntry/httpRequest": http_request "/logging:v1beta3/LogEntryMetadata": log_entry_metadata "/logging:v1beta3/LogEntryMetadata/timestamp": timestamp "/logging:v1beta3/LogEntryMetadata/severity": severity @@ -15338,6 +17083,17 @@ "/logging:v1beta3/LogEntryMetadata/userId": user_id "/logging:v1beta3/LogEntryMetadata/labels": labels "/logging:v1beta3/LogEntryMetadata/labels/label": label +"/logging:v1beta3/HttpRequest": http_request +"/logging:v1beta3/HttpRequest/requestMethod": request_method +"/logging:v1beta3/HttpRequest/requestUrl": request_url +"/logging:v1beta3/HttpRequest/requestSize": request_size +"/logging:v1beta3/HttpRequest/status": status +"/logging:v1beta3/HttpRequest/responseSize": response_size +"/logging:v1beta3/HttpRequest/userAgent": user_agent +"/logging:v1beta3/HttpRequest/remoteIp": remote_ip +"/logging:v1beta3/HttpRequest/referer": referer +"/logging:v1beta3/HttpRequest/cacheHit": cache_hit +"/logging:v1beta3/HttpRequest/validatedWithOriginServer": validated_with_origin_server "/logging:v1beta3/WriteLogEntriesResponse": write_log_entries_response "/logging:v1beta3/ListLogServicesResponse": list_log_services_response "/logging:v1beta3/ListLogServicesResponse/logServices": log_services @@ -15357,6 +17113,7 @@ "/logging:v1beta3/LogSink": log_sink "/logging:v1beta3/LogSink/name": name "/logging:v1beta3/LogSink/destination": destination +"/logging:v1beta3/LogSink/filter": filter "/logging:v1beta3/LogSink/errors": errors "/logging:v1beta3/LogSink/errors/error": error "/logging:v1beta3/LogError": log_error @@ -15372,148 +17129,714 @@ "/logging:v1beta3/ListLogServiceSinksResponse": list_log_service_sinks_response "/logging:v1beta3/ListLogServiceSinksResponse/sinks": sinks "/logging:v1beta3/ListLogServiceSinksResponse/sinks/sink": sink -"/pubsub:v1beta2/fields": fields -"/pubsub:v1beta2/key": key -"/pubsub:v1beta2/quotaUser": quota_user -"/pubsub:v1beta2/pubsub.projects.topics.setIamPolicy/resource": resource -"/pubsub:v1beta2/pubsub.projects.topics.getIamPolicy": get_iam_policy_project_topic -"/pubsub:v1beta2/pubsub.projects.topics.getIamPolicy/resource": resource -"/pubsub:v1beta2/pubsub.projects.topics.testIamPermissions/resource": resource -"/pubsub:v1beta2/pubsub.projects.topics.create/name": name -"/pubsub:v1beta2/pubsub.projects.topics.publish": publish -"/pubsub:v1beta2/pubsub.projects.topics.publish/topic": topic -"/pubsub:v1beta2/pubsub.projects.topics.get/topic": topic -"/pubsub:v1beta2/pubsub.projects.topics.list/project": project -"/pubsub:v1beta2/pubsub.projects.topics.list/pageSize": page_size -"/pubsub:v1beta2/pubsub.projects.topics.list/pageToken": page_token -"/pubsub:v1beta2/pubsub.projects.topics.delete/topic": topic -"/pubsub:v1beta2/pubsub.projects.topics.subscriptions.list/topic": topic -"/pubsub:v1beta2/pubsub.projects.topics.subscriptions.list/pageSize": page_size -"/pubsub:v1beta2/pubsub.projects.topics.subscriptions.list/pageToken": page_token -"/pubsub:v1beta2/pubsub.projects.subscriptions.setIamPolicy/resource": resource -"/pubsub:v1beta2/pubsub.projects.subscriptions.getIamPolicy": get_iam_policy_project_subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.getIamPolicy/resource": resource -"/pubsub:v1beta2/pubsub.projects.subscriptions.testIamPermissions/resource": resource -"/pubsub:v1beta2/pubsub.projects.subscriptions.create/name": name -"/pubsub:v1beta2/pubsub.projects.subscriptions.get/subscription": subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.list/project": project -"/pubsub:v1beta2/pubsub.projects.subscriptions.list/pageSize": page_size -"/pubsub:v1beta2/pubsub.projects.subscriptions.list/pageToken": page_token -"/pubsub:v1beta2/pubsub.projects.subscriptions.delete/subscription": subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.modifyAckDeadline": modify_ack_deadline -"/pubsub:v1beta2/pubsub.projects.subscriptions.modifyAckDeadline/subscription": subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.acknowledge": acknowledge -"/pubsub:v1beta2/pubsub.projects.subscriptions.acknowledge/subscription": subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.pull": pull -"/pubsub:v1beta2/pubsub.projects.subscriptions.pull/subscription": subscription -"/pubsub:v1beta2/pubsub.projects.subscriptions.modifyPushConfig": modify_push_config -"/pubsub:v1beta2/pubsub.projects.subscriptions.modifyPushConfig/subscription": subscription -"/pubsub:v1beta2/SetIamPolicyRequest": set_iam_policy_request -"/pubsub:v1beta2/SetIamPolicyRequest/policy": policy -"/pubsub:v1beta2/Policy": policy -"/pubsub:v1beta2/Policy/version": version -"/pubsub:v1beta2/Policy/bindings": bindings -"/pubsub:v1beta2/Policy/bindings/binding": binding -"/pubsub:v1beta2/Policy/rules": rules -"/pubsub:v1beta2/Policy/rules/rule": rule -"/pubsub:v1beta2/Policy/etag": etag -"/pubsub:v1beta2/Binding": binding -"/pubsub:v1beta2/Binding/role": role -"/pubsub:v1beta2/Binding/members": members -"/pubsub:v1beta2/Binding/members/member": member -"/pubsub:v1beta2/Rule": rule -"/pubsub:v1beta2/Rule/description": description -"/pubsub:v1beta2/Rule/permissions": permissions -"/pubsub:v1beta2/Rule/permissions/permission": permission -"/pubsub:v1beta2/Rule/action": action -"/pubsub:v1beta2/Rule/in": in -"/pubsub:v1beta2/Rule/in/in": in -"/pubsub:v1beta2/Rule/notIn": not_in -"/pubsub:v1beta2/Rule/notIn/not_in": not_in -"/pubsub:v1beta2/Rule/conditions": conditions -"/pubsub:v1beta2/Rule/conditions/condition": condition -"/pubsub:v1beta2/Rule/logConfig": log_config -"/pubsub:v1beta2/Rule/logConfig/log_config": log_config -"/pubsub:v1beta2/Condition": condition -"/pubsub:v1beta2/Condition/iam": iam -"/pubsub:v1beta2/Condition/sys": sys -"/pubsub:v1beta2/Condition/svc": svc -"/pubsub:v1beta2/Condition/op": op -"/pubsub:v1beta2/Condition/value": value -"/pubsub:v1beta2/Condition/values": values -"/pubsub:v1beta2/Condition/values/value": value -"/pubsub:v1beta2/LogConfig": log_config -"/pubsub:v1beta2/LogConfig/counter": counter -"/pubsub:v1beta2/LogConfig/dataAccess": data_access -"/pubsub:v1beta2/LogConfig/cloudAudit": cloud_audit -"/pubsub:v1beta2/CounterOptions": counter_options -"/pubsub:v1beta2/CounterOptions/metric": metric -"/pubsub:v1beta2/CounterOptions/field": field -"/pubsub:v1beta2/DataAccessOptions": data_access_options -"/pubsub:v1beta2/CloudAuditOptions": cloud_audit_options -"/pubsub:v1beta2/TestIamPermissionsRequest": test_iam_permissions_request -"/pubsub:v1beta2/TestIamPermissionsRequest/permissions": permissions -"/pubsub:v1beta2/TestIamPermissionsRequest/permissions/permission": permission -"/pubsub:v1beta2/TestIamPermissionsResponse": test_iam_permissions_response -"/pubsub:v1beta2/TestIamPermissionsResponse/permissions": permissions -"/pubsub:v1beta2/TestIamPermissionsResponse/permissions/permission": permission -"/pubsub:v1beta2/Topic": topic -"/pubsub:v1beta2/Topic/name": name -"/pubsub:v1beta2/PublishRequest": publish_request -"/pubsub:v1beta2/PublishRequest/messages": messages -"/pubsub:v1beta2/PublishRequest/messages/message": message -"/pubsub:v1beta2/PubsubMessage/data": data -"/pubsub:v1beta2/PubsubMessage/attributes": attributes -"/pubsub:v1beta2/PubsubMessage/attributes/attribute": attribute -"/pubsub:v1beta2/PubsubMessage/messageId": message_id -"/pubsub:v1beta2/PublishResponse": publish_response -"/pubsub:v1beta2/PublishResponse/messageIds": message_ids -"/pubsub:v1beta2/PublishResponse/messageIds/message_id": message_id -"/pubsub:v1beta2/ListTopicsResponse": list_topics_response -"/pubsub:v1beta2/ListTopicsResponse/topics": topics -"/pubsub:v1beta2/ListTopicsResponse/topics/topic": topic -"/pubsub:v1beta2/ListTopicsResponse/nextPageToken": next_page_token -"/pubsub:v1beta2/ListTopicSubscriptionsResponse": list_topic_subscriptions_response -"/pubsub:v1beta2/ListTopicSubscriptionsResponse/subscriptions": subscriptions -"/pubsub:v1beta2/ListTopicSubscriptionsResponse/subscriptions/subscription": subscription -"/pubsub:v1beta2/ListTopicSubscriptionsResponse/nextPageToken": next_page_token -"/pubsub:v1beta2/Empty": empty -"/pubsub:v1beta2/Subscription": subscription -"/pubsub:v1beta2/Subscription/name": name -"/pubsub:v1beta2/Subscription/topic": topic -"/pubsub:v1beta2/Subscription/pushConfig": push_config -"/pubsub:v1beta2/Subscription/ackDeadlineSeconds": ack_deadline_seconds -"/pubsub:v1beta2/PushConfig": push_config -"/pubsub:v1beta2/PushConfig/pushEndpoint": push_endpoint -"/pubsub:v1beta2/PushConfig/attributes": attributes -"/pubsub:v1beta2/PushConfig/attributes/attribute": attribute -"/pubsub:v1beta2/ListSubscriptionsResponse": list_subscriptions_response -"/pubsub:v1beta2/ListSubscriptionsResponse/subscriptions": subscriptions -"/pubsub:v1beta2/ListSubscriptionsResponse/subscriptions/subscription": subscription -"/pubsub:v1beta2/ListSubscriptionsResponse/nextPageToken": next_page_token -"/pubsub:v1beta2/ModifyAckDeadlineRequest": modify_ack_deadline_request -"/pubsub:v1beta2/ModifyAckDeadlineRequest/ackId": ack_id -"/pubsub:v1beta2/ModifyAckDeadlineRequest/ackIds": ack_ids -"/pubsub:v1beta2/ModifyAckDeadlineRequest/ackIds/ack_id": ack_id -"/pubsub:v1beta2/ModifyAckDeadlineRequest/ackDeadlineSeconds": ack_deadline_seconds -"/pubsub:v1beta2/AcknowledgeRequest": acknowledge_request -"/pubsub:v1beta2/AcknowledgeRequest/ackIds": ack_ids -"/pubsub:v1beta2/AcknowledgeRequest/ackIds/ack_id": ack_id -"/pubsub:v1beta2/PullRequest": pull_request -"/pubsub:v1beta2/PullRequest/returnImmediately": return_immediately -"/pubsub:v1beta2/PullRequest/maxMessages": max_messages -"/pubsub:v1beta2/PullResponse": pull_response -"/pubsub:v1beta2/PullResponse/receivedMessages": received_messages -"/pubsub:v1beta2/PullResponse/receivedMessages/received_message": received_message -"/pubsub:v1beta2/ReceivedMessage": received_message -"/pubsub:v1beta2/ReceivedMessage/ackId": ack_id -"/pubsub:v1beta2/ReceivedMessage/message": message -"/pubsub:v1beta2/ModifyPushConfigRequest": modify_push_config_request -"/pubsub:v1beta2/ModifyPushConfigRequest/pushConfig": push_config +"/logging:v1beta3/ListSinksResponse": list_sinks_response +"/logging:v1beta3/ListSinksResponse/sinks": sinks +"/logging:v1beta3/ListSinksResponse/sinks/sink": sink +"/logging:v1beta3/ListLogMetricsResponse": list_log_metrics_response +"/logging:v1beta3/ListLogMetricsResponse/metrics": metrics +"/logging:v1beta3/ListLogMetricsResponse/metrics/metric": metric +"/logging:v1beta3/ListLogMetricsResponse/nextPageToken": next_page_token +"/logging:v1beta3/LogMetric": log_metric +"/logging:v1beta3/LogMetric/name": name +"/logging:v1beta3/LogMetric/description": description +"/logging:v1beta3/LogMetric/filter": filter +"/logging:v1beta3/RequestLog": request_log +"/logging:v1beta3/RequestLog/appId": app_id +"/logging:v1beta3/RequestLog/moduleId": module_id +"/logging:v1beta3/RequestLog/versionId": version_id +"/logging:v1beta3/RequestLog/requestId": request_id +"/logging:v1beta3/RequestLog/ip": ip +"/logging:v1beta3/RequestLog/startTime": start_time +"/logging:v1beta3/RequestLog/endTime": end_time +"/logging:v1beta3/RequestLog/latency": latency +"/logging:v1beta3/RequestLog/megaCycles": mega_cycles +"/logging:v1beta3/RequestLog/method": method_prop +"/logging:v1beta3/RequestLog/resource": resource +"/logging:v1beta3/RequestLog/httpVersion": http_version +"/logging:v1beta3/RequestLog/status": status +"/logging:v1beta3/RequestLog/responseSize": response_size +"/logging:v1beta3/RequestLog/referrer": referrer +"/logging:v1beta3/RequestLog/userAgent": user_agent +"/logging:v1beta3/RequestLog/nickname": nickname +"/logging:v1beta3/RequestLog/urlMapEntry": url_map_entry +"/logging:v1beta3/RequestLog/host": host +"/logging:v1beta3/RequestLog/cost": cost +"/logging:v1beta3/RequestLog/taskQueueName": task_queue_name +"/logging:v1beta3/RequestLog/taskName": task_name +"/logging:v1beta3/RequestLog/wasLoadingRequest": was_loading_request +"/logging:v1beta3/RequestLog/pendingTime": pending_time +"/logging:v1beta3/RequestLog/instanceIndex": instance_index +"/logging:v1beta3/RequestLog/finished": finished +"/logging:v1beta3/RequestLog/instanceId": instance_id +"/logging:v1beta3/RequestLog/line": line +"/logging:v1beta3/RequestLog/line/line": line +"/logging:v1beta3/RequestLog/appEngineRelease": app_engine_release +"/logging:v1beta3/RequestLog/traceId": trace_id +"/logging:v1beta3/RequestLog/sourceReference": source_reference +"/logging:v1beta3/RequestLog/sourceReference/source_reference": source_reference +"/logging:v1beta3/LogLine": log_line +"/logging:v1beta3/LogLine/time": time +"/logging:v1beta3/LogLine/severity": severity +"/logging:v1beta3/LogLine/logMessage": log_message +"/logging:v1beta3/LogLine/sourceLocation": source_location +"/logging:v1beta3/SourceLocation": source_location +"/logging:v1beta3/SourceLocation/file": file +"/logging:v1beta3/SourceLocation/line": line +"/logging:v1beta3/SourceLocation/functionName": function_name +"/logging:v1beta3/SourceReference": source_reference +"/logging:v1beta3/SourceReference/repository": repository +"/logging:v1beta3/SourceReference/revisionId": revision_id +"/partners:v2/fields": fields +"/partners:v2/key": key +"/partners:v2/quotaUser": quota_user +"/partners:v2/partners.userEvents.log": log_user_event +"/partners:v2/partners.clientMessages.log": log_client_message_message +"/partners:v2/partners.userStates.list": list_user_states +"/partners:v2/partners.userStates.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.userStates.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.userStates.list/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.userStates.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.userStates.list/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.userStates.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.userStates.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.companies.get": get_company +"/partners:v2/partners.companies.get/companyId": company_id +"/partners:v2/partners.companies.get/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.companies.get/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.companies.get/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.companies.get/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.companies.get/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.companies.get/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.companies.get/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.companies.get/view": view +"/partners:v2/partners.companies.get/orderBy": order_by +"/partners:v2/partners.companies.get/currencyCode": currency_code +"/partners:v2/partners.companies.get/address": address +"/partners:v2/partners.companies.list": list_companies +"/partners:v2/partners.companies.list/requestMetadata.userOverrides.ipAddress": request_metadata_user_overrides_ip_address +"/partners:v2/partners.companies.list/requestMetadata.userOverrides.userId": request_metadata_user_overrides_user_id +"/partners:v2/partners.companies.list/requestMetadata.locale": request_metadata_locale +"/partners:v2/partners.companies.list/requestMetadata.partnersSessionId": request_metadata_partners_session_id +"/partners:v2/partners.companies.list/requestMetadata.experimentIds": request_metadata_experiment_ids +"/partners:v2/partners.companies.list/requestMetadata.trafficSource.trafficSourceId": request_metadata_traffic_source_traffic_source_id +"/partners:v2/partners.companies.list/requestMetadata.trafficSource.trafficSubId": request_metadata_traffic_source_traffic_sub_id +"/partners:v2/partners.companies.list/pageSize": page_size +"/partners:v2/partners.companies.list/pageToken": page_token +"/partners:v2/partners.companies.list/companyName": company_name +"/partners:v2/partners.companies.list/view": view +"/partners:v2/partners.companies.list/minMonthlyBudget.currencyCode": min_monthly_budget_currency_code +"/partners:v2/partners.companies.list/minMonthlyBudget.units": min_monthly_budget_units +"/partners:v2/partners.companies.list/minMonthlyBudget.nanos": min_monthly_budget_nanos +"/partners:v2/partners.companies.list/maxMonthlyBudget.currencyCode": max_monthly_budget_currency_code +"/partners:v2/partners.companies.list/maxMonthlyBudget.units": max_monthly_budget_units +"/partners:v2/partners.companies.list/maxMonthlyBudget.nanos": max_monthly_budget_nanos +"/partners:v2/partners.companies.list/industries": industries +"/partners:v2/partners.companies.list/services": services +"/partners:v2/partners.companies.list/languageCodes": language_codes +"/partners:v2/partners.companies.list/address": address +"/partners:v2/partners.companies.list/orderBy": order_by +"/partners:v2/partners.companies.list/gpsMotivations": gps_motivations +"/partners:v2/partners.companies.list/websiteUrl": website_url +"/partners:v2/partners.companies.leads.create": create_lead +"/partners:v2/partners.companies.leads.create/companyId": company_id +"/partners:v2/LogUserEventRequest": log_user_event_request +"/partners:v2/LogUserEventRequest/requestMetadata": request_metadata +"/partners:v2/LogUserEventRequest/eventAction": event_action +"/partners:v2/LogUserEventRequest/eventCategory": event_category +"/partners:v2/LogUserEventRequest/eventScope": event_scope +"/partners:v2/LogUserEventRequest/eventDatas": event_datas +"/partners:v2/LogUserEventRequest/eventDatas/event_data": event_data +"/partners:v2/LogUserEventRequest/url": url +"/partners:v2/LogUserEventRequest/lead": lead +"/partners:v2/RequestMetadata": request_metadata +"/partners:v2/RequestMetadata/userOverrides": user_overrides +"/partners:v2/RequestMetadata/locale": locale +"/partners:v2/RequestMetadata/partnersSessionId": partners_session_id +"/partners:v2/RequestMetadata/experimentIds": experiment_ids +"/partners:v2/RequestMetadata/experimentIds/experiment_id": experiment_id +"/partners:v2/RequestMetadata/trafficSource": traffic_source +"/partners:v2/UserOverrides": user_overrides +"/partners:v2/UserOverrides/ipAddress": ip_address +"/partners:v2/UserOverrides/userId": user_id +"/partners:v2/TrafficSource": traffic_source +"/partners:v2/TrafficSource/trafficSourceId": traffic_source_id +"/partners:v2/TrafficSource/trafficSubId": traffic_sub_id +"/partners:v2/EventData": event_data +"/partners:v2/EventData/key": key +"/partners:v2/EventData/values": values +"/partners:v2/EventData/values/value": value +"/partners:v2/Lead": lead +"/partners:v2/Lead/id": id +"/partners:v2/Lead/type": type +"/partners:v2/Lead/email": email +"/partners:v2/Lead/givenName": given_name +"/partners:v2/Lead/familyName": family_name +"/partners:v2/Lead/websiteUrl": website_url +"/partners:v2/Lead/phoneNumber": phone_number +"/partners:v2/Lead/comments": comments +"/partners:v2/Lead/gpsMotivations": gps_motivations +"/partners:v2/Lead/gpsMotivations/gps_motivation": gps_motivation +"/partners:v2/Lead/minMonthlyBudget": min_monthly_budget +"/partners:v2/Money": money +"/partners:v2/Money/currencyCode": currency_code +"/partners:v2/Money/units": units +"/partners:v2/Money/nanos": nanos +"/partners:v2/LogUserEventResponse": log_user_event_response +"/partners:v2/LogUserEventResponse/responseMetadata": response_metadata +"/partners:v2/ResponseMetadata": response_metadata +"/partners:v2/ResponseMetadata/debugInfo": debug_info +"/partners:v2/DebugInfo": debug_info +"/partners:v2/DebugInfo/serverInfo": server_info +"/partners:v2/DebugInfo/serviceUrl": service_url +"/partners:v2/DebugInfo/serverTraceInfo": server_trace_info +"/partners:v2/LogMessageRequest": log_message_request +"/partners:v2/LogMessageRequest/requestMetadata": request_metadata +"/partners:v2/LogMessageRequest/level": level +"/partners:v2/LogMessageRequest/details": details +"/partners:v2/LogMessageRequest/clientInfo": client_info +"/partners:v2/LogMessageRequest/clientInfo/client_info": client_info +"/partners:v2/LogMessageResponse": log_message_response +"/partners:v2/LogMessageResponse/responseMetadata": response_metadata +"/partners:v2/ListUserStatesResponse": list_user_states_response +"/partners:v2/ListUserStatesResponse/responseMetadata": response_metadata +"/partners:v2/ListUserStatesResponse/userStates": user_states +"/partners:v2/ListUserStatesResponse/userStates/user_state": user_state +"/partners:v2/GetCompanyResponse": get_company_response +"/partners:v2/GetCompanyResponse/responseMetadata": response_metadata +"/partners:v2/GetCompanyResponse/company": company +"/partners:v2/Company": company +"/partners:v2/Company/id": id +"/partners:v2/Company/name": name +"/partners:v2/Company/localizedInfos": localized_infos +"/partners:v2/Company/localizedInfos/localized_info": localized_info +"/partners:v2/Company/locations": locations +"/partners:v2/Company/locations/location": location +"/partners:v2/Company/convertedMinMonthlyBudget": converted_min_monthly_budget +"/partners:v2/Company/originalMinMonthlyBudget": original_min_monthly_budget +"/partners:v2/Company/publicProfile": public_profile +"/partners:v2/Company/certificationStatuses": certification_statuses +"/partners:v2/Company/certificationStatuses/certification_status": certification_status +"/partners:v2/Company/ranks": ranks +"/partners:v2/Company/ranks/rank": rank +"/partners:v2/Company/websiteUrl": website_url +"/partners:v2/Company/industries": industries +"/partners:v2/Company/industries/industry": industry +"/partners:v2/Company/services": services +"/partners:v2/Company/services/service": service +"/partners:v2/LocalizedCompanyInfo": localized_company_info +"/partners:v2/LocalizedCompanyInfo/languageCode": language_code +"/partners:v2/LocalizedCompanyInfo/displayName": display_name +"/partners:v2/LocalizedCompanyInfo/overview": overview +"/partners:v2/LocalizedCompanyInfo/countryCodes": country_codes +"/partners:v2/LocalizedCompanyInfo/countryCodes/country_code": country_code +"/partners:v2/Location": location +"/partners:v2/Location/address": address +"/partners:v2/Location/latLng": lat_lng +"/partners:v2/LatLng": lat_lng +"/partners:v2/LatLng/latitude": latitude +"/partners:v2/LatLng/longitude": longitude +"/partners:v2/PublicProfile": public_profile +"/partners:v2/PublicProfile/id": id +"/partners:v2/PublicProfile/displayName": display_name +"/partners:v2/PublicProfile/url": url +"/partners:v2/PublicProfile/displayImageUrl": display_image_url +"/partners:v2/CertificationStatus": certification_status +"/partners:v2/CertificationStatus/type": type +"/partners:v2/CertificationStatus/examStatuses": exam_statuses +"/partners:v2/CertificationStatus/examStatuses/exam_status": exam_status +"/partners:v2/CertificationStatus/isCertified": is_certified +"/partners:v2/CertificationExamStatus": certification_exam_status +"/partners:v2/CertificationExamStatus/type": type +"/partners:v2/CertificationExamStatus/numberUsersPass": number_users_pass +"/partners:v2/Rank": rank +"/partners:v2/Rank/type": type +"/partners:v2/Rank/value": value +"/partners:v2/ListCompaniesResponse": list_companies_response +"/partners:v2/ListCompaniesResponse/responseMetadata": response_metadata +"/partners:v2/ListCompaniesResponse/companies": companies +"/partners:v2/ListCompaniesResponse/companies/company": company +"/partners:v2/ListCompaniesResponse/nextPageToken": next_page_token +"/partners:v2/CreateLeadRequest": create_lead_request +"/partners:v2/CreateLeadRequest/requestMetadata": request_metadata +"/partners:v2/CreateLeadRequest/lead": lead +"/partners:v2/CreateLeadRequest/recaptchaChallenge": recaptcha_challenge +"/partners:v2/RecaptchaChallenge": recaptcha_challenge +"/partners:v2/RecaptchaChallenge/id": id +"/partners:v2/RecaptchaChallenge/response": response +"/partners:v2/CreateLeadResponse": create_lead_response +"/partners:v2/CreateLeadResponse/responseMetadata": response_metadata +"/partners:v2/CreateLeadResponse/lead": lead +"/partners:v2/CreateLeadResponse/recaptchaStatus": recaptcha_status +"/proximitybeacon:v1beta1/fields": fields +"/proximitybeacon:v1beta1/key": key +"/proximitybeacon:v1beta1/quotaUser": quota_user +"/proximitybeacon:v1beta1/proximitybeacon.beacons.register": register_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission": decommission_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.get": get_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.get/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list": list_beacons +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/q": q +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageToken": page_token +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageSize": page_size +"/proximitybeacon:v1beta1/proximitybeacon.beacons.update": update_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.update/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate": activate_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate": deactivate_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create": create_beacon_attachment +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list": list_beacon_attachments +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete": delete_beacon_attachment +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/attachmentName": attachment_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete": batch_beacon_attachment_delete +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list": list_beacon_diagnostics +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageSize": page_size +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageToken": page_token +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/alertFilter": alert_filter +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.list": list_namespaces +"/proximitybeacon:v1beta1/proximitybeacon.beaconinfo.getforobserved": getforobserved_beaconinfo +"/proximitybeacon:v1beta1/Beacon": beacon +"/proximitybeacon:v1beta1/Beacon/beaconName": beacon_name +"/proximitybeacon:v1beta1/Beacon/advertisedId": advertised_id +"/proximitybeacon:v1beta1/Beacon/status": status +"/proximitybeacon:v1beta1/Beacon/placeId": place_id +"/proximitybeacon:v1beta1/Beacon/latLng": lat_lng +"/proximitybeacon:v1beta1/Beacon/indoorLevel": indoor_level +"/proximitybeacon:v1beta1/Beacon/expectedStability": expected_stability +"/proximitybeacon:v1beta1/Beacon/description": description +"/proximitybeacon:v1beta1/Beacon/properties": properties +"/proximitybeacon:v1beta1/Beacon/properties/property": property +"/proximitybeacon:v1beta1/AdvertisedId": advertised_id +"/proximitybeacon:v1beta1/AdvertisedId/type": type +"/proximitybeacon:v1beta1/AdvertisedId/id": id +"/proximitybeacon:v1beta1/LatLng": lat_lng +"/proximitybeacon:v1beta1/LatLng/latitude": latitude +"/proximitybeacon:v1beta1/LatLng/longitude": longitude +"/proximitybeacon:v1beta1/IndoorLevel": indoor_level +"/proximitybeacon:v1beta1/IndoorLevel/name": name +"/proximitybeacon:v1beta1/Empty": empty +"/proximitybeacon:v1beta1/ListBeaconsResponse": list_beacons_response +"/proximitybeacon:v1beta1/ListBeaconsResponse/beacons": beacons +"/proximitybeacon:v1beta1/ListBeaconsResponse/beacons/beacon": beacon +"/proximitybeacon:v1beta1/ListBeaconsResponse/nextPageToken": next_page_token +"/proximitybeacon:v1beta1/ListBeaconsResponse/totalCount": total_count +"/proximitybeacon:v1beta1/BeaconAttachment": beacon_attachment +"/proximitybeacon:v1beta1/BeaconAttachment/attachmentName": attachment_name +"/proximitybeacon:v1beta1/BeaconAttachment/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/BeaconAttachment/data": data +"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse": list_beacon_attachments_response +"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse/attachments": attachments +"/proximitybeacon:v1beta1/ListBeaconAttachmentsResponse/attachments/attachment": attachment +"/proximitybeacon:v1beta1/DeleteAttachmentsResponse": delete_attachments_response +"/proximitybeacon:v1beta1/DeleteAttachmentsResponse/numDeleted": num_deleted +"/proximitybeacon:v1beta1/ListNamespacesResponse": list_namespaces_response +"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces": namespaces +"/proximitybeacon:v1beta1/ListNamespacesResponse/namespaces/namespace": namespace +"/proximitybeacon:v1beta1/Namespace": namespace +"/proximitybeacon:v1beta1/Namespace/namespaceName": namespace_name +"/proximitybeacon:v1beta1/Namespace/servingVisibility": serving_visibility +"/proximitybeacon:v1beta1/ListDiagnosticsResponse": list_diagnostics_response +"/proximitybeacon:v1beta1/ListDiagnosticsResponse/diagnostics": diagnostics +"/proximitybeacon:v1beta1/ListDiagnosticsResponse/diagnostics/diagnostic": diagnostic +"/proximitybeacon:v1beta1/ListDiagnosticsResponse/nextPageToken": next_page_token +"/proximitybeacon:v1beta1/Diagnostics": diagnostics +"/proximitybeacon:v1beta1/Diagnostics/beaconName": beacon_name +"/proximitybeacon:v1beta1/Diagnostics/estimatedLowBatteryDate": estimated_low_battery_date +"/proximitybeacon:v1beta1/Diagnostics/alerts": alerts +"/proximitybeacon:v1beta1/Diagnostics/alerts/alert": alert +"/proximitybeacon:v1beta1/Date": date +"/proximitybeacon:v1beta1/Date/year": year +"/proximitybeacon:v1beta1/Date/month": month +"/proximitybeacon:v1beta1/Date/day": day +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest": get_info_for_observed_beacons_request +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/observations": observations +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/observations/observation": observation +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/namespacedTypes": namespaced_types +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsRequest/namespacedTypes/namespaced_type": namespaced_type +"/proximitybeacon:v1beta1/Observation": observation +"/proximitybeacon:v1beta1/Observation/advertisedId": advertised_id +"/proximitybeacon:v1beta1/Observation/telemetry": telemetry +"/proximitybeacon:v1beta1/Observation/timestampMs": timestamp_ms +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse": get_info_for_observed_beacons_response +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons": beacons +"/proximitybeacon:v1beta1/GetInfoForObservedBeaconsResponse/beacons/beacon": beacon +"/proximitybeacon:v1beta1/BeaconInfo": beacon_info +"/proximitybeacon:v1beta1/BeaconInfo/advertisedId": advertised_id +"/proximitybeacon:v1beta1/BeaconInfo/beaconName": beacon_name +"/proximitybeacon:v1beta1/BeaconInfo/description": description +"/proximitybeacon:v1beta1/BeaconInfo/attachments": attachments +"/proximitybeacon:v1beta1/BeaconInfo/attachments/attachment": attachment +"/proximitybeacon:v1beta1/AttachmentInfo": attachment_info +"/proximitybeacon:v1beta1/AttachmentInfo/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/AttachmentInfo/data": data +"/pubsub:v1/fields": fields +"/pubsub:v1/key": key +"/pubsub:v1/quotaUser": quota_user +"/pubsub:v1/pubsub.projects.topics.setIamPolicy": set_topic_iam_policy +"/pubsub:v1/pubsub.projects.topics.setIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.topics.getIamPolicy": get_project_topic_iam_policy +"/pubsub:v1/pubsub.projects.topics.getIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.topics.testIamPermissions": test_topic_iam_permissions +"/pubsub:v1/pubsub.projects.topics.testIamPermissions/resource": resource +"/pubsub:v1/pubsub.projects.topics.create/name": name +"/pubsub:v1/pubsub.projects.topics.publish": publish_topic +"/pubsub:v1/pubsub.projects.topics.publish/topic": topic +"/pubsub:v1/pubsub.projects.topics.get/topic": topic +"/pubsub:v1/pubsub.projects.topics.list/project": project +"/pubsub:v1/pubsub.projects.topics.list/pageSize": page_size +"/pubsub:v1/pubsub.projects.topics.list/pageToken": page_token +"/pubsub:v1/pubsub.projects.topics.delete/topic": topic +"/pubsub:v1/pubsub.projects.topics.subscriptions.list/topic": topic +"/pubsub:v1/pubsub.projects.topics.subscriptions.list/pageSize": page_size +"/pubsub:v1/pubsub.projects.topics.subscriptions.list/pageToken": page_token +"/pubsub:v1/pubsub.projects.subscriptions.setIamPolicy": set_subscription_iam_policy +"/pubsub:v1/pubsub.projects.subscriptions.setIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.subscriptions.getIamPolicy": get_project_subscription_iam_policy +"/pubsub:v1/pubsub.projects.subscriptions.getIamPolicy/resource": resource +"/pubsub:v1/pubsub.projects.subscriptions.testIamPermissions": test_subscription_iam_permissions +"/pubsub:v1/pubsub.projects.subscriptions.testIamPermissions/resource": resource +"/pubsub:v1/pubsub.projects.subscriptions.create/name": name +"/pubsub:v1/pubsub.projects.subscriptions.get/subscription": subscription +"/pubsub:v1/pubsub.projects.subscriptions.list/project": project +"/pubsub:v1/pubsub.projects.subscriptions.list/pageSize": page_size +"/pubsub:v1/pubsub.projects.subscriptions.list/pageToken": page_token +"/pubsub:v1/pubsub.projects.subscriptions.delete/subscription": subscription +"/pubsub:v1/pubsub.projects.subscriptions.modifyAckDeadline": modify_subscription_ack_deadline +"/pubsub:v1/pubsub.projects.subscriptions.modifyAckDeadline/subscription": subscription +"/pubsub:v1/pubsub.projects.subscriptions.acknowledge": acknowledge_subscription +"/pubsub:v1/pubsub.projects.subscriptions.acknowledge/subscription": subscription +"/pubsub:v1/pubsub.projects.subscriptions.pull": pull_subscription +"/pubsub:v1/pubsub.projects.subscriptions.pull/subscription": subscription +"/pubsub:v1/pubsub.projects.subscriptions.modifyPushConfig": modify_subscription_push_config +"/pubsub:v1/pubsub.projects.subscriptions.modifyPushConfig/subscription": subscription +"/pubsub:v1/SetIamPolicyRequest": set_iam_policy_request +"/pubsub:v1/SetIamPolicyRequest/policy": policy +"/pubsub:v1/Policy": policy +"/pubsub:v1/Policy/version": version +"/pubsub:v1/Policy/bindings": bindings +"/pubsub:v1/Policy/bindings/binding": binding +"/pubsub:v1/Policy/etag": etag +"/pubsub:v1/Binding": binding +"/pubsub:v1/Binding/role": role +"/pubsub:v1/Binding/members": members +"/pubsub:v1/Binding/members/member": member +"/pubsub:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/pubsub:v1/TestIamPermissionsRequest/permissions": permissions +"/pubsub:v1/TestIamPermissionsRequest/permissions/permission": permission +"/pubsub:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/pubsub:v1/TestIamPermissionsResponse/permissions": permissions +"/pubsub:v1/TestIamPermissionsResponse/permissions/permission": permission +"/pubsub:v1/Topic": topic +"/pubsub:v1/Topic/name": name +"/pubsub:v1/PublishRequest": publish_request +"/pubsub:v1/PublishRequest/messages": messages +"/pubsub:v1/PublishRequest/messages/message": message +"/pubsub:v1/PubsubMessage/data": data +"/pubsub:v1/PubsubMessage/attributes": attributes +"/pubsub:v1/PubsubMessage/attributes/attribute": attribute +"/pubsub:v1/PubsubMessage/messageId": message_id +"/pubsub:v1/PubsubMessage/publishTime": publish_time +"/pubsub:v1/PublishResponse": publish_response +"/pubsub:v1/PublishResponse/messageIds": message_ids +"/pubsub:v1/PublishResponse/messageIds/message_id": message_id +"/pubsub:v1/ListTopicsResponse": list_topics_response +"/pubsub:v1/ListTopicsResponse/topics": topics +"/pubsub:v1/ListTopicsResponse/topics/topic": topic +"/pubsub:v1/ListTopicsResponse/nextPageToken": next_page_token +"/pubsub:v1/ListTopicSubscriptionsResponse": list_topic_subscriptions_response +"/pubsub:v1/ListTopicSubscriptionsResponse/subscriptions": subscriptions +"/pubsub:v1/ListTopicSubscriptionsResponse/subscriptions/subscription": subscription +"/pubsub:v1/ListTopicSubscriptionsResponse/nextPageToken": next_page_token +"/pubsub:v1/Empty": empty +"/pubsub:v1/Subscription": subscription +"/pubsub:v1/Subscription/name": name +"/pubsub:v1/Subscription/topic": topic +"/pubsub:v1/Subscription/pushConfig": push_config +"/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds +"/pubsub:v1/PushConfig": push_config +"/pubsub:v1/PushConfig/pushEndpoint": push_endpoint +"/pubsub:v1/PushConfig/attributes": attributes +"/pubsub:v1/PushConfig/attributes/attribute": attribute +"/pubsub:v1/ListSubscriptionsResponse": list_subscriptions_response +"/pubsub:v1/ListSubscriptionsResponse/subscriptions": subscriptions +"/pubsub:v1/ListSubscriptionsResponse/subscriptions/subscription": subscription +"/pubsub:v1/ListSubscriptionsResponse/nextPageToken": next_page_token +"/pubsub:v1/ModifyAckDeadlineRequest": modify_ack_deadline_request +"/pubsub:v1/ModifyAckDeadlineRequest/ackIds": ack_ids +"/pubsub:v1/ModifyAckDeadlineRequest/ackIds/ack_id": ack_id +"/pubsub:v1/ModifyAckDeadlineRequest/ackDeadlineSeconds": ack_deadline_seconds +"/pubsub:v1/AcknowledgeRequest": acknowledge_request +"/pubsub:v1/AcknowledgeRequest/ackIds": ack_ids +"/pubsub:v1/AcknowledgeRequest/ackIds/ack_id": ack_id +"/pubsub:v1/PullRequest": pull_request +"/pubsub:v1/PullRequest/returnImmediately": return_immediately +"/pubsub:v1/PullRequest/maxMessages": max_messages +"/pubsub:v1/PullResponse": pull_response +"/pubsub:v1/PullResponse/receivedMessages": received_messages +"/pubsub:v1/PullResponse/receivedMessages/received_message": received_message +"/pubsub:v1/ReceivedMessage": received_message +"/pubsub:v1/ReceivedMessage/ackId": ack_id +"/pubsub:v1/ReceivedMessage/message": message +"/pubsub:v1/ModifyPushConfigRequest": modify_push_config_request +"/pubsub:v1/ModifyPushConfigRequest/pushConfig": push_config +"/script:v1/fields": fields +"/script:v1/key": key +"/script:v1/quotaUser": quota_user +"/script:v1/script.scripts.run": run_script +"/script:v1/script.scripts.run/scriptId": script_id +"/script:v1/ExecutionRequest": execution_request +"/script:v1/ExecutionRequest/function": function +"/script:v1/ExecutionRequest/parameters": parameters +"/script:v1/ExecutionRequest/parameters/parameter": parameter +"/script:v1/ExecutionRequest/sessionState": session_state +"/script:v1/ExecutionRequest/devMode": dev_mode +"/script:v1/Operation": operation +"/script:v1/Operation/name": name +"/script:v1/Operation/metadata": metadata +"/script:v1/Operation/metadata/metadatum": metadatum +"/script:v1/Operation/done": done +"/script:v1/Operation/error": error +"/script:v1/Operation/response": response +"/script:v1/Operation/response/response": response +"/script:v1/Status": status +"/script:v1/Status/code": code +"/script:v1/Status/message": message +"/script:v1/Status/details": details +"/script:v1/Status/details/detail": detail +"/script:v1/Status/details/detail/detail": detail +"/script:v1/ExecutionError": execution_error +"/script:v1/ExecutionError/scriptStackTraceElements": script_stack_trace_elements +"/script:v1/ExecutionError/scriptStackTraceElements/script_stack_trace_element": script_stack_trace_element +"/script:v1/ExecutionError/errorMessage": error_message +"/script:v1/ExecutionError/errorType": error_type +"/script:v1/ScriptStackTraceElement": script_stack_trace_element +"/script:v1/ScriptStackTraceElement/function": function +"/script:v1/ScriptStackTraceElement/lineNumber": line_number +"/script:v1/ExecutionResponse": execution_response +"/script:v1/ExecutionResponse/result": result +"/storagetransfer:v1/fields": fields +"/storagetransfer:v1/key": key +"/storagetransfer:v1/quotaUser": quota_user +"/storagetransfer:v1/storagetransfer.googleServiceAccounts.get": get_google_service_account +"/storagetransfer:v1/storagetransfer.googleServiceAccounts.get/projectId": project_id +"/storagetransfer:v1/storagetransfer.getGoogleServiceAccount/projectId": project_id +"/storagetransfer:v1/storagetransfer.transferJobs.create": create_transfer_job +"/storagetransfer:v1/storagetransfer.transferJobs.patch": patch_transfer_job +"/storagetransfer:v1/storagetransfer.transferJobs.patch/jobName": job_name +"/storagetransfer:v1/storagetransfer.transferJobs.get": get_transfer_job +"/storagetransfer:v1/storagetransfer.transferJobs.get/jobName": job_name +"/storagetransfer:v1/storagetransfer.transferJobs.get/projectId": project_id +"/storagetransfer:v1/storagetransfer.transferJobs.list": list_transfer_jobs +"/storagetransfer:v1/storagetransfer.transferJobs.list/filter": filter +"/storagetransfer:v1/storagetransfer.transferJobs.list/pageSize": page_size +"/storagetransfer:v1/storagetransfer.transferJobs.list/pageToken": page_token +"/storagetransfer:v1/storagetransfer.transferOperations.pause": pause_transfer_operation +"/storagetransfer:v1/storagetransfer.transferOperations.pause/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.resume": resume_transfer_operation +"/storagetransfer:v1/storagetransfer.transferOperations.resume/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.get": get_transfer_operation +"/storagetransfer:v1/storagetransfer.transferOperations.get/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.list": list_transfer_operations +"/storagetransfer:v1/storagetransfer.transferOperations.list/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.list/filter": filter +"/storagetransfer:v1/storagetransfer.transferOperations.list/pageSize": page_size +"/storagetransfer:v1/storagetransfer.transferOperations.list/pageToken": page_token +"/storagetransfer:v1/storagetransfer.transferOperations.cancel": cancel_transfer_operation +"/storagetransfer:v1/storagetransfer.transferOperations.cancel/name": name +"/storagetransfer:v1/storagetransfer.transferOperations.delete": delete_transfer_operation +"/storagetransfer:v1/storagetransfer.transferOperations.delete/name": name +"/storagetransfer:v1/GoogleServiceAccount": google_service_account +"/storagetransfer:v1/GoogleServiceAccount/accountEmail": account_email +"/storagetransfer:v1/TransferJob": transfer_job +"/storagetransfer:v1/TransferJob/name": name +"/storagetransfer:v1/TransferJob/description": description +"/storagetransfer:v1/TransferJob/projectId": project_id +"/storagetransfer:v1/TransferJob/transferSpec": transfer_spec +"/storagetransfer:v1/TransferJob/schedule": schedule +"/storagetransfer:v1/TransferJob/status": status +"/storagetransfer:v1/TransferJob/creationTime": creation_time +"/storagetransfer:v1/TransferJob/lastModificationTime": last_modification_time +"/storagetransfer:v1/TransferJob/deletionTime": deletion_time +"/storagetransfer:v1/TransferSpec": transfer_spec +"/storagetransfer:v1/TransferSpec/gcsDataSource": gcs_data_source +"/storagetransfer:v1/TransferSpec/awsS3DataSource": aws_s3_data_source +"/storagetransfer:v1/TransferSpec/httpDataSource": http_data_source +"/storagetransfer:v1/TransferSpec/gcsDataSink": gcs_data_sink +"/storagetransfer:v1/TransferSpec/objectConditions": object_conditions +"/storagetransfer:v1/TransferSpec/transferOptions": transfer_options +"/storagetransfer:v1/GcsData": gcs_data +"/storagetransfer:v1/GcsData/bucketName": bucket_name +"/storagetransfer:v1/AwsS3Data": aws_s3_data +"/storagetransfer:v1/AwsS3Data/bucketName": bucket_name +"/storagetransfer:v1/AwsS3Data/awsAccessKey": aws_access_key +"/storagetransfer:v1/AwsAccessKey": aws_access_key +"/storagetransfer:v1/AwsAccessKey/accessKeyId": access_key_id +"/storagetransfer:v1/AwsAccessKey/secretAccessKey": secret_access_key +"/storagetransfer:v1/HttpData": http_data +"/storagetransfer:v1/HttpData/listUrl": list_url +"/storagetransfer:v1/ObjectConditions": object_conditions +"/storagetransfer:v1/ObjectConditions/minTimeElapsedSinceLastModification": min_time_elapsed_since_last_modification +"/storagetransfer:v1/ObjectConditions/maxTimeElapsedSinceLastModification": max_time_elapsed_since_last_modification +"/storagetransfer:v1/ObjectConditions/includePrefixes": include_prefixes +"/storagetransfer:v1/ObjectConditions/includePrefixes/include_prefix": include_prefix +"/storagetransfer:v1/ObjectConditions/excludePrefixes": exclude_prefixes +"/storagetransfer:v1/ObjectConditions/excludePrefixes/exclude_prefix": exclude_prefix +"/storagetransfer:v1/TransferOptions": transfer_options +"/storagetransfer:v1/TransferOptions/overwriteObjectsAlreadyExistingInSink": overwrite_objects_already_existing_in_sink +"/storagetransfer:v1/TransferOptions/deleteObjectsUniqueInSink": delete_objects_unique_in_sink +"/storagetransfer:v1/TransferOptions/deleteObjectsFromSourceAfterTransfer": delete_objects_from_source_after_transfer +"/storagetransfer:v1/Schedule": schedule +"/storagetransfer:v1/Schedule/scheduleStartDate": schedule_start_date +"/storagetransfer:v1/Schedule/scheduleEndDate": schedule_end_date +"/storagetransfer:v1/Schedule/startTimeOfDay": start_time_of_day +"/storagetransfer:v1/Date": date +"/storagetransfer:v1/Date/year": year +"/storagetransfer:v1/Date/month": month +"/storagetransfer:v1/Date/day": day +"/storagetransfer:v1/TimeOfDay": time_of_day +"/storagetransfer:v1/TimeOfDay/hours": hours +"/storagetransfer:v1/TimeOfDay/minutes": minutes +"/storagetransfer:v1/TimeOfDay/seconds": seconds +"/storagetransfer:v1/TimeOfDay/nanos": nanos +"/storagetransfer:v1/UpdateTransferJobRequest": update_transfer_job_request +"/storagetransfer:v1/UpdateTransferJobRequest/projectId": project_id +"/storagetransfer:v1/UpdateTransferJobRequest/transferJob": transfer_job +"/storagetransfer:v1/UpdateTransferJobRequest/updateTransferJobFieldMask": update_transfer_job_field_mask +"/storagetransfer:v1/ListTransferJobsResponse": list_transfer_jobs_response +"/storagetransfer:v1/ListTransferJobsResponse/transferJobs": transfer_jobs +"/storagetransfer:v1/ListTransferJobsResponse/transferJobs/transfer_job": transfer_job +"/storagetransfer:v1/ListTransferJobsResponse/nextPageToken": next_page_token +"/storagetransfer:v1/PauseTransferOperationRequest": pause_transfer_operation_request +"/storagetransfer:v1/Empty": empty +"/storagetransfer:v1/ResumeTransferOperationRequest": resume_transfer_operation_request +"/storagetransfer:v1/Operation": operation +"/storagetransfer:v1/Operation/name": name +"/storagetransfer:v1/Operation/metadata": metadata +"/storagetransfer:v1/Operation/metadata/metadatum": metadatum +"/storagetransfer:v1/Operation/done": done +"/storagetransfer:v1/Operation/error": error +"/storagetransfer:v1/Operation/response": response +"/storagetransfer:v1/Operation/response/response": response +"/storagetransfer:v1/Status": status +"/storagetransfer:v1/Status/code": code +"/storagetransfer:v1/Status/message": message +"/storagetransfer:v1/Status/details": details +"/storagetransfer:v1/Status/details/detail": detail +"/storagetransfer:v1/Status/details/detail/detail": detail +"/storagetransfer:v1/ListOperationsResponse": list_operations_response +"/storagetransfer:v1/ListOperationsResponse/operations": operations +"/storagetransfer:v1/ListOperationsResponse/operations/operation": operation +"/storagetransfer:v1/ListOperationsResponse/nextPageToken": next_page_token +"/storagetransfer:v1/TransferOperation": transfer_operation +"/storagetransfer:v1/TransferOperation/name": name +"/storagetransfer:v1/TransferOperation/projectId": project_id +"/storagetransfer:v1/TransferOperation/transferSpec": transfer_spec +"/storagetransfer:v1/TransferOperation/startTime": start_time +"/storagetransfer:v1/TransferOperation/endTime": end_time +"/storagetransfer:v1/TransferOperation/status": status +"/storagetransfer:v1/TransferOperation/counters": counters +"/storagetransfer:v1/TransferOperation/errorBreakdowns": error_breakdowns +"/storagetransfer:v1/TransferOperation/errorBreakdowns/error_breakdown": error_breakdown +"/storagetransfer:v1/TransferOperation/transferJobName": transfer_job_name +"/storagetransfer:v1/TransferCounters": transfer_counters +"/storagetransfer:v1/TransferCounters/objectsFoundFromSource": objects_found_from_source +"/storagetransfer:v1/TransferCounters/bytesFoundFromSource": bytes_found_from_source +"/storagetransfer:v1/TransferCounters/objectsFoundOnlyFromSink": objects_found_only_from_sink +"/storagetransfer:v1/TransferCounters/bytesFoundOnlyFromSink": bytes_found_only_from_sink +"/storagetransfer:v1/TransferCounters/objectsFromSourceSkippedBySync": objects_from_source_skipped_by_sync +"/storagetransfer:v1/TransferCounters/bytesFromSourceSkippedBySync": bytes_from_source_skipped_by_sync +"/storagetransfer:v1/TransferCounters/objectsCopiedToSink": objects_copied_to_sink +"/storagetransfer:v1/TransferCounters/bytesCopiedToSink": bytes_copied_to_sink +"/storagetransfer:v1/TransferCounters/objectsDeletedFromSource": objects_deleted_from_source +"/storagetransfer:v1/TransferCounters/bytesDeletedFromSource": bytes_deleted_from_source +"/storagetransfer:v1/TransferCounters/objectsDeletedFromSink": objects_deleted_from_sink +"/storagetransfer:v1/TransferCounters/bytesDeletedFromSink": bytes_deleted_from_sink +"/storagetransfer:v1/TransferCounters/objectsFromSourceFailed": objects_from_source_failed +"/storagetransfer:v1/TransferCounters/bytesFromSourceFailed": bytes_from_source_failed +"/storagetransfer:v1/TransferCounters/objectsFailedToDeleteFromSink": objects_failed_to_delete_from_sink +"/storagetransfer:v1/TransferCounters/bytesFailedToDeleteFromSink": bytes_failed_to_delete_from_sink +"/storagetransfer:v1/ErrorSummary": error_summary +"/storagetransfer:v1/ErrorSummary/errorCode": error_code +"/storagetransfer:v1/ErrorSummary/errorCount": error_count +"/storagetransfer:v1/ErrorSummary/errorLogEntries": error_log_entries +"/storagetransfer:v1/ErrorSummary/errorLogEntries/error_log_entry": error_log_entry +"/storagetransfer:v1/ErrorLogEntry": error_log_entry +"/storagetransfer:v1/ErrorLogEntry/url": url +"/storagetransfer:v1/ErrorLogEntry/errorDetails": error_details +"/storagetransfer:v1/ErrorLogEntry/errorDetails/error_detail": error_detail +"/youtubereporting:v1/fields": fields +"/youtubereporting:v1/key": key +"/youtubereporting:v1/quotaUser": quota_user +"/youtubereporting:v1/youtubereporting.media.download": download_medium +"/youtubereporting:v1/youtubereporting.media.download/resourceName": resource_name +"/youtubereporting:v1/youtubereporting.reportTypes.list": list_report_types +"/youtubereporting:v1/youtubereporting.reportTypes.list/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/youtubereporting.reportTypes.list/pageSize": page_size +"/youtubereporting:v1/youtubereporting.reportTypes.list/pageToken": page_token +"/youtubereporting:v1/youtubereporting.jobs.create": create_job +"/youtubereporting:v1/youtubereporting.jobs.create/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/youtubereporting.jobs.list": list_jobs +"/youtubereporting:v1/youtubereporting.jobs.list/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/youtubereporting.jobs.list/pageSize": page_size +"/youtubereporting:v1/youtubereporting.jobs.list/pageToken": page_token +"/youtubereporting:v1/youtubereporting.jobs.get": get_job +"/youtubereporting:v1/youtubereporting.jobs.get/jobId": job_id +"/youtubereporting:v1/youtubereporting.jobs.get/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/youtubereporting.jobs.delete": delete_job +"/youtubereporting:v1/youtubereporting.jobs.delete/jobId": job_id +"/youtubereporting:v1/youtubereporting.jobs.delete/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/youtubereporting.jobs.reports.list": list_job_reports +"/youtubereporting:v1/youtubereporting.jobs.reports.list/jobId": job_id +"/youtubereporting:v1/youtubereporting.jobs.reports.list/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/youtubereporting.jobs.reports.list/pageSize": page_size +"/youtubereporting:v1/youtubereporting.jobs.reports.list/pageToken": page_token +"/youtubereporting:v1/youtubereporting.jobs.reports.list/createdAfter": created_after +"/youtubereporting:v1/youtubereporting.jobs.reports.get": get_job_report +"/youtubereporting:v1/youtubereporting.jobs.reports.get/jobId": job_id +"/youtubereporting:v1/youtubereporting.jobs.reports.get/reportId": report_id +"/youtubereporting:v1/youtubereporting.jobs.reports.get/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubereporting:v1/Media": media +"/youtubereporting:v1/Media/resourceName": resource_name +"/youtubereporting:v1/ListReportTypesResponse": list_report_types_response +"/youtubereporting:v1/ListReportTypesResponse/reportTypes": report_types +"/youtubereporting:v1/ListReportTypesResponse/reportTypes/report_type": report_type +"/youtubereporting:v1/ListReportTypesResponse/nextPageToken": next_page_token +"/youtubereporting:v1/ReportType": report_type +"/youtubereporting:v1/ReportType/id": id +"/youtubereporting:v1/ReportType/name": name +"/youtubereporting:v1/Job": job +"/youtubereporting:v1/Job/id": id +"/youtubereporting:v1/Job/reportTypeId": report_type_id +"/youtubereporting:v1/Job/name": name +"/youtubereporting:v1/Job/createTime": create_time +"/youtubereporting:v1/ListJobsResponse": list_jobs_response +"/youtubereporting:v1/ListJobsResponse/jobs": jobs +"/youtubereporting:v1/ListJobsResponse/jobs/job": job +"/youtubereporting:v1/ListJobsResponse/nextPageToken": next_page_token +"/youtubereporting:v1/Empty": empty +"/youtubereporting:v1/ListReportsResponse": list_reports_response +"/youtubereporting:v1/ListReportsResponse/reports": reports +"/youtubereporting:v1/ListReportsResponse/reports/report": report +"/youtubereporting:v1/ListReportsResponse/nextPageToken": next_page_token +"/youtubereporting:v1/Report": report +"/youtubereporting:v1/Report/id": id +"/youtubereporting:v1/Report/jobId": job_id +"/youtubereporting:v1/Report/startTime": start_time +"/youtubereporting:v1/Report/endTime": end_time +"/youtubereporting:v1/Report/createTime": create_time +"/youtubereporting:v1/Report/downloadUrl": download_url "/identitytoolkit:v3/fields": fields "/identitytoolkit:v3/key": key "/identitytoolkit:v3/quotaUser": quota_user "/identitytoolkit:v3/userIp": user_ip +"/identitytoolkit:v3/identitytoolkit.relyingparty.getProjectConfig": get_relyingparty_project_config "/identitytoolkit:v3/CreateAuthUriResponse": create_auth_uri_response "/identitytoolkit:v3/CreateAuthUriResponse/authUri": auth_uri "/identitytoolkit:v3/CreateAuthUriResponse/captchaRequired": captcha_required @@ -15521,6 +17844,7 @@ "/identitytoolkit:v3/CreateAuthUriResponse/kind": kind "/identitytoolkit:v3/CreateAuthUriResponse/providerId": provider_id "/identitytoolkit:v3/CreateAuthUriResponse/registered": registered +"/identitytoolkit:v3/CreateAuthUriResponse/sessionId": session_id "/identitytoolkit:v3/DeleteAccountResponse": delete_account_response "/identitytoolkit:v3/DeleteAccountResponse/kind": kind "/identitytoolkit:v3/DownloadAccountResponse": download_account_response @@ -15533,6 +17857,7 @@ "/identitytoolkit:v3/GetAccountInfoResponse/users": users "/identitytoolkit:v3/GetAccountInfoResponse/users/user": user "/identitytoolkit:v3/GetOobConfirmationCodeResponse": get_oob_confirmation_code_response +"/identitytoolkit:v3/GetOobConfirmationCodeResponse/email": email "/identitytoolkit:v3/GetOobConfirmationCodeResponse/kind": kind "/identitytoolkit:v3/GetOobConfirmationCodeResponse/oobCode": oob_code "/identitytoolkit:v3/GetRecaptchaParamResponse": get_recaptcha_param_response @@ -15557,6 +17882,11 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/idToken": id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/localId/local_id": local_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/allowPasswordUser": allow_password_user +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/apiKey": api_key +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/idpConfig": idp_config +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/idpConfig/idp_config": idp_config +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/projectId": project_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/email": email "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/newPassword": new_password "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/oldPassword": old_password @@ -15586,11 +17916,17 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/postBody": post_body "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/requestUri": request_uri "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnRefreshToken": return_refresh_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/sessionId": session_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/captchaChallenge": captcha_challenge "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/captchaResponse": captcha_response "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/email": email "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/password": password "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/pendingIdToken": pending_id_token +"/identitytoolkit:v3/IdpConfig": idp_config +"/identitytoolkit:v3/IdpConfig/clientId": client_id +"/identitytoolkit:v3/IdpConfig/enabled": enabled +"/identitytoolkit:v3/IdpConfig/experimentPercent": experiment_percent +"/identitytoolkit:v3/IdpConfig/provider": provider "/identitytoolkit:v3/Relyingparty": relyingparty "/identitytoolkit:v3/Relyingparty/captchaResp": captcha_resp "/identitytoolkit:v3/Relyingparty/challenge": challenge @@ -15608,6 +17944,7 @@ "/identitytoolkit:v3/SetAccountInfoResponse/email": email "/identitytoolkit:v3/SetAccountInfoResponse/idToken": id_token "/identitytoolkit:v3/SetAccountInfoResponse/kind": kind +"/identitytoolkit:v3/SetAccountInfoResponse/newEmail": new_email "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo": provider_user_info "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info": provider_user_info "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/displayName": display_name @@ -15657,6 +17994,7 @@ "/identitytoolkit:v3/VerifyAssertionResponse/lastName": last_name "/identitytoolkit:v3/VerifyAssertionResponse/localId": local_id "/identitytoolkit:v3/VerifyAssertionResponse/needConfirmation": need_confirmation +"/identitytoolkit:v3/VerifyAssertionResponse/needEmail": need_email "/identitytoolkit:v3/VerifyAssertionResponse/nickName": nick_name "/identitytoolkit:v3/VerifyAssertionResponse/oauthAccessToken": oauth_access_token "/identitytoolkit:v3/VerifyAssertionResponse/oauthAuthorizationCode": oauth_authorization_code @@ -15675,6 +18013,9 @@ "/identitytoolkit:v3/VerifyPasswordResponse/idToken": id_token "/identitytoolkit:v3/VerifyPasswordResponse/kind": kind "/identitytoolkit:v3/VerifyPasswordResponse/localId": local_id +"/identitytoolkit:v3/VerifyPasswordResponse/oauthAccessToken": oauth_access_token +"/identitytoolkit:v3/VerifyPasswordResponse/oauthAuthorizationCode": oauth_authorization_code +"/identitytoolkit:v3/VerifyPasswordResponse/oauthExpireIn": oauth_expire_in "/identitytoolkit:v3/VerifyPasswordResponse/photoUrl": photo_url "/identitytoolkit:v3/VerifyPasswordResponse/registered": registered "/licensing:v1/fields": fields @@ -15964,7 +18305,7 @@ "/mapsengine:v1/mapsengine.assets.parents.list/pageToken": page_token "/mapsengine:v1/mapsengine.assets.permissions.list": list_asset_permissions "/mapsengine:v1/mapsengine.assets.permissions.list/id": id -"/mapsengine:v1/mapsengine.layers.cancelProcessing": cancel_processing_layer +"/mapsengine:v1/mapsengine.layers.cancelProcessing": cancel_layer_processing "/mapsengine:v1/mapsengine.layers.cancelProcessing/id": id "/mapsengine:v1/mapsengine.layers.create": create_layer "/mapsengine:v1/mapsengine.layers.create/process": process @@ -15973,7 +18314,6 @@ "/mapsengine:v1/mapsengine.layers.get": get_layer "/mapsengine:v1/mapsengine.layers.get/id": id "/mapsengine:v1/mapsengine.layers.get/version": version -"/mapsengine:v1/mapsengine.layers.getPublished": get_published_layer "/mapsengine:v1/mapsengine.layers.getPublished/id": id "/mapsengine:v1/mapsengine.layers.list": list_layers "/mapsengine:v1/mapsengine.layers.list/bbox": bbox @@ -15989,7 +18329,6 @@ "/mapsengine:v1/mapsengine.layers.list/role": role "/mapsengine:v1/mapsengine.layers.list/search": search "/mapsengine:v1/mapsengine.layers.list/tags": tags -"/mapsengine:v1/mapsengine.layers.listPublished": list_published_layer "/mapsengine:v1/mapsengine.layers.listPublished/maxResults": max_results "/mapsengine:v1/mapsengine.layers.listPublished/pageToken": page_token "/mapsengine:v1/mapsengine.layers.listPublished/projectId": project_id @@ -16006,9 +18345,7 @@ "/mapsengine:v1/mapsengine.layers.parents.list/id": id "/mapsengine:v1/mapsengine.layers.parents.list/maxResults": max_results "/mapsengine:v1/mapsengine.layers.parents.list/pageToken": page_token -"/mapsengine:v1/mapsengine.layers.permissions.batchDelete": batch_delete_layer_permission "/mapsengine:v1/mapsengine.layers.permissions.batchDelete/id": id -"/mapsengine:v1/mapsengine.layers.permissions.batchUpdate": batch_update_layer_permission "/mapsengine:v1/mapsengine.layers.permissions.batchUpdate/id": id "/mapsengine:v1/mapsengine.layers.permissions.list": list_layer_permissions "/mapsengine:v1/mapsengine.layers.permissions.list/id": id @@ -16018,7 +18355,6 @@ "/mapsengine:v1/mapsengine.maps.get": get_map "/mapsengine:v1/mapsengine.maps.get/id": id "/mapsengine:v1/mapsengine.maps.get/version": version -"/mapsengine:v1/mapsengine.maps.getPublished": get_published_map "/mapsengine:v1/mapsengine.maps.getPublished/id": id "/mapsengine:v1/mapsengine.maps.list": list_maps "/mapsengine:v1/mapsengine.maps.list/bbox": bbox @@ -16034,7 +18370,7 @@ "/mapsengine:v1/mapsengine.maps.list/role": role "/mapsengine:v1/mapsengine.maps.list/search": search "/mapsengine:v1/mapsengine.maps.list/tags": tags -"/mapsengine:v1/mapsengine.maps.listPublished": list_published_map +"/mapsengine:v1/mapsengine.maps.listPublished": list_map_published "/mapsengine:v1/mapsengine.maps.listPublished/maxResults": max_results "/mapsengine:v1/mapsengine.maps.listPublished/pageToken": page_token "/mapsengine:v1/mapsengine.maps.listPublished/projectId": project_id @@ -16045,9 +18381,7 @@ "/mapsengine:v1/mapsengine.maps.publish/id": id "/mapsengine:v1/mapsengine.maps.unpublish": unpublish_map "/mapsengine:v1/mapsengine.maps.unpublish/id": id -"/mapsengine:v1/mapsengine.maps.permissions.batchDelete": batch_delete_map_permission "/mapsengine:v1/mapsengine.maps.permissions.batchDelete/id": id -"/mapsengine:v1/mapsengine.maps.permissions.batchUpdate": batch_update_map_permission "/mapsengine:v1/mapsengine.maps.permissions.batchUpdate/id": id "/mapsengine:v1/mapsengine.maps.permissions.list": list_map_permissions "/mapsengine:v1/mapsengine.maps.permissions.list/id": id @@ -16061,7 +18395,7 @@ "/mapsengine:v1/mapsengine.projects.icons.list/maxResults": max_results "/mapsengine:v1/mapsengine.projects.icons.list/pageToken": page_token "/mapsengine:v1/mapsengine.projects.icons.list/projectId": project_id -"/mapsengine:v1/mapsengine.rasterCollections.cancelProcessing": cancel_processing_raster_collection +"/mapsengine:v1/mapsengine.rasterCollections.cancelProcessing": cancel_raster_collection_processing "/mapsengine:v1/mapsengine.rasterCollections.cancelProcessing/id": id "/mapsengine:v1/mapsengine.rasterCollections.create": create_raster_collection "/mapsengine:v1/mapsengine.rasterCollections.delete": delete_raster_collection @@ -16090,15 +18424,11 @@ "/mapsengine:v1/mapsengine.rasterCollections.parents.list/id": id "/mapsengine:v1/mapsengine.rasterCollections.parents.list/maxResults": max_results "/mapsengine:v1/mapsengine.rasterCollections.parents.list/pageToken": page_token -"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchDelete": batch_delete_raster_collection_permission "/mapsengine:v1/mapsengine.rasterCollections.permissions.batchDelete/id": id -"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchUpdate": batch_update_raster_collection_permission "/mapsengine:v1/mapsengine.rasterCollections.permissions.batchUpdate/id": id "/mapsengine:v1/mapsengine.rasterCollections.permissions.list": list_raster_collection_permissions "/mapsengine:v1/mapsengine.rasterCollections.permissions.list/id": id -"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchDelete": batch_delete_raster_collection_raster "/mapsengine:v1/mapsengine.rasterCollections.rasters.batchDelete/id": id -"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchInsert": batch_insert_raster_collection_raster "/mapsengine:v1/mapsengine.rasterCollections.rasters.batchInsert/id": id "/mapsengine:v1/mapsengine.rasterCollections.rasters.list": list_raster_collection_rasters "/mapsengine:v1/mapsengine.rasterCollections.rasters.list/bbox": bbox @@ -16143,9 +18473,7 @@ "/mapsengine:v1/mapsengine.rasters.parents.list/id": id "/mapsengine:v1/mapsengine.rasters.parents.list/maxResults": max_results "/mapsengine:v1/mapsengine.rasters.parents.list/pageToken": page_token -"/mapsengine:v1/mapsengine.rasters.permissions.batchDelete": batch_delete_raster_permission "/mapsengine:v1/mapsengine.rasters.permissions.batchDelete/id": id -"/mapsengine:v1/mapsengine.rasters.permissions.batchUpdate": batch_update_raster_permission "/mapsengine:v1/mapsengine.rasters.permissions.batchUpdate/id": id "/mapsengine:v1/mapsengine.rasters.permissions.list": list_raster_permissions "/mapsengine:v1/mapsengine.rasters.permissions.list/id": id @@ -16174,11 +18502,8 @@ "/mapsengine:v1/mapsengine.tables.process": process_table "/mapsengine:v1/mapsengine.tables.process/id": id "/mapsengine:v1/mapsengine.tables.upload": upload_table -"/mapsengine:v1/mapsengine.tables.features.batchDelete": batch_delete_table_feature "/mapsengine:v1/mapsengine.tables.features.batchDelete/id": id -"/mapsengine:v1/mapsengine.tables.features.batchInsert": batch_insert_table_feature "/mapsengine:v1/mapsengine.tables.features.batchInsert/id": id -"/mapsengine:v1/mapsengine.tables.features.batchPatch": batch_patch_table_feature "/mapsengine:v1/mapsengine.tables.features.batchPatch/id": id "/mapsengine:v1/mapsengine.tables.features.get": get_table_feature "/mapsengine:v1/mapsengine.tables.features.get/id": id @@ -16203,9 +18528,7 @@ "/mapsengine:v1/mapsengine.tables.parents.list/id": id "/mapsengine:v1/mapsengine.tables.parents.list/maxResults": max_results "/mapsengine:v1/mapsengine.tables.parents.list/pageToken": page_token -"/mapsengine:v1/mapsengine.tables.permissions.batchDelete": batch_delete_table_permission "/mapsengine:v1/mapsengine.tables.permissions.batchDelete/id": id -"/mapsengine:v1/mapsengine.tables.permissions.batchUpdate": batch_update_table_permission "/mapsengine:v1/mapsengine.tables.permissions.batchUpdate/id": id "/mapsengine:v1/mapsengine.tables.permissions.list": list_table_permissions "/mapsengine:v1/mapsengine.tables.permissions.list/id": id @@ -16948,8 +19271,6 @@ "/plus:v1/plus.moments.list/targetUrl": target_url "/plus:v1/plus.moments.list/type": type "/plus:v1/plus.moments.list/userId": user_id -"/plus:v1/plus.moments.remove": remove_moment -"/plus:v1/plus.moments.remove/id": id "/plus:v1/plus.people.get": get_person "/plus:v1/plus.people.get/userId": user_id "/plus:v1/plus.people.list": list_people @@ -16975,6 +19296,9 @@ "/plus:v1/Activity": activity "/plus:v1/Activity/access": access "/plus:v1/Activity/actor": actor +"/plus:v1/Activity/actor/clientSpecificActorInfo": client_specific_actor_info +"/plus:v1/Activity/actor/clientSpecificActorInfo/youtubeActorInfo": youtube_actor_info +"/plus:v1/Activity/actor/clientSpecificActorInfo/youtubeActorInfo/channelId": channel_id "/plus:v1/Activity/actor/displayName": display_name "/plus:v1/Activity/actor/id": id "/plus:v1/Activity/actor/image": image @@ -16983,6 +19307,8 @@ "/plus:v1/Activity/actor/name/familyName": family_name "/plus:v1/Activity/actor/name/givenName": given_name "/plus:v1/Activity/actor/url": url +"/plus:v1/Activity/actor/verification": verification +"/plus:v1/Activity/actor/verification/adHocVerified": ad_hoc_verified "/plus:v1/Activity/address": address "/plus:v1/Activity/annotation": annotation "/plus:v1/Activity/crosspostSource": crosspost_source @@ -16993,11 +19319,16 @@ "/plus:v1/Activity/location": location "/plus:v1/Activity/object": object "/plus:v1/Activity/object/actor": actor +"/plus:v1/Activity/object/actor/clientSpecificActorInfo": client_specific_actor_info +"/plus:v1/Activity/object/actor/clientSpecificActorInfo/youtubeActorInfo": youtube_actor_info +"/plus:v1/Activity/object/actor/clientSpecificActorInfo/youtubeActorInfo/channelId": channel_id "/plus:v1/Activity/object/actor/displayName": display_name "/plus:v1/Activity/object/actor/id": id "/plus:v1/Activity/object/actor/image": image "/plus:v1/Activity/object/actor/image/url": url "/plus:v1/Activity/object/actor/url": url +"/plus:v1/Activity/object/actor/verification": verification +"/plus:v1/Activity/object/actor/verification/adHocVerified": ad_hoc_verified "/plus:v1/Activity/object/attachments": attachments "/plus:v1/Activity/object/attachments/attachment": attachment "/plus:v1/Activity/object/attachments/attachment/content": content @@ -17064,11 +19395,16 @@ "/plus:v1/ActivityFeed/updated": updated "/plus:v1/Comment": comment "/plus:v1/Comment/actor": actor +"/plus:v1/Comment/actor/clientSpecificActorInfo": client_specific_actor_info +"/plus:v1/Comment/actor/clientSpecificActorInfo/youtubeActorInfo": youtube_actor_info +"/plus:v1/Comment/actor/clientSpecificActorInfo/youtubeActorInfo/channelId": channel_id "/plus:v1/Comment/actor/displayName": display_name "/plus:v1/Comment/actor/id": id "/plus:v1/Comment/actor/image": image "/plus:v1/Comment/actor/image/url": url "/plus:v1/Comment/actor/url": url +"/plus:v1/Comment/actor/verification": verification +"/plus:v1/Comment/actor/verification/adHocVerified": ad_hoc_verified "/plus:v1/Comment/etag": etag "/plus:v1/Comment/id": id "/plus:v1/Comment/inReplyTo": in_reply_to @@ -17341,6 +19677,9 @@ "/plusDomains:v1/Activity": activity "/plusDomains:v1/Activity/access": access "/plusDomains:v1/Activity/actor": actor +"/plusDomains:v1/Activity/actor/clientSpecificActorInfo": client_specific_actor_info +"/plusDomains:v1/Activity/actor/clientSpecificActorInfo/youtubeActorInfo": youtube_actor_info +"/plusDomains:v1/Activity/actor/clientSpecificActorInfo/youtubeActorInfo/channelId": channel_id "/plusDomains:v1/Activity/actor/displayName": display_name "/plusDomains:v1/Activity/actor/id": id "/plusDomains:v1/Activity/actor/image": image @@ -17349,6 +19688,8 @@ "/plusDomains:v1/Activity/actor/name/familyName": family_name "/plusDomains:v1/Activity/actor/name/givenName": given_name "/plusDomains:v1/Activity/actor/url": url +"/plusDomains:v1/Activity/actor/verification": verification +"/plusDomains:v1/Activity/actor/verification/adHocVerified": ad_hoc_verified "/plusDomains:v1/Activity/address": address "/plusDomains:v1/Activity/annotation": annotation "/plusDomains:v1/Activity/crosspostSource": crosspost_source @@ -17359,11 +19700,16 @@ "/plusDomains:v1/Activity/location": location "/plusDomains:v1/Activity/object": object "/plusDomains:v1/Activity/object/actor": actor +"/plusDomains:v1/Activity/object/actor/clientSpecificActorInfo": client_specific_actor_info +"/plusDomains:v1/Activity/object/actor/clientSpecificActorInfo/youtubeActorInfo": youtube_actor_info +"/plusDomains:v1/Activity/object/actor/clientSpecificActorInfo/youtubeActorInfo/channelId": channel_id "/plusDomains:v1/Activity/object/actor/displayName": display_name "/plusDomains:v1/Activity/object/actor/id": id "/plusDomains:v1/Activity/object/actor/image": image "/plusDomains:v1/Activity/object/actor/image/url": url "/plusDomains:v1/Activity/object/actor/url": url +"/plusDomains:v1/Activity/object/actor/verification": verification +"/plusDomains:v1/Activity/object/actor/verification/adHocVerified": ad_hoc_verified "/plusDomains:v1/Activity/object/attachments": attachments "/plusDomains:v1/Activity/object/attachments/attachment": attachment "/plusDomains:v1/Activity/object/attachments/attachment/content": content @@ -17471,11 +19817,16 @@ "/plusDomains:v1/CircleFeed/totalItems": total_items "/plusDomains:v1/Comment": comment "/plusDomains:v1/Comment/actor": actor +"/plusDomains:v1/Comment/actor/clientSpecificActorInfo": client_specific_actor_info +"/plusDomains:v1/Comment/actor/clientSpecificActorInfo/youtubeActorInfo": youtube_actor_info +"/plusDomains:v1/Comment/actor/clientSpecificActorInfo/youtubeActorInfo/channelId": channel_id "/plusDomains:v1/Comment/actor/displayName": display_name "/plusDomains:v1/Comment/actor/id": id "/plusDomains:v1/Comment/actor/image": image "/plusDomains:v1/Comment/actor/image/url": url "/plusDomains:v1/Comment/actor/url": url +"/plusDomains:v1/Comment/actor/verification": verification +"/plusDomains:v1/Comment/actor/verification/adHocVerified": ad_hoc_verified "/plusDomains:v1/Comment/etag": etag "/plusDomains:v1/Comment/id": id "/plusDomains:v1/Comment/inReplyTo": in_reply_to @@ -18091,6 +20442,12 @@ "/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.get/operation": operation "/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.get/project": project "/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.get/zone": zone +"/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.list": list_zone_operations +"/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.list/filter": filter +"/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.list/maxResults": max_results +"/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.list/pageToken": page_token +"/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.list/project": project +"/replicapoolupdater:v1beta1/replicapoolupdater.zoneOperations.list/zone": zone "/replicapoolupdater:v1beta1/InstanceUpdate": instance_update "/replicapoolupdater:v1beta1/InstanceUpdate/error": error "/replicapoolupdater:v1beta1/InstanceUpdate/error/errors": errors @@ -18141,6 +20498,13 @@ "/replicapoolupdater:v1beta1/Operation/warnings/warning/data/datum/value": value "/replicapoolupdater:v1beta1/Operation/warnings/warning/message": message "/replicapoolupdater:v1beta1/Operation/zone": zone +"/replicapoolupdater:v1beta1/OperationList": operation_list +"/replicapoolupdater:v1beta1/OperationList/id": id +"/replicapoolupdater:v1beta1/OperationList/items": items +"/replicapoolupdater:v1beta1/OperationList/items/item": item +"/replicapoolupdater:v1beta1/OperationList/kind": kind +"/replicapoolupdater:v1beta1/OperationList/nextPageToken": next_page_token +"/replicapoolupdater:v1beta1/OperationList/selfLink": self_link "/replicapoolupdater:v1beta1/RollingUpdate": rolling_update "/replicapoolupdater:v1beta1/RollingUpdate/actionType": action_type "/replicapoolupdater:v1beta1/RollingUpdate/creationTimestamp": creation_timestamp @@ -18189,7 +20553,7 @@ "/reseller:v1/reseller.subscriptions.activate": activate_subscription "/reseller:v1/reseller.subscriptions.activate/customerId": customer_id "/reseller:v1/reseller.subscriptions.activate/subscriptionId": subscription_id -"/reseller:v1/reseller.subscriptions.changePlan": change_plan +"/reseller:v1/reseller.subscriptions.changePlan": change_subscription_plan "/reseller:v1/reseller.subscriptions.changePlan/customerId": customer_id "/reseller:v1/reseller.subscriptions.changePlan/subscriptionId": subscription_id "/reseller:v1/reseller.subscriptions.changeRenewalSettings/customerId": customer_id @@ -18212,7 +20576,7 @@ "/reseller:v1/reseller.subscriptions.list/customerNamePrefix": customer_name_prefix "/reseller:v1/reseller.subscriptions.list/maxResults": max_results "/reseller:v1/reseller.subscriptions.list/pageToken": page_token -"/reseller:v1/reseller.subscriptions.startPaidService": start_paid_service_subscription +"/reseller:v1/reseller.subscriptions.startPaidService": start_subscription_paid_service "/reseller:v1/reseller.subscriptions.startPaidService/customerId": customer_id "/reseller:v1/reseller.subscriptions.startPaidService/subscriptionId": subscription_id "/reseller:v1/reseller.subscriptions.suspend": suspend_subscription @@ -18236,6 +20600,7 @@ "/reseller:v1/Customer": customer "/reseller:v1/Customer/alternateEmail": alternate_email "/reseller:v1/Customer/customerDomain": customer_domain +"/reseller:v1/Customer/customerDomainVerified": customer_domain_verified "/reseller:v1/Customer/customerId": customer_id "/reseller:v1/Customer/kind": kind "/reseller:v1/Customer/phoneNumber": phone_number @@ -18294,7 +20659,7 @@ "/resourceviews:v1beta2/resourceviews.zoneOperations.list/pageToken": page_token "/resourceviews:v1beta2/resourceviews.zoneOperations.list/project": project "/resourceviews:v1beta2/resourceviews.zoneOperations.list/zone": zone -"/resourceviews:v1beta2/resourceviews.zoneViews.addResources": add_resources_zone_view +"/resourceviews:v1beta2/resourceviews.zoneViews.addResources": add_zone_view_resources "/resourceviews:v1beta2/resourceviews.zoneViews.addResources/project": project "/resourceviews:v1beta2/resourceviews.zoneViews.addResources/resourceView": resource_view "/resourceviews:v1beta2/resourceviews.zoneViews.addResources/zone": zone @@ -18306,7 +20671,7 @@ "/resourceviews:v1beta2/resourceviews.zoneViews.get/project": project "/resourceviews:v1beta2/resourceviews.zoneViews.get/resourceView": resource_view "/resourceviews:v1beta2/resourceviews.zoneViews.get/zone": zone -"/resourceviews:v1beta2/resourceviews.zoneViews.getService": get_service_zone_view +"/resourceviews:v1beta2/resourceviews.zoneViews.getService": get_zone_view_service "/resourceviews:v1beta2/resourceviews.zoneViews.getService/project": project "/resourceviews:v1beta2/resourceviews.zoneViews.getService/resourceName": resource_name "/resourceviews:v1beta2/resourceviews.zoneViews.getService/resourceView": resource_view @@ -18319,7 +20684,7 @@ "/resourceviews:v1beta2/resourceviews.zoneViews.list/pageToken": page_token "/resourceviews:v1beta2/resourceviews.zoneViews.list/project": project "/resourceviews:v1beta2/resourceviews.zoneViews.list/zone": zone -"/resourceviews:v1beta2/resourceviews.zoneViews.listResources": list_resources_zone_view +"/resourceviews:v1beta2/resourceviews.zoneViews.listResources": list_zone_view_resources "/resourceviews:v1beta2/resourceviews.zoneViews.listResources/format": format "/resourceviews:v1beta2/resourceviews.zoneViews.listResources/listState": list_state "/resourceviews:v1beta2/resourceviews.zoneViews.listResources/maxResults": max_results @@ -18328,11 +20693,11 @@ "/resourceviews:v1beta2/resourceviews.zoneViews.listResources/resourceView": resource_view "/resourceviews:v1beta2/resourceviews.zoneViews.listResources/serviceName": service_name "/resourceviews:v1beta2/resourceviews.zoneViews.listResources/zone": zone -"/resourceviews:v1beta2/resourceviews.zoneViews.removeResources": remove_resources_zone_view +"/resourceviews:v1beta2/resourceviews.zoneViews.removeResources": remove_zone_view_resources "/resourceviews:v1beta2/resourceviews.zoneViews.removeResources/project": project "/resourceviews:v1beta2/resourceviews.zoneViews.removeResources/resourceView": resource_view "/resourceviews:v1beta2/resourceviews.zoneViews.removeResources/zone": zone -"/resourceviews:v1beta2/resourceviews.zoneViews.setService": set_service_zone_view +"/resourceviews:v1beta2/resourceviews.zoneViews.setService": set_zone_view_service "/resourceviews:v1beta2/resourceviews.zoneViews.setService/project": project "/resourceviews:v1beta2/resourceviews.zoneViews.setService/resourceView": resource_view "/resourceviews:v1beta2/resourceviews.zoneViews.setService/zone": zone @@ -18434,7 +20799,7 @@ "/siteVerification:v1/siteVerification.webResource.delete/id": id "/siteVerification:v1/siteVerification.webResource.get": get_web_resource "/siteVerification:v1/siteVerification.webResource.get/id": id -"/siteVerification:v1/siteVerification.webResource.getToken": get_token_web_resource +"/siteVerification:v1/siteVerification.webResource.getToken": get_web_resource_token "/siteVerification:v1/siteVerification.webResource.insert": insert_web_resource "/siteVerification:v1/siteVerification.webResource.insert/verificationMethod": verification_method "/siteVerification:v1/siteVerification.webResource.list": list_web_resources @@ -18460,6 +20825,10 @@ "/sqladmin:v1beta4/key": key "/sqladmin:v1beta4/quotaUser": quota_user "/sqladmin:v1beta4/userIp": user_ip +"/sqladmin:v1beta4/sql.backupRuns.delete": delete_backup_run +"/sqladmin:v1beta4/sql.backupRuns.delete/id": id +"/sqladmin:v1beta4/sql.backupRuns.delete/instance": instance +"/sqladmin:v1beta4/sql.backupRuns.delete/project": project "/sqladmin:v1beta4/sql.backupRuns.get": get_backup_run "/sqladmin:v1beta4/sql.backupRuns.get/id": id "/sqladmin:v1beta4/sql.backupRuns.get/instance": instance @@ -18501,6 +20870,9 @@ "/sqladmin:v1beta4/sql.instances.export": export_instance "/sqladmin:v1beta4/sql.instances.export/instance": instance "/sqladmin:v1beta4/sql.instances.export/project": project +"/sqladmin:v1beta4/sql.instances.failover": failover_instance +"/sqladmin:v1beta4/sql.instances.failover/instance": instance +"/sqladmin:v1beta4/sql.instances.failover/project": project "/sqladmin:v1beta4/sql.instances.get": get_instance "/sqladmin:v1beta4/sql.instances.get/instance": instance "/sqladmin:v1beta4/sql.instances.get/project": project @@ -18516,22 +20888,22 @@ "/sqladmin:v1beta4/sql.instances.patch": patch_instance "/sqladmin:v1beta4/sql.instances.patch/instance": instance "/sqladmin:v1beta4/sql.instances.patch/project": project -"/sqladmin:v1beta4/sql.instances.promoteReplica": promote_replica_instance +"/sqladmin:v1beta4/sql.instances.promoteReplica": promote_instance_replica "/sqladmin:v1beta4/sql.instances.promoteReplica/instance": instance "/sqladmin:v1beta4/sql.instances.promoteReplica/project": project -"/sqladmin:v1beta4/sql.instances.resetSslConfig": reset_ssl_config_instance +"/sqladmin:v1beta4/sql.instances.resetSslConfig": reset_instance_ssl_config "/sqladmin:v1beta4/sql.instances.resetSslConfig/instance": instance "/sqladmin:v1beta4/sql.instances.resetSslConfig/project": project "/sqladmin:v1beta4/sql.instances.restart": restart_instance "/sqladmin:v1beta4/sql.instances.restart/instance": instance "/sqladmin:v1beta4/sql.instances.restart/project": project -"/sqladmin:v1beta4/sql.instances.restoreBackup": restore_backup_instance +"/sqladmin:v1beta4/sql.instances.restoreBackup": restore_instance_backup "/sqladmin:v1beta4/sql.instances.restoreBackup/instance": instance "/sqladmin:v1beta4/sql.instances.restoreBackup/project": project -"/sqladmin:v1beta4/sql.instances.startReplica": start_replica_instance +"/sqladmin:v1beta4/sql.instances.startReplica": start_instance_replica "/sqladmin:v1beta4/sql.instances.startReplica/instance": instance "/sqladmin:v1beta4/sql.instances.startReplica/project": project -"/sqladmin:v1beta4/sql.instances.stopReplica": stop_replica_instance +"/sqladmin:v1beta4/sql.instances.stopReplica": stop_instance_replica "/sqladmin:v1beta4/sql.instances.stopReplica/instance": instance "/sqladmin:v1beta4/sql.instances.stopReplica/project": project "/sqladmin:v1beta4/sql.instances.update": update_instance @@ -18545,6 +20917,9 @@ "/sqladmin:v1beta4/sql.operations.list/maxResults": max_results "/sqladmin:v1beta4/sql.operations.list/pageToken": page_token "/sqladmin:v1beta4/sql.operations.list/project": project +"/sqladmin:v1beta4/sql.sslCerts.createEphemeral": create_ssl_cert_ephemeral +"/sqladmin:v1beta4/sql.sslCerts.createEphemeral/instance": instance +"/sqladmin:v1beta4/sql.sslCerts.createEphemeral/project": project "/sqladmin:v1beta4/sql.sslCerts.delete": delete_ssl_cert "/sqladmin:v1beta4/sql.sslCerts.delete/instance": instance "/sqladmin:v1beta4/sql.sslCerts.delete/project": project @@ -18626,6 +21001,9 @@ "/sqladmin:v1beta4/DatabaseInstance/currentDiskSize": current_disk_size "/sqladmin:v1beta4/DatabaseInstance/databaseVersion": database_version "/sqladmin:v1beta4/DatabaseInstance/etag": etag +"/sqladmin:v1beta4/DatabaseInstance/failoverReplica": failover_replica +"/sqladmin:v1beta4/DatabaseInstance/failoverReplica/available": available +"/sqladmin:v1beta4/DatabaseInstance/failoverReplica/name": name "/sqladmin:v1beta4/DatabaseInstance/instanceType": instance_type "/sqladmin:v1beta4/DatabaseInstance/ipAddresses": ip_addresses "/sqladmin:v1beta4/DatabaseInstance/ipAddresses/ip_address": ip_address @@ -18656,9 +21034,13 @@ "/sqladmin:v1beta4/ExportContext/fileType": file_type "/sqladmin:v1beta4/ExportContext/kind": kind "/sqladmin:v1beta4/ExportContext/sqlExportOptions": sql_export_options +"/sqladmin:v1beta4/ExportContext/sqlExportOptions/schemaOnly": schema_only "/sqladmin:v1beta4/ExportContext/sqlExportOptions/tables": tables "/sqladmin:v1beta4/ExportContext/sqlExportOptions/tables/table": table "/sqladmin:v1beta4/ExportContext/uri": uri +"/sqladmin:v1beta4/FailoverContext": failover_context +"/sqladmin:v1beta4/FailoverContext/kind": kind +"/sqladmin:v1beta4/FailoverContext/settingsVersion": settings_version "/sqladmin:v1beta4/Flag": flag "/sqladmin:v1beta4/Flag/allowedStringValues": allowed_string_values "/sqladmin:v1beta4/Flag/allowedStringValues/allowed_string_value": allowed_string_value @@ -18668,6 +21050,7 @@ "/sqladmin:v1beta4/Flag/maxValue": max_value "/sqladmin:v1beta4/Flag/minValue": min_value "/sqladmin:v1beta4/Flag/name": name +"/sqladmin:v1beta4/Flag/requiresRestart": requires_restart "/sqladmin:v1beta4/Flag/type": type "/sqladmin:v1beta4/FlagsListResponse/items": items "/sqladmin:v1beta4/FlagsListResponse/items/item": item @@ -18683,6 +21066,8 @@ "/sqladmin:v1beta4/ImportContext/uri": uri "/sqladmin:v1beta4/InstancesCloneRequest/cloneContext": clone_context "/sqladmin:v1beta4/InstancesExportRequest/exportContext": export_context +"/sqladmin:v1beta4/InstancesFailoverRequest": instances_failover_request +"/sqladmin:v1beta4/InstancesFailoverRequest/failoverContext": failover_context "/sqladmin:v1beta4/InstancesImportRequest/importContext": import_context "/sqladmin:v1beta4/InstancesListResponse/items": items "/sqladmin:v1beta4/InstancesListResponse/items/item": item @@ -18701,6 +21086,11 @@ "/sqladmin:v1beta4/LocationPreference/followGaeApplication": follow_gae_application "/sqladmin:v1beta4/LocationPreference/kind": kind "/sqladmin:v1beta4/LocationPreference/zone": zone +"/sqladmin:v1beta4/MaintenanceWindow": maintenance_window +"/sqladmin:v1beta4/MaintenanceWindow/day": day +"/sqladmin:v1beta4/MaintenanceWindow/hour": hour +"/sqladmin:v1beta4/MaintenanceWindow/kind": kind +"/sqladmin:v1beta4/MaintenanceWindow/updateTrack": update_track "/sqladmin:v1beta4/MySqlReplicaConfiguration": my_sql_replica_configuration "/sqladmin:v1beta4/MySqlReplicaConfiguration/caCertificate": ca_certificate "/sqladmin:v1beta4/MySqlReplicaConfiguration/clientCertificate": client_certificate @@ -18745,6 +21135,7 @@ "/sqladmin:v1beta4/OperationsListResponse/kind": kind "/sqladmin:v1beta4/OperationsListResponse/nextPageToken": next_page_token "/sqladmin:v1beta4/ReplicaConfiguration": replica_configuration +"/sqladmin:v1beta4/ReplicaConfiguration/failoverTarget": failover_target "/sqladmin:v1beta4/ReplicaConfiguration/kind": kind "/sqladmin:v1beta4/ReplicaConfiguration/mysqlReplicaConfiguration": mysql_replica_configuration "/sqladmin:v1beta4/RestoreBackupContext": restore_backup_context @@ -18757,12 +21148,15 @@ "/sqladmin:v1beta4/Settings/authorizedGaeApplications/authorized_gae_application": authorized_gae_application "/sqladmin:v1beta4/Settings/backupConfiguration": backup_configuration "/sqladmin:v1beta4/Settings/crashSafeReplicationEnabled": crash_safe_replication_enabled +"/sqladmin:v1beta4/Settings/dataDiskSizeGb": data_disk_size_gb +"/sqladmin:v1beta4/Settings/dataDiskType": data_disk_type "/sqladmin:v1beta4/Settings/databaseFlags": database_flags "/sqladmin:v1beta4/Settings/databaseFlags/database_flag": database_flag "/sqladmin:v1beta4/Settings/databaseReplicationEnabled": database_replication_enabled "/sqladmin:v1beta4/Settings/ipConfiguration": ip_configuration "/sqladmin:v1beta4/Settings/kind": kind "/sqladmin:v1beta4/Settings/locationPreference": location_preference +"/sqladmin:v1beta4/Settings/maintenanceWindow": maintenance_window "/sqladmin:v1beta4/Settings/pricingPlan": pricing_plan "/sqladmin:v1beta4/Settings/replicationType": replication_type "/sqladmin:v1beta4/Settings/settingsVersion": settings_version @@ -18780,6 +21174,8 @@ "/sqladmin:v1beta4/SslCertDetail": ssl_cert_detail "/sqladmin:v1beta4/SslCertDetail/certInfo": cert_info "/sqladmin:v1beta4/SslCertDetail/certPrivateKey": cert_private_key +"/sqladmin:v1beta4/SslCertsCreateEphemeralRequest": ssl_certs_create_ephemeral_request +"/sqladmin:v1beta4/SslCertsCreateEphemeralRequest/public_key": public_key "/sqladmin:v1beta4/SslCertsInsertRequest/commonName": common_name "/sqladmin:v1beta4/SslCertsInsertResponse/clientCert": client_cert "/sqladmin:v1beta4/SslCertsInsertResponse/kind": kind @@ -18910,7 +21306,7 @@ "/storage:v1/storage.objectAccessControls.update/entity": entity "/storage:v1/storage.objectAccessControls.update/generation": generation "/storage:v1/storage.objectAccessControls.update/object": object -"/storage:v1/storage.objects.compose": compose +"/storage:v1/storage.objects.compose": compose_object "/storage:v1/storage.objects.compose/destinationBucket": destination_bucket "/storage:v1/storage.objects.compose/destinationObject": destination_object "/storage:v1/storage.objects.compose/destinationPredefinedAcl": destination_predefined_acl @@ -19005,7 +21401,6 @@ "/storage:v1/storage.objects.update/object": object "/storage:v1/storage.objects.update/predefinedAcl": predefined_acl "/storage:v1/storage.objects.update/projection": projection -"/storage:v1/storage.objects.watchAll": watch_all_object "/storage:v1/storage.objects.watchAll/bucket": bucket "/storage:v1/storage.objects.watchAll/delimiter": delimiter "/storage:v1/storage.objects.watchAll/maxResults": max_results @@ -19051,6 +21446,7 @@ "/storage:v1/Bucket/selfLink": self_link "/storage:v1/Bucket/storageClass": storage_class "/storage:v1/Bucket/timeCreated": time_created +"/storage:v1/Bucket/updated": updated "/storage:v1/Bucket/versioning": versioning "/storage:v1/Bucket/versioning/enabled": enabled "/storage:v1/Bucket/website": website @@ -19111,6 +21507,9 @@ "/storage:v1/Object/contentLanguage": content_language "/storage:v1/Object/contentType": content_type "/storage:v1/Object/crc32c": crc32c +"/storage:v1/Object/customerEncryption": customer_encryption +"/storage:v1/Object/customerEncryption/encryptionAlgorithm": encryption_algorithm +"/storage:v1/Object/customerEncryption/keySha256": key_sha256 "/storage:v1/Object/etag": etag "/storage:v1/Object/generation": generation "/storage:v1/Object/id": id @@ -19127,6 +21526,7 @@ "/storage:v1/Object/selfLink": self_link "/storage:v1/Object/size": size "/storage:v1/Object/storageClass": storage_class +"/storage:v1/Object/timeCreated": time_created "/storage:v1/Object/timeDeleted": time_deleted "/storage:v1/Object/updated": updated "/storage:v1/ObjectAccessControl": object_access_control @@ -19179,34 +21579,36 @@ "/tagmanager:v1/tagmanager.accounts.containers.update/accountId": account_id "/tagmanager:v1/tagmanager.accounts.containers.update/containerId": container_id "/tagmanager:v1/tagmanager.accounts.containers.update/fingerprint": fingerprint -"/tagmanager:v1/tagmanager.accounts.containers.macros.create/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.create/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.delete/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.delete/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.delete/macroId": macro_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.get/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.get/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.get/macroId": macro_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.list/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.list/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.update/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.update/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.macros.update/fingerprint": fingerprint -"/tagmanager:v1/tagmanager.accounts.containers.macros.update/macroId": macro_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.create/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.create/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.delete/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.delete/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.delete/ruleId": rule_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.get/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.get/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.get/ruleId": rule_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.list/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.list/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.update/accountId": account_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.update/containerId": container_id -"/tagmanager:v1/tagmanager.accounts.containers.rules.update/fingerprint": fingerprint -"/tagmanager:v1/tagmanager.accounts.containers.rules.update/ruleId": rule_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.create": create_account_container_folder +"/tagmanager:v1/tagmanager.accounts.containers.folders.create/accountId": account_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.create/containerId": container_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.delete": delete_account_container_folder +"/tagmanager:v1/tagmanager.accounts.containers.folders.delete/accountId": account_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.delete/containerId": container_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.delete/folderId": folder_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.get": get_account_container_folder +"/tagmanager:v1/tagmanager.accounts.containers.folders.get/accountId": account_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.get/containerId": container_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.get/folderId": folder_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.list": list_account_container_folders +"/tagmanager:v1/tagmanager.accounts.containers.folders.list/accountId": account_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.list/containerId": container_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.update": update_account_container_folder +"/tagmanager:v1/tagmanager.accounts.containers.folders.update/accountId": account_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.update/containerId": container_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.update/fingerprint": fingerprint +"/tagmanager:v1/tagmanager.accounts.containers.folders.update/folderId": folder_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.entities.list": list_account_container_folder_entities +"/tagmanager:v1/tagmanager.accounts.containers.folders.entities.list/accountId": account_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.entities.list/containerId": container_id +"/tagmanager:v1/tagmanager.accounts.containers.folders.entities.list/folderId": folder_id +"/tagmanager:v1/tagmanager.accounts.containers.move_folders.update": update_account_container_move_folder +"/tagmanager:v1/tagmanager.accounts.containers.move_folders.update/accountId": account_id +"/tagmanager:v1/tagmanager.accounts.containers.move_folders.update/containerId": container_id +"/tagmanager:v1/tagmanager.accounts.containers.move_folders.update/folderId": folder_id +"/tagmanager:v1/tagmanager.accounts.containers.move_folders.update/tagId": tag_id +"/tagmanager:v1/tagmanager.accounts.containers.move_folders.update/triggerId": trigger_id +"/tagmanager:v1/tagmanager.accounts.containers.move_folders.update/variableId": variable_id "/tagmanager:v1/tagmanager.accounts.containers.tags.create/accountId": account_id "/tagmanager:v1/tagmanager.accounts.containers.tags.create/containerId": container_id "/tagmanager:v1/tagmanager.accounts.containers.tags.delete/accountId": account_id @@ -19260,6 +21662,7 @@ "/tagmanager:v1/tagmanager.accounts.containers.versions.list/accountId": account_id "/tagmanager:v1/tagmanager.accounts.containers.versions.list/containerId": container_id "/tagmanager:v1/tagmanager.accounts.containers.versions.list/headers": headers +"/tagmanager:v1/tagmanager.accounts.containers.versions.list/includeDeleted": include_deleted "/tagmanager:v1/tagmanager.accounts.containers.versions.publish/accountId": account_id "/tagmanager:v1/tagmanager.accounts.containers.versions.publish/containerId": container_id "/tagmanager:v1/tagmanager.accounts.containers.versions.publish/containerVersionId": container_version_id @@ -19320,6 +21723,8 @@ "/tagmanager:v1/ContainerVersion/containerVersionId": container_version_id "/tagmanager:v1/ContainerVersion/deleted": deleted "/tagmanager:v1/ContainerVersion/fingerprint": fingerprint +"/tagmanager:v1/ContainerVersion/folder": folder +"/tagmanager:v1/ContainerVersion/folder/folder": folder "/tagmanager:v1/ContainerVersion/macro": macro "/tagmanager:v1/ContainerVersion/macro/macro": macro "/tagmanager:v1/ContainerVersion/name": name @@ -19350,6 +21755,19 @@ "/tagmanager:v1/CreateContainerVersionResponse": create_container_version_response "/tagmanager:v1/CreateContainerVersionResponse/compilerError": compiler_error "/tagmanager:v1/CreateContainerVersionResponse/containerVersion": container_version +"/tagmanager:v1/Folder": folder +"/tagmanager:v1/Folder/accountId": account_id +"/tagmanager:v1/Folder/containerId": container_id +"/tagmanager:v1/Folder/fingerprint": fingerprint +"/tagmanager:v1/Folder/folderId": folder_id +"/tagmanager:v1/Folder/name": name +"/tagmanager:v1/FolderEntities": folder_entities +"/tagmanager:v1/FolderEntities/tag": tag +"/tagmanager:v1/FolderEntities/tag/tag": tag +"/tagmanager:v1/FolderEntities/trigger": trigger +"/tagmanager:v1/FolderEntities/trigger/trigger": trigger +"/tagmanager:v1/FolderEntities/variable": variable +"/tagmanager:v1/FolderEntities/variable/variable": variable "/tagmanager:v1/ListAccountUsersResponse": list_account_users_response "/tagmanager:v1/ListAccountUsersResponse/userAccess": user_access "/tagmanager:v1/ListAccountUsersResponse/userAccess/user_access": user_access @@ -19364,12 +21782,9 @@ "/tagmanager:v1/ListContainersResponse": list_containers_response "/tagmanager:v1/ListContainersResponse/containers": containers "/tagmanager:v1/ListContainersResponse/containers/container": container -"/tagmanager:v1/ListMacrosResponse": list_macros_response -"/tagmanager:v1/ListMacrosResponse/macros": macros -"/tagmanager:v1/ListMacrosResponse/macros/macro": macro -"/tagmanager:v1/ListRulesResponse": list_rules_response -"/tagmanager:v1/ListRulesResponse/rules": rules -"/tagmanager:v1/ListRulesResponse/rules/rule": rule +"/tagmanager:v1/ListFoldersResponse": list_folders_response +"/tagmanager:v1/ListFoldersResponse/folders": folders +"/tagmanager:v1/ListFoldersResponse/folders/folder": folder "/tagmanager:v1/ListTagsResponse": list_tags_response "/tagmanager:v1/ListTagsResponse/tags": tags "/tagmanager:v1/ListTagsResponse/tags/tag": tag @@ -19392,6 +21807,7 @@ "/tagmanager:v1/Macro/notes": notes "/tagmanager:v1/Macro/parameter": parameter "/tagmanager:v1/Macro/parameter/parameter": parameter +"/tagmanager:v1/Macro/parentFolderId": parent_folder_id "/tagmanager:v1/Macro/scheduleEndMs": schedule_end_ms "/tagmanager:v1/Macro/scheduleStartMs": schedule_start_ms "/tagmanager:v1/Macro/type": type @@ -19415,6 +21831,9 @@ "/tagmanager:v1/Rule/name": name "/tagmanager:v1/Rule/notes": notes "/tagmanager:v1/Rule/ruleId": rule_id +"/tagmanager:v1/SetupTag": setup_tag +"/tagmanager:v1/SetupTag/stopOnSetupFailure": stop_on_setup_failure +"/tagmanager:v1/SetupTag/tagName": tag_name "/tagmanager:v1/Tag": tag "/tagmanager:v1/Tag/accountId": account_id "/tagmanager:v1/Tag/blockingRuleId": blocking_rule_id @@ -19432,11 +21851,20 @@ "/tagmanager:v1/Tag/notes": notes "/tagmanager:v1/Tag/parameter": parameter "/tagmanager:v1/Tag/parameter/parameter": parameter +"/tagmanager:v1/Tag/parentFolderId": parent_folder_id "/tagmanager:v1/Tag/priority": priority "/tagmanager:v1/Tag/scheduleEndMs": schedule_end_ms "/tagmanager:v1/Tag/scheduleStartMs": schedule_start_ms +"/tagmanager:v1/Tag/setupTag": setup_tag +"/tagmanager:v1/Tag/setupTag/setup_tag": setup_tag +"/tagmanager:v1/Tag/tagFiringOption": tag_firing_option "/tagmanager:v1/Tag/tagId": tag_id +"/tagmanager:v1/Tag/teardownTag": teardown_tag +"/tagmanager:v1/Tag/teardownTag/teardown_tag": teardown_tag "/tagmanager:v1/Tag/type": type +"/tagmanager:v1/TeardownTag": teardown_tag +"/tagmanager:v1/TeardownTag/stopTeardownOnFailure": stop_teardown_on_failure +"/tagmanager:v1/TeardownTag/tagName": tag_name "/tagmanager:v1/Trigger": trigger "/tagmanager:v1/Trigger/accountId": account_id "/tagmanager:v1/Trigger/autoEventFilter": auto_event_filter @@ -19453,6 +21881,7 @@ "/tagmanager:v1/Trigger/interval": interval "/tagmanager:v1/Trigger/limit": limit "/tagmanager:v1/Trigger/name": name +"/tagmanager:v1/Trigger/parentFolderId": parent_folder_id "/tagmanager:v1/Trigger/triggerId": trigger_id "/tagmanager:v1/Trigger/type": type "/tagmanager:v1/Trigger/uniqueTriggerId": unique_trigger_id @@ -19478,6 +21907,7 @@ "/tagmanager:v1/Variable/notes": notes "/tagmanager:v1/Variable/parameter": parameter "/tagmanager:v1/Variable/parameter/parameter": parameter +"/tagmanager:v1/Variable/parentFolderId": parent_folder_id "/tagmanager:v1/Variable/scheduleEndMs": schedule_end_ms "/tagmanager:v1/Variable/scheduleStartMs": schedule_start_ms "/tagmanager:v1/Variable/type": type @@ -19850,32 +22280,27 @@ "/youtube:v3/youtube.activities.list/publishedBefore": published_before "/youtube:v3/youtube.activities.list/regionCode": region_code "/youtube:v3/youtube.captions.delete": delete_caption -"/youtube:v3/youtube.captions.delete/debugProjectIdOverride": debug_project_id_override "/youtube:v3/youtube.captions.delete/id": id "/youtube:v3/youtube.captions.delete/onBehalfOf": on_behalf_of "/youtube:v3/youtube.captions.delete/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.captions.download": download_caption -"/youtube:v3/youtube.captions.download/debugProjectIdOverride": debug_project_id_override "/youtube:v3/youtube.captions.download/id": id "/youtube:v3/youtube.captions.download/onBehalfOf": on_behalf_of "/youtube:v3/youtube.captions.download/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.captions.download/tfmt": tfmt "/youtube:v3/youtube.captions.download/tlang": tlang "/youtube:v3/youtube.captions.insert": insert_caption -"/youtube:v3/youtube.captions.insert/debugProjectIdOverride": debug_project_id_override "/youtube:v3/youtube.captions.insert/onBehalfOf": on_behalf_of "/youtube:v3/youtube.captions.insert/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.captions.insert/part": part "/youtube:v3/youtube.captions.insert/sync": sync "/youtube:v3/youtube.captions.list": list_captions -"/youtube:v3/youtube.captions.list/debugProjectIdOverride": debug_project_id_override "/youtube:v3/youtube.captions.list/id": id "/youtube:v3/youtube.captions.list/onBehalfOf": on_behalf_of "/youtube:v3/youtube.captions.list/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.captions.list/part": part "/youtube:v3/youtube.captions.list/videoId": video_id "/youtube:v3/youtube.captions.update": update_caption -"/youtube:v3/youtube.captions.update/debugProjectIdOverride": debug_project_id_override "/youtube:v3/youtube.captions.update/onBehalfOf": on_behalf_of "/youtube:v3/youtube.captions.update/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.captions.update/part": part @@ -19916,7 +22341,6 @@ "/youtube:v3/youtube.channels.update/part": part "/youtube:v3/youtube.commentThreads.insert": insert_comment_thread "/youtube:v3/youtube.commentThreads.insert/part": part -"/youtube:v3/youtube.commentThreads.insert/shareOnGooglePlus": share_on_google_plus "/youtube:v3/youtube.commentThreads.list": list_comment_threads "/youtube:v3/youtube.commentThreads.list/allThreadsRelatedToChannelId": all_threads_related_to_channel_id "/youtube:v3/youtube.commentThreads.list/channelId": channel_id @@ -19942,7 +22366,7 @@ "/youtube:v3/youtube.comments.list/parentId": parent_id "/youtube:v3/youtube.comments.list/part": part "/youtube:v3/youtube.comments.list/textFormat": text_format -"/youtube:v3/youtube.comments.markAsSpam": mark_as_spam_comment +"/youtube:v3/youtube.comments.markAsSpam": mark_comment_as_spam "/youtube:v3/youtube.comments.markAsSpam/id": id "/youtube:v3/youtube.comments.setModerationStatus/banAuthor": ban_author "/youtube:v3/youtube.comments.setModerationStatus/id": id @@ -19966,12 +22390,6 @@ "/youtube:v3/youtube.liveBroadcasts.bind/onBehalfOfContentOwnerChannel": on_behalf_of_content_owner_channel "/youtube:v3/youtube.liveBroadcasts.bind/part": part "/youtube:v3/youtube.liveBroadcasts.bind/streamId": stream_id -"/youtube:v3/youtube.liveBroadcasts.bind_direct": bind_direct_live_broadcast -"/youtube:v3/youtube.liveBroadcasts.bind_direct/id": id -"/youtube:v3/youtube.liveBroadcasts.bind_direct/onBehalfOfContentOwner": on_behalf_of_content_owner -"/youtube:v3/youtube.liveBroadcasts.bind_direct/onBehalfOfContentOwnerChannel": on_behalf_of_content_owner_channel -"/youtube:v3/youtube.liveBroadcasts.bind_direct/part": part -"/youtube:v3/youtube.liveBroadcasts.bind_direct/streamId": stream_id "/youtube:v3/youtube.liveBroadcasts.control": control_live_broadcast "/youtube:v3/youtube.liveBroadcasts.control/displaySlate": display_slate "/youtube:v3/youtube.liveBroadcasts.control/id": id @@ -20124,7 +22542,7 @@ "/youtube:v3/youtube.videos.delete": delete_video "/youtube:v3/youtube.videos.delete/id": id "/youtube:v3/youtube.videos.delete/onBehalfOfContentOwner": on_behalf_of_content_owner -"/youtube:v3/youtube.videos.getRating": get_rating_video +"/youtube:v3/youtube.videos.getRating": get_video_rating "/youtube:v3/youtube.videos.getRating/id": id "/youtube:v3/youtube.videos.getRating/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.videos.insert": insert_video @@ -20136,7 +22554,6 @@ "/youtube:v3/youtube.videos.insert/stabilize": stabilize "/youtube:v3/youtube.videos.list": list_videos "/youtube:v3/youtube.videos.list/chart": chart -"/youtube:v3/youtube.videos.list/debugProjectIdOverride": debug_project_id_override "/youtube:v3/youtube.videos.list/hl": hl "/youtube:v3/youtube.videos.list/id": id "/youtube:v3/youtube.videos.list/locale": locale @@ -20150,7 +22567,7 @@ "/youtube:v3/youtube.videos.rate": rate_video "/youtube:v3/youtube.videos.rate/id": id "/youtube:v3/youtube.videos.rate/rating": rating -"/youtube:v3/youtube.videos.reportAbuse": report_abuse_video +"/youtube:v3/youtube.videos.reportAbuse": report_video_abuse "/youtube:v3/youtube.videos.reportAbuse/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtube:v3/youtube.videos.update": update_video "/youtube:v3/youtube.videos.update/onBehalfOfContentOwner": on_behalf_of_content_owner @@ -20481,6 +22898,7 @@ "/youtube:v3/ContentRating/chvrsRating": chvrs_rating "/youtube:v3/ContentRating/cicfRating": cicf_rating "/youtube:v3/ContentRating/cnaRating": cna_rating +"/youtube:v3/ContentRating/cncRating": cnc_rating "/youtube:v3/ContentRating/csaRating": csa_rating "/youtube:v3/ContentRating/cscfRating": cscf_rating "/youtube:v3/ContentRating/czfilmRating": czfilm_rating @@ -20664,6 +23082,7 @@ "/youtube:v3/LiveBroadcastSnippet/channelId": channel_id "/youtube:v3/LiveBroadcastSnippet/description": description "/youtube:v3/LiveBroadcastSnippet/isDefaultBroadcast": is_default_broadcast +"/youtube:v3/LiveBroadcastSnippet/liveChatId": live_chat_id "/youtube:v3/LiveBroadcastSnippet/publishedAt": published_at "/youtube:v3/LiveBroadcastSnippet/scheduledEndTime": scheduled_end_time "/youtube:v3/LiveBroadcastSnippet/scheduledStartTime": scheduled_start_time diff --git a/generated/google/apis/adexchangebuyer_v1_3.rb b/generated/google/apis/adexchangebuyer_v1_3.rb index e30dff0f0..0c1395f03 100644 --- a/generated/google/apis/adexchangebuyer_v1_3.rb +++ b/generated/google/apis/adexchangebuyer_v1_3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_3 VERSION = 'V1_3' - REVISION = '20150720' + REVISION = '20151102' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer_v1_3/classes.rb b/generated/google/apis/adexchangebuyer_v1_3/classes.rb index c9712856a..a4883c9fb 100644 --- a/generated/google/apis/adexchangebuyer_v1_3/classes.rb +++ b/generated/google/apis/adexchangebuyer_v1_3/classes.rb @@ -231,8 +231,8 @@ module Google # @return [String] attr_accessor :billing_id - # The budget amount to apply for the billingId provided. This is required for - # update requests. + # The daily budget amount in unit amount of the account currency to apply for + # the billingId provided. This is required for update requests. # Corresponds to the JSON property `budgetAmount` # @return [String] attr_accessor :budget_amount @@ -298,6 +298,13 @@ module Google # @return [String] attr_accessor :agency_id + # The last upload timestamp of this creative if it was uploaded via API. Read- + # only. The value of this field is generated, and will be ignored for uploads. ( + # formatted RFC 3339 timestamp). + # Corresponds to the JSON property `apiUploadTimestamp` + # @return [DateTime] + attr_accessor :api_upload_timestamp + # All attributes for the ads that may be shown from this snippet. # Corresponds to the JSON property `attribute` # @return [Array] @@ -339,11 +346,21 @@ module Google # @return [Fixnum] attr_accessor :height + # The set of urls to be called to record an impression. + # Corresponds to the JSON property `impressionTrackingUrl` + # @return [Array] + attr_accessor :impression_tracking_url + # Resource type. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # If nativeAd is set, HTMLSnippet and videoURL should not be set. + # Corresponds to the JSON property `nativeAd` + # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd] + attr_accessor :native_ad + # Detected product categories, if any. Read-only. This field should not be set # in requests. # Corresponds to the JSON property `productCategories` @@ -371,6 +388,12 @@ module Google # @return [Array] attr_accessor :vendor_type + # The version for this creative. Read-only. This field should not be set in + # requests. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + # The url to fetch a video ad. If set, HTMLSnippet should not be set. # Corresponds to the JSON property `videoURL` # @return [String] @@ -392,6 +415,7 @@ module Google @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? @advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil? @agency_id = args[:agency_id] unless args[:agency_id].nil? + @api_upload_timestamp = args[:api_upload_timestamp] unless args[:api_upload_timestamp].nil? @attribute = args[:attribute] unless args[:attribute].nil? @buyer_creative_id = args[:buyer_creative_id] unless args[:buyer_creative_id].nil? @click_through_url = args[:click_through_url] unless args[:click_through_url].nil? @@ -399,12 +423,15 @@ module Google @disapproval_reasons = args[:disapproval_reasons] unless args[:disapproval_reasons].nil? @filtering_reasons = args[:filtering_reasons] unless args[:filtering_reasons].nil? @height = args[:height] unless args[:height].nil? + @impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil? @kind = args[:kind] unless args[:kind].nil? + @native_ad = args[:native_ad] unless args[:native_ad].nil? @product_categories = args[:product_categories] unless args[:product_categories].nil? @restricted_categories = args[:restricted_categories] unless args[:restricted_categories].nil? @sensitive_categories = args[:sensitive_categories] unless args[:sensitive_categories].nil? @status = args[:status] unless args[:status].nil? @vendor_type = args[:vendor_type] unless args[:vendor_type].nil? + @version = args[:version] unless args[:version].nil? @video_url = args[:video_url] unless args[:video_url].nil? @width = args[:width] unless args[:width].nil? end @@ -512,6 +539,184 @@ module Google end end end + + # If nativeAd is set, HTMLSnippet and videoURL should not be set. + class NativeAd + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `advertiser` + # @return [String] + attr_accessor :advertiser + + # The app icon, for app download ads. + # Corresponds to the JSON property `appIcon` + # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon] + attr_accessor :app_icon + + # A long description of the ad. + # Corresponds to the JSON property `body` + # @return [String] + attr_accessor :body + + # A label for the button that the user is supposed to click. + # Corresponds to the JSON property `callToAction` + # @return [String] + attr_accessor :call_to_action + + # The URL to use for click tracking. + # Corresponds to the JSON property `clickTrackingUrl` + # @return [String] + attr_accessor :click_tracking_url + + # A short title for the ad. + # Corresponds to the JSON property `headline` + # @return [String] + attr_accessor :headline + + # A large image. + # Corresponds to the JSON property `image` + # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image] + attr_accessor :image + + # The URLs are called when the impression is rendered. + # Corresponds to the JSON property `impressionTrackingUrl` + # @return [Array] + attr_accessor :impression_tracking_url + + # A smaller image, for the advertiser logo. + # Corresponds to the JSON property `logo` + # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo] + attr_accessor :logo + + # The price of the promoted app including the currency info. + # Corresponds to the JSON property `price` + # @return [String] + attr_accessor :price + + # The app rating in the app store. Must be in the range [0-5]. + # Corresponds to the JSON property `starRating` + # @return [Float] + attr_accessor :star_rating + + # The URL to the app store to purchase/download the promoted app. + # Corresponds to the JSON property `store` + # @return [String] + attr_accessor :store + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertiser = args[:advertiser] unless args[:advertiser].nil? + @app_icon = args[:app_icon] unless args[:app_icon].nil? + @body = args[:body] unless args[:body].nil? + @call_to_action = args[:call_to_action] unless args[:call_to_action].nil? + @click_tracking_url = args[:click_tracking_url] unless args[:click_tracking_url].nil? + @headline = args[:headline] unless args[:headline].nil? + @image = args[:image] unless args[:image].nil? + @impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil? + @logo = args[:logo] unless args[:logo].nil? + @price = args[:price] unless args[:price].nil? + @star_rating = args[:star_rating] unless args[:star_rating].nil? + @store = args[:store] unless args[:store].nil? + end + + # The app icon, for app download ads. + class AppIcon + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] unless args[:height].nil? + @url = args[:url] unless args[:url].nil? + @width = args[:width] unless args[:width].nil? + end + end + + # A large image. + class Image + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] unless args[:height].nil? + @url = args[:url] unless args[:url].nil? + @width = args[:width] unless args[:width].nil? + end + end + + # A smaller image, for the advertiser logo. + class Logo + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] unless args[:height].nil? + @url = args[:url] unless args[:url].nil? + @width = args[:width] unless args[:width].nil? + end + end + end end # The creatives feed lists the active creatives for the Ad Exchange buyer @@ -568,6 +773,11 @@ module Google # @return [String] attr_accessor :currency_code + # The deal type such as programmatic reservation or fixed price and so on. + # Corresponds to the JSON property `dealTier` + # @return [String] + attr_accessor :deal_tier + # End time for when this deal stops being active. If not set then this deal is # valid until manually disabled by the publisher. In seconds since the epoch. # Corresponds to the JSON property `endTime` @@ -630,6 +840,7 @@ module Google @account_id = args[:account_id] unless args[:account_id].nil? @advertiser = args[:advertiser] unless args[:advertiser].nil? @currency_code = args[:currency_code] unless args[:currency_code].nil? + @deal_tier = args[:deal_tier] unless args[:deal_tier].nil? @end_time = args[:end_time] unless args[:end_time].nil? @fixed_cpm = args[:fixed_cpm] unless args[:fixed_cpm].nil? @id = args[:id] unless args[:id].nil? diff --git a/generated/google/apis/adexchangebuyer_v1_3/representations.rb b/generated/google/apis/adexchangebuyer_v1_3/representations.rb index 1426197af..97fed560d 100644 --- a/generated/google/apis/adexchangebuyer_v1_3/representations.rb +++ b/generated/google/apis/adexchangebuyer_v1_3/representations.rb @@ -64,6 +64,22 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end end + + class NativeAd + class Representation < Google::Apis::Core::JsonRepresentation; end + + class AppIcon + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Image + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Logo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end end class CreativesList @@ -178,6 +194,8 @@ module Google collection :advertiser_id, as: 'advertiserId' property :advertiser_name, as: 'advertiserName' property :agency_id, as: 'agencyId' + property :api_upload_timestamp, as: 'apiUploadTimestamp', type: DateTime + collection :attribute, as: 'attribute' property :buyer_creative_id, as: 'buyerCreativeId' collection :click_through_url, as: 'clickThroughUrl' @@ -188,12 +206,16 @@ module Google property :filtering_reasons, as: 'filteringReasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Representation property :height, as: 'height' + collection :impression_tracking_url, as: 'impressionTrackingUrl' property :kind, as: 'kind' + property :native_ad, as: 'nativeAd', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Representation + collection :product_categories, as: 'productCategories' collection :restricted_categories, as: 'restrictedCategories' collection :sensitive_categories, as: 'sensitiveCategories' property :status, as: 'status' collection :vendor_type, as: 'vendorType' + property :version, as: 'version' property :video_url, as: 'videoURL' property :width, as: 'width' end @@ -230,6 +252,54 @@ module Google end end end + + class NativeAd + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :advertiser, as: 'advertiser' + property :app_icon, as: 'appIcon', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon::Representation + + property :body, as: 'body' + property :call_to_action, as: 'callToAction' + property :click_tracking_url, as: 'clickTrackingUrl' + property :headline, as: 'headline' + property :image, as: 'image', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image::Representation + + collection :impression_tracking_url, as: 'impressionTrackingUrl' + property :logo, as: 'logo', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo::Representation + + property :price, as: 'price' + property :star_rating, as: 'starRating' + property :store, as: 'store' + end + + class AppIcon + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :url, as: 'url' + property :width, as: 'width' + end + end + + class Image + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :url, as: 'url' + property :width, as: 'width' + end + end + + class Logo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :url, as: 'url' + property :width, as: 'width' + end + end + end end class CreativesList @@ -248,6 +318,7 @@ module Google property :account_id, as: 'accountId' property :advertiser, as: 'advertiser' property :currency_code, as: 'currencyCode' + property :deal_tier, as: 'dealTier' property :end_time, as: 'endTime' property :fixed_cpm, as: 'fixedCpm' property :id, as: 'id' diff --git a/generated/google/apis/adexchangebuyer_v1_3/service.rb b/generated/google/apis/adexchangebuyer_v1_3/service.rb index a28e8ddab..3d4b421a9 100644 --- a/generated/google/apis/adexchangebuyer_v1_3/service.rb +++ b/generated/google/apis/adexchangebuyer_v1_3/service.rb @@ -78,8 +78,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{id}', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Account command.params['id'] = id unless id.nil? @@ -112,8 +111,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::AccountsList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::AccountsList command.query['fields'] = fields unless fields.nil? @@ -148,8 +146,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'accounts/{id}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation @@ -187,8 +184,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{id}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{id}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation @@ -225,8 +221,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'billinginfo/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'billinginfo/{accountId}', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfo command.params['accountId'] = account_id unless account_id.nil? @@ -260,8 +255,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'billinginfo' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'billinginfo', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfoList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfoList command.query['fields'] = fields unless fields.nil? @@ -298,8 +292,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'billinginfo/{accountId}/{billingId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'billinginfo/{accountId}/{billingId}', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget command.params['accountId'] = account_id unless account_id.nil? @@ -340,8 +333,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'billinginfo/{accountId}/{billingId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'billinginfo/{accountId}/{billingId}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.request_object = budget_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation @@ -383,8 +375,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'billinginfo/{accountId}/{billingId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'billinginfo/{accountId}/{billingId}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation command.request_object = budget_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation @@ -425,8 +416,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'creatives/{accountId}/{buyerCreativeId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative command.params['accountId'] = account_id unless account_id.nil? @@ -461,8 +451,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'creatives' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'creatives', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation @@ -510,8 +499,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'creatives' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'creatives', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::CreativesList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::CreativesList command.query['accountId'] = account_id unless account_id.nil? @@ -550,8 +538,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'directdeals/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'directdeals/{id}', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDeal command.params['id'] = id unless id.nil? @@ -584,8 +571,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'directdeals' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'directdeals', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDealsList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDealsList command.query['fields'] = fields unless fields.nil? @@ -630,8 +616,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'performancereport' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'performancereport', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList command.query['accountId'] = account_id unless account_id.nil? @@ -672,8 +657,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pretargetingconfigs/{accountId}/{configId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'pretargetingconfigs/{accountId}/{configId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['configId'] = config_id unless config_id.nil? command.query['fields'] = fields unless fields.nil? @@ -709,8 +693,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pretargetingconfigs/{accountId}/{configId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'pretargetingconfigs/{accountId}/{configId}', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig command.params['accountId'] = account_id unless account_id.nil? @@ -747,8 +730,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pretargetingconfigs/{accountId}' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'pretargetingconfigs/{accountId}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation @@ -785,8 +767,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pretargetingconfigs/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'pretargetingconfigs/{accountId}', options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList::Representation command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList command.params['accountId'] = account_id unless account_id.nil? @@ -824,8 +805,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pretargetingconfigs/{accountId}/{configId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'pretargetingconfigs/{accountId}/{configId}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation @@ -866,8 +846,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pretargetingconfigs/{accountId}/{configId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'pretargetingconfigs/{accountId}/{configId}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation command.request_object = pretargeting_config_object command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation diff --git a/generated/google/apis/adexchangeseller_v2_0.rb b/generated/google/apis/adexchangeseller_v2_0.rb index a614382df..d1a89ee3e 100644 --- a/generated/google/apis/adexchangeseller_v2_0.rb +++ b/generated/google/apis/adexchangeseller_v2_0.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/seller-rest/ module AdexchangesellerV2_0 VERSION = 'V2_0' - REVISION = '20150726' + REVISION = '20151127' # View and manage your Ad Exchange data AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' diff --git a/generated/google/apis/adexchangeseller_v2_0/service.rb b/generated/google/apis/adexchangeseller_v2_0/service.rb index a8e7535ae..dca5f81ae 100644 --- a/generated/google/apis/adexchangeseller_v2_0/service.rb +++ b/generated/google/apis/adexchangeseller_v2_0/service.rb @@ -78,8 +78,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::Account::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::Account command.params['accountId'] = account_id unless account_id.nil? @@ -117,8 +116,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::Accounts::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::Accounts command.query['maxResults'] = max_results unless max_results.nil? @@ -160,8 +158,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients command.params['accountId'] = account_id unless account_id.nil? @@ -202,8 +199,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/alerts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/alerts', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::Alerts::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::Alerts command.params['accountId'] = account_id unless account_id.nil? @@ -243,8 +239,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel command.params['accountId'] = account_id unless account_id.nil? @@ -291,8 +286,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/customchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels command.params['accountId'] = account_id unless account_id.nil? @@ -330,8 +324,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/metadata/dimensions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/metadata/dimensions', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata command.params['accountId'] = account_id unless account_id.nil? @@ -366,8 +359,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/metadata/metrics' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/metadata/metrics', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata command.params['accountId'] = account_id unless account_id.nil? @@ -404,8 +396,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/preferreddeals/{dealId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals/{dealId}', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal command.params['accountId'] = account_id unless account_id.nil? @@ -441,8 +432,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/preferreddeals' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals command.params['accountId'] = account_id unless account_id.nil? @@ -502,11 +492,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'accounts/{accountId}/reports' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/reports', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'accounts/{accountId}/reports', options) command.download_dest = download_dest end command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation @@ -562,8 +551,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/reports/{savedReportId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::Report command.params['accountId'] = account_id unless account_id.nil? @@ -609,8 +597,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/reports/saved' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports command.params['accountId'] = account_id unless account_id.nil? @@ -655,8 +642,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/urlchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options) command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels command.params['accountId'] = account_id unless account_id.nil? diff --git a/generated/google/apis/admin_datatransfer_v1.rb b/generated/google/apis/admin_datatransfer_v1.rb new file mode 100644 index 000000000..d7afa0986 --- /dev/null +++ b/generated/google/apis/admin_datatransfer_v1.rb @@ -0,0 +1,37 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/admin_datatransfer_v1/service.rb' +require 'google/apis/admin_datatransfer_v1/classes.rb' +require 'google/apis/admin_datatransfer_v1/representations.rb' + +module Google + module Apis + # Admin Data Transfer API + # + # Admin Data Transfer API lets you transfer user data from one user to another. + # + # @see https://developers.google.com/admin-sdk/data-transfer/ + module AdminDatatransferV1 + VERSION = 'DatatransferV1' + REVISION = '20150917' + + # View and manage data transfers between users in your organization + AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer' + + # View data transfers between users in your organization + AUTH_ADMIN_DATATRANSFER_READONLY = 'https://www.googleapis.com/auth/admin.datatransfer.readonly' + end + end +end diff --git a/generated/google/apis/admin_datatransfer_v1/classes.rb b/generated/google/apis/admin_datatransfer_v1/classes.rb new file mode 100644 index 000000000..efb3013de --- /dev/null +++ b/generated/google/apis/admin_datatransfer_v1/classes.rb @@ -0,0 +1,267 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AdminDatatransferV1 + + # The JSON template for an Application resource. + class Application + include Google::Apis::Core::Hashable + + # Etag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The application's ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies the resource as a DataTransfer Application Resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The application's name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The list of all possible transfer parameters for this application. These + # parameters can be used to select the data of the user in this application to + # be transfered. + # Corresponds to the JSON property `transferParams` + # @return [Array] + attr_accessor :transfer_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] unless args[:etag].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @transfer_params = args[:transfer_params] unless args[:transfer_params].nil? + end + end + + # Template to map fields of ApplicationDataTransfer resource. + class ApplicationDataTransfer + include Google::Apis::Core::Hashable + + # The application's ID. + # Corresponds to the JSON property `applicationId` + # @return [String] + attr_accessor :application_id + + # The transfer parameters for the application. These parameters are used to + # select the data which will get transfered in context of this application. + # Corresponds to the JSON property `applicationTransferParams` + # @return [Array] + attr_accessor :application_transfer_params + + # Current status of transfer for this application. (Read-only) + # Corresponds to the JSON property `applicationTransferStatus` + # @return [String] + attr_accessor :application_transfer_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @application_id = args[:application_id] unless args[:application_id].nil? + @application_transfer_params = args[:application_transfer_params] unless args[:application_transfer_params].nil? + @application_transfer_status = args[:application_transfer_status] unless args[:application_transfer_status].nil? + end + end + + # Template for application transfer parameters. + class ApplicationTransferParam + include Google::Apis::Core::Hashable + + # The type of the transfer parameter. eg: 'PRIVACY_LEVEL' + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED' + # Corresponds to the JSON property `value` + # @return [Array] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + + # Template for a collection of Applications. + class ApplicationsListResponse + include Google::Apis::Core::Hashable + + # List of applications that support data transfer and are also installed for the + # customer. + # Corresponds to the JSON property `applications` + # @return [Array] + attr_accessor :applications + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Identifies the resource as a collection of Applications. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Continuation token which will be used to specify next page in list API. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @applications = args[:applications] unless args[:applications].nil? + @etag = args[:etag] unless args[:etag].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # The JSON template for a DataTransfer resource. + class DataTransfer + include Google::Apis::Core::Hashable + + # List of per application data transfer resources. It contains data transfer + # details of the applications associated with this transfer resource. Note that + # this list is also used to specify the applications for which data transfer has + # to be done at the time of the transfer resource creation. + # Corresponds to the JSON property `applicationDataTransfers` + # @return [Array] + attr_accessor :application_data_transfers + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The transfer's ID (Read-only). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies the resource as a DataTransfer request. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ID of the user to whom the data is being transfered. + # Corresponds to the JSON property `newOwnerUserId` + # @return [String] + attr_accessor :new_owner_user_id + + # ID of the user whose data is being transfered. + # Corresponds to the JSON property `oldOwnerUserId` + # @return [String] + attr_accessor :old_owner_user_id + + # Overall transfer status (Read-only). + # Corresponds to the JSON property `overallTransferStatusCode` + # @return [String] + attr_accessor :overall_transfer_status_code + + # The time at which the data transfer was requested (Read-only). + # Corresponds to the JSON property `requestTime` + # @return [DateTime] + attr_accessor :request_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @application_data_transfers = args[:application_data_transfers] unless args[:application_data_transfers].nil? + @etag = args[:etag] unless args[:etag].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @new_owner_user_id = args[:new_owner_user_id] unless args[:new_owner_user_id].nil? + @old_owner_user_id = args[:old_owner_user_id] unless args[:old_owner_user_id].nil? + @overall_transfer_status_code = args[:overall_transfer_status_code] unless args[:overall_transfer_status_code].nil? + @request_time = args[:request_time] unless args[:request_time].nil? + end + end + + # Template for a collection of DataTransfer resources. + class DataTransfersListResponse + include Google::Apis::Core::Hashable + + # List of data transfer requests. + # Corresponds to the JSON property `dataTransfers` + # @return [Array] + attr_accessor :data_transfers + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Identifies the resource as a collection of data transfer requests. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Continuation token which will be used to specify next page in list API. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_transfers = args[:data_transfers] unless args[:data_transfers].nil? + @etag = args[:etag] unless args[:etag].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + end + end +end diff --git a/generated/google/apis/admin_datatransfer_v1/representations.rb b/generated/google/apis/admin_datatransfer_v1/representations.rb new file mode 100644 index 000000000..185d30af5 --- /dev/null +++ b/generated/google/apis/admin_datatransfer_v1/representations.rb @@ -0,0 +1,118 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AdminDatatransferV1 + + class Application + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ApplicationDataTransfer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ApplicationTransferParam + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ApplicationsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DataTransfer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DataTransfersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Application + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + collection :transfer_params, as: 'transferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation + + end + end + + class ApplicationDataTransfer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :application_id, as: 'applicationId' + collection :application_transfer_params, as: 'applicationTransferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation + + property :application_transfer_status, as: 'applicationTransferStatus' + end + end + + class ApplicationTransferParam + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + collection :value, as: 'value' + end + end + + class ApplicationsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :applications, as: 'applications', class: Google::Apis::AdminDatatransferV1::Application, decorator: Google::Apis::AdminDatatransferV1::Application::Representation + + property :etag, as: 'etag' + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class DataTransfer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :application_data_transfers, as: 'applicationDataTransfers', class: Google::Apis::AdminDatatransferV1::ApplicationDataTransfer, decorator: Google::Apis::AdminDatatransferV1::ApplicationDataTransfer::Representation + + property :etag, as: 'etag' + property :id, as: 'id' + property :kind, as: 'kind' + property :new_owner_user_id, as: 'newOwnerUserId' + property :old_owner_user_id, as: 'oldOwnerUserId' + property :overall_transfer_status_code, as: 'overallTransferStatusCode' + property :request_time, as: 'requestTime', type: DateTime + + end + end + + class DataTransfersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data_transfers, as: 'dataTransfers', class: Google::Apis::AdminDatatransferV1::DataTransfer, decorator: Google::Apis::AdminDatatransferV1::DataTransfer::Representation + + property :etag, as: 'etag' + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + end + end +end diff --git a/generated/google/apis/admin_datatransfer_v1/service.rb b/generated/google/apis/admin_datatransfer_v1/service.rb new file mode 100644 index 000000000..e4b707b4f --- /dev/null +++ b/generated/google/apis/admin_datatransfer_v1/service.rb @@ -0,0 +1,262 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AdminDatatransferV1 + # Admin Data Transfer API + # + # Admin Data Transfer API lets you transfer user data from one user to another. + # + # @example + # require 'google/apis/admin_datatransfer_v1' + # + # Admin = Google::Apis::AdminDatatransferV1 # Alias the module + # service = Admin::DataTransferService.new + # + # @see https://developers.google.com/admin-sdk/data-transfer/ + class DataTransferService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + attr_accessor :quota_user + + # @return [String] + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'admin/datatransfer/v1/') + end + + # Retrieves information about an application for the given application ID. + # @param [String] application_id + # ID of the application resource to be retrieved. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDatatransferV1::Application] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDatatransferV1::Application] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'applications/{applicationId}', options) + command.response_representation = Google::Apis::AdminDatatransferV1::Application::Representation + command.response_class = Google::Apis::AdminDatatransferV1::Application + command.params['applicationId'] = application_id unless application_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the applications available for data transfer for a customer. + # @param [String] customer_id + # Immutable ID of the Google Apps account. + # @param [Fixnum] max_results + # Maximum number of results to return. Default is 100. + # @param [String] page_token + # Token to specify next page in the list. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDatatransferV1::ApplicationsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDatatransferV1::ApplicationsListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_applications(customer_id: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'applications', options) + command.response_representation = Google::Apis::AdminDatatransferV1::ApplicationsListResponse::Representation + command.response_class = Google::Apis::AdminDatatransferV1::ApplicationsListResponse + command.query['customerId'] = customer_id unless customer_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a data transfer request by its resource ID. + # @param [String] data_transfer_id + # ID of the resource to be retrieved. This is returned in the response from the + # insert method. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDatatransferV1::DataTransfer] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDatatransferV1::DataTransfer] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_transfer(data_transfer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'transfers/{dataTransferId}', options) + command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation + command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer + command.params['dataTransferId'] = data_transfer_id unless data_transfer_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a data transfer request. + # @param [Google::Apis::AdminDatatransferV1::DataTransfer] data_transfer_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDatatransferV1::DataTransfer] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDatatransferV1::DataTransfer] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_transfer(data_transfer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'transfers', options) + command.request_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation + command.request_object = data_transfer_object + command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation + command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the transfers for a customer by source user, destination user, or status. + # @param [String] customer_id + # Immutable ID of the Google Apps account. + # @param [Fixnum] max_results + # Maximum number of results to return. Default is 100. + # @param [String] new_owner_user_id + # Destination user's profile ID. + # @param [String] old_owner_user_id + # Source user's profile ID. + # @param [String] page_token + # Token to specify the next page in the list. + # @param [String] status + # Status of the transfer. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDatatransferV1::DataTransfersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDatatransferV1::DataTransfersListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_transfers(customer_id: nil, max_results: nil, new_owner_user_id: nil, old_owner_user_id: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'transfers', options) + command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfersListResponse::Representation + command.response_class = Google::Apis::AdminDatatransferV1::DataTransfersListResponse + command.query['customerId'] = customer_id unless customer_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['newOwnerUserId'] = new_owner_user_id unless new_owner_user_id.nil? + command.query['oldOwnerUserId'] = old_owner_user_id unless old_owner_user_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['status'] = status unless status.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index 7cbb8d39a..adc15a195 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,13 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20150720' + REVISION = '20151005' + + # View and manage customer related information + AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' + + # View customer related information + AUTH_ADMIN_DIRECTORY_CUSTOMER_READONLY = 'https://www.googleapis.com/auth/admin.directory.customer.readonly' # View and manage your Chrome OS devices' metadata AUTH_ADMIN_DIRECTORY_DEVICE_CHROMEOS = 'https://www.googleapis.com/auth/admin.directory.device.chromeos' @@ -43,6 +49,12 @@ module Google # View your mobile devices' metadata AUTH_ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = 'https://www.googleapis.com/auth/admin.directory.device.mobile.readonly' + # View and manage the provisioning of domains for your customers + AUTH_ADMIN_DIRECTORY_DOMAIN = 'https://www.googleapis.com/auth/admin.directory.domain' + + # View domains related to your customers + AUTH_ADMIN_DIRECTORY_DOMAIN_READONLY = 'https://www.googleapis.com/auth/admin.directory.domain.readonly' + # View and manage the provisioning of groups on your domain AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group' @@ -64,6 +76,12 @@ module Google # View organization units on your domain AUTH_ADMIN_DIRECTORY_ORGUNIT_READONLY = 'https://www.googleapis.com/auth/admin.directory.orgunit.readonly' + # Manage delegated admin roles for your domain + AUTH_ADMIN_DIRECTORY_ROLEMANAGEMENT = 'https://www.googleapis.com/auth/admin.directory.rolemanagement' + + # View delegated admin roles for your domain + AUTH_ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY = 'https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly' + # View and manage the provisioning of users on your domain AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index db51ccd05..92cd5aa8e 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -514,6 +514,318 @@ module Google end end + # JSON template for Customer Resource object in Directory API. + class Customer + include Google::Apis::Core::Hashable + + # The customer's secondary contact email address. This email address cannot be + # on the same domain as the customerDomain + # Corresponds to the JSON property `alternateEmail` + # @return [String] + attr_accessor :alternate_email + + # The customer's creation time (Readonly) + # Corresponds to the JSON property `customerCreationTime` + # @return [DateTime] + attr_accessor :customer_creation_time + + # The customer's primary domain name string. Do not include the www prefix when + # creating a new customer. + # Corresponds to the JSON property `customerDomain` + # @return [String] + attr_accessor :customer_domain + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The unique ID for the customer's Google account. (Readonly) + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies the resource as a customer. Value: admin#directory#customer + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The customer's ISO 639-2 language code. The default value is en-US + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # The customer's contact phone number in E.164 format. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # JSON template for postal address of a customer. + # Corresponds to the JSON property `postalAddress` + # @return [Google::Apis::AdminDirectoryV1::CustomerPostalAddress] + attr_accessor :postal_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alternate_email = args[:alternate_email] unless args[:alternate_email].nil? + @customer_creation_time = args[:customer_creation_time] unless args[:customer_creation_time].nil? + @customer_domain = args[:customer_domain] unless args[:customer_domain].nil? + @etag = args[:etag] unless args[:etag].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @language = args[:language] unless args[:language].nil? + @phone_number = args[:phone_number] unless args[:phone_number].nil? + @postal_address = args[:postal_address] unless args[:postal_address].nil? + end + end + + # JSON template for postal address of a customer. + class CustomerPostalAddress + include Google::Apis::Core::Hashable + + # A customer's physical address. The address can be composed of one to three + # lines. + # Corresponds to the JSON property `addressLine1` + # @return [String] + attr_accessor :address_line1 + + # Address line 2 of the address. + # Corresponds to the JSON property `addressLine2` + # @return [String] + attr_accessor :address_line2 + + # Address line 3 of the address. + # Corresponds to the JSON property `addressLine3` + # @return [String] + attr_accessor :address_line3 + + # The customer contact's name. + # Corresponds to the JSON property `contactName` + # @return [String] + attr_accessor :contact_name + + # This is a required property. For countryCode information see the ISO 3166 + # country code elements. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # Name of the locality. An example of a locality value is the city of San + # Francisco. + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # The company or company division name. + # Corresponds to the JSON property `organizationName` + # @return [String] + attr_accessor :organization_name + + # The postal code. A postalCode example is a postal zip code such as 10009. This + # is in accordance with - http://portablecontacts.net/draft-spec.html# + # address_element. + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Name of the region. An example of a region value is NY for the state of New + # York. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_line1 = args[:address_line1] unless args[:address_line1].nil? + @address_line2 = args[:address_line2] unless args[:address_line2].nil? + @address_line3 = args[:address_line3] unless args[:address_line3].nil? + @contact_name = args[:contact_name] unless args[:contact_name].nil? + @country_code = args[:country_code] unless args[:country_code].nil? + @locality = args[:locality] unless args[:locality].nil? + @organization_name = args[:organization_name] unless args[:organization_name].nil? + @postal_code = args[:postal_code] unless args[:postal_code].nil? + @region = args[:region] unless args[:region].nil? + end + end + + # JSON template for Domain Alias object in Directory API. + class DomainAlias + include Google::Apis::Core::Hashable + + # The creation time of the domain alias. (Read-only). + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # The domain alias name. + # Corresponds to the JSON property `domainAliasName` + # @return [String] + attr_accessor :domain_alias_name + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Kind of resource this is. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The parent domain name that the domain alias is associated with. This can + # either be a primary or secondary domain name within a customer. + # Corresponds to the JSON property `parentDomainName` + # @return [String] + attr_accessor :parent_domain_name + + # Indicates the verification state of a domain alias. (Read-only) + # Corresponds to the JSON property `verified` + # @return [Boolean] + attr_accessor :verified + alias_method :verified?, :verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_time = args[:creation_time] unless args[:creation_time].nil? + @domain_alias_name = args[:domain_alias_name] unless args[:domain_alias_name].nil? + @etag = args[:etag] unless args[:etag].nil? + @kind = args[:kind] unless args[:kind].nil? + @parent_domain_name = args[:parent_domain_name] unless args[:parent_domain_name].nil? + @verified = args[:verified] unless args[:verified].nil? + end + end + + # JSON response template to list domain aliases in Directory API. + class DomainAliases + include Google::Apis::Core::Hashable + + # List of domain alias objects. + # Corresponds to the JSON property `domainAliases` + # @return [Array] + attr_accessor :domain_aliases + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Kind of resource this is. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain_aliases = args[:domain_aliases] unless args[:domain_aliases].nil? + @etag = args[:etag] unless args[:etag].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # JSON template for Domain object in Directory API. + class Domains + include Google::Apis::Core::Hashable + + # Creation time of the domain. (Read-only). + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # List of domain alias objects. (Read-only) + # Corresponds to the JSON property `domainAliases` + # @return [Array] + attr_accessor :domain_aliases + + # The domain name of the customer. + # Corresponds to the JSON property `domainName` + # @return [String] + attr_accessor :domain_name + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Indicates if the domain is a primary domain (Read-only). + # Corresponds to the JSON property `isPrimary` + # @return [Boolean] + attr_accessor :is_primary + alias_method :is_primary?, :is_primary + + # Kind of resource this is. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Indicates the verification state of a domain. (Read-only). + # Corresponds to the JSON property `verified` + # @return [Boolean] + attr_accessor :verified + alias_method :verified?, :verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_time = args[:creation_time] unless args[:creation_time].nil? + @domain_aliases = args[:domain_aliases] unless args[:domain_aliases].nil? + @domain_name = args[:domain_name] unless args[:domain_name].nil? + @etag = args[:etag] unless args[:etag].nil? + @is_primary = args[:is_primary] unless args[:is_primary].nil? + @kind = args[:kind] unless args[:kind].nil? + @verified = args[:verified] unless args[:verified].nil? + end + end + + # JSON response template to list Domains in Directory API. + class Domains2 + include Google::Apis::Core::Hashable + + # List of domain objects. + # Corresponds to the JSON property `domains` + # @return [Array] + attr_accessor :domains + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Kind of resource this is. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domains = args[:domains] unless args[:domains].nil? + @etag = args[:etag] unless args[:etag].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + # JSON template for Group resource in Directory API. class Group include Google::Apis::Core::Hashable @@ -1223,6 +1535,315 @@ module Google end end + # JSON template for privilege resource in Directory API. + class Privilege + include Google::Apis::Core::Hashable + + # A list of child privileges. Privileges for a service form a tree. Each + # privilege can have a list of child privileges; this list is empty for a leaf + # privilege. + # Corresponds to the JSON property `childPrivileges` + # @return [Array] + attr_accessor :child_privileges + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # If the privilege can be restricted to an organization unit. + # Corresponds to the JSON property `isOuScopable` + # @return [Boolean] + attr_accessor :is_ou_scopable + alias_method :is_ou_scopable?, :is_ou_scopable + + # The type of the API resource. This is always admin#directory#privilege. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the privilege. + # Corresponds to the JSON property `privilegeName` + # @return [String] + attr_accessor :privilege_name + + # The obfuscated ID of the service this privilege is for. + # Corresponds to the JSON property `serviceId` + # @return [String] + attr_accessor :service_id + + # The name of the service this privilege is for. + # Corresponds to the JSON property `serviceName` + # @return [String] + attr_accessor :service_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @child_privileges = args[:child_privileges] unless args[:child_privileges].nil? + @etag = args[:etag] unless args[:etag].nil? + @is_ou_scopable = args[:is_ou_scopable] unless args[:is_ou_scopable].nil? + @kind = args[:kind] unless args[:kind].nil? + @privilege_name = args[:privilege_name] unless args[:privilege_name].nil? + @service_id = args[:service_id] unless args[:service_id].nil? + @service_name = args[:service_name] unless args[:service_name].nil? + end + end + + # JSON response template for List privileges operation in Directory API. + class Privileges + include Google::Apis::Core::Hashable + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # A list of Privilege resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The type of the API resource. This is always admin#directory#privileges. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] unless args[:etag].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # JSON template for role resource in Directory API. + class Role + include Google::Apis::Core::Hashable + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Returns true if the role is a super admin role. + # Corresponds to the JSON property `isSuperAdminRole` + # @return [Boolean] + attr_accessor :is_super_admin_role + alias_method :is_super_admin_role?, :is_super_admin_role + + # Returns true if this is a pre-defined system role. + # Corresponds to the JSON property `isSystemRole` + # @return [Boolean] + attr_accessor :is_system_role + alias_method :is_system_role?, :is_system_role + + # The type of the API resource. This is always admin#directory#role. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A short description of the role. + # Corresponds to the JSON property `roleDescription` + # @return [String] + attr_accessor :role_description + + # ID of the role. + # Corresponds to the JSON property `roleId` + # @return [String] + attr_accessor :role_id + + # Name of the role. + # Corresponds to the JSON property `roleName` + # @return [String] + attr_accessor :role_name + + # The set of privileges that are granted to this role. + # Corresponds to the JSON property `rolePrivileges` + # @return [Array] + attr_accessor :role_privileges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] unless args[:etag].nil? + @is_super_admin_role = args[:is_super_admin_role] unless args[:is_super_admin_role].nil? + @is_system_role = args[:is_system_role] unless args[:is_system_role].nil? + @kind = args[:kind] unless args[:kind].nil? + @role_description = args[:role_description] unless args[:role_description].nil? + @role_id = args[:role_id] unless args[:role_id].nil? + @role_name = args[:role_name] unless args[:role_name].nil? + @role_privileges = args[:role_privileges] unless args[:role_privileges].nil? + end + + # + class RolePrivilege + include Google::Apis::Core::Hashable + + # The name of the privilege. + # Corresponds to the JSON property `privilegeName` + # @return [String] + attr_accessor :privilege_name + + # The obfuscated ID of the service this privilege is for. + # Corresponds to the JSON property `serviceId` + # @return [String] + attr_accessor :service_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @privilege_name = args[:privilege_name] unless args[:privilege_name].nil? + @service_id = args[:service_id] unless args[:service_id].nil? + end + end + end + + # JSON template for roleAssignment resource in Directory API. + class RoleAssignment + include Google::Apis::Core::Hashable + + # The unique ID of the user this role is assigned to. + # Corresponds to the JSON property `assignedTo` + # @return [String] + attr_accessor :assigned_to + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # The type of the API resource. This is always admin#directory#roleAssignment. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # If the role is restricted to an organization unit, this contains the ID for + # the organization unit the exercise of this role is restricted to. + # Corresponds to the JSON property `orgUnitId` + # @return [String] + attr_accessor :org_unit_id + + # ID of this roleAssignment. + # Corresponds to the JSON property `roleAssignmentId` + # @return [String] + attr_accessor :role_assignment_id + + # The ID of the role that is assigned. + # Corresponds to the JSON property `roleId` + # @return [String] + attr_accessor :role_id + + # The scope in which this role is assigned. Possible values are: + # - CUSTOMER + # - ORG_UNIT + # Corresponds to the JSON property `scopeType` + # @return [String] + attr_accessor :scope_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @assigned_to = args[:assigned_to] unless args[:assigned_to].nil? + @etag = args[:etag] unless args[:etag].nil? + @kind = args[:kind] unless args[:kind].nil? + @org_unit_id = args[:org_unit_id] unless args[:org_unit_id].nil? + @role_assignment_id = args[:role_assignment_id] unless args[:role_assignment_id].nil? + @role_id = args[:role_id] unless args[:role_id].nil? + @scope_type = args[:scope_type] unless args[:scope_type].nil? + end + end + + # JSON response template for List roleAssignments operation in Directory API. + class RoleAssignments + include Google::Apis::Core::Hashable + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # A list of RoleAssignment resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The type of the API resource. This is always admin#directory#roleAssignments. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] unless args[:etag].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # JSON response template for List roles operation in Directory API. + class Roles + include Google::Apis::Core::Hashable + + # ETag of the resource. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # A list of Role resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The type of the API resource. This is always admin#directory#roles. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] unless args[:etag].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + # JSON template for Schema resource in Directory API. class Schema include Google::Apis::Core::Hashable diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index 62ff832bf..d6210ee67 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -58,6 +58,30 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Customer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CustomerPostalAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DomainAlias + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DomainAliases + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Domains + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Domains2 + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Group class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -106,6 +130,34 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Privilege + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Privileges + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Role + class Representation < Google::Apis::Core::JsonRepresentation; end + + class RolePrivilege + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class RoleAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RoleAssignments + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Roles + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Schema class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -322,6 +374,84 @@ module Google end end + class Customer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alternate_email, as: 'alternateEmail' + property :customer_creation_time, as: 'customerCreationTime', type: DateTime + + property :customer_domain, as: 'customerDomain' + property :etag, as: 'etag' + property :id, as: 'id' + property :kind, as: 'kind' + property :language, as: 'language' + property :phone_number, as: 'phoneNumber' + property :postal_address, as: 'postalAddress', class: Google::Apis::AdminDirectoryV1::CustomerPostalAddress, decorator: Google::Apis::AdminDirectoryV1::CustomerPostalAddress::Representation + + end + end + + class CustomerPostalAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address_line1, as: 'addressLine1' + property :address_line2, as: 'addressLine2' + property :address_line3, as: 'addressLine3' + property :contact_name, as: 'contactName' + property :country_code, as: 'countryCode' + property :locality, as: 'locality' + property :organization_name, as: 'organizationName' + property :postal_code, as: 'postalCode' + property :region, as: 'region' + end + end + + class DomainAlias + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_time, as: 'creationTime' + property :domain_alias_name, as: 'domainAliasName' + property :etag, as: 'etag' + property :kind, as: 'kind' + property :parent_domain_name, as: 'parentDomainName' + property :verified, as: 'verified' + end + end + + class DomainAliases + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation + + property :etag, as: 'etag' + property :kind, as: 'kind' + end + end + + class Domains + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_time, as: 'creationTime' + collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation + + property :domain_name, as: 'domainName' + property :etag, as: 'etag' + property :is_primary, as: 'isPrimary' + property :kind, as: 'kind' + property :verified, as: 'verified' + end + end + + class Domains2 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :domains, as: 'domains', class: Google::Apis::AdminDirectoryV1::Domains, decorator: Google::Apis::AdminDirectoryV1::Domains::Representation + + property :etag, as: 'etag' + property :kind, as: 'kind' + end + end + class Group # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -493,6 +623,88 @@ module Google end end + class Privilege + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :child_privileges, as: 'childPrivileges', class: Google::Apis::AdminDirectoryV1::Privilege, decorator: Google::Apis::AdminDirectoryV1::Privilege::Representation + + property :etag, as: 'etag' + property :is_ou_scopable, as: 'isOuScopable' + property :kind, as: 'kind' + property :privilege_name, as: 'privilegeName' + property :service_id, as: 'serviceId' + property :service_name, as: 'serviceName' + end + end + + class Privileges + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::Privilege, decorator: Google::Apis::AdminDirectoryV1::Privilege::Representation + + property :kind, as: 'kind' + end + end + + class Role + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :is_super_admin_role, as: 'isSuperAdminRole' + property :is_system_role, as: 'isSystemRole' + property :kind, as: 'kind' + property :role_description, as: 'roleDescription' + property :role_id, as: 'roleId' + property :role_name, as: 'roleName' + collection :role_privileges, as: 'rolePrivileges', class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege, decorator: Google::Apis::AdminDirectoryV1::Role::RolePrivilege::Representation + + end + + class RolePrivilege + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :privilege_name, as: 'privilegeName' + property :service_id, as: 'serviceId' + end + end + end + + class RoleAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :assigned_to, as: 'assignedTo' + property :etag, as: 'etag' + property :kind, as: 'kind' + property :org_unit_id, as: 'orgUnitId' + property :role_assignment_id, as: 'roleAssignmentId' + property :role_id, as: 'roleId' + property :scope_type, as: 'scopeType' + end + end + + class RoleAssignments + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::RoleAssignment, decorator: Google::Apis::AdminDirectoryV1::RoleAssignment::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class Roles + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::Role, decorator: Google::Apis::AdminDirectoryV1::Role::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + class Schema # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/admin_directory_v1/service.rb b/generated/google/apis/admin_directory_v1/service.rb index bd6bd4289..26338ad9e 100644 --- a/generated/google/apis/admin_directory_v1/service.rb +++ b/generated/google/apis/admin_directory_v1/service.rb @@ -81,8 +81,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_asp(user_key, code_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/asps/{codeId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'users/{userKey}/asps/{codeId}', options) command.params['userKey'] = user_key unless user_key.nil? command.params['codeId'] = code_id unless code_id.nil? command.query['fields'] = fields unless fields.nil? @@ -119,8 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_asp(user_key, code_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/asps/{codeId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}/asps/{codeId}', options) command.response_representation = Google::Apis::AdminDirectoryV1::Asp::Representation command.response_class = Google::Apis::AdminDirectoryV1::Asp command.params['userKey'] = user_key unless user_key.nil? @@ -157,8 +155,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_asps(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/asps' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}/asps', options) command.response_representation = Google::Apis::AdminDirectoryV1::Asps::Representation command.response_class = Google::Apis::AdminDirectoryV1::Asps command.params['userKey'] = user_key unless user_key.nil? @@ -192,8 +189,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '/admin/directory_v1/channels/stop' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '/admin/directory_v1/channels/stop', options) command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation command.request_object = channel_object command.query['fields'] = fields unless fields.nil? @@ -231,8 +227,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_chrome_os_device(customer_id, device_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/chromeos/{deviceId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos/{deviceId}', options) command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevice command.params['customerId'] = customer_id unless customer_id.nil? @@ -283,8 +278,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_chrome_os_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/chromeos' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options) command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices command.params['customerId'] = customer_id unless customer_id.nil? @@ -330,8 +324,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_chrome_os_device(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/chromeos/{deviceId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'customer/{customerId}/devices/chromeos/{deviceId}', options) command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation command.request_object = chrome_os_device_object command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation @@ -375,8 +368,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_chrome_os_device(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/chromeos/{deviceId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'customer/{customerId}/devices/chromeos/{deviceId}', options) command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation command.request_object = chrome_os_device_object command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation @@ -390,6 +382,414 @@ module Google execute_or_queue_command(command, &block) end + # Retrives a customer. + # @param [String] customer_key + # Id of the customer to be retrieved + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Customer] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Customer] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_customer(customer_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customers/{customerKey}', options) + command.response_representation = Google::Apis::AdminDirectoryV1::Customer::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Customer + command.params['customerKey'] = customer_key unless customer_key.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a customer. This method supports patch semantics. + # @param [String] customer_key + # Id of the customer to be updated + # @param [Google::Apis::AdminDirectoryV1::Customer] customer_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Customer] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Customer] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_customer(customer_key, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'customers/{customerKey}', options) + command.request_representation = Google::Apis::AdminDirectoryV1::Customer::Representation + command.request_object = customer_object + command.response_representation = Google::Apis::AdminDirectoryV1::Customer::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Customer + command.params['customerKey'] = customer_key unless customer_key.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a customer. + # @param [String] customer_key + # Id of the customer to be updated + # @param [Google::Apis::AdminDirectoryV1::Customer] customer_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Customer] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Customer] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_customer(customer_key, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'customers/{customerKey}', options) + command.request_representation = Google::Apis::AdminDirectoryV1::Customer::Representation + command.request_object = customer_object + command.response_representation = Google::Apis::AdminDirectoryV1::Customer::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Customer + command.params['customerKey'] = customer_key unless customer_key.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a Domain Alias of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [String] domain_alias_name + # Name of domain alias to be retrieved. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_domain_alias(customer, domain_alias_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'customer/{customer}/domainaliases/{domainAliasName}', options) + command.params['customer'] = customer unless customer.nil? + command.params['domainAliasName'] = domain_alias_name unless domain_alias_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a domain alias of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [String] domain_alias_name + # Name of domain alias to be retrieved. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::DomainAlias] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::DomainAlias] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_domain_alias(customer, domain_alias_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/domainaliases/{domainAliasName}', options) + command.response_representation = Google::Apis::AdminDirectoryV1::DomainAlias::Representation + command.response_class = Google::Apis::AdminDirectoryV1::DomainAlias + command.params['customer'] = customer unless customer.nil? + command.params['domainAliasName'] = domain_alias_name unless domain_alias_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a Domain alias of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [Google::Apis::AdminDirectoryV1::DomainAlias] domain_alias_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::DomainAlias] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::DomainAlias] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_domain_alias(customer, domain_alias_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'customer/{customer}/domainaliases', options) + command.request_representation = Google::Apis::AdminDirectoryV1::DomainAlias::Representation + command.request_object = domain_alias_object + command.response_representation = Google::Apis::AdminDirectoryV1::DomainAlias::Representation + command.response_class = Google::Apis::AdminDirectoryV1::DomainAlias + command.params['customer'] = customer unless customer.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the domain aliases of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [String] parent_domain_name + # Name of the parent domain for which domain aliases are to be fetched. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::DomainAliases] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::DomainAliases] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_domain_aliases(customer, parent_domain_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/domainaliases', options) + command.response_representation = Google::Apis::AdminDirectoryV1::DomainAliases::Representation + command.response_class = Google::Apis::AdminDirectoryV1::DomainAliases + command.params['customer'] = customer unless customer.nil? + command.query['parentDomainName'] = parent_domain_name unless parent_domain_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a domain of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [String] domain_name + # Name of domain to be deleted + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_domain(customer, domain_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'customer/{customer}/domains/{domainName}', options) + command.params['customer'] = customer unless customer.nil? + command.params['domainName'] = domain_name unless domain_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrives a domain of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [String] domain_name + # Name of domain to be retrieved + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Domains] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Domains] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_domain(customer, domain_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/domains/{domainName}', options) + command.response_representation = Google::Apis::AdminDirectoryV1::Domains::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Domains + command.params['customer'] = customer unless customer.nil? + command.params['domainName'] = domain_name unless domain_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Inserts a domain of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [Google::Apis::AdminDirectoryV1::Domains] domains_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Domains] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Domains] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_domain(customer, domains_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'customer/{customer}/domains', options) + command.request_representation = Google::Apis::AdminDirectoryV1::Domains::Representation + command.request_object = domains_object + command.response_representation = Google::Apis::AdminDirectoryV1::Domains::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Domains + command.params['customer'] = customer unless customer.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the domains of the customer. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Domains2] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Domains2] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_domains(customer, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/domains', options) + command.response_representation = Google::Apis::AdminDirectoryV1::Domains2::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Domains2 + command.params['customer'] = customer unless customer.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Delete Group # @param [String] group_key # Email or immutable Id of the group @@ -415,8 +815,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_group(group_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'groups/{groupKey}', options) command.params['groupKey'] = group_key unless group_key.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -449,8 +848,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_group(group_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'groups/{groupKey}', options) command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation command.response_class = Google::Apis::AdminDirectoryV1::Group command.params['groupKey'] = group_key unless group_key.nil? @@ -484,8 +882,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_group(group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'groups', options) command.request_representation = Google::Apis::AdminDirectoryV1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation @@ -532,8 +929,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_groups(customer: nil, domain: nil, max_results: nil, page_token: nil, user_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'groups', options) command.response_representation = Google::Apis::AdminDirectoryV1::Groups::Representation command.response_class = Google::Apis::AdminDirectoryV1::Groups command.query['customer'] = customer unless customer.nil? @@ -574,8 +970,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_group(group_key, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'groups/{groupKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation @@ -614,8 +1009,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_group(group_key, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'groups/{groupKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation @@ -654,8 +1048,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_group_alias(group_key, group_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/aliases/{alias}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'groups/{groupKey}/aliases/{alias}', options) command.params['groupKey'] = group_key unless group_key.nil? command.params['alias'] = group_alias unless group_alias.nil? command.query['fields'] = fields unless fields.nil? @@ -690,8 +1083,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_group_alias(group_key, alias_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/aliases' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'groups/{groupKey}/aliases', options) command.request_representation = Google::Apis::AdminDirectoryV1::Alias::Representation command.request_object = alias_object command.response_representation = Google::Apis::AdminDirectoryV1::Alias::Representation @@ -728,8 +1120,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_group_aliases(group_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/aliases' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'groups/{groupKey}/aliases', options) command.response_representation = Google::Apis::AdminDirectoryV1::Aliases::Representation command.response_class = Google::Apis::AdminDirectoryV1::Aliases command.params['groupKey'] = group_key unless group_key.nil? @@ -766,8 +1157,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_member(group_key, member_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/members/{memberKey}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'groups/{groupKey}/members/{memberKey}', options) command.params['groupKey'] = group_key unless group_key.nil? command.params['memberKey'] = member_key unless member_key.nil? command.query['fields'] = fields unless fields.nil? @@ -803,8 +1193,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_member(group_key, member_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/members/{memberKey}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'groups/{groupKey}/members/{memberKey}', options) command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation command.response_class = Google::Apis::AdminDirectoryV1::Member command.params['groupKey'] = group_key unless group_key.nil? @@ -841,8 +1230,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_member(group_key, member_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/members' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'groups/{groupKey}/members', options) command.request_representation = Google::Apis::AdminDirectoryV1::Member::Representation command.request_object = member_object command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation @@ -885,8 +1273,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_members(group_key, max_results: nil, page_token: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/members' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'groups/{groupKey}/members', options) command.response_representation = Google::Apis::AdminDirectoryV1::Members::Representation command.response_class = Google::Apis::AdminDirectoryV1::Members command.params['groupKey'] = group_key unless group_key.nil? @@ -930,8 +1317,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_member(group_key, member_key, member_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/members/{memberKey}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'groups/{groupKey}/members/{memberKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Member::Representation command.request_object = member_object command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation @@ -974,8 +1360,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_member(group_key, member_key, member_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups/{groupKey}/members/{memberKey}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'groups/{groupKey}/members/{memberKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Member::Representation command.request_object = member_object command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation @@ -1016,8 +1401,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def action_mobile_device(customer_id, resource_id, mobile_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/mobile/{resourceId}/action' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customer/{customerId}/devices/mobile/{resourceId}/action', options) command.request_representation = Google::Apis::AdminDirectoryV1::MobileDeviceAction::Representation command.request_object = mobile_device_action_object command.params['customerId'] = customer_id unless customer_id.nil? @@ -1055,8 +1439,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_mobile_device(customer_id, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/mobile/{resourceId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'customer/{customerId}/devices/mobile/{resourceId}', options) command.params['customerId'] = customer_id unless customer_id.nil? command.params['resourceId'] = resource_id unless resource_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1094,8 +1477,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_mobile_device(customer_id, resource_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/mobile/{resourceId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/devices/mobile/{resourceId}', options) command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevice::Representation command.response_class = Google::Apis::AdminDirectoryV1::MobileDevice command.params['customerId'] = customer_id unless customer_id.nil? @@ -1146,8 +1528,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_mobile_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/devices/mobile' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/devices/mobile', options) command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevices::Representation command.response_class = Google::Apis::AdminDirectoryV1::MobileDevices command.params['customerId'] = customer_id unless customer_id.nil? @@ -1191,8 +1572,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_notification(customer, notification_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customer}/notifications/{notificationId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'customer/{customer}/notifications/{notificationId}', options) command.params['customer'] = customer unless customer.nil? command.params['notificationId'] = notification_id unless notification_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1229,8 +1609,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_notification(customer, notification_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customer}/notifications/{notificationId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customer}/notifications/{notificationId}', options) command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation command.response_class = Google::Apis::AdminDirectoryV1::Notification command.params['customer'] = customer unless customer.nil? @@ -1273,8 +1652,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_notifications(customer, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customer}/notifications' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customer}/notifications', options) command.response_representation = Google::Apis::AdminDirectoryV1::Notifications::Representation command.response_class = Google::Apis::AdminDirectoryV1::Notifications command.params['customer'] = customer unless customer.nil? @@ -1315,8 +1693,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_notification(customer, notification_id, notification_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customer}/notifications/{notificationId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'customer/{customer}/notifications/{notificationId}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Notification::Representation command.request_object = notification_object command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation @@ -1357,8 +1734,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_notification(customer, notification_id, notification_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customer}/notifications/{notificationId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'customer/{customer}/notifications/{notificationId}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Notification::Representation command.request_object = notification_object command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation @@ -1398,8 +1774,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/orgunits{/orgUnitPath*}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'customer/{customerId}/orgunits{/orgUnitPath*}', options) command.params['customerId'] = customer_id unless customer_id.nil? command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil? command.query['fields'] = fields unless fields.nil? @@ -1435,8 +1810,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/orgunits{/orgUnitPath*}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/orgunits{/orgUnitPath*}', options) command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit command.params['customerId'] = customer_id unless customer_id.nil? @@ -1473,8 +1847,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_org_unit(customer_id, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/orgunits' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customer/{customerId}/orgunits', options) command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.request_object = org_unit_object command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation @@ -1515,8 +1888,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_org_units(customer_id, org_unit_path: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/orgunits' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/orgunits', options) command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnits::Representation command.response_class = Google::Apis::AdminDirectoryV1::OrgUnits command.params['customerId'] = customer_id unless customer_id.nil? @@ -1556,8 +1928,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/orgunits{/orgUnitPath*}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'customer/{customerId}/orgunits{/orgUnitPath*}', options) command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.request_object = org_unit_object command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation @@ -1598,8 +1969,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/orgunits{/orgUnitPath*}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'customer/{customerId}/orgunits{/orgUnitPath*}', options) command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.request_object = org_unit_object command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation @@ -1612,6 +1982,437 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves a paginated list of all privileges for a customer. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Privileges] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Privileges] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_privileges(customer, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/roles/ALL/privileges', options) + command.response_representation = Google::Apis::AdminDirectoryV1::Privileges::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Privileges + command.params['customer'] = customer unless customer.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a role assignment. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [String] role_assignment_id + # Immutable ID of the role assignment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_role_assignment(customer, role_assignment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'customer/{customer}/roleassignments/{roleAssignmentId}', options) + command.params['customer'] = customer unless customer.nil? + command.params['roleAssignmentId'] = role_assignment_id unless role_assignment_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieve a role assignment. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [String] role_assignment_id + # Immutable ID of the role assignment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::RoleAssignment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::RoleAssignment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_role_assignment(customer, role_assignment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/roleassignments/{roleAssignmentId}', options) + command.response_representation = Google::Apis::AdminDirectoryV1::RoleAssignment::Representation + command.response_class = Google::Apis::AdminDirectoryV1::RoleAssignment + command.params['customer'] = customer unless customer.nil? + command.params['roleAssignmentId'] = role_assignment_id unless role_assignment_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a role assignment. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [Google::Apis::AdminDirectoryV1::RoleAssignment] role_assignment_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::RoleAssignment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::RoleAssignment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_role_assignment(customer, role_assignment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'customer/{customer}/roleassignments', options) + command.request_representation = Google::Apis::AdminDirectoryV1::RoleAssignment::Representation + command.request_object = role_assignment_object + command.response_representation = Google::Apis::AdminDirectoryV1::RoleAssignment::Representation + command.response_class = Google::Apis::AdminDirectoryV1::RoleAssignment + command.params['customer'] = customer unless customer.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a paginated list of all roleAssignments. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Token to specify the next page in the list. + # @param [String] role_id + # Immutable ID of a role. If included in the request, returns only role + # assignments containing this role ID. + # @param [String] user_key + # The user's primary email address, alias email address, or unique user ID. If + # included in the request, returns role assignments only for this user. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::RoleAssignments] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::RoleAssignments] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_role_assignments(customer, max_results: nil, page_token: nil, role_id: nil, user_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/roleassignments', options) + command.response_representation = Google::Apis::AdminDirectoryV1::RoleAssignments::Representation + command.response_class = Google::Apis::AdminDirectoryV1::RoleAssignments + command.params['customer'] = customer unless customer.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['roleId'] = role_id unless role_id.nil? + command.query['userKey'] = user_key unless user_key.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a role. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [String] role_id + # Immutable ID of the role. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_role(customer, role_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'customer/{customer}/roles/{roleId}', options) + command.params['customer'] = customer unless customer.nil? + command.params['roleId'] = role_id unless role_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a role. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [String] role_id + # Immutable ID of the role. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Role] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_role(customer, role_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/roles/{roleId}', options) + command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Role + command.params['customer'] = customer unless customer.nil? + command.params['roleId'] = role_id unless role_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a role. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [Google::Apis::AdminDirectoryV1::Role] role_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Role] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_role(customer, role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'customer/{customer}/roles', options) + command.request_representation = Google::Apis::AdminDirectoryV1::Role::Representation + command.request_object = role_object + command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Role + command.params['customer'] = customer unless customer.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a paginated list of all the roles in a domain. + # @param [String] customer + # Immutable id of the Google Apps account. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Token to specify the next page in the list. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Roles] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Roles] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_roles(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'customer/{customer}/roles', options) + command.response_representation = Google::Apis::AdminDirectoryV1::Roles::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Roles + command.params['customer'] = customer unless customer.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a role. This method supports patch semantics. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [String] role_id + # Immutable ID of the role. + # @param [Google::Apis::AdminDirectoryV1::Role] role_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Role] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_role(customer, role_id, role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'customer/{customer}/roles/{roleId}', options) + command.request_representation = Google::Apis::AdminDirectoryV1::Role::Representation + command.request_object = role_object + command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Role + command.params['customer'] = customer unless customer.nil? + command.params['roleId'] = role_id unless role_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a role. + # @param [String] customer + # Immutable ID of the Google Apps account. + # @param [String] role_id + # Immutable ID of the role. + # @param [Google::Apis::AdminDirectoryV1::Role] role_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdminDirectoryV1::Role] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_role(customer, role_id, role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'customer/{customer}/roles/{roleId}', options) + command.request_representation = Google::Apis::AdminDirectoryV1::Role::Representation + command.request_object = role_object + command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation + command.response_class = Google::Apis::AdminDirectoryV1::Role + command.params['customer'] = customer unless customer.nil? + command.params['roleId'] = role_id unless role_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Delete schema # @param [String] customer_id # Immutable id of the Google Apps account @@ -1639,8 +2440,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_schema(customer_id, schema_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/schemas/{schemaKey}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'customer/{customerId}/schemas/{schemaKey}', options) command.params['customerId'] = customer_id unless customer_id.nil? command.params['schemaKey'] = schema_key unless schema_key.nil? command.query['fields'] = fields unless fields.nil? @@ -1676,8 +2476,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_schema(customer_id, schema_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/schemas/{schemaKey}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/schemas/{schemaKey}', options) command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation command.response_class = Google::Apis::AdminDirectoryV1::Schema command.params['customerId'] = customer_id unless customer_id.nil? @@ -1714,8 +2513,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_schema(customer_id, schema_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/schemas' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customer/{customerId}/schemas', options) command.request_representation = Google::Apis::AdminDirectoryV1::Schema::Representation command.request_object = schema_object command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation @@ -1752,8 +2550,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_schemas(customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/schemas' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customer/{customerId}/schemas', options) command.response_representation = Google::Apis::AdminDirectoryV1::Schemas::Representation command.response_class = Google::Apis::AdminDirectoryV1::Schemas command.params['customerId'] = customer_id unless customer_id.nil? @@ -1791,8 +2588,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_schema(customer_id, schema_key, schema_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/schemas/{schemaKey}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'customer/{customerId}/schemas/{schemaKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Schema::Representation command.request_object = schema_object command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation @@ -1833,8 +2629,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_schema(customer_id, schema_key, schema_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customer/{customerId}/schemas/{schemaKey}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'customer/{customerId}/schemas/{schemaKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::Schema::Representation command.request_object = schema_object command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation @@ -1875,8 +2670,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_token(user_key, client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/tokens/{clientId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'users/{userKey}/tokens/{clientId}', options) command.params['userKey'] = user_key unless user_key.nil? command.params['clientId'] = client_id unless client_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1913,8 +2707,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_token(user_key, client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/tokens/{clientId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}/tokens/{clientId}', options) command.response_representation = Google::Apis::AdminDirectoryV1::Token::Representation command.response_class = Google::Apis::AdminDirectoryV1::Token command.params['userKey'] = user_key unless user_key.nil? @@ -1951,8 +2744,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tokens(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/tokens' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}/tokens', options) command.response_representation = Google::Apis::AdminDirectoryV1::Tokens::Representation command.response_class = Google::Apis::AdminDirectoryV1::Tokens command.params['userKey'] = user_key unless user_key.nil? @@ -1987,8 +2779,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'users/{userKey}', options) command.params['userKey'] = user_key unless user_key.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2028,8 +2819,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user(user_key, custom_field_mask: nil, projection: nil, view_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}', options) command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation command.response_class = Google::Apis::AdminDirectoryV1::User command.params['userKey'] = user_key unless user_key.nil? @@ -2066,8 +2856,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_user(user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users', options) command.request_representation = Google::Apis::AdminDirectoryV1::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation @@ -2129,8 +2918,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_users(custom_field_mask: nil, customer: nil, domain: nil, event: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, show_deleted: nil, sort_order: nil, view_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users', options) command.response_representation = Google::Apis::AdminDirectoryV1::Users::Representation command.response_class = Google::Apis::AdminDirectoryV1::Users command.query['customFieldMask'] = custom_field_mask unless custom_field_mask.nil? @@ -2176,9 +2964,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def make_admin_user(user_key, user_make_admin_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/makeAdmin' - command = make_simple_command(:post, path, options) + def make_user_admin(user_key, user_make_admin_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'users/{userKey}/makeAdmin', options) command.request_representation = Google::Apis::AdminDirectoryV1::UserMakeAdmin::Representation command.request_object = user_make_admin_object command.params['userKey'] = user_key unless user_key.nil? @@ -2215,8 +3002,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_user(user_key, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'users/{userKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation @@ -2254,8 +3040,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def undelete_user(user_key, user_undelete_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/undelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/{userKey}/undelete', options) command.request_representation = Google::Apis::AdminDirectoryV1::UserUndelete::Representation command.request_object = user_undelete_object command.params['userKey'] = user_key unless user_key.nil? @@ -2292,8 +3077,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user(user_key, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'users/{userKey}', options) command.request_representation = Google::Apis::AdminDirectoryV1::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation @@ -2357,8 +3141,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_user(channel_object = nil, custom_field_mask: nil, customer: nil, domain: nil, event: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, show_deleted: nil, sort_order: nil, view_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/watch', options) command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::AdminDirectoryV1::Channel::Representation @@ -2408,8 +3191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_alias(user_key, user_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/aliases/{alias}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'users/{userKey}/aliases/{alias}', options) command.params['userKey'] = user_key unless user_key.nil? command.params['alias'] = user_alias unless user_alias.nil? command.query['fields'] = fields unless fields.nil? @@ -2444,8 +3226,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_user_alias(user_key, alias_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/aliases' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/{userKey}/aliases', options) command.request_representation = Google::Apis::AdminDirectoryV1::Alias::Representation command.request_object = alias_object command.response_representation = Google::Apis::AdminDirectoryV1::Alias::Representation @@ -2484,8 +3265,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_aliases(user_key, event: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/aliases' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}/aliases', options) command.response_representation = Google::Apis::AdminDirectoryV1::Aliases::Representation command.response_class = Google::Apis::AdminDirectoryV1::Aliases command.params['userKey'] = user_key unless user_key.nil? @@ -2524,8 +3304,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_user_alias(user_key, channel_object = nil, event: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/aliases/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/{userKey}/aliases/watch', options) command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::AdminDirectoryV1::Channel::Representation @@ -2563,8 +3342,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_photo(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/photos/thumbnail' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'users/{userKey}/photos/thumbnail', options) command.params['userKey'] = user_key unless user_key.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2597,8 +3375,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_photo(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/photos/thumbnail' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}/photos/thumbnail', options) command.response_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation command.response_class = Google::Apis::AdminDirectoryV1::UserPhoto command.params['userKey'] = user_key unless user_key.nil? @@ -2634,8 +3411,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_user_photo(user_key, user_photo_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/photos/thumbnail' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'users/{userKey}/photos/thumbnail', options) command.request_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation command.request_object = user_photo_object command.response_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation @@ -2673,8 +3449,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user_photo(user_key, user_photo_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/photos/thumbnail' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'users/{userKey}/photos/thumbnail', options) command.request_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation command.request_object = user_photo_object command.response_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation @@ -2711,8 +3486,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_verification_code(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/verificationCodes/generate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/{userKey}/verificationCodes/generate', options) command.params['userKey'] = user_key unless user_key.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2745,8 +3519,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def invalidate_verification_code(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/verificationCodes/invalidate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/{userKey}/verificationCodes/invalidate', options) command.params['userKey'] = user_key unless user_key.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2781,8 +3554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_verification_codes(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userKey}/verificationCodes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userKey}/verificationCodes', options) command.response_representation = Google::Apis::AdminDirectoryV1::VerificationCodes::Representation command.response_class = Google::Apis::AdminDirectoryV1::VerificationCodes command.params['userKey'] = user_key unless user_key.nil? diff --git a/generated/google/apis/admin_reports_v1.rb b/generated/google/apis/admin_reports_v1.rb index 59ccddb05..9be36870d 100644 --- a/generated/google/apis/admin_reports_v1.rb +++ b/generated/google/apis/admin_reports_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/reports/ module AdminReportsV1 VERSION = 'ReportsV1' - REVISION = '20150429' + REVISION = '20151113' # View audit reports of Google Apps for your domain AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly' diff --git a/generated/google/apis/admin_reports_v1/service.rb b/generated/google/apis/admin_reports_v1/service.rb index d4052a259..5213ee97b 100644 --- a/generated/google/apis/admin_reports_v1/service.rb +++ b/generated/google/apis/admin_reports_v1/service.rb @@ -100,8 +100,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_activities(user_key, application_name, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activity/users/{userKey}/applications/{applicationName}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activity/users/{userKey}/applications/{applicationName}', options) command.response_representation = Google::Apis::AdminReportsV1::Activities::Representation command.response_class = Google::Apis::AdminReportsV1::Activities command.params['userKey'] = user_key unless user_key.nil? @@ -168,8 +167,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_activity(user_key, application_name, channel_object = nil, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activity/users/{userKey}/applications/{applicationName}/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'activity/users/{userKey}/applications/{applicationName}/watch', options) command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::AdminReportsV1::Channel::Representation @@ -214,8 +212,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '/admin/reports_v1/channels/stop' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '/admin/reports_v1/channels/stop', options) command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation command.request_object = channel_object command.query['fields'] = fields unless fields.nil? @@ -257,8 +254,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_customer_usage_report(date, customer_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'usage/dates/{date}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'usage/dates/{date}', options) command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation command.response_class = Google::Apis::AdminReportsV1::UsageReports command.params['date'] = date unless date.nil? @@ -311,8 +307,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_usage_report(user_key, date, customer_id: nil, filters: nil, max_results: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'usage/users/{userKey}/dates/{date}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'usage/users/{userKey}/dates/{date}', options) command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation command.response_class = Google::Apis::AdminReportsV1::UsageReports command.params['userKey'] = user_key unless user_key.nil? diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 9731f27f9..3da869556 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20150726' + REVISION = '20151127' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsense_v1_4/classes.rb b/generated/google/apis/adsense_v1_4/classes.rb index 5e0928a10..1ff73d3d0 100644 --- a/generated/google/apis/adsense_v1_4/classes.rb +++ b/generated/google/apis/adsense_v1_4/classes.rb @@ -26,6 +26,11 @@ module Google class Account include Google::Apis::Core::Hashable + # + # Corresponds to the JSON property `creation_time` + # @return [String] + attr_accessor :creation_time + # Unique identifier of this account. # Corresponds to the JSON property `id` # @return [String] @@ -63,6 +68,7 @@ module Google # Update properties of this object def update!(**args) + @creation_time = args[:creation_time] unless args[:creation_time].nil? @id = args[:id] unless args[:id].nil? @kind = args[:kind] unless args[:kind].nil? @name = args[:name] unless args[:name].nil? diff --git a/generated/google/apis/adsense_v1_4/representations.rb b/generated/google/apis/adsense_v1_4/representations.rb index 72e1e5ab4..2cc53c47d 100644 --- a/generated/google/apis/adsense_v1_4/representations.rb +++ b/generated/google/apis/adsense_v1_4/representations.rb @@ -149,6 +149,7 @@ module Google class Account # @private class Representation < Google::Apis::Core::JsonRepresentation + property :creation_time, as: 'creation_time' property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' diff --git a/generated/google/apis/adsense_v1_4/service.rb b/generated/google/apis/adsense_v1_4/service.rb index 27158cdba..ed1223df0 100644 --- a/generated/google/apis/adsense_v1_4/service.rb +++ b/generated/google/apis/adsense_v1_4/service.rb @@ -80,8 +80,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account(account_id, tree: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}', options) command.response_representation = Google::Apis::AdsenseV1_4::Account::Representation command.response_class = Google::Apis::AdsenseV1_4::Account command.params['accountId'] = account_id unless account_id.nil? @@ -120,8 +119,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts', options) command.response_representation = Google::Apis::AdsenseV1_4::Accounts::Representation command.response_class = Google::Apis::AdsenseV1_4::Accounts command.query['maxResults'] = max_results unless max_results.nil? @@ -163,8 +161,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients', options) command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation command.response_class = Google::Apis::AdsenseV1_4::AdClients command.params['accountId'] = account_id unless account_id.nil? @@ -206,8 +203,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options) command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation command.response_class = Google::Apis::AdsenseV1_4::AdUnit command.params['accountId'] = account_id unless account_id.nil? @@ -248,8 +244,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options) command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation command.response_class = Google::Apis::AdsenseV1_4::AdCode command.params['accountId'] = account_id unless account_id.nil? @@ -295,8 +290,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_class = Google::Apis::AdsenseV1_4::AdUnits command.params['accountId'] = account_id unless account_id.nil? @@ -346,8 +340,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_ad_unit_custom_channels(account_id, ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', options) command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_class = Google::Apis::AdsenseV1_4::CustomChannels command.params['accountId'] = account_id unless account_id.nil? @@ -389,8 +382,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_account_alert(account_id, alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/alerts/{alertId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/alerts/{alertId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['alertId'] = alert_id unless alert_id.nil? command.query['fields'] = fields unless fields.nil? @@ -428,8 +420,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/alerts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/alerts', options) command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation command.response_class = Google::Apis::AdsenseV1_4::Alerts command.params['accountId'] = account_id unless account_id.nil? @@ -470,8 +461,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options) command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation command.response_class = Google::Apis::AdsenseV1_4::CustomChannel command.params['accountId'] = account_id unless account_id.nil? @@ -517,8 +507,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/customchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options) command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_class = Google::Apis::AdsenseV1_4::CustomChannels command.params['accountId'] = account_id unless account_id.nil? @@ -567,8 +556,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_custom_channel_ad_units(account_id, ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', options) command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_class = Google::Apis::AdsenseV1_4::AdUnits command.params['accountId'] = account_id unless account_id.nil? @@ -608,8 +596,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_payments(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/payments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/payments', options) command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation command.response_class = Google::Apis::AdsenseV1_4::Payments command.params['accountId'] = account_id unless account_id.nil? @@ -675,11 +662,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_account_report(account_id, start_date, end_date, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'accounts/{accountId}/reports' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/reports', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'accounts/{accountId}/reports', options) command.download_dest = download_dest end command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation @@ -737,8 +723,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/reports/{savedReportId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options) command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse command.params['accountId'] = account_id unless account_id.nil? @@ -784,8 +769,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/reports/saved' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options) command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation command.response_class = Google::Apis::AdsenseV1_4::SavedReports command.params['accountId'] = account_id unless account_id.nil? @@ -824,8 +808,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_saved_ad_style(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/savedadstyles/{savedAdStyleId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', options) command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle command.params['accountId'] = account_id unless account_id.nil? @@ -868,8 +851,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_saved_ad_styles(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/savedadstyles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles', options) command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles command.params['accountId'] = account_id unless account_id.nil? @@ -914,8 +896,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/urlchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options) command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation command.response_class = Google::Apis::AdsenseV1_4::UrlChannels command.params['accountId'] = account_id unless account_id.nil? @@ -957,8 +938,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients', options) command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation command.response_class = Google::Apis::AdsenseV1_4::AdClients command.query['maxResults'] = max_results unless max_results.nil? @@ -996,8 +976,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/adunits/{adUnitId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options) command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation command.response_class = Google::Apis::AdsenseV1_4::AdUnit command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1035,8 +1014,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ad_code_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/adunits/{adUnitId}/adcode' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/adcode', options) command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation command.response_class = Google::Apis::AdsenseV1_4::AdCode command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1079,8 +1057,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ad_units(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/adunits' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options) command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_class = Google::Apis::AdsenseV1_4::AdUnits command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1127,8 +1104,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ad_unit_custom_channels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/adunits/{adUnitId}/customchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options) command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_class = Google::Apis::AdsenseV1_4::CustomChannels command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1166,8 +1142,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_alert(alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'alerts/{alertId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'alerts/{alertId}', options) command.params['alertId'] = alert_id unless alert_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1202,8 +1177,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_alerts(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'alerts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'alerts', options) command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation command.response_class = Google::Apis::AdsenseV1_4::Alerts command.query['locale'] = locale unless locale.nil? @@ -1240,8 +1214,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels/{customChannelId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options) command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation command.response_class = Google::Apis::AdsenseV1_4::CustomChannel command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1284,8 +1257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options) command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_class = Google::Apis::AdsenseV1_4::CustomChannels command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1331,8 +1303,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_custom_channel_ad_units(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels/{customChannelId}/adunits' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options) command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_class = Google::Apis::AdsenseV1_4::AdUnits command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1369,8 +1340,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_metadata_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'metadata/dimensions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'metadata/dimensions', options) command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation command.response_class = Google::Apis::AdsenseV1_4::Metadata command.query['fields'] = fields unless fields.nil? @@ -1402,8 +1372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_metadata_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'metadata/metrics' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'metadata/metrics', options) command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation command.response_class = Google::Apis::AdsenseV1_4::Metadata command.query['fields'] = fields unless fields.nil? @@ -1435,8 +1404,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_payments(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'payments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'payments', options) command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation command.response_class = Google::Apis::AdsenseV1_4::Payments command.query['fields'] = fields unless fields.nil? @@ -1501,11 +1469,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_report(start_date, end_date, account_id: nil, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'reports' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'reports', options) command.download_dest = download_dest end command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation @@ -1561,8 +1528,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_saved_report(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'reports/{savedReportId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports/{savedReportId}', options) command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse command.params['savedReportId'] = saved_report_id unless saved_report_id.nil? @@ -1605,8 +1571,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_saved_reports(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'reports/saved' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports/saved', options) command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation command.response_class = Google::Apis::AdsenseV1_4::SavedReports command.query['maxResults'] = max_results unless max_results.nil? @@ -1642,8 +1607,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_saved_ad_style(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'savedadstyles/{savedAdStyleId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'savedadstyles/{savedAdStyleId}', options) command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle command.params['savedAdStyleId'] = saved_ad_style_id unless saved_ad_style_id.nil? @@ -1683,8 +1647,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_saved_ad_styles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'savedadstyles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'savedadstyles', options) command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles command.query['maxResults'] = max_results unless max_results.nil? @@ -1726,8 +1689,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/urlchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options) command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation command.response_class = Google::Apis::AdsenseV1_4::UrlChannels command.params['adClientId'] = ad_client_id unless ad_client_id.nil? diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index ba01db724..32aa690e4 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20150726' + REVISION = '20151127' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/adsensehost_v4_1/service.rb b/generated/google/apis/adsensehost_v4_1/service.rb index cc8c56621..f1f1106de 100644 --- a/generated/google/apis/adsensehost_v4_1/service.rb +++ b/generated/google/apis/adsensehost_v4_1/service.rb @@ -78,8 +78,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::Account::Representation command.response_class = Google::Apis::AdsensehostV4_1::Account command.params['accountId'] = account_id unless account_id.nil? @@ -114,8 +113,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(filter_ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts', options) command.response_representation = Google::Apis::AdsensehostV4_1::Accounts::Representation command.response_class = Google::Apis::AdsensehostV4_1::Accounts command.query['filterAdClientId'] = filter_ad_client_id unless filter_ad_client_id.nil? @@ -153,8 +151,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_ad_client(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdClient command.params['accountId'] = account_id unless account_id.nil? @@ -196,8 +193,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdClients command.params['accountId'] = account_id unless account_id.nil? @@ -238,8 +234,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdUnit command.params['accountId'] = account_id unless account_id.nil? @@ -280,8 +275,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdUnit command.params['accountId'] = account_id unless account_id.nil? @@ -325,8 +319,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, host_custom_channel_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdCode::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdCode command.params['accountId'] = account_id unless account_id.nil? @@ -367,8 +360,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.request_object = ad_unit_object command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation @@ -415,8 +407,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdUnits::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdUnits command.params['accountId'] = account_id unless account_id.nil? @@ -461,8 +452,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_account_ad_unit(account_id, ad_client_id, ad_unit_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.request_object = ad_unit_object command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation @@ -504,8 +494,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/adclients/{adClientId}/adunits' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.request_object = ad_unit_object command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation @@ -566,8 +555,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/reports' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/reports', options) command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation command.response_class = Google::Apis::AdsensehostV4_1::Report command.params['accountId'] = account_id unless account_id.nil? @@ -611,8 +599,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ad_client(ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdClient command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -651,8 +638,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients', options) command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation command.response_class = Google::Apis::AdsensehostV4_1::AdClients command.query['maxResults'] = max_results unless max_results.nil? @@ -695,8 +681,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_association_session(product_code, website_url, user_locale: nil, website_locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'associationsessions/start' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'associationsessions/start', options) command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession command.query['productCode'] = product_code unless product_code.nil? @@ -735,8 +720,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def verify_association_session(token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'associationsessions/verify' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'associationsessions/verify', options) command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession command.query['token'] = token unless token.nil? @@ -773,8 +757,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels/{customChannelId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'adclients/{adClientId}/customchannels/{customChannelId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -812,8 +795,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels/{customChannelId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -850,8 +832,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'adclients/{adClientId}/customchannels', options) command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.request_object = custom_channel_object command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation @@ -895,8 +876,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options) command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannels::Representation command.response_class = Google::Apis::AdsensehostV4_1::CustomChannels command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -937,8 +917,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_custom_channel(ad_client_id, custom_channel_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'adclients/{adClientId}/customchannels', options) command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.request_object = custom_channel_object command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation @@ -977,8 +956,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/customchannels' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'adclients/{adClientId}/customchannels', options) command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.request_object = custom_channel_object command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation @@ -1036,8 +1014,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_report(start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'reports' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports', options) command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation command.response_class = Google::Apis::AdsensehostV4_1::Report command.query['dimension'] = dimension unless dimension.nil? @@ -1082,8 +1059,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_url_channel(ad_client_id, url_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/urlchannels/{urlChannelId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'adclients/{adClientId}/urlchannels/{urlChannelId}', options) command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation command.response_class = Google::Apis::AdsensehostV4_1::UrlChannel command.params['adClientId'] = ad_client_id unless ad_client_id.nil? @@ -1120,8 +1096,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_url_channel(ad_client_id, url_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/urlchannels' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'adclients/{adClientId}/urlchannels', options) command.request_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation command.request_object = url_channel_object command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation @@ -1164,8 +1139,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'adclients/{adClientId}/urlchannels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options) command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannels::Representation command.response_class = Google::Apis::AdsensehostV4_1::UrlChannels command.params['adClientId'] = ad_client_id unless ad_client_id.nil? diff --git a/generated/google/apis/analytics_v3.rb b/generated/google/apis/analytics_v3.rb index 4e4136f1e..386893f5a 100644 --- a/generated/google/apis/analytics_v3.rb +++ b/generated/google/apis/analytics_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/ module AnalyticsV3 VERSION = 'V3' - REVISION = '20150417' + REVISION = '20151030' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analytics_v3/classes.rb b/generated/google/apis/analytics_v3/classes.rb index 2d1893e7d..b285229f5 100644 --- a/generated/google/apis/analytics_v3/classes.rb +++ b/generated/google/apis/analytics_v3/classes.rb @@ -1591,9 +1591,9 @@ module Google # @return [String] attr_accessor :status - # A floating-point number between 0 and 1. Specifies the fraction of the traffic - # that participates in the experiment. Can be changed for a running experiment. - # This field may not be changed for an experiments whose status is ENDED. + # A floating-point number in (0, 1]. Specifies the fraction of the traffic that + # participates in the experiment. Can be changed for a running experiment. This + # field may not be changed for an experiments whose status is ENDED. # Corresponds to the JSON property `trafficCoverage` # @return [Float] attr_accessor :traffic_coverage @@ -1616,9 +1616,9 @@ module Google # @return [String] attr_accessor :web_property_id - # A floating-point number between 0 and 1. Specifies the necessary confidence - # level to choose a winner. This field may not be changed for an experiments - # whose status is ENDED. + # A floating-point number in (0, 1). Specifies the necessary confidence level to + # choose a winner. This field may not be changed for an experiments whose status + # is ENDED. # Corresponds to the JSON property `winnerConfidenceLevel` # @return [Float] attr_accessor :winner_confidence_level @@ -2251,11 +2251,9 @@ module Google attr_accessor :kind # Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH, - # CONTAINS, MATCHES. Include and Exclude filters can use any match type. Match - # type is not applicable to Upper case and Lower case filters. Search and - # Replace expressions in the Search and Replace filter and all filter - # expressions in the Advanced filter default to MATCHES. User should not set - # match type for those filters. + # CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS, PAGE_REQUEST_URI, or + # PAGE_HOSTNAME filters can use any match type; all other filters must use + # MATCHES. # Corresponds to the JSON property `matchType` # @return [String] attr_accessor :match_type @@ -3519,8 +3517,8 @@ module Google # @return [DateTime] attr_accessor :created - # The currency type associated with this view (profile). The supported values - # are: + # The currency type associated with this view (profile), defaults to USD. The + # supported values are: # ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY, # KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR # Corresponds to the JSON property `currency` diff --git a/generated/google/apis/analytics_v3/service.rb b/generated/google/apis/analytics_v3/service.rb index 43bc60e47..a1f70d45d 100644 --- a/generated/google/apis/analytics_v3/service.rb +++ b/generated/google/apis/analytics_v3/service.rb @@ -72,6 +72,9 @@ module Google # @param [String] filters # A comma-separated list of dimension or metric filters to be applied to # Analytics data. + # @param [Boolean] include_empty_rows + # The response will include empty rows if this parameter is set to true, the + # default is true # @param [Fixnum] max_results # The maximum number of entries to include in this feed. # @param [String] output @@ -107,15 +110,15 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_ga_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'data/ga' - command = make_simple_command(:get, path, options) + def get_ga_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, include_empty_rows: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'data/ga', options) command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation command.response_class = Google::Apis::AnalyticsV3::GaData command.query['dimensions'] = dimensions unless dimensions.nil? command.query['end-date'] = end_date unless end_date.nil? command.query['filters'] = filters unless filters.nil? command.query['ids'] = ids unless ids.nil? + command.query['include-empty-rows'] = include_empty_rows unless include_empty_rows.nil? command.query['max-results'] = max_results unless max_results.nil? command.query['metrics'] = metrics unless metrics.nil? command.query['output'] = output unless output.nil? @@ -184,8 +187,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_mcf_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, sampling_level: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'data/mcf' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'data/mcf', options) command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation command.response_class = Google::Apis::AnalyticsV3::McfData command.query['dimensions'] = dimensions unless dimensions.nil? @@ -243,8 +245,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_realtime_data(ids, metrics, dimensions: nil, filters: nil, max_results: nil, sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'data/realtime' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'data/realtime', options) command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation command.response_class = Google::Apis::AnalyticsV3::RealtimeData command.query['dimensions'] = dimensions unless dimensions.nil? @@ -289,8 +290,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_summaries(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accountSummaries' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accountSummaries', options) command.response_representation = Google::Apis::AnalyticsV3::AccountSummaries::Representation command.response_class = Google::Apis::AnalyticsV3::AccountSummaries command.query['max-results'] = max_results unless max_results.nil? @@ -328,8 +328,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_account_user_link(account_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/entityUserLinks/{linkId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['linkId'] = link_id unless link_id.nil? command.query['fields'] = fields unless fields.nil? @@ -364,8 +363,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_account_user_link(account_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/entityUserLinks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/entityUserLinks', options) command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_object = entity_user_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation @@ -407,8 +405,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_user_links(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/entityUserLinks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/entityUserLinks', options) command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks command.params['accountId'] = account_id unless account_id.nil? @@ -448,8 +445,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account_user_link(account_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/entityUserLinks/{linkId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options) command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_object = entity_user_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation @@ -490,8 +486,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts', options) command.response_representation = Google::Apis::AnalyticsV3::Accounts::Representation command.response_class = Google::Apis::AnalyticsV3::Accounts command.query['max-results'] = max_results unless max_results.nil? @@ -534,8 +529,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_custom_data_sources(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', options) command.response_representation = Google::Apis::AnalyticsV3::CustomDataSources::Representation command.response_class = Google::Apis::AnalyticsV3::CustomDataSources command.params['accountId'] = account_id unless account_id.nil? @@ -577,8 +571,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_custom_dimension(account_id, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options) command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.response_class = Google::Apis::AnalyticsV3::CustomDimension command.params['accountId'] = account_id unless account_id.nil? @@ -618,8 +611,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_custom_dimension(account_id, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options) command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.request_object = custom_dimension_object command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation @@ -664,8 +656,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_custom_dimensions(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options) command.response_representation = Google::Apis::AnalyticsV3::CustomDimensions::Representation command.response_class = Google::Apis::AnalyticsV3::CustomDimensions command.params['accountId'] = account_id unless account_id.nil? @@ -711,8 +702,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options) command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.request_object = custom_dimension_object command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation @@ -760,8 +750,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options) command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.request_object = custom_dimension_object command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation @@ -805,8 +794,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_custom_metric(account_id, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options) command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.response_class = Google::Apis::AnalyticsV3::CustomMetric command.params['accountId'] = account_id unless account_id.nil? @@ -846,8 +834,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_custom_metric(account_id, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options) command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.request_object = custom_metric_object command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation @@ -892,8 +879,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_custom_metrics(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options) command.response_representation = Google::Apis::AnalyticsV3::CustomMetrics::Representation command.response_class = Google::Apis::AnalyticsV3::CustomMetrics command.params['accountId'] = account_id unless account_id.nil? @@ -939,8 +925,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options) command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.request_object = custom_metric_object command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation @@ -988,8 +973,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options) command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.request_object = custom_metric_object command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation @@ -1035,8 +1019,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['webPropertyId'] = web_property_id unless web_property_id.nil? command.params['profileId'] = profile_id unless profile_id.nil? @@ -1078,8 +1061,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options) command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation command.response_class = Google::Apis::AnalyticsV3::Experiment command.params['accountId'] = account_id unless account_id.nil? @@ -1122,8 +1104,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_experiment(account_id, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options) command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation command.request_object = experiment_object command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation @@ -1171,8 +1152,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_experiments(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options) command.response_representation = Google::Apis::AnalyticsV3::Experiments::Representation command.response_class = Google::Apis::AnalyticsV3::Experiments command.params['accountId'] = account_id unless account_id.nil? @@ -1218,8 +1198,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options) command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation command.request_object = experiment_object command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation @@ -1266,8 +1245,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options) command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation command.request_object = experiment_object command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation @@ -1309,8 +1287,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/filters/{filterId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/filters/{filterId}', options) command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation command.response_class = Google::Apis::AnalyticsV3::Filter command.params['accountId'] = account_id unless account_id.nil? @@ -1348,8 +1325,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/filters/{filterId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/filters/{filterId}', options) command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation command.response_class = Google::Apis::AnalyticsV3::Filter command.params['accountId'] = account_id unless account_id.nil? @@ -1386,8 +1362,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_filter(account_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/filters' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/filters', options) command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation command.request_object = filter_object command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation @@ -1429,8 +1404,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_filters(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/filters' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/filters', options) command.response_representation = Google::Apis::AnalyticsV3::Filters::Representation command.response_class = Google::Apis::AnalyticsV3::Filters command.params['accountId'] = account_id unless account_id.nil? @@ -1470,8 +1444,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/filters/{filterId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/filters/{filterId}', options) command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation command.request_object = filter_object command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation @@ -1512,8 +1485,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/filters/{filterId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/filters/{filterId}', options) command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation command.request_object = filter_object command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation @@ -1557,8 +1529,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_goal(account_id, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options) command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation command.response_class = Google::Apis::AnalyticsV3::Goal command.params['accountId'] = account_id unless account_id.nil? @@ -1601,8 +1572,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_goal(account_id, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options) command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation command.request_object = goal_object command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation @@ -1654,8 +1624,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_goals(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options) command.response_representation = Google::Apis::AnalyticsV3::Goals::Representation command.response_class = Google::Apis::AnalyticsV3::Goals command.params['accountId'] = account_id unless account_id.nil? @@ -1701,8 +1670,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options) command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation command.request_object = goal_object command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation @@ -1749,8 +1717,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options) command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation command.request_object = goal_object command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation @@ -1796,8 +1763,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['webPropertyId'] = web_property_id unless web_property_id.nil? command.params['profileId'] = profile_id unless profile_id.nil? @@ -1839,8 +1805,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink command.params['accountId'] = account_id unless account_id.nil? @@ -1883,8 +1848,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_profile_filter_link(account_id, web_property_id, profile_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options) command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation command.request_object = profile_filter_link_object command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation @@ -1935,8 +1899,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_profile_filter_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options) command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLinks::Representation command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLinks command.params['accountId'] = account_id unless account_id.nil? @@ -1982,8 +1945,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation command.request_object = profile_filter_link_object command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation @@ -2030,8 +1992,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation command.request_object = profile_filter_link_object command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation @@ -2077,8 +2038,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_profile_user_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['webPropertyId'] = web_property_id unless web_property_id.nil? command.params['profileId'] = profile_id unless profile_id.nil? @@ -2119,8 +2079,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_profile_user_link(account_id, web_property_id, profile_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options) command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_object = entity_user_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation @@ -2172,8 +2131,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_profile_user_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options) command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks command.params['accountId'] = account_id unless account_id.nil? @@ -2219,8 +2177,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_profile_user_link(account_id, web_property_id, profile_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options) command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_object = entity_user_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation @@ -2264,8 +2221,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['webPropertyId'] = web_property_id unless web_property_id.nil? command.params['profileId'] = profile_id unless profile_id.nil? @@ -2304,8 +2260,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options) command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation command.response_class = Google::Apis::AnalyticsV3::Profile command.params['accountId'] = account_id unless account_id.nil? @@ -2345,8 +2300,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_profile(account_id, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options) command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation command.request_object = profile_object command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation @@ -2395,8 +2349,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_profiles(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options) command.response_representation = Google::Apis::AnalyticsV3::Profiles::Representation command.response_class = Google::Apis::AnalyticsV3::Profiles command.params['accountId'] = account_id unless account_id.nil? @@ -2439,8 +2392,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options) command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation command.request_object = profile_object command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation @@ -2484,8 +2436,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options) command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation command.request_object = profile_object command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation @@ -2527,8 +2478,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/segments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/segments', options) command.response_representation = Google::Apis::AnalyticsV3::Segments::Representation command.response_class = Google::Apis::AnalyticsV3::Segments command.query['max-results'] = max_results unless max_results.nil? @@ -2570,8 +2520,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options) command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation command.response_class = Google::Apis::AnalyticsV3::UnsampledReport command.params['accountId'] = account_id unless account_id.nil? @@ -2614,8 +2563,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options) command.request_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation command.request_object = unsampled_report_object command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation @@ -2666,8 +2614,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_unsampled_reports(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options) command.response_representation = Google::Apis::AnalyticsV3::UnsampledReports::Representation command.response_class = Google::Apis::AnalyticsV3::UnsampledReports command.params['accountId'] = account_id unless account_id.nil? @@ -2711,8 +2658,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_upload_data(account_id, web_property_id, custom_data_source_id, delete_upload_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', options) command.request_representation = Google::Apis::AnalyticsV3::DeleteUploadDataRequest::Representation command.request_object = delete_upload_data_request_object command.params['accountId'] = account_id unless account_id.nil? @@ -2755,8 +2701,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_upload(account_id, web_property_id, custom_data_source_id, upload_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', options) command.response_representation = Google::Apis::AnalyticsV3::Upload::Representation command.response_class = Google::Apis::AnalyticsV3::Upload command.params['accountId'] = account_id unless account_id.nil? @@ -2803,8 +2748,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_uploads(account_id, web_property_id, custom_data_source_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options) command.response_representation = Google::Apis::AnalyticsV3::Uploads::Representation command.response_class = Google::Apis::AnalyticsV3::Uploads command.params['accountId'] = account_id unless account_id.nil? @@ -2851,11 +2795,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_data(account_id, web_property_id, custom_data_source_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -2899,8 +2842,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['webPropertyId'] = web_property_id unless web_property_id.nil? command.params['webPropertyAdWordsLinkId'] = web_property_ad_words_link_id unless web_property_ad_words_link_id.nil? @@ -2939,8 +2881,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink command.params['accountId'] = account_id unless account_id.nil? @@ -2980,8 +2921,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_web_property_ad_words_link(account_id, web_property_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options) command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.request_object = entity_ad_words_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation @@ -3026,8 +2966,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_web_property_ad_words_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options) command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLinks::Representation command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLinks command.params['accountId'] = account_id unless account_id.nil? @@ -3071,8 +3010,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.request_object = entity_ad_words_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation @@ -3116,8 +3054,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.request_object = entity_ad_words_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation @@ -3158,8 +3095,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_web_property(account_id, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options) command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.response_class = Google::Apis::AnalyticsV3::Webproperty command.params['accountId'] = account_id unless account_id.nil? @@ -3198,8 +3134,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_web_property(account_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties', options) command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.request_object = webproperty_object command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation @@ -3242,8 +3177,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_web_properties(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties', options) command.response_representation = Google::Apis::AnalyticsV3::Webproperties::Representation command.response_class = Google::Apis::AnalyticsV3::Webproperties command.params['accountId'] = account_id unless account_id.nil? @@ -3283,8 +3217,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options) command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.request_object = webproperty_object command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation @@ -3325,8 +3258,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options) command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.request_object = webproperty_object command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation @@ -3368,8 +3300,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_web_property_user_link(account_id, web_property_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['webPropertyId'] = web_property_id unless web_property_id.nil? command.params['linkId'] = link_id unless link_id.nil? @@ -3407,8 +3338,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_web_property_user_link(account_id, web_property_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options) command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_object = entity_user_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation @@ -3455,8 +3385,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_web_property_user_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options) command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks command.params['accountId'] = account_id unless account_id.nil? @@ -3499,8 +3428,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_web_property_user_link(account_id, web_property_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options) command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_object = entity_user_link_object command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation @@ -3540,8 +3468,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_metadata_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'metadata/{reportType}/columns' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'metadata/{reportType}/columns', options) command.response_representation = Google::Apis::AnalyticsV3::Columns::Representation command.response_class = Google::Apis::AnalyticsV3::Columns command.params['reportType'] = report_type unless report_type.nil? @@ -3575,8 +3502,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_account_ticket(account_ticket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'provisioning/createAccountTicket' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'provisioning/createAccountTicket', options) command.request_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation command.request_object = account_ticket_object command.response_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index e1f65a18c..625432cc4 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -23,10 +23,10 @@ module Google # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android # for Work users. # - # @see https://developers.google.com/play/enterprise + # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20150715' + REVISION = '20151127' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index 1fb5633cf..ce44ff342 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -27,6 +27,12 @@ module Google class AppRestrictionsSchema include Google::Apis::Core::Hashable + # Identifies what kind of resource this is. Value: the fixed string " + # androidenterprise#appRestrictionsSchema". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + # The set of restrictions that make up this schema. # Corresponds to the JSON property `restrictions` # @return [Array] @@ -38,6 +44,7 @@ module Google # Update properties of this object def update!(**args) + @kind = args[:kind] unless args[:kind].nil? @restrictions = args[:restrictions] unless args[:restrictions].nil? end end @@ -237,10 +244,11 @@ module Google attr_accessor :product_id # Whether this collection is visible to all users, or only to the users that - # have been granted access through the collection_viewers api. Even if a - # collection is visible to allUsers, it is possible to add and remove viewers, - # but this will have no effect until the collection's visibility changes to - # viewersOnly. + # have been granted access through the "Collectionviewers" API. With the launch + # of the "setAvailableProductSet" API, this property should always be set to " + # viewersOnly", as the "allUsers" option will bypass the "availableProductSet" + # for all users within a domain. + # The "allUsers" setting is deprecated, and will be removed. # Corresponds to the JSON property `visibility` # @return [String] attr_accessor :visibility @@ -290,7 +298,7 @@ module Google include Google::Apis::Core::Hashable # An ordered collection of products which can be made visible on the Google Play - # Store app to a selected group of users. + # Store to a selected group of users. # Corresponds to the JSON property `collection` # @return [Array] attr_accessor :collection @@ -522,6 +530,32 @@ module Google end end + # + class SendTestPushNotificationResponse + include Google::Apis::Core::Hashable + + # The message ID of the test push notification that was sent. + # Corresponds to the JSON property `messageId` + # @return [String] + attr_accessor :message_id + + # The name of the Cloud Pub/Sub topic to which notifications for this enterprise' + # s enrolled account will be sent. + # Corresponds to the JSON property `topicName` + # @return [String] + attr_accessor :topic_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message_id = args[:message_id] unless args[:message_id].nil? + @topic_name = args[:topic_name] unless args[:topic_name].nil? + end + end + # The existence of an entitlement resource means that a user has the right to # use a particular app on any of their devices. This might be because the app is # free or because they have been allocated a license to the app from a group @@ -914,8 +948,8 @@ module Google # @return [String] attr_accessor :kind - # A string of the form app: - # . For example, app:com.google.android.gm represents the Gmail app. + # A string of the form app:. For example, app:com.google.android. + # gm represents the Gmail app. # Corresponds to the JSON property `productId` # @return [String] attr_accessor :product_id @@ -1019,6 +1053,32 @@ module Google end end + # A set of products. + class ProductSet + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # androidenterprise#productSet". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The list of product IDs making up the set of products. + # Corresponds to the JSON property `productId` + # @return [Array] + attr_accessor :product_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @product_id = args[:product_id] unless args[:product_id].nil? + end + end + # class ApproveProductRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/androidenterprise_v1/representations.rb b/generated/google/apis/androidenterprise_v1/representations.rb index 1f12facb9..88d9fd42e 100644 --- a/generated/google/apis/androidenterprise_v1/representations.rb +++ b/generated/google/apis/androidenterprise_v1/representations.rb @@ -78,6 +78,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class SendTestPushNotificationResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Entitlement class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -122,6 +126,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class ProductSet + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ApproveProductRequest class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -145,6 +153,7 @@ module Google class AppRestrictionsSchema # @private class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' collection :restrictions, as: 'restrictions', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction::Representation end @@ -273,6 +282,14 @@ module Google end end + class SendTestPushNotificationResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message_id, as: 'messageId' + property :topic_name, as: 'topicName' + end + end + class Entitlement # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -385,6 +402,14 @@ module Google end end + class ProductSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :product_id, as: 'productId' + end + end + class ApproveProductRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/androidenterprise_v1/service.rb b/generated/google/apis/androidenterprise_v1/service.rb index 5a5cb39e7..e09793689 100644 --- a/generated/google/apis/androidenterprise_v1/service.rb +++ b/generated/google/apis/androidenterprise_v1/service.rb @@ -31,7 +31,7 @@ module Google # Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module # service = Androidenterprise::AndroidEnterpriseService.new # - # @see https://developers.google.com/play/enterprise + # @see https://developers.google.com/android/work/play/emm-api class AndroidEnterpriseService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -80,8 +80,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}', options) command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['collectionId'] = collection_id unless collection_id.nil? command.query['fields'] = fields unless fields.nil? @@ -117,8 +116,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation command.response_class = Google::Apis::AndroidenterpriseV1::Collection command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -155,8 +153,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_collection(enterprise_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'enterprises/{enterpriseId}/collections', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation command.request_object = collection_object command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation @@ -193,8 +190,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_collections(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -232,8 +228,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation command.request_object = collection_object command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation @@ -274,8 +269,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation command.request_object = collection_object command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation @@ -319,8 +313,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options) command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['collectionId'] = collection_id unless collection_id.nil? command.params['userId'] = user_id unless user_id.nil? @@ -361,8 +354,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation command.response_class = Google::Apis::AndroidenterpriseV1::User command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -403,8 +395,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_collection_viewers(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}/users' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -447,8 +438,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation @@ -494,8 +484,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation @@ -538,8 +527,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation command.response_class = Google::Apis::AndroidenterpriseV1::Device command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -582,9 +570,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_state_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state' - command = make_simple_command(:get, path, options) + def get_device_state(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options) command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -623,8 +610,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -667,9 +653,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_state_device(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state' - command = make_simple_command(:put, path, options) + def set_device_state(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options) command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation command.request_object = device_state_object command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation @@ -710,8 +695,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options) command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -745,8 +729,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/enroll' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'enterprises/enroll', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation command.request_object = enterprise_object command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation @@ -783,8 +766,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -821,8 +803,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'enterprises', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation command.request_object = enterprise_object command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation @@ -859,8 +840,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse command.query['domain'] = domain unless domain.nil? @@ -870,6 +850,42 @@ module Google execute_or_queue_command(command, &block) end + # Sends a test push notification to validate the MDM integration with the Google + # Cloud Pub/Sub service for this enterprise. + # @param [String] enterprise_id + # The ID of the enterprise. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options) + command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation + command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse + command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Set the account that will be used to authenticate to the API as the enterprise. # @param [String] enterprise_id # The ID of the enterprise. @@ -895,9 +911,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_account_enterprise(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/account' - command = make_simple_command(:put, path, options) + def set_enterprise_account(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/account', options) command.request_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation command.request_object = enterprise_account_object command.response_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation @@ -934,8 +949,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/unenroll' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'enterprises/{enterpriseId}/unenroll', options) command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -972,8 +986,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options) command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['userId'] = user_id unless user_id.nil? command.params['entitlementId'] = entitlement_id unless entitlement_id.nil? @@ -1012,8 +1025,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1052,8 +1064,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/entitlements' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1100,8 +1111,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation command.request_object = entitlement_object command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation @@ -1151,8 +1161,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation command.request_object = entitlement_object command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation @@ -1195,8 +1204,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1232,8 +1240,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/groupLicenses' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1272,8 +1279,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1317,8 +1323,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options) command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['userId'] = user_id unless user_id.nil? command.params['deviceId'] = device_id unless device_id.nil? @@ -1361,8 +1366,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation command.response_class = Google::Apis::AndroidenterpriseV1::Install command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1404,8 +1408,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1452,8 +1455,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation command.request_object = install_object command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation @@ -1502,8 +1504,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options) command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation command.request_object = install_object command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation @@ -1546,8 +1547,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'permissions/{permissionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'permissions/{permissionId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation command.response_class = Google::Apis::AndroidenterpriseV1::Permission command.params['permissionId'] = permission_id unless permission_id.nil? @@ -1586,8 +1586,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/products/{productId}/approve' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options) command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation command.request_object = approve_product_request_object command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1635,8 +1634,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options) command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1677,8 +1675,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/products/{productId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation command.response_class = Google::Apis::AndroidenterpriseV1::Product command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1721,8 +1718,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options) command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1761,8 +1757,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/products/{productId}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1802,8 +1797,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/products/{productId}/permissions' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/products/{productId}/permissions', options) command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation command.request_object = product_permissions_object command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation @@ -1844,8 +1838,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/token' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/token', options) command.response_representation = Google::Apis::AndroidenterpriseV1::UserToken::Representation command.response_class = Google::Apis::AndroidenterpriseV1::UserToken command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1883,8 +1876,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}', options) command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation command.response_class = Google::Apis::AndroidenterpriseV1::User command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1895,6 +1887,44 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the set of products a user is entitled to access. + # @param [String] enterprise_id + # The ID of the enterprise. + # @param [String] user_id + # The ID of the user. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidenterpriseV1::ProductSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user_available_product_set(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options) + command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation + command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet + command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Looks up a user by email address. # @param [String] enterprise_id # The ID of the enterprise. @@ -1922,8 +1952,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? @@ -1961,8 +1990,48 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def revoke_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'enterprises/{enterpriseId}/users/{userId}/token' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/token', options) + command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Modifies the set of products a user is entitled to access. + # @param [String] enterprise_id + # The ID of the enterprise. + # @param [String] user_id + # The ID of the user. + # @param [Google::Apis::AndroidenterpriseV1::ProductSet] product_set_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidenterpriseV1::ProductSet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_user_available_product_set(enterprise_id, user_id, product_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options) + command.request_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation + command.request_object = product_set_object + command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation + command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['userId'] = user_id unless user_id.nil? command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 967b49c21..55edf5fe9 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20150316' + REVISION = '20150910' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v2/classes.rb b/generated/google/apis/androidpublisher_v2/classes.rb index 6b7e98512..2b4d738b4 100644 --- a/generated/google/apis/androidpublisher_v2/classes.rb +++ b/generated/google/apis/androidpublisher_v2/classes.rb @@ -643,8 +643,8 @@ module Google # @return [String] attr_accessor :status - # The period of the subscription (if any), i.e. period at which payments must - # happen. Defined as ISO 8601 duration, i.e. "P1M" for 1 month period. + # Subscription period, specified in ISO 8601 format. Acceptable values are "P1W" + # (one week), "P1M" (one month) and "P1Y" (one year). # Corresponds to the JSON property `subscriptionPeriod` # @return [String] attr_accessor :subscription_period diff --git a/generated/google/apis/androidpublisher_v2/service.rb b/generated/google/apis/androidpublisher_v2/service.rb index 50849b4d1..2679778f2 100644 --- a/generated/google/apis/androidpublisher_v2/service.rb +++ b/generated/google/apis/androidpublisher_v2/service.rb @@ -80,8 +80,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}:commit' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/edits/{editId}:commit', options) command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation command.response_class = Google::Apis::AndroidpublisherV2::AppEdit command.params['packageName'] = package_name unless package_name.nil? @@ -122,8 +121,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/edits/{editId}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.query['fields'] = fields unless fields.nil? @@ -161,8 +159,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}', options) command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation command.response_class = Google::Apis::AndroidpublisherV2::AppEdit command.params['packageName'] = package_name unless package_name.nil? @@ -200,8 +197,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/edits', options) command.request_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation command.request_object = app_edit_object command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation @@ -242,8 +238,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def validate_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}:validate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/edits/{editId}:validate', options) command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation command.response_class = Google::Apis::AndroidpublisherV2::AppEdit command.params['packageName'] = package_name unless package_name.nil? @@ -289,8 +284,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil? @@ -331,8 +325,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_all_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil? @@ -377,8 +370,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options) command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation command.response_class = Google::Apis::AndroidpublisherV2::ApkListing command.params['packageName'] = package_name unless package_name.nil? @@ -421,8 +413,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options) command.response_representation = Google::Apis::AndroidpublisherV2::ListApkListingsResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ListApkListingsResponse command.params['packageName'] = package_name unless package_name.nil? @@ -470,8 +461,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options) command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation command.request_object = apk_listing_object command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation @@ -522,8 +512,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options) command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation command.request_object = apk_listing_object command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation @@ -570,8 +559,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_externally_hosted_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/externallyHosted' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options) command.request_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest::Representation command.request_object = apks_add_externally_hosted_request_object command.response_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedResponse::Representation @@ -612,8 +600,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options) command.response_representation = Google::Apis::AndroidpublisherV2::ListApksResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ListApksResponse command.params['packageName'] = package_name unless package_name.nil? @@ -656,11 +643,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{packageName}/edits/{editId}/apks', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -703,8 +689,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/details' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options) command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation command.response_class = Google::Apis::AndroidpublisherV2::AppDetails command.params['packageName'] = package_name unless package_name.nil? @@ -744,8 +729,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/details' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options) command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation command.request_object = app_details_object command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation @@ -787,8 +771,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/details' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options) command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation command.request_object = app_details_object command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation @@ -833,8 +816,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile command.params['packageName'] = package_name unless package_name.nil? @@ -882,8 +864,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation command.request_object = expansion_file_object command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation @@ -932,8 +913,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation command.request_object = expansion_file_object command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation @@ -984,11 +964,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1039,8 +1018,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.params['language'] = language unless language.nil? @@ -1085,8 +1063,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}/{imageType}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command.response_representation = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse command.params['packageName'] = package_name unless package_name.nil? @@ -1132,8 +1109,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}/{imageType}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command.response_representation = Google::Apis::AndroidpublisherV2::ListImagesResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ListImagesResponse command.params['packageName'] = package_name unless package_name.nil? @@ -1184,11 +1160,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}/{imageType}' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1235,8 +1210,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.params['language'] = language unless language.nil? @@ -1274,8 +1248,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_all_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1315,8 +1288,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options) command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation command.response_class = Google::Apis::AndroidpublisherV2::Listing command.params['packageName'] = package_name unless package_name.nil? @@ -1356,8 +1328,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options) command.response_representation = Google::Apis::AndroidpublisherV2::ListListingsResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ListListingsResponse command.params['packageName'] = package_name unless package_name.nil? @@ -1401,8 +1372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options) command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation command.request_object = listing_object command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation @@ -1448,8 +1418,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/listings/{language}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options) command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation command.request_object = listing_object command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation @@ -1492,8 +1461,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/testers/{track}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options) command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation command.response_class = Google::Apis::AndroidpublisherV2::Testers command.params['packageName'] = package_name unless package_name.nil? @@ -1535,8 +1503,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/testers/{track}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation command.request_object = testers_object command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation @@ -1580,8 +1547,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/testers/{track}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation command.request_object = testers_object command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation @@ -1626,8 +1592,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/tracks/{track}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options) command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation command.response_class = Google::Apis::AndroidpublisherV2::Track command.params['packageName'] = package_name unless package_name.nil? @@ -1667,8 +1632,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/tracks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options) command.response_representation = Google::Apis::AndroidpublisherV2::ListTracksResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ListTracksResponse command.params['packageName'] = package_name unless package_name.nil? @@ -1712,8 +1676,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/tracks/{track}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation command.request_object = track_object command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation @@ -1760,8 +1723,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/edits/{editId}/tracks/{track}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation command.request_object = track_object command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation @@ -1807,8 +1769,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_entitlements(package_name, max_results: nil, product_id: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/entitlements' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/entitlements', options) command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse command.params['packageName'] = package_name unless package_name.nil? @@ -1846,8 +1807,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'inappproducts/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'inappproducts/batch', options) command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation command.request_object = in_app_products_batch_request_object command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation @@ -1886,8 +1846,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/inappproducts/{sku}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['sku'] = sku unless sku.nil? command.query['fields'] = fields unless fields.nil? @@ -1922,8 +1881,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/inappproducts/{sku}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options) command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct command.params['packageName'] = package_name unless package_name.nil? @@ -1964,8 +1922,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_in_app_product(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/inappproducts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/inappproducts', options) command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.request_object = in_app_product_object command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation @@ -2008,8 +1965,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_in_app_products(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/inappproducts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/inappproducts', options) command.response_representation = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse::Representation command.response_class = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse command.params['packageName'] = package_name unless package_name.nil? @@ -2055,8 +2011,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/inappproducts/{sku}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options) command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.request_object = in_app_product_object command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation @@ -2103,8 +2058,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/inappproducts/{sku}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options) command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.request_object = in_app_product_object command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation @@ -2148,8 +2102,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/purchases/products/{productId}/tokens/{token}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options) command.response_representation = Google::Apis::AndroidpublisherV2::ProductPurchase::Representation command.response_class = Google::Apis::AndroidpublisherV2::ProductPurchase command.params['packageName'] = package_name unless package_name.nil? @@ -2192,8 +2145,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options) command.params['packageName'] = package_name unless package_name.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.params['token'] = token unless token.nil? @@ -2234,8 +2186,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def defer_purchase_subscription(package_name, subscription_id, token, defer_subscription_purchases_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options) command.request_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest::Representation command.request_object = defer_subscription_purchases_request_object command.response_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse::Representation @@ -2280,8 +2231,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options) command.response_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchase::Representation command.response_class = Google::Apis::AndroidpublisherV2::SubscriptionPurchase command.params['packageName'] = package_name unless package_name.nil? @@ -2324,8 +2274,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options) command.params['packageName'] = package_name unless package_name.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.params['token'] = token unless token.nil? @@ -2366,8 +2315,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options) command.params['packageName'] = package_name unless package_name.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.params['token'] = token unless token.nil? diff --git a/generated/google/apis/appengine_v1beta4.rb b/generated/google/apis/appengine_v1beta4.rb new file mode 100644 index 000000000..5540eeae3 --- /dev/null +++ b/generated/google/apis/appengine_v1beta4.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/appengine_v1beta4/service.rb' +require 'google/apis/appengine_v1beta4/classes.rb' +require 'google/apis/appengine_v1beta4/representations.rb' + +module Google + module Apis + # Google App Engine Admin API + # + # The Google App Engine Admin API enables developers to provision and manage + # their App Engine applications. + # + # @see https://cloud.google.com/appengine/docs/admin-api/ + module AppengineV1beta4 + VERSION = 'V1beta4' + REVISION = '20151123' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/appengine_v1beta4/classes.rb b/generated/google/apis/appengine_v1beta4/classes.rb new file mode 100644 index 000000000..dd4ed4a66 --- /dev/null +++ b/generated/google/apis/appengine_v1beta4/classes.rb @@ -0,0 +1,1532 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AppengineV1beta4 + + # An Application contains the top-level configuration of an App Engine + # application. + class Application + include Google::Apis::Core::Hashable + + # The full path to the application in the API. Example: "apps/myapp". @ + # OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The relative name/path of the application. Example: "myapp". @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # HTTP path dispatch rules for requests to the app that do not explicitly target + # a module or version. The rules are order-dependent. + # Corresponds to the JSON property `dispatchRules` + # @return [Array] + attr_accessor :dispatch_rules + + # The location from which the application will be run. Choices are "us-central" + # for United States and "europe-west" for European Union. Application instances + # will run out of data centers in the chosen location and all of the application' + # s End User Content will be stored at rest in the chosen location. The default + # is "us-central". + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # A Google Cloud Storage bucket which can be used for storing files associated + # with an application. This bucket is associated with the application and can be + # used by the gcloud deployment commands. @OutputOnly + # Corresponds to the JSON property `codeBucket` + # @return [String] + attr_accessor :code_bucket + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @id = args[:id] unless args[:id].nil? + @dispatch_rules = args[:dispatch_rules] unless args[:dispatch_rules].nil? + @location = args[:location] unless args[:location].nil? + @code_bucket = args[:code_bucket] unless args[:code_bucket].nil? + end + end + + # Rules to match an HTTP request and dispatch that request to a module. + class UrlDispatchRule + include Google::Apis::Core::Hashable + + # The domain name to match on. Supports '*' (glob) wildcarding on the left-hand + # side of a '.'. If empty, all domains will be matched (the same as '*'). + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # The pathname within the host. This must start with a '/'. A single '*' (glob) + # can be included at the end of the path. The sum of the lengths of the domain + # and path may not exceed 100 characters. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + # The resource id of a Module in this application that should service the + # matched request. The Module must already exist. Example: "default". + # Corresponds to the JSON property `module` + # @return [String] + attr_accessor :module + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain = args[:domain] unless args[:domain].nil? + @path = args[:path] unless args[:path].nil? + @module = args[:module] unless args[:module].nil? + end + end + + # A Version is a specific set of source code and configuration files deployed to + # a module. + class Version + include Google::Apis::Core::Hashable + + # The full path to the Version resource in the API. Example: "apps/myapp/modules/ + # default/versions/v1". @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The relative name/path of the Version within the module. Example: "v1". + # Version specifiers can contain lowercase letters, digits, and hyphens. It + # cannot begin with the prefix `ah-` and the names `default` and `latest` are + # reserved and cannot be used. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Automatic scaling is the scaling policy that App Engine has used since its + # inception. It is based on request rate, response latencies, and other + # application metrics. + # Corresponds to the JSON property `automaticScaling` + # @return [Google::Apis::AppengineV1beta4::AutomaticScaling] + attr_accessor :automatic_scaling + + # A module with basic scaling will create an instance when the application + # receives a request. The instance will be turned down when the app becomes idle. + # Basic scaling is ideal for work that is intermittent or driven by user + # activity. + # Corresponds to the JSON property `basicScaling` + # @return [Google::Apis::AppengineV1beta4::BasicScaling] + attr_accessor :basic_scaling + + # A module with manual scaling runs continuously, allowing you to perform + # complex initialization and rely on the state of its memory over time. + # Corresponds to the JSON property `manualScaling` + # @return [Google::Apis::AppengineV1beta4::ManualScaling] + attr_accessor :manual_scaling + + # Before an application can receive email or XMPP messages, the application must + # be configured to enable the service. + # Corresponds to the JSON property `inboundServices` + # @return [Array] + attr_accessor :inbound_services + + # The frontend instance class to use to run this app. Valid values are `[F1, F2, + # F4, F4_1G]`. Default: "F1" + # Corresponds to the JSON property `instanceClass` + # @return [String] + attr_accessor :instance_class + + # Used to specify extra network settings (for VM runtimes only). + # Corresponds to the JSON property `network` + # @return [Google::Apis::AppengineV1beta4::Network] + attr_accessor :network + + # Used to specify how many machine resources an app version needs. + # Corresponds to the JSON property `resources` + # @return [Google::Apis::AppengineV1beta4::Resources] + attr_accessor :resources + + # The desired runtime. Values can include python27, java7, go, etc. + # Corresponds to the JSON property `runtime` + # @return [String] + attr_accessor :runtime + + # If true, multiple requests can be dispatched to the app at once. + # Corresponds to the JSON property `threadsafe` + # @return [Boolean] + attr_accessor :threadsafe + alias_method :threadsafe?, :threadsafe + + # Whether to deploy this app in a VM container. + # Corresponds to the JSON property `vm` + # @return [Boolean] + attr_accessor :vm + alias_method :vm?, :vm + + # Beta settings supplied to the application via metadata. + # Corresponds to the JSON property `betaSettings` + # @return [Hash] + attr_accessor :beta_settings + + # The App Engine execution environment to use for this version. Default: "1" + # Corresponds to the JSON property `env` + # @return [String] + attr_accessor :env + + # The current serving status of this version. Only `SERVING` versions will have + # instances created or billed for. If this field is unset when a version is + # created, `SERVING` status will be assumed. It is an error to explicitly set + # this field to `SERVING_STATUS_UNSPECIFIED`. + # Corresponds to the JSON property `servingStatus` + # @return [String] + attr_accessor :serving_status + + # The email address of the user who created this version. @OutputOnly + # Corresponds to the JSON property `deployer` + # @return [String] + attr_accessor :deployer + + # Creation time of this version. This will be between the start and end times of + # the operation that creates this version. @OutputOnly + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # An ordered list of URL Matching patterns that should be applied to incoming + # requests. The first matching URL consumes the request, and subsequent handlers + # are not attempted. Only returned in `GET` requests if `view=FULL` is set. May + # only be set on create requests; once created, is immutable. + # Corresponds to the JSON property `handlers` + # @return [Array] + attr_accessor :handlers + + # Custom static error pages instead of these generic error pages, (limit 10 KB/ + # page) Only returned in `GET` requests if `view=FULL` is set. May only be set + # on create requests; once created, is immutable. + # Corresponds to the JSON property `errorHandlers` + # @return [Array] + attr_accessor :error_handlers + + # Configuration for Python runtime third-party libraries required by the + # application. Only returned in `GET` requests if `view=FULL` is set. May only + # be set on create requests; once created, is immutable. + # Corresponds to the JSON property `libraries` + # @return [Array] + attr_accessor :libraries + + # API Serving configuration for Cloud Endpoints. + # Corresponds to the JSON property `apiConfig` + # @return [Google::Apis::AppengineV1beta4::ApiConfigHandler] + attr_accessor :api_config + + # Environment variables made available to the application. Only returned in `GET` + # requests if `view=FULL` is set. May only be set on create requests; once + # created, is immutable. + # Corresponds to the JSON property `envVariables` + # @return [Hash] + attr_accessor :env_variables + + # The length of time a static file served by a static file handler ought to be + # cached by web proxies and browsers, if the handler does not specify its own + # expiration. Only returned in `GET` requests if `view=FULL` is set. May only be + # set on create requests; once created, is immutable. + # Corresponds to the JSON property `defaultExpiration` + # @return [String] + attr_accessor :default_expiration + + # Configure health checking for the VM instances. Unhealthy VM instances will be + # killed and replaced with new instances. + # Corresponds to the JSON property `healthCheck` + # @return [Google::Apis::AppengineV1beta4::HealthCheck] + attr_accessor :health_check + + # Go only. Files that match this pattern will not be built into the app. May + # only be set on create requests. + # Corresponds to the JSON property `nobuildFilesRegex` + # @return [String] + attr_accessor :nobuild_files_regex + + # Code and application artifacts used to deploy a version to App Engine. + # Corresponds to the JSON property `deployment` + # @return [Google::Apis::AppengineV1beta4::Deployment] + attr_accessor :deployment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @id = args[:id] unless args[:id].nil? + @automatic_scaling = args[:automatic_scaling] unless args[:automatic_scaling].nil? + @basic_scaling = args[:basic_scaling] unless args[:basic_scaling].nil? + @manual_scaling = args[:manual_scaling] unless args[:manual_scaling].nil? + @inbound_services = args[:inbound_services] unless args[:inbound_services].nil? + @instance_class = args[:instance_class] unless args[:instance_class].nil? + @network = args[:network] unless args[:network].nil? + @resources = args[:resources] unless args[:resources].nil? + @runtime = args[:runtime] unless args[:runtime].nil? + @threadsafe = args[:threadsafe] unless args[:threadsafe].nil? + @vm = args[:vm] unless args[:vm].nil? + @beta_settings = args[:beta_settings] unless args[:beta_settings].nil? + @env = args[:env] unless args[:env].nil? + @serving_status = args[:serving_status] unless args[:serving_status].nil? + @deployer = args[:deployer] unless args[:deployer].nil? + @creation_time = args[:creation_time] unless args[:creation_time].nil? + @handlers = args[:handlers] unless args[:handlers].nil? + @error_handlers = args[:error_handlers] unless args[:error_handlers].nil? + @libraries = args[:libraries] unless args[:libraries].nil? + @api_config = args[:api_config] unless args[:api_config].nil? + @env_variables = args[:env_variables] unless args[:env_variables].nil? + @default_expiration = args[:default_expiration] unless args[:default_expiration].nil? + @health_check = args[:health_check] unless args[:health_check].nil? + @nobuild_files_regex = args[:nobuild_files_regex] unless args[:nobuild_files_regex].nil? + @deployment = args[:deployment] unless args[:deployment].nil? + end + end + + # Automatic scaling is the scaling policy that App Engine has used since its + # inception. It is based on request rate, response latencies, and other + # application metrics. + class AutomaticScaling + include Google::Apis::Core::Hashable + + # The amount of time that the [Autoscaler](https://cloud.google.com/compute/docs/ + # autoscaler/) should wait between changes to the number of virtual machines. + # Applies only to the VM runtime. + # Corresponds to the JSON property `coolDownPeriod` + # @return [String] + attr_accessor :cool_down_period + + # Target scaling by CPU usage. + # Corresponds to the JSON property `cpuUtilization` + # @return [Google::Apis::AppengineV1beta4::CpuUtilization] + attr_accessor :cpu_utilization + + # The number of concurrent requests an automatic scaling instance can accept + # before the scheduler spawns a new instance. Default value is chosen based on + # the runtime. + # Corresponds to the JSON property `maxConcurrentRequests` + # @return [Fixnum] + attr_accessor :max_concurrent_requests + + # The maximum number of idle instances that App Engine should maintain for this + # version. + # Corresponds to the JSON property `maxIdleInstances` + # @return [Fixnum] + attr_accessor :max_idle_instances + + # Max number of instances that App Engine should start to handle requests. + # Corresponds to the JSON property `maxTotalInstances` + # @return [Fixnum] + attr_accessor :max_total_instances + + # The maximum amount of time that App Engine should allow a request to wait in + # the pending queue before starting a new instance to handle it. + # Corresponds to the JSON property `maxPendingLatency` + # @return [String] + attr_accessor :max_pending_latency + + # The minimum number of idle instances that App Engine should maintain for this + # version. Only applies to the default version of a module, since other versions + # are not expected to receive significant traffic. + # Corresponds to the JSON property `minIdleInstances` + # @return [Fixnum] + attr_accessor :min_idle_instances + + # Minimum number of instances that App Engine should maintain. + # Corresponds to the JSON property `minTotalInstances` + # @return [Fixnum] + attr_accessor :min_total_instances + + # The minimum amount of time that App Engine should allow a request to wait in + # the pending queue before starting a new instance to handle it. + # Corresponds to the JSON property `minPendingLatency` + # @return [String] + attr_accessor :min_pending_latency + + # Target scaling by request utilization (for VM runtimes only). + # Corresponds to the JSON property `requestUtilization` + # @return [Google::Apis::AppengineV1beta4::RequestUtilization] + attr_accessor :request_utilization + + # Target scaling by disk usage (for VM runtimes only). + # Corresponds to the JSON property `diskUtilization` + # @return [Google::Apis::AppengineV1beta4::DiskUtilization] + attr_accessor :disk_utilization + + # Target scaling by network usage (for VM runtimes only). + # Corresponds to the JSON property `networkUtilization` + # @return [Google::Apis::AppengineV1beta4::NetworkUtilization] + attr_accessor :network_utilization + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cool_down_period = args[:cool_down_period] unless args[:cool_down_period].nil? + @cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil? + @max_concurrent_requests = args[:max_concurrent_requests] unless args[:max_concurrent_requests].nil? + @max_idle_instances = args[:max_idle_instances] unless args[:max_idle_instances].nil? + @max_total_instances = args[:max_total_instances] unless args[:max_total_instances].nil? + @max_pending_latency = args[:max_pending_latency] unless args[:max_pending_latency].nil? + @min_idle_instances = args[:min_idle_instances] unless args[:min_idle_instances].nil? + @min_total_instances = args[:min_total_instances] unless args[:min_total_instances].nil? + @min_pending_latency = args[:min_pending_latency] unless args[:min_pending_latency].nil? + @request_utilization = args[:request_utilization] unless args[:request_utilization].nil? + @disk_utilization = args[:disk_utilization] unless args[:disk_utilization].nil? + @network_utilization = args[:network_utilization] unless args[:network_utilization].nil? + end + end + + # Target scaling by CPU usage. + class CpuUtilization + include Google::Apis::Core::Hashable + + # The period of time over which CPU utilization is calculated. + # Corresponds to the JSON property `aggregationWindowLength` + # @return [String] + attr_accessor :aggregation_window_length + + # Target (0-1) CPU utilization ratio to maintain when scaling. + # Corresponds to the JSON property `targetUtilization` + # @return [Float] + attr_accessor :target_utilization + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aggregation_window_length = args[:aggregation_window_length] unless args[:aggregation_window_length].nil? + @target_utilization = args[:target_utilization] unless args[:target_utilization].nil? + end + end + + # Target scaling by request utilization (for VM runtimes only). + class RequestUtilization + include Google::Apis::Core::Hashable + + # Target requests per second. + # Corresponds to the JSON property `targetRequestCountPerSec` + # @return [Fixnum] + attr_accessor :target_request_count_per_sec + + # Target number of concurrent requests. + # Corresponds to the JSON property `targetConcurrentRequests` + # @return [Fixnum] + attr_accessor :target_concurrent_requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_request_count_per_sec = args[:target_request_count_per_sec] unless args[:target_request_count_per_sec].nil? + @target_concurrent_requests = args[:target_concurrent_requests] unless args[:target_concurrent_requests].nil? + end + end + + # Target scaling by disk usage (for VM runtimes only). + class DiskUtilization + include Google::Apis::Core::Hashable + + # Target bytes per second written. + # Corresponds to the JSON property `targetWriteBytesPerSec` + # @return [Fixnum] + attr_accessor :target_write_bytes_per_sec + + # Target ops per second written. + # Corresponds to the JSON property `targetWriteOpsPerSec` + # @return [Fixnum] + attr_accessor :target_write_ops_per_sec + + # Target bytes per second read. + # Corresponds to the JSON property `targetReadBytesPerSec` + # @return [Fixnum] + attr_accessor :target_read_bytes_per_sec + + # Target ops per second read. + # Corresponds to the JSON property `targetReadOpsPerSec` + # @return [Fixnum] + attr_accessor :target_read_ops_per_sec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_write_bytes_per_sec = args[:target_write_bytes_per_sec] unless args[:target_write_bytes_per_sec].nil? + @target_write_ops_per_sec = args[:target_write_ops_per_sec] unless args[:target_write_ops_per_sec].nil? + @target_read_bytes_per_sec = args[:target_read_bytes_per_sec] unless args[:target_read_bytes_per_sec].nil? + @target_read_ops_per_sec = args[:target_read_ops_per_sec] unless args[:target_read_ops_per_sec].nil? + end + end + + # Target scaling by network usage (for VM runtimes only). + class NetworkUtilization + include Google::Apis::Core::Hashable + + # Target bytes per second sent. + # Corresponds to the JSON property `targetSentBytesPerSec` + # @return [Fixnum] + attr_accessor :target_sent_bytes_per_sec + + # Target packets per second sent. + # Corresponds to the JSON property `targetSentPacketsPerSec` + # @return [Fixnum] + attr_accessor :target_sent_packets_per_sec + + # Target bytes per second received. + # Corresponds to the JSON property `targetReceivedBytesPerSec` + # @return [Fixnum] + attr_accessor :target_received_bytes_per_sec + + # Target packets per second received. + # Corresponds to the JSON property `targetReceivedPacketsPerSec` + # @return [Fixnum] + attr_accessor :target_received_packets_per_sec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_sent_bytes_per_sec = args[:target_sent_bytes_per_sec] unless args[:target_sent_bytes_per_sec].nil? + @target_sent_packets_per_sec = args[:target_sent_packets_per_sec] unless args[:target_sent_packets_per_sec].nil? + @target_received_bytes_per_sec = args[:target_received_bytes_per_sec] unless args[:target_received_bytes_per_sec].nil? + @target_received_packets_per_sec = args[:target_received_packets_per_sec] unless args[:target_received_packets_per_sec].nil? + end + end + + # A module with basic scaling will create an instance when the application + # receives a request. The instance will be turned down when the app becomes idle. + # Basic scaling is ideal for work that is intermittent or driven by user + # activity. + class BasicScaling + include Google::Apis::Core::Hashable + + # The instance will be shut down this amount of time after receiving its last + # request. + # Corresponds to the JSON property `idleTimeout` + # @return [String] + attr_accessor :idle_timeout + + # The maximum number of instances for App Engine to create for this version. + # Corresponds to the JSON property `maxInstances` + # @return [Fixnum] + attr_accessor :max_instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @idle_timeout = args[:idle_timeout] unless args[:idle_timeout].nil? + @max_instances = args[:max_instances] unless args[:max_instances].nil? + end + end + + # A module with manual scaling runs continuously, allowing you to perform + # complex initialization and rely on the state of its memory over time. + class ManualScaling + include Google::Apis::Core::Hashable + + # The number of instances to assign to the module at the start. This number can + # later be altered by using the [Modules API](https://cloud.google.com/appengine/ + # docs/python/modules/functions) `set_num_instances()` function. + # Corresponds to the JSON property `instances` + # @return [Fixnum] + attr_accessor :instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] unless args[:instances].nil? + end + end + + # Used to specify extra network settings (for VM runtimes only). + class Network + include Google::Apis::Core::Hashable + + # A list of ports (or port pairs) to forward from the VM into the app container. + # Corresponds to the JSON property `forwardedPorts` + # @return [Array] + attr_accessor :forwarded_ports + + # A tag to apply to the VM instance during creation. + # Corresponds to the JSON property `instanceTag` + # @return [String] + attr_accessor :instance_tag + + # The Google Compute Engine network where the VMs will be created. If not + # specified, or empty, the network named "default" will be used. (The short name + # should be specified, not the resource path.) + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @forwarded_ports = args[:forwarded_ports] unless args[:forwarded_ports].nil? + @instance_tag = args[:instance_tag] unless args[:instance_tag].nil? + @name = args[:name] unless args[:name].nil? + end + end + + # Used to specify how many machine resources an app version needs. + class Resources + include Google::Apis::Core::Hashable + + # How many CPU cores an app version needs. + # Corresponds to the JSON property `cpu` + # @return [Float] + attr_accessor :cpu + + # How much disk size, in GB, an app version needs. + # Corresponds to the JSON property `diskGb` + # @return [Float] + attr_accessor :disk_gb + + # How much memory, in GB, an app version needs. + # Corresponds to the JSON property `memoryGb` + # @return [Float] + attr_accessor :memory_gb + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu = args[:cpu] unless args[:cpu].nil? + @disk_gb = args[:disk_gb] unless args[:disk_gb].nil? + @memory_gb = args[:memory_gb] unless args[:memory_gb].nil? + end + end + + # A URL pattern and description of how it should be handled. App Engine can + # handle URLs by executing application code, or by serving static files uploaded + # with the code, such as images, CSS or JavaScript. + class UrlMap + include Google::Apis::Core::Hashable + + # A URL prefix. This value uses regular expression syntax (and so regexp special + # characters must be escaped), but it should not contain groupings. All URLs + # that begin with this prefix are handled by this handler, using the portion of + # the URL after the prefix as part of the file path. This is always required. + # Corresponds to the JSON property `urlRegex` + # @return [String] + attr_accessor :url_regex + + # Files served directly to the user for a given URL, such as images, CSS + # stylesheets, or JavaScript source files. Static file handlers describe which + # files in the application directory are static files, and which URLs serve them. + # Corresponds to the JSON property `staticFiles` + # @return [Google::Apis::AppengineV1beta4::StaticFilesHandler] + attr_accessor :static_files + + # Files served directly to the user for a given URL, such as images, CSS + # stylesheets, or JavaScript source files. Static directory handlers make it + # easy to serve the entire contents of a directory as static files. + # Corresponds to the JSON property `staticDirectory` + # @return [Google::Apis::AppengineV1beta4::StaticDirectoryHandler] + attr_accessor :static_directory + + # Executes a script to handle the request that matches the URL pattern. + # Corresponds to the JSON property `script` + # @return [Google::Apis::AppengineV1beta4::ScriptHandler] + attr_accessor :script + + # Use Google Cloud Endpoints to handle requests. + # Corresponds to the JSON property `apiEndpoint` + # @return [Google::Apis::AppengineV1beta4::ApiEndpointHandler] + attr_accessor :api_endpoint + + # Configures whether security (HTTPS) should be enforced for this URL. + # Corresponds to the JSON property `securityLevel` + # @return [String] + attr_accessor :security_level + + # What level of login is required to access this resource. + # Corresponds to the JSON property `login` + # @return [String] + attr_accessor :login + + # For users not logged in, how to handle access to resources with required login. + # Defaults to "redirect". + # Corresponds to the JSON property `authFailAction` + # @return [String] + attr_accessor :auth_fail_action + + # `30x` code to use when performing redirects for the `secure` field. A `302` is + # used by default. + # Corresponds to the JSON property `redirectHttpResponseCode` + # @return [String] + attr_accessor :redirect_http_response_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url_regex = args[:url_regex] unless args[:url_regex].nil? + @static_files = args[:static_files] unless args[:static_files].nil? + @static_directory = args[:static_directory] unless args[:static_directory].nil? + @script = args[:script] unless args[:script].nil? + @api_endpoint = args[:api_endpoint] unless args[:api_endpoint].nil? + @security_level = args[:security_level] unless args[:security_level].nil? + @login = args[:login] unless args[:login].nil? + @auth_fail_action = args[:auth_fail_action] unless args[:auth_fail_action].nil? + @redirect_http_response_code = args[:redirect_http_response_code] unless args[:redirect_http_response_code].nil? + end + end + + # Files served directly to the user for a given URL, such as images, CSS + # stylesheets, or JavaScript source files. Static file handlers describe which + # files in the application directory are static files, and which URLs serve them. + class StaticFilesHandler + include Google::Apis::Core::Hashable + + # The path to the static files matched by the URL pattern, from the application + # root directory. The path can refer to text matched in groupings in the URL + # pattern. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + # A regular expression that matches the file paths for all files that will be + # referenced by this handler. + # Corresponds to the JSON property `uploadPathRegex` + # @return [String] + attr_accessor :upload_path_regex + + # HTTP headers to use for all responses from these URLs. + # Corresponds to the JSON property `httpHeaders` + # @return [Hash] + attr_accessor :http_headers + + # If specified, all files served by this handler will be served using the + # specified MIME type. If not specified, the MIME type for a file will be + # derived from the file's filename extension. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # The length of time a static file served by this handler ought to be cached by + # web proxies and browsers. + # Corresponds to the JSON property `expiration` + # @return [String] + attr_accessor :expiration + + # If true, this UrlMap entry does not match the request unless the file + # referenced by the handler also exists. If no such file exists, processing will + # continue with the next UrlMap that matches the requested URL. + # Corresponds to the JSON property `requireMatchingFile` + # @return [Boolean] + attr_accessor :require_matching_file + alias_method :require_matching_file?, :require_matching_file + + # By default, files declared in static file handlers are uploaded as static data + # and are only served to end users, they cannot be read by an application. If + # this field is set to true, the files are also uploaded as code data so your + # application can read them. Both uploads are charged against your code and + # static data storage resource quotas. + # Corresponds to the JSON property `applicationReadable` + # @return [Boolean] + attr_accessor :application_readable + alias_method :application_readable?, :application_readable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path = args[:path] unless args[:path].nil? + @upload_path_regex = args[:upload_path_regex] unless args[:upload_path_regex].nil? + @http_headers = args[:http_headers] unless args[:http_headers].nil? + @mime_type = args[:mime_type] unless args[:mime_type].nil? + @expiration = args[:expiration] unless args[:expiration].nil? + @require_matching_file = args[:require_matching_file] unless args[:require_matching_file].nil? + @application_readable = args[:application_readable] unless args[:application_readable].nil? + end + end + + # Files served directly to the user for a given URL, such as images, CSS + # stylesheets, or JavaScript source files. Static directory handlers make it + # easy to serve the entire contents of a directory as static files. + class StaticDirectoryHandler + include Google::Apis::Core::Hashable + + # The path to the directory containing the static files, from the application + # root directory. Everything after the end of the matched url pattern is + # appended to static_dir to form the full path to the requested file. + # Corresponds to the JSON property `directory` + # @return [String] + attr_accessor :directory + + # HTTP headers to use for all responses from these URLs. + # Corresponds to the JSON property `httpHeaders` + # @return [Hash] + attr_accessor :http_headers + + # If specified, all files served by this handler will be served using the + # specified MIME type. If not specified, the MIME type for a file will be + # derived from the file's filename extension. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # The length of time a static file served by this handler ought to be cached by + # web proxies and browsers. + # Corresponds to the JSON property `expiration` + # @return [String] + attr_accessor :expiration + + # If true, this UrlMap entry does not match the request unless the file + # referenced by the handler also exists. If no such file exists, processing will + # continue with the next UrlMap that matches the requested URL. + # Corresponds to the JSON property `requireMatchingFile` + # @return [Boolean] + attr_accessor :require_matching_file + alias_method :require_matching_file?, :require_matching_file + + # By default, files declared in static file handlers are uploaded as static data + # and are only served to end users, they cannot be read by an application. If + # this field is set to true, the files are also uploaded as code data so your + # application can read them. Both uploads are charged against your code and + # static data storage resource quotas. + # Corresponds to the JSON property `applicationReadable` + # @return [Boolean] + attr_accessor :application_readable + alias_method :application_readable?, :application_readable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @directory = args[:directory] unless args[:directory].nil? + @http_headers = args[:http_headers] unless args[:http_headers].nil? + @mime_type = args[:mime_type] unless args[:mime_type].nil? + @expiration = args[:expiration] unless args[:expiration].nil? + @require_matching_file = args[:require_matching_file] unless args[:require_matching_file].nil? + @application_readable = args[:application_readable] unless args[:application_readable].nil? + end + end + + # Executes a script to handle the request that matches the URL pattern. + class ScriptHandler + include Google::Apis::Core::Hashable + + # Specifies the path to the script from the application root directory. + # Corresponds to the JSON property `scriptPath` + # @return [String] + attr_accessor :script_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @script_path = args[:script_path] unless args[:script_path].nil? + end + end + + # Use Google Cloud Endpoints to handle requests. + class ApiEndpointHandler + include Google::Apis::Core::Hashable + + # Specifies the path to the script from the application root directory. + # Corresponds to the JSON property `scriptPath` + # @return [String] + attr_accessor :script_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @script_path = args[:script_path] unless args[:script_path].nil? + end + end + + # A custom static error page to be served when an error occurs. + class ErrorHandler + include Google::Apis::Core::Hashable + + # The error condition this handler applies to. + # Corresponds to the JSON property `errorCode` + # @return [String] + attr_accessor :error_code + + # Static file content to be served for this error. + # Corresponds to the JSON property `staticFile` + # @return [String] + attr_accessor :static_file + + # MIME type of file. If unspecified, "text/html" is assumed. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_code = args[:error_code] unless args[:error_code].nil? + @static_file = args[:static_file] unless args[:static_file].nil? + @mime_type = args[:mime_type] unless args[:mime_type].nil? + end + end + + # A Python runtime third-party library required by the application. + class Library + include Google::Apis::Core::Hashable + + # The name of the library, e.g. "PIL" or "django". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The version of the library to select, or "latest". + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @version = args[:version] unless args[:version].nil? + end + end + + # API Serving configuration for Cloud Endpoints. + class ApiConfigHandler + include Google::Apis::Core::Hashable + + # For users not logged in, how to handle access to resources with required login. + # Defaults to "redirect". + # Corresponds to the JSON property `authFailAction` + # @return [String] + attr_accessor :auth_fail_action + + # What level of login is required to access this resource. Default is "optional". + # Corresponds to the JSON property `login` + # @return [String] + attr_accessor :login + + # Specifies the path to the script from the application root directory. + # Corresponds to the JSON property `script` + # @return [String] + attr_accessor :script + + # Configures whether security (HTTPS) should be enforced for this URL. + # Corresponds to the JSON property `securityLevel` + # @return [String] + attr_accessor :security_level + + # URL to serve the endpoint at. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auth_fail_action = args[:auth_fail_action] unless args[:auth_fail_action].nil? + @login = args[:login] unless args[:login].nil? + @script = args[:script] unless args[:script].nil? + @security_level = args[:security_level] unless args[:security_level].nil? + @url = args[:url] unless args[:url].nil? + end + end + + # Configure health checking for the VM instances. Unhealthy VM instances will be + # killed and replaced with new instances. + class HealthCheck + include Google::Apis::Core::Hashable + + # Whether to explicitly disable health checks for this instance. + # Corresponds to the JSON property `disableHealthCheck` + # @return [Boolean] + attr_accessor :disable_health_check + alias_method :disable_health_check?, :disable_health_check + + # The host header to send when performing an HTTP health check (e.g. myapp. + # appspot.com) + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + + # The number of consecutive successful health checks before receiving traffic. + # Corresponds to the JSON property `healthyThreshold` + # @return [Fixnum] + attr_accessor :healthy_threshold + + # The number of consecutive failed health checks before removing traffic. + # Corresponds to the JSON property `unhealthyThreshold` + # @return [Fixnum] + attr_accessor :unhealthy_threshold + + # The number of consecutive failed health checks before an instance is restarted. + # Corresponds to the JSON property `restartThreshold` + # @return [Fixnum] + attr_accessor :restart_threshold + + # The interval between health checks. + # Corresponds to the JSON property `checkInterval` + # @return [String] + attr_accessor :check_interval + + # The amount of time before the health check is considered failed. + # Corresponds to the JSON property `timeout` + # @return [String] + attr_accessor :timeout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disable_health_check = args[:disable_health_check] unless args[:disable_health_check].nil? + @host = args[:host] unless args[:host].nil? + @healthy_threshold = args[:healthy_threshold] unless args[:healthy_threshold].nil? + @unhealthy_threshold = args[:unhealthy_threshold] unless args[:unhealthy_threshold].nil? + @restart_threshold = args[:restart_threshold] unless args[:restart_threshold].nil? + @check_interval = args[:check_interval] unless args[:check_interval].nil? + @timeout = args[:timeout] unless args[:timeout].nil? + end + end + + # Code and application artifacts used to deploy a version to App Engine. + class Deployment + include Google::Apis::Core::Hashable + + # A manifest of files stored in Google Cloud Storage which should be included as + # part of this application. All files must be readable using the credentials + # supplied with this call. + # Corresponds to the JSON property `files` + # @return [Hash] + attr_accessor :files + + # A Docker (container) image which should be used to start the application. + # Corresponds to the JSON property `container` + # @return [Google::Apis::AppengineV1beta4::ContainerInfo] + attr_accessor :container + + # The origin of the source code for this deployment. There can be more than one + # source reference per Version if source code is distributed among multiple + # repositories. + # Corresponds to the JSON property `sourceReferences` + # @return [Array] + attr_accessor :source_references + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @files = args[:files] unless args[:files].nil? + @container = args[:container] unless args[:container].nil? + @source_references = args[:source_references] unless args[:source_references].nil? + end + end + + # A single source file which is part of the application to be deployed. + class FileInfo + include Google::Apis::Core::Hashable + + # The URL source to use to fetch this file. Must be a URL to a resource in + # Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. + # Corresponds to the JSON property `sourceUrl` + # @return [String] + attr_accessor :source_url + + # The SHA1 (160 bits) hash of the file in hex. + # Corresponds to the JSON property `sha1Sum` + # @return [String] + attr_accessor :sha1_sum + + # The MIME type of the file; if unspecified, the value from Google Cloud Storage + # will be used. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_url = args[:source_url] unless args[:source_url].nil? + @sha1_sum = args[:sha1_sum] unless args[:sha1_sum].nil? + @mime_type = args[:mime_type] unless args[:mime_type].nil? + end + end + + # A Docker (container) image which should be used to start the application. + class ContainerInfo + include Google::Apis::Core::Hashable + + # Reference to a hosted container image. Must be a URI to a resource in a Docker + # repository. Must be fully qualified, including tag or digest. e.g. gcr.io/my- + # project/image:tag or gcr.io/my-project/image@digest + # Corresponds to the JSON property `image` + # @return [String] + attr_accessor :image + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image = args[:image] unless args[:image].nil? + end + end + + # A reference to a particular snapshot of the source tree used to build and + # deploy the application. + class SourceReference + include Google::Apis::Core::Hashable + + # Optional. A URI string identifying the repository. Example: "https://source. + # developers.google.com/p/app-123/r/default" + # Corresponds to the JSON property `repository` + # @return [String] + attr_accessor :repository + + # The canonical (and persistent) identifier of the deployed revision, i.e. any + # kind of aliases including tags or branch names are not allowed. Example (git): + # "2198322f89e0bb2e25021667c2ed489d1fd34e6b" + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @repository = args[:repository] unless args[:repository].nil? + @revision_id = args[:revision_id] unless args[:revision_id].nil? + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping above, the `name` + # should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # If the value is `false`, it means the operation is still in progress. If true, + # the operation is completed, and either `error` or `response` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of google. + # rpc.Code, but it may accept additional error codes if needed. The error + # message should be a developer-facing English message that helps developers * + # understand* and *resolve* the error. If a localized user-facing error message + # is needed, put the localized message in the error details or localize it in + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments, + # either with or without APIs, to provide a consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::AppengineV1beta4::Status] + attr_accessor :error + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @metadata = args[:metadata] unless args[:metadata].nil? + @done = args[:done] unless args[:done].nil? + @error = args[:error] unless args[:error].nil? + @response = args[:response] unless args[:response].nil? + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of google. + # rpc.Code, but it may accept additional error codes if needed. The error + # message should be a developer-facing English message that helps developers * + # understand* and *resolve* the error. If a localized user-facing error message + # is needed, put the localized message in the error details or localize it in + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments, + # either with or without APIs, to provide a consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # A list of messages that carry the error details. There will be a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @message = args[:message] unless args[:message].nil? + @details = args[:details] unless args[:details].nil? + end + end + + # Response message for `Versions.ListVersions`. + class ListVersionsResponse + include Google::Apis::Core::Hashable + + # The versions belonging to the requested application module. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + # Continuation token for fetching the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @versions = args[:versions] unless args[:versions].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A module is a component of an application that provides a single service or + # configuration. A module has a collection of versions that define a specific + # set of code used to implement the functionality of that module. + class Module + include Google::Apis::Core::Hashable + + # The full path to the Module resource in the API. Example: "apps/myapp/modules/ + # default" @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The relative name/path of the module within the application. Example: "default" + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Configuration for traffic splitting for versions within a single module. + # Traffic splitting allows traffic directed to the module to be assigned to one + # of several versions in a fractional way, enabling experiments and canarying + # new builds, for example. + # Corresponds to the JSON property `split` + # @return [Google::Apis::AppengineV1beta4::TrafficSplit] + attr_accessor :split + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @id = args[:id] unless args[:id].nil? + @split = args[:split] unless args[:split].nil? + end + end + + # Configuration for traffic splitting for versions within a single module. + # Traffic splitting allows traffic directed to the module to be assigned to one + # of several versions in a fractional way, enabling experiments and canarying + # new builds, for example. + class TrafficSplit + include Google::Apis::Core::Hashable + + # Which mechanism should be used as a selector when choosing a version to send a + # request to. The traffic selection algorithm will be stable for either type + # until allocations are changed. + # Corresponds to the JSON property `shardBy` + # @return [String] + attr_accessor :shard_by + + # Mapping from module version IDs within the module to fractional (0.000, 1] + # allocations of traffic for that version. Each version may only be specified + # once, but some versions in the module may not have any traffic allocation. + # Modules that have traffic allocated in this field may not be deleted until the + # module is deleted, or their traffic allocation is removed. Allocations must + # sum to 1. Supports precision up to two decimal places for IP-based splits and + # up to three decimal places for cookie-based splits. + # Corresponds to the JSON property `allocations` + # @return [Hash] + attr_accessor :allocations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @shard_by = args[:shard_by] unless args[:shard_by].nil? + @allocations = args[:allocations] unless args[:allocations].nil? + end + end + + # Response message for `Modules.ListModules`. + class ListModulesResponse + include Google::Apis::Core::Hashable + + # The modules belonging to the requested application. + # Corresponds to the JSON property `modules` + # @return [Array] + attr_accessor :modules + + # Continuation token for fetching the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @modules = args[:modules] unless args[:modules].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operations = args[:operations] unless args[:operations].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Metadata for the given google.longrunning.Operation. + class OperationMetadata + include Google::Apis::Core::Hashable + + # The type of the operation (deprecated, use method field instead). Example: " + # create_version". @OutputOnly + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # Timestamp that this operation was received. @OutputOnly + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # Timestamp that this operation was completed. (Not present if the operation is + # still in progress.) @OutputOnly + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The user who requested this operation. @OutputOnly + # Corresponds to the JSON property `user` + # @return [String] + attr_accessor :user + + # Resource that this operation is acting on. Example: "apps/myapp/modules/ + # default". @OutputOnly + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # API method name that initiated the operation. Example: "google.appengine. + # v1beta4.Version.CreateVersion". @OutputOnly + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_type = args[:operation_type] unless args[:operation_type].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? + @end_time = args[:end_time] unless args[:end_time].nil? + @user = args[:user] unless args[:user].nil? + @target = args[:target] unless args[:target].nil? + @method_prop = args[:method_prop] unless args[:method_prop].nil? + end + end + end + end +end diff --git a/generated/google/apis/appengine_v1beta4/representations.rb b/generated/google/apis/appengine_v1beta4/representations.rb new file mode 100644 index 000000000..0f49b020e --- /dev/null +++ b/generated/google/apis/appengine_v1beta4/representations.rb @@ -0,0 +1,526 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AppengineV1beta4 + + class Application + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UrlDispatchRule + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Version + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AutomaticScaling + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CpuUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RequestUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DiskUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class NetworkUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BasicScaling + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ManualScaling + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Network + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Resources + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UrlMap + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class StaticFilesHandler + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class StaticDirectoryHandler + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ScriptHandler + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ApiEndpointHandler + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ErrorHandler + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Library + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ApiConfigHandler + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class HealthCheck + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Deployment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class FileInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ContainerInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SourceReference + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Module + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TrafficSplit + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListModulesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Application + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :id, as: 'id' + collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1beta4::UrlDispatchRule, decorator: Google::Apis::AppengineV1beta4::UrlDispatchRule::Representation + + property :location, as: 'location' + property :code_bucket, as: 'codeBucket' + end + end + + class UrlDispatchRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :domain, as: 'domain' + property :path, as: 'path' + property :module, as: 'module' + end + end + + class Version + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :id, as: 'id' + property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1beta4::AutomaticScaling, decorator: Google::Apis::AppengineV1beta4::AutomaticScaling::Representation + + property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1beta4::BasicScaling, decorator: Google::Apis::AppengineV1beta4::BasicScaling::Representation + + property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1beta4::ManualScaling, decorator: Google::Apis::AppengineV1beta4::ManualScaling::Representation + + collection :inbound_services, as: 'inboundServices' + property :instance_class, as: 'instanceClass' + property :network, as: 'network', class: Google::Apis::AppengineV1beta4::Network, decorator: Google::Apis::AppengineV1beta4::Network::Representation + + property :resources, as: 'resources', class: Google::Apis::AppengineV1beta4::Resources, decorator: Google::Apis::AppengineV1beta4::Resources::Representation + + property :runtime, as: 'runtime' + property :threadsafe, as: 'threadsafe' + property :vm, as: 'vm' + hash :beta_settings, as: 'betaSettings' + property :env, as: 'env' + property :serving_status, as: 'servingStatus' + property :deployer, as: 'deployer' + property :creation_time, as: 'creationTime' + collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1beta4::UrlMap, decorator: Google::Apis::AppengineV1beta4::UrlMap::Representation + + collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta4::ErrorHandler, decorator: Google::Apis::AppengineV1beta4::ErrorHandler::Representation + + collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1beta4::Library, decorator: Google::Apis::AppengineV1beta4::Library::Representation + + property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1beta4::ApiConfigHandler, decorator: Google::Apis::AppengineV1beta4::ApiConfigHandler::Representation + + hash :env_variables, as: 'envVariables' + property :default_expiration, as: 'defaultExpiration' + property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1beta4::HealthCheck, decorator: Google::Apis::AppengineV1beta4::HealthCheck::Representation + + property :nobuild_files_regex, as: 'nobuildFilesRegex' + property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta4::Deployment, decorator: Google::Apis::AppengineV1beta4::Deployment::Representation + + end + end + + class AutomaticScaling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cool_down_period, as: 'coolDownPeriod' + property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1beta4::CpuUtilization, decorator: Google::Apis::AppengineV1beta4::CpuUtilization::Representation + + property :max_concurrent_requests, as: 'maxConcurrentRequests' + property :max_idle_instances, as: 'maxIdleInstances' + property :max_total_instances, as: 'maxTotalInstances' + property :max_pending_latency, as: 'maxPendingLatency' + property :min_idle_instances, as: 'minIdleInstances' + property :min_total_instances, as: 'minTotalInstances' + property :min_pending_latency, as: 'minPendingLatency' + property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1beta4::RequestUtilization, decorator: Google::Apis::AppengineV1beta4::RequestUtilization::Representation + + property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta4::DiskUtilization, decorator: Google::Apis::AppengineV1beta4::DiskUtilization::Representation + + property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1beta4::NetworkUtilization, decorator: Google::Apis::AppengineV1beta4::NetworkUtilization::Representation + + end + end + + class CpuUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :aggregation_window_length, as: 'aggregationWindowLength' + property :target_utilization, as: 'targetUtilization' + end + end + + class RequestUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :target_request_count_per_sec, as: 'targetRequestCountPerSec' + property :target_concurrent_requests, as: 'targetConcurrentRequests' + end + end + + class DiskUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :target_write_bytes_per_sec, as: 'targetWriteBytesPerSec' + property :target_write_ops_per_sec, as: 'targetWriteOpsPerSec' + property :target_read_bytes_per_sec, as: 'targetReadBytesPerSec' + property :target_read_ops_per_sec, as: 'targetReadOpsPerSec' + end + end + + class NetworkUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :target_sent_bytes_per_sec, as: 'targetSentBytesPerSec' + property :target_sent_packets_per_sec, as: 'targetSentPacketsPerSec' + property :target_received_bytes_per_sec, as: 'targetReceivedBytesPerSec' + property :target_received_packets_per_sec, as: 'targetReceivedPacketsPerSec' + end + end + + class BasicScaling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :idle_timeout, as: 'idleTimeout' + property :max_instances, as: 'maxInstances' + end + end + + class ManualScaling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instances, as: 'instances' + end + end + + class Network + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :forwarded_ports, as: 'forwardedPorts' + property :instance_tag, as: 'instanceTag' + property :name, as: 'name' + end + end + + class Resources + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpu, as: 'cpu' + property :disk_gb, as: 'diskGb' + property :memory_gb, as: 'memoryGb' + end + end + + class UrlMap + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url_regex, as: 'urlRegex' + property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1beta4::StaticFilesHandler, decorator: Google::Apis::AppengineV1beta4::StaticFilesHandler::Representation + + property :static_directory, as: 'staticDirectory', class: Google::Apis::AppengineV1beta4::StaticDirectoryHandler, decorator: Google::Apis::AppengineV1beta4::StaticDirectoryHandler::Representation + + property :script, as: 'script', class: Google::Apis::AppengineV1beta4::ScriptHandler, decorator: Google::Apis::AppengineV1beta4::ScriptHandler::Representation + + property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1beta4::ApiEndpointHandler, decorator: Google::Apis::AppengineV1beta4::ApiEndpointHandler::Representation + + property :security_level, as: 'securityLevel' + property :login, as: 'login' + property :auth_fail_action, as: 'authFailAction' + property :redirect_http_response_code, as: 'redirectHttpResponseCode' + end + end + + class StaticFilesHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path, as: 'path' + property :upload_path_regex, as: 'uploadPathRegex' + hash :http_headers, as: 'httpHeaders' + property :mime_type, as: 'mimeType' + property :expiration, as: 'expiration' + property :require_matching_file, as: 'requireMatchingFile' + property :application_readable, as: 'applicationReadable' + end + end + + class StaticDirectoryHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :directory, as: 'directory' + hash :http_headers, as: 'httpHeaders' + property :mime_type, as: 'mimeType' + property :expiration, as: 'expiration' + property :require_matching_file, as: 'requireMatchingFile' + property :application_readable, as: 'applicationReadable' + end + end + + class ScriptHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :script_path, as: 'scriptPath' + end + end + + class ApiEndpointHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :script_path, as: 'scriptPath' + end + end + + class ErrorHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_code, as: 'errorCode' + property :static_file, as: 'staticFile' + property :mime_type, as: 'mimeType' + end + end + + class Library + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :version, as: 'version' + end + end + + class ApiConfigHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auth_fail_action, as: 'authFailAction' + property :login, as: 'login' + property :script, as: 'script' + property :security_level, as: 'securityLevel' + property :url, as: 'url' + end + end + + class HealthCheck + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disable_health_check, as: 'disableHealthCheck' + property :host, as: 'host' + property :healthy_threshold, as: 'healthyThreshold' + property :unhealthy_threshold, as: 'unhealthyThreshold' + property :restart_threshold, as: 'restartThreshold' + property :check_interval, as: 'checkInterval' + property :timeout, as: 'timeout' + end + end + + class Deployment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :files, as: 'files', class: Google::Apis::AppengineV1beta4::FileInfo, decorator: Google::Apis::AppengineV1beta4::FileInfo::Representation + + property :container, as: 'container', class: Google::Apis::AppengineV1beta4::ContainerInfo, decorator: Google::Apis::AppengineV1beta4::ContainerInfo::Representation + + collection :source_references, as: 'sourceReferences', class: Google::Apis::AppengineV1beta4::SourceReference, decorator: Google::Apis::AppengineV1beta4::SourceReference::Representation + + end + end + + class FileInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source_url, as: 'sourceUrl' + property :sha1_sum, as: 'sha1Sum' + property :mime_type, as: 'mimeType' + end + end + + class ContainerInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image, as: 'image' + end + end + + class SourceReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :repository, as: 'repository' + property :revision_id, as: 'revisionId' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + hash :metadata, as: 'metadata' + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::AppengineV1beta4::Status, decorator: Google::Apis::AppengineV1beta4::Status::Representation + + hash :response, as: 'response' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :message, as: 'message' + collection :details, as: 'details' + end + end + + class ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :versions, as: 'versions', class: Google::Apis::AppengineV1beta4::Version, decorator: Google::Apis::AppengineV1beta4::Version::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Module + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :id, as: 'id' + property :split, as: 'split', class: Google::Apis::AppengineV1beta4::TrafficSplit, decorator: Google::Apis::AppengineV1beta4::TrafficSplit::Representation + + end + end + + class TrafficSplit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :shard_by, as: 'shardBy' + hash :allocations, as: 'allocations' + end + end + + class ListModulesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :modules, as: 'modules', class: Google::Apis::AppengineV1beta4::Module, decorator: Google::Apis::AppengineV1beta4::Module::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::AppengineV1beta4::Operation, decorator: Google::Apis::AppengineV1beta4::Operation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_type, as: 'operationType' + property :insert_time, as: 'insertTime' + property :end_time, as: 'endTime' + property :user, as: 'user' + property :target, as: 'target' + property :method_prop, as: 'method' + end + end + end + end +end diff --git a/generated/google/apis/appengine_v1beta4/service.rb b/generated/google/apis/appengine_v1beta4/service.rb new file mode 100644 index 000000000..c1f5beae7 --- /dev/null +++ b/generated/google/apis/appengine_v1beta4/service.rb @@ -0,0 +1,476 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AppengineV1beta4 + # Google App Engine Admin API + # + # The Google App Engine Admin API enables developers to provision and manage + # their App Engine applications. + # + # @example + # require 'google/apis/appengine_v1beta4' + # + # Appengine = Google::Apis::AppengineV1beta4 # Alias the module + # service = Appengine::AppengineService.new + # + # @see https://cloud.google.com/appengine/docs/admin-api/ + class AppengineService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://appengine.googleapis.com/', '') + end + + # Gets information about an application. + # @param [String] apps_id + # Part of `name`. Name of the application to get. For example: "apps/myapp". + # @param [Boolean] ensure_resources_exist + # Certain resources associated with an application are created on-demand. + # Controls whether these resources should be created when performing the `GET` + # operation. If specified and any resources cloud not be created, the request + # will fail with an error code. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Application] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Application] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_app(apps_id, ensure_resources_exist: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta4/apps/{appsId}', options) + command.response_representation = Google::Apis::AppengineV1beta4::Application::Representation + command.response_class = Google::Apis::AppengineV1beta4::Application + command.params['appsId'] = apps_id unless apps_id.nil? + command.query['ensureResourcesExist'] = ensure_resources_exist unless ensure_resources_exist.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a module and all enclosed versions. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # modules/default". + # @param [String] modules_id + # Part of `name`. See documentation of `appsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_app_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}', options) + command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta4::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['modulesId'] = modules_id unless modules_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the current configuration of the module. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # modules/default". + # @param [String] modules_id + # Part of `name`. See documentation of `appsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Module] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Module] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_app_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}', options) + command.response_representation = Google::Apis::AppengineV1beta4::Module::Representation + command.response_class = Google::Apis::AppengineV1beta4::Module + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['modulesId'] = modules_id unless modules_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the modules in the application. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp". + # @param [Fixnum] page_size + # Maximum results to return per page. + # @param [String] page_token + # Continuation token for fetching the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::ListModulesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::ListModulesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_app_modules(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules', options) + command.response_representation = Google::Apis::AppengineV1beta4::ListModulesResponse::Representation + command.response_class = Google::Apis::AppengineV1beta4::ListModulesResponse + command.params['appsId'] = apps_id unless apps_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the configuration of the specified module. + # @param [String] apps_id + # Part of `name`. Name of the resource to update. For example: "apps/myapp/ + # modules/default". + # @param [String] modules_id + # Part of `name`. See documentation of `appsId`. + # @param [Google::Apis::AppengineV1beta4::Module] module_object + # @param [String] mask + # Standard field mask for the set of fields to be updated. + # @param [Boolean] migrate_traffic + # Whether to use Traffic Migration to shift traffic gradually. Traffic can only + # be migrated from a single version to another single version. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_app_module(apps_id, modules_id, module_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta4/apps/{appsId}/modules/{modulesId}', options) + command.request_representation = Google::Apis::AppengineV1beta4::Module::Representation + command.request_object = module_object + command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta4::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['modulesId'] = modules_id unless modules_id.nil? + command.query['mask'] = mask unless mask.nil? + command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deploys new code and resource files to a version. + # @param [String] apps_id + # Part of `name`. Name of the resource to update. For example: "apps/myapp/ + # modules/default". + # @param [String] modules_id + # Part of `name`. See documentation of `appsId`. + # @param [Google::Apis::AppengineV1beta4::Version] version_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_app_module_version(apps_id, modules_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options) + command.request_representation = Google::Apis::AppengineV1beta4::Version::Representation + command.request_object = version_object + command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta4::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['modulesId'] = modules_id unless modules_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing version. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # modules/default/versions/v1". + # @param [String] modules_id + # Part of `name`. See documentation of `appsId`. + # @param [String] versions_id + # Part of `name`. See documentation of `appsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_app_module_version(apps_id, modules_id, versions_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options) + command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta4::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['modulesId'] = modules_id unless modules_id.nil? + command.params['versionsId'] = versions_id unless versions_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets application deployment information. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # modules/default/versions/v1". + # @param [String] modules_id + # Part of `name`. See documentation of `appsId`. + # @param [String] versions_id + # Part of `name`. See documentation of `appsId`. + # @param [String] view + # Controls the set of fields returned in the `Get` response. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Version] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_app_module_version(apps_id, modules_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options) + command.response_representation = Google::Apis::AppengineV1beta4::Version::Representation + command.response_class = Google::Apis::AppengineV1beta4::Version + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['modulesId'] = modules_id unless modules_id.nil? + command.params['versionsId'] = versions_id unless versions_id.nil? + command.query['view'] = view unless view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the versions of a module. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # modules/default". + # @param [String] modules_id + # Part of `name`. See documentation of `appsId`. + # @param [String] view + # Controls the set of fields returned in the `List` response. + # @param [Fixnum] page_size + # Maximum results to return per page. + # @param [String] page_token + # Continuation token for fetching the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::ListVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_app_module_versions(apps_id, modules_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options) + command.response_representation = Google::Apis::AppengineV1beta4::ListVersionsResponse::Representation + command.response_class = Google::Apis::AppengineV1beta4::ListVersionsResponse + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['modulesId'] = modules_id unless modules_id.nil? + command.query['view'] = view unless view.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] apps_id + # Part of `name`. The name of the operation resource. + # @param [String] operations_id + # Part of `name`. See documentation of `appsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta4/apps/{appsId}/operations/{operationsId}', options) + command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta4::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['operationsId'] = operations_id unless operations_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding below allows API services to override the binding to use different + # resource name schemes, such as `users/*/operations`. + # @param [String] apps_id + # Part of `name`. The name of the operation collection. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AppengineV1beta4::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta4::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta4/apps/{appsId}/operations', options) + command.response_representation = Google::Apis::AppengineV1beta4::ListOperationsResponse::Representation + command.response_class = Google::Apis::AppengineV1beta4::ListOperationsResponse + command.params['appsId'] = apps_id unless apps_id.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/appsactivity_v1/service.rb b/generated/google/apis/appsactivity_v1/service.rb index 9a9850ef8..774761624 100644 --- a/generated/google/apis/appsactivity_v1/service.rb +++ b/generated/google/apis/appsactivity_v1/service.rb @@ -99,8 +99,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_activities(drive_ancestor_id: nil, drive_file_id: nil, grouping_strategy: nil, page_size: nil, page_token: nil, source: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities', options) command.response_representation = Google::Apis::AppsactivityV1::ListActivitiesResponse::Representation command.response_class = Google::Apis::AppsactivityV1::ListActivitiesResponse command.query['drive.ancestorId'] = drive_ancestor_id unless drive_ancestor_id.nil? diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index e2258d4be..89fbdaac9 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '20150728' + REVISION = '20151125' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/appstate_v1/service.rb b/generated/google/apis/appstate_v1/service.rb index 160bde640..b7aa6662c 100644 --- a/generated/google/apis/appstate_v1/service.rb +++ b/generated/google/apis/appstate_v1/service.rb @@ -82,8 +82,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def clear_state(state_key, current_data_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'states/{stateKey}/clear' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'states/{stateKey}/clear', options) command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation command.response_class = Google::Apis::AppstateV1::WriteResult command.params['stateKey'] = state_key unless state_key.nil? @@ -123,8 +122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'states/{stateKey}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'states/{stateKey}', options) command.params['stateKey'] = state_key unless state_key.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -158,8 +156,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'states/{stateKey}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'states/{stateKey}', options) command.response_representation = Google::Apis::AppstateV1::GetResponse::Representation command.response_class = Google::Apis::AppstateV1::GetResponse command.params['stateKey'] = state_key unless state_key.nil? @@ -194,8 +191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_states(include_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'states' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'states', options) command.response_representation = Google::Apis::AppstateV1::ListResponse::Representation command.response_class = Google::Apis::AppstateV1::ListResponse command.query['includeData'] = include_data unless include_data.nil? @@ -237,9 +233,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update(state_key, update_request_object = nil, current_state_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'states/{stateKey}' - command = make_simple_command(:put, path, options) + def update_state(state_key, update_request_object = nil, current_state_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'states/{stateKey}', options) command.request_representation = Google::Apis::AppstateV1::UpdateRequest::Representation command.request_object = update_request_object command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation diff --git a/generated/google/apis/autoscaler_v1beta2/service.rb b/generated/google/apis/autoscaler_v1beta2/service.rb index 2ede2f782..bd57dbb81 100644 --- a/generated/google/apis/autoscaler_v1beta2/service.rb +++ b/generated/google/apis/autoscaler_v1beta2/service.rb @@ -82,8 +82,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation command.response_class = Google::Apis::AutoscalerV1beta2::Operation command.params['project'] = project unless project.nil? @@ -124,8 +123,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation command.response_class = Google::Apis::AutoscalerV1beta2::Autoscaler command.params['project'] = project unless project.nil? @@ -165,8 +163,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/zones/{zone}/autoscalers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation @@ -209,8 +206,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/zones/{zone}/autoscalers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers', options) command.response_representation = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse::Representation command.response_class = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse command.params['project'] = project unless project.nil? @@ -255,8 +251,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation @@ -300,8 +295,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation @@ -341,8 +335,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations/{operation}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['operation'] = operation unless operation.nil? @@ -378,8 +371,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options) command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation command.response_class = Google::Apis::AutoscalerV1beta2::Operation command.params['project'] = project unless project.nil? @@ -419,8 +411,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations', options) command.response_representation = Google::Apis::AutoscalerV1beta2::OperationList::Representation command.response_class = Google::Apis::AutoscalerV1beta2::OperationList command.params['project'] = project unless project.nil? @@ -461,8 +452,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zones(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones', options) command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index cf97f9807..13ccfe296 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20150723' + REVISION = '20151116' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' @@ -36,6 +36,9 @@ module Google # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 4589d8d56..2c6f38fb6 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -406,12 +406,130 @@ module Google end end + # + class ExplainQueryStage + include Google::Apis::Core::Hashable + + # Relative amount of time the average shard spent on CPU-bound tasks. + # Corresponds to the JSON property `computeRatioAvg` + # @return [Float] + attr_accessor :compute_ratio_avg + + # Relative amount of time the slowest shard spent on CPU-bound tasks. + # Corresponds to the JSON property `computeRatioMax` + # @return [Float] + attr_accessor :compute_ratio_max + + # Unique ID for stage within plan. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Human-readable name for stage. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Relative amount of time the average shard spent reading input. + # Corresponds to the JSON property `readRatioAvg` + # @return [Float] + attr_accessor :read_ratio_avg + + # Relative amount of time the slowest shard spent reading input. + # Corresponds to the JSON property `readRatioMax` + # @return [Float] + attr_accessor :read_ratio_max + + # Number of records read into the stage. + # Corresponds to the JSON property `recordsRead` + # @return [String] + attr_accessor :records_read + + # Number of records written by the stage. + # Corresponds to the JSON property `recordsWritten` + # @return [String] + attr_accessor :records_written + + # List of operations within the stage in dependency order (approximately + # chronological). + # Corresponds to the JSON property `steps` + # @return [Array] + attr_accessor :steps + + # Relative amount of time the average shard spent waiting to be scheduled. + # Corresponds to the JSON property `waitRatioAvg` + # @return [Float] + attr_accessor :wait_ratio_avg + + # Relative amount of time the slowest shard spent waiting to be scheduled. + # Corresponds to the JSON property `waitRatioMax` + # @return [Float] + attr_accessor :wait_ratio_max + + # Relative amount of time the average shard spent on writing output. + # Corresponds to the JSON property `writeRatioAvg` + # @return [Float] + attr_accessor :write_ratio_avg + + # Relative amount of time the slowest shard spent on writing output. + # Corresponds to the JSON property `writeRatioMax` + # @return [Float] + attr_accessor :write_ratio_max + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compute_ratio_avg = args[:compute_ratio_avg] unless args[:compute_ratio_avg].nil? + @compute_ratio_max = args[:compute_ratio_max] unless args[:compute_ratio_max].nil? + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @read_ratio_avg = args[:read_ratio_avg] unless args[:read_ratio_avg].nil? + @read_ratio_max = args[:read_ratio_max] unless args[:read_ratio_max].nil? + @records_read = args[:records_read] unless args[:records_read].nil? + @records_written = args[:records_written] unless args[:records_written].nil? + @steps = args[:steps] unless args[:steps].nil? + @wait_ratio_avg = args[:wait_ratio_avg] unless args[:wait_ratio_avg].nil? + @wait_ratio_max = args[:wait_ratio_max] unless args[:wait_ratio_max].nil? + @write_ratio_avg = args[:write_ratio_avg] unless args[:write_ratio_avg].nil? + @write_ratio_max = args[:write_ratio_max] unless args[:write_ratio_max].nil? + end + end + + # + class ExplainQueryStep + include Google::Apis::Core::Hashable + + # Machine-readable operation type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Human-readable stage descriptions. + # Corresponds to the JSON property `substeps` + # @return [Array] + attr_accessor :substeps + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @substeps = args[:substeps] unless args[:substeps].nil? + end + end + # class ExternalDataConfiguration include Google::Apis::Core::Hashable # [Optional] The compression type of the data source. Possible values include - # GZIP and NONE. The default value is NONE. + # GZIP and NONE. The default value is NONE. This setting is ignored for Google + # Cloud Datastore backups. # Corresponds to the JSON property `compression` # @return [String] attr_accessor :compression @@ -426,7 +544,8 @@ module Google # false, records with extra columns are treated as bad records, and if there are # too many bad records, an invalid error is returned in the job result. The # default value is false. The sourceFormat property determines what BigQuery - # treats as an extra value: CSV: Trailing columns + # treats as an extra value: CSV: Trailing columns JSON: Named values that don't + # match any column names Google Cloud Datastore backups: This setting is ignored. # Corresponds to the JSON property `ignoreUnknownValues` # @return [Boolean] attr_accessor :ignore_unknown_values @@ -435,26 +554,31 @@ module Google # [Optional] The maximum number of bad records that BigQuery can ignore when # reading data. If the number of bad records exceeds this value, an invalid # error is returned in the job result. The default value is 0, which requires - # that all records are valid. + # that all records are valid. This setting is ignored for Google Cloud Datastore + # backups. # Corresponds to the JSON property `maxBadRecords` # @return [Fixnum] attr_accessor :max_bad_records - # [Required] The schema for the data. + # [Optional] The schema for the data. Schema is required for CSV and JSON + # formats. Schema is disallowed for Google Cloud Datastore backups. # Corresponds to the JSON property `schema` # @return [Google::Apis::BigqueryV2::TableSchema] attr_accessor :schema - # [Optional] The data format. External data sources must be in CSV format. The - # default value is CSV. + # [Required] The data format. For CSV files, specify "CSV". For newline- + # delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Google Cloud Datastore + # backups, specify "DATASTORE_BACKUP". # Corresponds to the JSON property `sourceFormat` # @return [String] attr_accessor :source_format # [Required] The fully-qualified URIs that point to your data in Google Cloud # Storage. Each URI can contain one '*' wildcard character and it must come - # after the 'bucket' name. CSV limits related to load jobs apply to external + # after the 'bucket' name. Size limits related to load jobs apply to external # data sources, plus an additional limit of 10 GB maximum size across all URIs. + # For Google Cloud Datastore backups, exactly one URI can be specified, and it + # must end with '.backup_info'. Also, the '*' wildcard character is not allowed. # Corresponds to the JSON property `sourceUris` # @return [Array] attr_accessor :source_uris @@ -485,6 +609,13 @@ module Google attr_accessor :cache_hit alias_method :cache_hit?, :cache_hit + # [Output-only] All errors and warnings encountered during the running of the + # job. Errors here do not necessarily mean that the job has completed or was + # unsuccessful. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + # A hash of this response. # Corresponds to the JSON property `etag` # @return [String] @@ -548,6 +679,7 @@ module Google # Update properties of this object def update!(**args) @cache_hit = args[:cache_hit] unless args[:cache_hit].nil? + @errors = args[:errors] unless args[:errors].nil? @etag = args[:etag] unless args[:etag].nil? @job_complete = args[:job_complete] unless args[:job_complete].nil? @job_reference = args[:job_reference] unless args[:job_reference].nil? @@ -1353,13 +1485,29 @@ module Google class JobStatistics2 include Google::Apis::Core::Hashable + # [Output-only] Billing tier for the job. + # Corresponds to the JSON property `billingTier` + # @return [Fixnum] + attr_accessor :billing_tier + # [Output-only] Whether the query result was fetched from the query cache. # Corresponds to the JSON property `cacheHit` # @return [Boolean] attr_accessor :cache_hit alias_method :cache_hit?, :cache_hit - # [Output-only] Total bytes processed for this job. + # [Output-only, Experimental] Describes execution plan for the query as a list + # of stages. + # Corresponds to the JSON property `queryPlan` + # @return [Array] + attr_accessor :query_plan + + # [Output-only] Total bytes billed for the job. + # Corresponds to the JSON property `totalBytesBilled` + # @return [String] + attr_accessor :total_bytes_billed + + # [Output-only] Total bytes processed for the job. # Corresponds to the JSON property `totalBytesProcessed` # @return [String] attr_accessor :total_bytes_processed @@ -1370,7 +1518,10 @@ module Google # Update properties of this object def update!(**args) + @billing_tier = args[:billing_tier] unless args[:billing_tier].nil? @cache_hit = args[:cache_hit] unless args[:cache_hit].nil? + @query_plan = args[:query_plan] unless args[:query_plan].nil? + @total_bytes_billed = args[:total_bytes_billed] unless args[:total_bytes_billed].nil? @total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil? end end @@ -1379,7 +1530,7 @@ module Google class JobStatistics3 include Google::Apis::Core::Hashable - # [Output-only] Number of bytes of source data in a joad job. + # [Output-only] Number of bytes of source data in a load job. # Corresponds to the JSON property `inputFileBytes` # @return [String] attr_accessor :input_file_bytes @@ -1389,8 +1540,8 @@ module Google # @return [String] attr_accessor :input_files - # [Output-only] Size of the loaded data in bytes. Note that while an import job - # is in the running state, this value may change. + # [Output-only] Size of the loaded data in bytes. Note that while a load job is + # in the running state, this value may change. # Corresponds to the JSON property `outputBytes` # @return [String] attr_accessor :output_bytes @@ -1418,7 +1569,7 @@ module Google class JobStatistics4 include Google::Apis::Core::Hashable - # [Experimental] Number of files per destination URI or URI pattern specified in + # [Output-only] Number of files per destination URI or URI pattern specified in # the extract configuration. These values will be in the same order as the URIs # specified in the 'destinationUris' field. # Corresponds to the JSON property `destinationUriFileCounts` @@ -1666,6 +1817,13 @@ module Google attr_accessor :cache_hit alias_method :cache_hit?, :cache_hit + # [Output-only] All errors and warnings encountered during the running of the + # job. Errors here do not necessarily mean that the job has completed or was + # unsuccessful. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + # Whether the query has completed or not. If rows or totalRows are present, this # will always be true. If this is false, totalRows will not be available. # Corresponds to the JSON property `jobComplete` @@ -1723,6 +1881,7 @@ module Google # Update properties of this object def update!(**args) @cache_hit = args[:cache_hit] unless args[:cache_hit].nil? + @errors = args[:errors] unless args[:errors].nil? @job_complete = args[:job_complete] unless args[:job_complete].nil? @job_reference = args[:job_reference] unless args[:job_reference].nil? @kind = args[:kind] unless args[:kind].nil? @@ -1734,6 +1893,40 @@ module Google end end + # + class Streamingbuffer + include Google::Apis::Core::Hashable + + # [Output-only] A lower-bound estimate of the number of bytes currently in the + # streaming buffer. + # Corresponds to the JSON property `estimatedBytes` + # @return [String] + attr_accessor :estimated_bytes + + # [Output-only] A lower-bound estimate of the number of rows currently in the + # streaming buffer. + # Corresponds to the JSON property `estimatedRows` + # @return [String] + attr_accessor :estimated_rows + + # [Output-only] Contains the timestamp of the oldest entry in the streaming + # buffer, in milliseconds since the epoch, if the streaming buffer is available. + # Corresponds to the JSON property `oldestEntryTime` + # @return [String] + attr_accessor :oldest_entry_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @estimated_bytes = args[:estimated_bytes] unless args[:estimated_bytes].nil? + @estimated_rows = args[:estimated_rows] unless args[:estimated_rows].nil? + @oldest_entry_time = args[:oldest_entry_time] unless args[:oldest_entry_time].nil? + end + end + # class Table include Google::Apis::Core::Hashable @@ -1795,14 +1988,14 @@ module Google # @return [String] attr_accessor :location - # [Output-only] The size of the table in bytes. This property is unavailable for - # tables that are actively receiving streaming inserts. + # [Output-only] The size of this table in bytes, excluding any data in the + # streaming buffer. # Corresponds to the JSON property `numBytes` # @return [String] attr_accessor :num_bytes - # [Output-only] The number of rows of data in this table. This property is - # unavailable for tables that are actively receiving streaming inserts. + # [Output-only] The number of rows of data in this table, excluding any data in + # the streaming buffer. # Corresponds to the JSON property `numRows` # @return [String] attr_accessor :num_rows @@ -1817,6 +2010,13 @@ module Google # @return [String] attr_accessor :self_link + # [Output-only] Contains information regarding this table's streaming buffer, if + # one is present. This field will be absent if the table is not being streamed + # to or if there is no data in the streaming buffer. + # Corresponds to the JSON property `streamingBuffer` + # @return [Google::Apis::BigqueryV2::Streamingbuffer] + attr_accessor :streaming_buffer + # [Required] Reference describing the ID of this table. # Corresponds to the JSON property `tableReference` # @return [Google::Apis::BigqueryV2::TableReference] @@ -1854,6 +2054,7 @@ module Google @num_rows = args[:num_rows] unless args[:num_rows].nil? @schema = args[:schema] unless args[:schema].nil? @self_link = args[:self_link] unless args[:self_link].nil? + @streaming_buffer = args[:streaming_buffer] unless args[:streaming_buffer].nil? @table_reference = args[:table_reference] unless args[:table_reference].nil? @type = args[:type] unless args[:type].nil? @view = args[:view] unless args[:view].nil? @@ -1909,6 +2110,13 @@ module Google attr_accessor :skip_invalid_rows alias_method :skip_invalid_rows?, :skip_invalid_rows + # [Experimental] If specified, treats the destination table as a base template, + # and inserts the rows into an instance table named "". BigQuery will manage + # creation of the instance table, using the schema of the base template table. + # Corresponds to the JSON property `templateSuffix` + # @return [String] + attr_accessor :template_suffix + def initialize(**args) update!(**args) end @@ -1919,6 +2127,7 @@ module Google @kind = args[:kind] unless args[:kind].nil? @rows = args[:rows] unless args[:rows].nil? @skip_invalid_rows = args[:skip_invalid_rows] unless args[:skip_invalid_rows].nil? + @template_suffix = args[:template_suffix] unless args[:template_suffix].nil? end # @@ -2285,6 +2494,11 @@ module Google # @return [String] attr_accessor :query + # [Experimental] Describes user-defined function resources used in the query. + # Corresponds to the JSON property `userDefinedFunctionResources` + # @return [Array] + attr_accessor :user_defined_function_resources + def initialize(**args) update!(**args) end @@ -2292,6 +2506,7 @@ module Google # Update properties of this object def update!(**args) @query = args[:query] unless args[:query].nil? + @user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil? end end end diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 254e5a8cc..2c2d446fd 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -50,6 +50,14 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class ExplainQueryStage + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExplainQueryStep + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ExternalDataConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -142,6 +150,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Streamingbuffer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Table class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -287,6 +299,34 @@ module Google end end + class ExplainQueryStage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compute_ratio_avg, as: 'computeRatioAvg' + property :compute_ratio_max, as: 'computeRatioMax' + property :id, as: 'id' + property :name, as: 'name' + property :read_ratio_avg, as: 'readRatioAvg' + property :read_ratio_max, as: 'readRatioMax' + property :records_read, as: 'recordsRead' + property :records_written, as: 'recordsWritten' + collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation + + property :wait_ratio_avg, as: 'waitRatioAvg' + property :wait_ratio_max, as: 'waitRatioMax' + property :write_ratio_avg, as: 'writeRatioAvg' + property :write_ratio_max, as: 'writeRatioMax' + end + end + + class ExplainQueryStep + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :substeps, as: 'substeps' + end + end + class ExternalDataConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -306,6 +346,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :cache_hit, as: 'cacheHit' + collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation + property :etag, as: 'etag' property :job_complete, as: 'jobComplete' property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation @@ -510,7 +552,11 @@ module Google class JobStatistics2 # @private class Representation < Google::Apis::Core::JsonRepresentation + property :billing_tier, as: 'billingTier' property :cache_hit, as: 'cacheHit' + collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation + + property :total_bytes_billed, as: 'totalBytesBilled' property :total_bytes_processed, as: 'totalBytesProcessed' end end @@ -593,6 +639,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :cache_hit, as: 'cacheHit' + collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation + property :job_complete, as: 'jobComplete' property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation @@ -607,6 +655,15 @@ module Google end end + class Streamingbuffer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :estimated_bytes, as: 'estimatedBytes' + property :estimated_rows, as: 'estimatedRows' + property :oldest_entry_time, as: 'oldestEntryTime' + end + end + class Table # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -626,6 +683,8 @@ module Google property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation property :self_link, as: 'selfLink' + property :streaming_buffer, as: 'streamingBuffer', class: Google::Apis::BigqueryV2::Streamingbuffer, decorator: Google::Apis::BigqueryV2::Streamingbuffer::Representation + property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation property :type, as: 'type' @@ -649,6 +708,7 @@ module Google collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row, decorator: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row::Representation property :skip_invalid_rows, as: 'skipInvalidRows' + property :template_suffix, as: 'templateSuffix' end class Row @@ -763,6 +823,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :query, as: 'query' + collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation + end end end diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb index b88b44fa3..9d4592fd6 100644 --- a/generated/google/apis/bigquery_v2/service.rb +++ b/generated/google/apis/bigquery_v2/service.rb @@ -85,8 +85,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'projects/{projectId}/datasets/{datasetId}', options) command.params['projectId'] = project_id unless project_id.nil? command.params['datasetId'] = dataset_id unless dataset_id.nil? command.query['deleteContents'] = delete_contents unless delete_contents.nil? @@ -123,8 +122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_dataset(project_id, dataset_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}', options) command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation command.response_class = Google::Apis::BigqueryV2::Dataset command.params['projectId'] = project_id unless project_id.nil? @@ -161,8 +159,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_dataset(project_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{projectId}/datasets', options) command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation @@ -206,8 +203,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_datasets(project_id, all: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/datasets', options) command.response_representation = Google::Apis::BigqueryV2::DatasetList::Representation command.response_class = Google::Apis::BigqueryV2::DatasetList command.params['projectId'] = project_id unless project_id.nil? @@ -251,8 +247,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'projects/{projectId}/datasets/{datasetId}', options) command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation @@ -295,8 +290,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'projects/{projectId}/datasets/{datasetId}', options) command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation @@ -311,7 +305,7 @@ module Google # Requests that a job be cancelled. This call will return immediately, and the # client will need to poll for the job status to see if the cancel completed - # successfully. + # successfully. Cancelled jobs may still incur costs. # @param [String] project_id # Project ID of the job to cancel # @param [String] job_id @@ -338,8 +332,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def cancel_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'project/{projectId}/jobs/{jobId}/cancel' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'project/{projectId}/jobs/{jobId}/cancel', options) command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation command.response_class = Google::Apis::BigqueryV2::CancelJobResponse command.params['projectId'] = project_id unless project_id.nil? @@ -379,8 +372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/jobs/{jobId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/jobs/{jobId}', options) command.response_representation = Google::Apis::BigqueryV2::Job::Representation command.response_class = Google::Apis::BigqueryV2::Job command.params['projectId'] = project_id unless project_id.nil? @@ -428,8 +420,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_job_query_results(project_id, job_id, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/queries/{jobId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/queries/{jobId}', options) command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse command.params['projectId'] = project_id unless project_id.nil? @@ -474,11 +465,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_job(project_id, job_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'projects/{projectId}/jobs' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{projectId}/jobs', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'projects/{projectId}/jobs', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -531,8 +521,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_jobs(project_id, all_users: nil, max_results: nil, page_token: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/jobs' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/jobs', options) command.response_representation = Google::Apis::BigqueryV2::JobList::Representation command.response_class = Google::Apis::BigqueryV2::JobList command.params['projectId'] = project_id unless project_id.nil? @@ -573,9 +562,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def query(project_id, query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/queries' - command = make_simple_command(:post, path, options) + def query_job(project_id, query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{projectId}/queries', options) command.request_representation = Google::Apis::BigqueryV2::QueryRequest::Representation command.request_object = query_request_object command.response_representation = Google::Apis::BigqueryV2::QueryResponse::Representation @@ -614,8 +602,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_projects(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects', options) command.response_representation = Google::Apis::BigqueryV2::ProjectList::Representation command.response_class = Google::Apis::BigqueryV2::ProjectList command.query['maxResults'] = max_results unless max_results.nil? @@ -657,8 +644,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', options) command.request_representation = Google::Apis::BigqueryV2::InsertAllTableDataRequest::Representation command.request_object = insert_all_table_data_request_object command.response_representation = Google::Apis::BigqueryV2::InsertAllTableDataResponse::Representation @@ -708,8 +694,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_table_data(project_id, dataset_id, table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', options) command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation command.response_class = Google::Apis::BigqueryV2::TableDataList command.params['projectId'] = project_id unless project_id.nil? @@ -754,8 +739,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options) command.params['projectId'] = project_id unless project_id.nil? command.params['datasetId'] = dataset_id unless dataset_id.nil? command.params['tableId'] = table_id unless table_id.nil? @@ -796,8 +780,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options) command.response_representation = Google::Apis::BigqueryV2::Table::Representation command.response_class = Google::Apis::BigqueryV2::Table command.params['projectId'] = project_id unless project_id.nil? @@ -837,8 +820,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_table(project_id, dataset_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables', options) command.request_representation = Google::Apis::BigqueryV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::BigqueryV2::Table::Representation @@ -882,8 +864,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tables(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables', options) command.response_representation = Google::Apis::BigqueryV2::TableList::Representation command.response_class = Google::Apis::BigqueryV2::TableList command.params['projectId'] = project_id unless project_id.nil? @@ -928,8 +909,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options) command.request_representation = Google::Apis::BigqueryV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::BigqueryV2::Table::Representation @@ -975,8 +955,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options) command.request_representation = Google::Apis::BigqueryV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::BigqueryV2::Table::Representation diff --git a/generated/google/apis/blogger_v3/service.rb b/generated/google/apis/blogger_v3/service.rb index 438556978..2fef50b56 100644 --- a/generated/google/apis/blogger_v3/service.rb +++ b/generated/google/apis/blogger_v3/service.rb @@ -82,8 +82,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_blog_user_info(user_id, blog_id, max_posts: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}/blogs/{blogId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}', options) command.response_representation = Google::Apis::BloggerV3::BlogUserInfo::Representation command.response_class = Google::Apis::BloggerV3::BlogUserInfo command.params['userId'] = user_id unless user_id.nil? @@ -125,8 +124,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_blog(blog_id, max_posts: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}', options) command.response_representation = Google::Apis::BloggerV3::Blog::Representation command.response_class = Google::Apis::BloggerV3::Blog command.params['blogId'] = blog_id unless blog_id.nil? @@ -166,8 +164,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_blog_by_url(url, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/byurl' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/byurl', options) command.response_representation = Google::Apis::BloggerV3::Blog::Representation command.response_class = Google::Apis::BloggerV3::Blog command.query['url'] = url unless url.nil? @@ -217,8 +214,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_blogs_by_user(user_id, fetch_user_info: nil, role: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}/blogs' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}/blogs', options) command.response_representation = Google::Apis::BloggerV3::BlogList::Representation command.response_class = Google::Apis::BloggerV3::BlogList command.params['userId'] = user_id unless user_id.nil? @@ -261,8 +257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def approve_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', options) command.response_representation = Google::Apis::BloggerV3::Comment::Representation command.response_class = Google::Apis::BloggerV3::Comment command.params['blogId'] = blog_id unless blog_id.nil? @@ -303,8 +298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'blogs/{blogId}/posts/{postId}/comments/{commentId}', options) command.params['blogId'] = blog_id unless blog_id.nil? command.params['postId'] = post_id unless post_id.nil? command.params['commentId'] = comment_id unless comment_id.nil? @@ -348,8 +342,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_comment(blog_id, post_id, comment_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments/{commentId}', options) command.response_representation = Google::Apis::BloggerV3::Comment::Representation command.response_class = Google::Apis::BloggerV3::Comment command.params['blogId'] = blog_id unless blog_id.nil? @@ -403,8 +396,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_comments(blog_id, post_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/comments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments', options) command.response_representation = Google::Apis::BloggerV3::CommentList::Representation command.response_class = Google::Apis::BloggerV3::CommentList command.params['blogId'] = blog_id unless blog_id.nil? @@ -458,8 +450,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_comments_by_blog(blog_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/comments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/comments', options) command.response_representation = Google::Apis::BloggerV3::CommentList::Representation command.response_class = Google::Apis::BloggerV3::CommentList command.params['blogId'] = blog_id unless blog_id.nil? @@ -504,8 +495,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def mark_comment_as_spam(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', options) command.response_representation = Google::Apis::BloggerV3::Comment::Representation command.response_class = Google::Apis::BloggerV3::Comment command.params['blogId'] = blog_id unless blog_id.nil? @@ -546,8 +536,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_comment_content(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', options) command.response_representation = Google::Apis::BloggerV3::Comment::Representation command.response_class = Google::Apis::BloggerV3::Comment command.params['blogId'] = blog_id unless blog_id.nil? @@ -585,8 +574,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_page_view(blog_id, range: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pageviews' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/pageviews', options) command.response_representation = Google::Apis::BloggerV3::Pageviews::Representation command.response_class = Google::Apis::BloggerV3::Pageviews command.params['blogId'] = blog_id unless blog_id.nil? @@ -624,8 +612,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages/{pageId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'blogs/{blogId}/pages/{pageId}', options) command.params['blogId'] = blog_id unless blog_id.nil? command.params['pageId'] = page_id unless page_id.nil? command.query['fields'] = fields unless fields.nil? @@ -662,8 +649,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_page(blog_id, page_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages/{pageId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/pages/{pageId}', options) command.response_representation = Google::Apis::BloggerV3::Page::Representation command.response_class = Google::Apis::BloggerV3::Page command.params['blogId'] = blog_id unless blog_id.nil? @@ -703,8 +689,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_page(blog_id, page_object = nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/pages', options) command.request_representation = Google::Apis::BloggerV3::Page::Representation command.request_object = page_object command.response_representation = Google::Apis::BloggerV3::Page::Representation @@ -752,8 +737,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_pages(blog_id, fetch_bodies: nil, max_results: nil, page_token: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/pages', options) command.response_representation = Google::Apis::BloggerV3::PageList::Representation command.response_class = Google::Apis::BloggerV3::PageList command.params['blogId'] = blog_id unless blog_id.nil? @@ -802,8 +786,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages/{pageId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'blogs/{blogId}/pages/{pageId}', options) command.request_representation = Google::Apis::BloggerV3::Page::Representation command.request_object = page_object command.response_representation = Google::Apis::BloggerV3::Page::Representation @@ -845,8 +828,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def publish_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages/{pageId}/publish' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/pages/{pageId}/publish', options) command.response_representation = Google::Apis::BloggerV3::Page::Representation command.response_class = Google::Apis::BloggerV3::Page command.params['blogId'] = blog_id unless blog_id.nil? @@ -884,8 +866,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def revert_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages/{pageId}/revert' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/pages/{pageId}/revert', options) command.response_representation = Google::Apis::BloggerV3::Page::Representation command.response_class = Google::Apis::BloggerV3::Page command.params['blogId'] = blog_id unless blog_id.nil? @@ -930,8 +911,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/pages/{pageId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'blogs/{blogId}/pages/{pageId}', options) command.request_representation = Google::Apis::BloggerV3::Page::Representation command.request_object = page_object command.response_representation = Google::Apis::BloggerV3::Page::Representation @@ -980,8 +960,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_post_user_info(user_id, blog_id, post_id, max_comments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}/blogs/{blogId}/posts/{postId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts/{postId}', options) command.response_representation = Google::Apis::BloggerV3::PostUserInfo::Representation command.response_class = Google::Apis::BloggerV3::PostUserInfo command.params['userId'] = user_id unless user_id.nil? @@ -1042,8 +1021,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_post_user_info(user_id, blog_id, end_date: nil, fetch_bodies: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}/blogs/{blogId}/posts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts', options) command.response_representation = Google::Apis::BloggerV3::PostUserInfosList::Representation command.response_class = Google::Apis::BloggerV3::PostUserInfosList command.params['userId'] = user_id unless user_id.nil? @@ -1090,8 +1068,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'blogs/{blogId}/posts/{postId}', options) command.params['blogId'] = blog_id unless blog_id.nil? command.params['postId'] = post_id unless post_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1138,8 +1115,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_post(blog_id, post_id, fetch_body: nil, fetch_images: nil, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}', options) command.response_representation = Google::Apis::BloggerV3::Post::Representation command.response_class = Google::Apis::BloggerV3::Post command.params['blogId'] = blog_id unless blog_id.nil? @@ -1186,8 +1162,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_post_by_path(blog_id, path, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/bypath' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/posts/bypath', options) command.response_representation = Google::Apis::BloggerV3::Post::Representation command.response_class = Google::Apis::BloggerV3::Post command.params['blogId'] = blog_id unless blog_id.nil? @@ -1234,8 +1209,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_post(blog_id, post_object = nil, fetch_body: nil, fetch_images: nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/posts', options) command.request_representation = Google::Apis::BloggerV3::Post::Representation command.request_object = post_object command.response_representation = Google::Apis::BloggerV3::Post::Representation @@ -1297,8 +1271,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_posts(blog_id, end_date: nil, fetch_bodies: nil, fetch_images: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/posts', options) command.response_representation = Google::Apis::BloggerV3::PostList::Representation command.response_class = Google::Apis::BloggerV3::PostList command.params['blogId'] = blog_id unless blog_id.nil? @@ -1360,8 +1333,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'blogs/{blogId}/posts/{postId}', options) command.request_representation = Google::Apis::BloggerV3::Post::Representation command.request_object = post_object command.response_representation = Google::Apis::BloggerV3::Post::Representation @@ -1412,8 +1384,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def publish_post(blog_id, post_id, publish_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/publish' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/publish', options) command.response_representation = Google::Apis::BloggerV3::Post::Representation command.response_class = Google::Apis::BloggerV3::Post command.params['blogId'] = blog_id unless blog_id.nil? @@ -1452,8 +1423,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def revert_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}/revert' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/revert', options) command.response_representation = Google::Apis::BloggerV3::Post::Representation command.response_class = Google::Apis::BloggerV3::Post command.params['blogId'] = blog_id unless blog_id.nil? @@ -1496,8 +1466,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_posts(blog_id, q, fetch_bodies: nil, order_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/search' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'blogs/{blogId}/posts/search', options) command.response_representation = Google::Apis::BloggerV3::PostList::Representation command.response_class = Google::Apis::BloggerV3::PostList command.params['blogId'] = blog_id unless blog_id.nil? @@ -1552,8 +1521,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'blogs/{blogId}/posts/{postId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'blogs/{blogId}/posts/{postId}', options) command.request_representation = Google::Apis::BloggerV3::Post::Representation command.request_object = post_object command.response_representation = Google::Apis::BloggerV3::Post::Representation @@ -1596,8 +1564,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}', options) command.response_representation = Google::Apis::BloggerV3::User::Representation command.response_class = Google::Apis::BloggerV3::User command.params['userId'] = user_id unless user_id.nil? diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index dc3fa9bcd..cc22f428a 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/books/docs/v1/getting_started module BooksV1 VERSION = 'V1' - REVISION = '20150318' + REVISION = '20151106' # Manage your books AUTH_BOOKS = 'https://www.googleapis.com/auth/books' diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index 67259bee2..ccf204a2c 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -1304,6 +1304,135 @@ module Google end end + # + class Discoveryclusters + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `clusters` + # @return [Array] + attr_accessor :clusters + + # Resorce type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `totalClusters` + # @return [Fixnum] + attr_accessor :total_clusters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @clusters = args[:clusters] unless args[:clusters].nil? + @kind = args[:kind] unless args[:kind].nil? + @total_clusters = args[:total_clusters] unless args[:total_clusters].nil? + end + + # + class Cluster + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `banner_with_content_container` + # @return [Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer] + attr_accessor :banner_with_content_container + + # + # Corresponds to the JSON property `subTitle` + # @return [String] + attr_accessor :sub_title + + # + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # + # Corresponds to the JSON property `totalVolumes` + # @return [Fixnum] + attr_accessor :total_volumes + + # + # Corresponds to the JSON property `uid` + # @return [String] + attr_accessor :uid + + # + # Corresponds to the JSON property `volumes` + # @return [Array] + attr_accessor :volumes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @banner_with_content_container = args[:banner_with_content_container] unless args[:banner_with_content_container].nil? + @sub_title = args[:sub_title] unless args[:sub_title].nil? + @title = args[:title] unless args[:title].nil? + @total_volumes = args[:total_volumes] unless args[:total_volumes].nil? + @uid = args[:uid] unless args[:uid].nil? + @volumes = args[:volumes] unless args[:volumes].nil? + end + + # + class BannerWithContentContainer + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `fillColorArgb` + # @return [String] + attr_accessor :fill_color_argb + + # + # Corresponds to the JSON property `imageUrl` + # @return [String] + attr_accessor :image_url + + # + # Corresponds to the JSON property `maskColorArgb` + # @return [String] + attr_accessor :mask_color_argb + + # + # Corresponds to the JSON property `moreButtonText` + # @return [String] + attr_accessor :more_button_text + + # + # Corresponds to the JSON property `moreButtonUrl` + # @return [String] + attr_accessor :more_button_url + + # + # Corresponds to the JSON property `textColorArgb` + # @return [String] + attr_accessor :text_color_argb + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fill_color_argb = args[:fill_color_argb] unless args[:fill_color_argb].nil? + @image_url = args[:image_url] unless args[:image_url].nil? + @mask_color_argb = args[:mask_color_argb] unless args[:mask_color_argb].nil? + @more_button_text = args[:more_button_text] unless args[:more_button_text].nil? + @more_button_url = args[:more_button_url] unless args[:more_button_url].nil? + @text_color_argb = args[:text_color_argb] unless args[:text_color_argb].nil? + end + end + end + end + # class DownloadAccessRestriction include Google::Apis::Core::Hashable @@ -1857,6 +1986,62 @@ module Google end end + # + class Notification + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `body` + # @return [String] + attr_accessor :body + + # + # Corresponds to the JSON property `iconUrl` + # @return [String] + attr_accessor :icon_url + + # Resource type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `notification_type` + # @return [String] + attr_accessor :notification_type + + # + # Corresponds to the JSON property `show_notification_settings_action` + # @return [Boolean] + attr_accessor :show_notification_settings_action + alias_method :show_notification_settings_action?, :show_notification_settings_action + + # + # Corresponds to the JSON property `targetUrl` + # @return [String] + attr_accessor :target_url + + # + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @body = args[:body] unless args[:body].nil? + @icon_url = args[:icon_url] unless args[:icon_url].nil? + @kind = args[:kind] unless args[:kind].nil? + @notification_type = args[:notification_type] unless args[:notification_type].nil? + @show_notification_settings_action = args[:show_notification_settings_action] unless args[:show_notification_settings_action].nil? + @target_url = args[:target_url] unless args[:target_url].nil? + @title = args[:title] unless args[:title].nil? + end + end + # class Offers include Google::Apis::Core::Hashable @@ -2182,6 +2367,99 @@ module Google end end + # + class Series + include Google::Apis::Core::Hashable + + # Resource type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `series` + # @return [Array] + attr_accessor :series + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @series = args[:series] unless args[:series].nil? + end + + # + class Series + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `bannerImageUrl` + # @return [String] + attr_accessor :banner_image_url + + # + # Corresponds to the JSON property `imageUrl` + # @return [String] + attr_accessor :image_url + + # + # Corresponds to the JSON property `seriesId` + # @return [String] + attr_accessor :series_id + + # + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @banner_image_url = args[:banner_image_url] unless args[:banner_image_url].nil? + @image_url = args[:image_url] unless args[:image_url].nil? + @series_id = args[:series_id] unless args[:series_id].nil? + @title = args[:title] unless args[:title].nil? + end + end + end + + # + class SeriesMembership + include Google::Apis::Core::Hashable + + # Resorce type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `member` + # @return [Array] + attr_accessor :member + + # + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @member = args[:member] unless args[:member].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + # class UserSettings include Google::Apis::Core::Hashable @@ -2196,6 +2474,11 @@ module Google # @return [Google::Apis::BooksV1::UserSettings::NotesExport] attr_accessor :notes_export + # + # Corresponds to the JSON property `notification` + # @return [Google::Apis::BooksV1::UserSettings::Notification] + attr_accessor :notification + def initialize(**args) update!(**args) end @@ -2204,6 +2487,7 @@ module Google def update!(**args) @kind = args[:kind] unless args[:kind].nil? @notes_export = args[:notes_export] unless args[:notes_export].nil? + @notification = args[:notification] unless args[:notification].nil? end # User settings in sub-objects, each for different purposes. @@ -2231,6 +2515,44 @@ module Google @is_enabled = args[:is_enabled] unless args[:is_enabled].nil? end end + + # + class Notification + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `moreFromAuthors` + # @return [Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors] + attr_accessor :more_from_authors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @more_from_authors = args[:more_from_authors] unless args[:more_from_authors].nil? + end + + # + class MoreFromAuthors + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `opted_state` + # @return [String] + attr_accessor :opted_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @opted_state = args[:opted_state] unless args[:opted_state].nil? + end + end + end end # @@ -2822,11 +3144,21 @@ module Google class UserInfo include Google::Apis::Core::Hashable + # How this volume was acquired. + # Corresponds to the JSON property `acquisitionType` + # @return [Fixnum] + attr_accessor :acquisition_type + # Copy/Paste accounting information. # Corresponds to the JSON property `copy` # @return [Google::Apis::BooksV1::Volume::UserInfo::Copy] attr_accessor :copy + # Whether this volume is purchased, sample, pd download etc. + # Corresponds to the JSON property `entitlementType` + # @return [Fixnum] + attr_accessor :entitlement_type + # Whether or not this volume is currently in "my books." # Corresponds to the JSON property `isInMyBooks` # @return [Boolean] @@ -2892,7 +3224,9 @@ module Google # Update properties of this object def update!(**args) + @acquisition_type = args[:acquisition_type] unless args[:acquisition_type].nil? @copy = args[:copy] unless args[:copy].nil? + @entitlement_type = args[:entitlement_type] unless args[:entitlement_type].nil? @is_in_my_books = args[:is_in_my_books] unless args[:is_in_my_books].nil? @is_preordered = args[:is_preordered] unless args[:is_preordered].nil? @is_purchased = args[:is_purchased] unless args[:is_purchased].nil? @@ -3114,6 +3448,11 @@ module Google # @return [Fixnum] attr_accessor :sample_page_count + # + # Corresponds to the JSON property `seriesInfo` + # @return [Google::Apis::BooksV1::Volumeseriesinfo] + attr_accessor :series_info + # Volume subtitle. (In LITE projection.) # Corresponds to the JSON property `subtitle` # @return [String] @@ -3153,6 +3492,7 @@ module Google @ratings_count = args[:ratings_count] unless args[:ratings_count].nil? @reading_modes = args[:reading_modes] unless args[:reading_modes].nil? @sample_page_count = args[:sample_page_count] unless args[:sample_page_count].nil? + @series_info = args[:series_info] unless args[:series_info].nil? @subtitle = args[:subtitle] unless args[:subtitle].nil? @title = args[:title] unless args[:title].nil? end @@ -3510,6 +3850,107 @@ module Google @total_items = args[:total_items] unless args[:total_items].nil? end end + + # + class Volumeseriesinfo + include Google::Apis::Core::Hashable + + # The display number string. This should be used only for display purposes and + # the actual sequence should be inferred from the below orderNumber. + # Corresponds to the JSON property `bookDisplayNumber` + # @return [String] + attr_accessor :book_display_number + + # Resource type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Short book title in the context of the series. + # Corresponds to the JSON property `shortSeriesBookTitle` + # @return [String] + attr_accessor :short_series_book_title + + # + # Corresponds to the JSON property `volumeSeries` + # @return [Array] + attr_accessor :volume_series + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @book_display_number = args[:book_display_number] unless args[:book_display_number].nil? + @kind = args[:kind] unless args[:kind].nil? + @short_series_book_title = args[:short_series_book_title] unless args[:short_series_book_title].nil? + @volume_series = args[:volume_series] unless args[:volume_series].nil? + end + + # + class VolumeSeries + include Google::Apis::Core::Hashable + + # List of issues. Applicable only for Collection Edition and Omnibus. + # Corresponds to the JSON property `issue` + # @return [Array] + attr_accessor :issue + + # The book order number in the series. + # Corresponds to the JSON property `orderNumber` + # @return [Fixnum] + attr_accessor :order_number + + # The book type in the context of series. Examples - Single Issue, Collection + # Edition, etc. + # Corresponds to the JSON property `seriesBookType` + # @return [String] + attr_accessor :series_book_type + + # The series id. + # Corresponds to the JSON property `seriesId` + # @return [String] + attr_accessor :series_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @issue = args[:issue] unless args[:issue].nil? + @order_number = args[:order_number] unless args[:order_number].nil? + @series_book_type = args[:series_book_type] unless args[:series_book_type].nil? + @series_id = args[:series_id] unless args[:series_id].nil? + end + + # + class Issue + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `issueDisplayNumber` + # @return [String] + attr_accessor :issue_display_number + + # + # Corresponds to the JSON property `issueOrderNumber` + # @return [Fixnum] + attr_accessor :issue_order_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @issue_display_number = args[:issue_display_number] unless args[:issue_display_number].nil? + @issue_order_number = args[:issue_order_number] unless args[:issue_order_number].nil? + end + end + end + end end end end diff --git a/generated/google/apis/books_v1/representations.rb b/generated/google/apis/books_v1/representations.rb index 80a48982a..999931d47 100644 --- a/generated/google/apis/books_v1/representations.rb +++ b/generated/google/apis/books_v1/representations.rb @@ -162,6 +162,18 @@ module Google end end + class Discoveryclusters + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Cluster + class Representation < Google::Apis::Core::JsonRepresentation; end + + class BannerWithContentContainer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + class DownloadAccessRestriction class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -214,6 +226,10 @@ module Google end end + class Notification + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Offers class Representation < Google::Apis::Core::JsonRepresentation; end @@ -246,12 +262,32 @@ module Google end end + class Series + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Series + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class SeriesMembership + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class UserSettings class Representation < Google::Apis::Core::JsonRepresentation; end class NotesExport class Representation < Google::Apis::Core::JsonRepresentation; end end + + class Notification + class Representation < Google::Apis::Core::JsonRepresentation; end + + class MoreFromAuthors + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end end class Volume @@ -366,6 +402,18 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Volumeseriesinfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + class VolumeSeries + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Issue + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + class Annotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -751,6 +799,42 @@ module Google end end + class Discoveryclusters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :clusters, as: 'clusters', class: Google::Apis::BooksV1::Discoveryclusters::Cluster, decorator: Google::Apis::BooksV1::Discoveryclusters::Cluster::Representation + + property :kind, as: 'kind' + property :total_clusters, as: 'totalClusters' + end + + class Cluster + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :banner_with_content_container, as: 'banner_with_content_container', class: Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer, decorator: Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer::Representation + + property :sub_title, as: 'subTitle' + property :title, as: 'title' + property :total_volumes, as: 'totalVolumes' + property :uid, as: 'uid' + collection :volumes, as: 'volumes', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation + + end + + class BannerWithContentContainer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fill_color_argb, as: 'fillColorArgb' + property :image_url, as: 'imageUrl' + property :mask_color_argb, as: 'maskColorArgb' + property :more_button_text, as: 'moreButtonText' + property :more_button_url, as: 'moreButtonUrl' + property :text_color_argb, as: 'textColorArgb' + end + end + end + end + class DownloadAccessRestriction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -904,6 +988,19 @@ module Google end end + class Notification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :body, as: 'body' + property :icon_url, as: 'iconUrl' + property :kind, as: 'kind' + property :notification_type, as: 'notification_type' + property :show_notification_settings_action, as: 'show_notification_settings_action' + property :target_url, as: 'targetUrl' + property :title, as: 'title' + end + end + class Offers # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -995,12 +1092,43 @@ module Google end end + class Series + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :series, as: 'series', class: Google::Apis::BooksV1::Series::Series, decorator: Google::Apis::BooksV1::Series::Series::Representation + + end + + class Series + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :banner_image_url, as: 'bannerImageUrl' + property :image_url, as: 'imageUrl' + property :series_id, as: 'seriesId' + property :title, as: 'title' + end + end + end + + class SeriesMembership + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :member, as: 'member', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class UserSettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :notes_export, as: 'notesExport', class: Google::Apis::BooksV1::UserSettings::NotesExport, decorator: Google::Apis::BooksV1::UserSettings::NotesExport::Representation + property :notification, as: 'notification', class: Google::Apis::BooksV1::UserSettings::Notification, decorator: Google::Apis::BooksV1::UserSettings::Notification::Representation + end class NotesExport @@ -1010,6 +1138,21 @@ module Google property :is_enabled, as: 'isEnabled' end end + + class Notification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :more_from_authors, as: 'moreFromAuthors', class: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors, decorator: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors::Representation + + end + + class MoreFromAuthors + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :opted_state, as: 'opted_state' + end + end + end end class Volume @@ -1180,8 +1323,10 @@ module Google class UserInfo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :acquisition_type, as: 'acquisitionType' property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation + property :entitlement_type, as: 'entitlementType' property :is_in_my_books, as: 'isInMyBooks' property :is_preordered, as: 'isPreordered' property :is_purchased, as: 'isPurchased' @@ -1255,6 +1400,8 @@ module Google property :ratings_count, as: 'ratingsCount' property :reading_modes, as: 'readingModes' property :sample_page_count, as: 'samplePageCount' + property :series_info, as: 'seriesInfo', class: Google::Apis::BooksV1::Volumeseriesinfo, decorator: Google::Apis::BooksV1::Volumeseriesinfo::Representation + property :subtitle, as: 'subtitle' property :title, as: 'title' end @@ -1356,6 +1503,36 @@ module Google property :total_items, as: 'totalItems' end end + + class Volumeseriesinfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :book_display_number, as: 'bookDisplayNumber' + property :kind, as: 'kind' + property :short_series_book_title, as: 'shortSeriesBookTitle' + collection :volume_series, as: 'volumeSeries', class: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries, decorator: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Representation + + end + + class VolumeSeries + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :issue, as: 'issue', class: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Issue, decorator: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Issue::Representation + + property :order_number, as: 'orderNumber' + property :series_book_type, as: 'seriesBookType' + property :series_id, as: 'seriesId' + end + + class Issue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :issue_display_number, as: 'issueDisplayNumber' + property :issue_order_number, as: 'issueOrderNumber' + end + end + end + end end end end diff --git a/generated/google/apis/books_v1/service.rb b/generated/google/apis/books_v1/service.rb index e44a9a34f..8162fb24a 100644 --- a/generated/google/apis/books_v1/service.rb +++ b/generated/google/apis/books_v1/service.rb @@ -81,8 +81,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}/bookshelves/{shelf}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}', options) command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation command.response_class = Google::Apis::BooksV1::Bookshelf command.params['userId'] = user_id unless user_id.nil? @@ -121,8 +120,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}/bookshelves' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}/bookshelves', options) command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation command.response_class = Google::Apis::BooksV1::Bookshelves command.params['userId'] = user_id unless user_id.nil? @@ -168,8 +166,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/{userId}/bookshelves/{shelf}/volumes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}/volumes', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.params['userId'] = user_id unless user_id.nil? @@ -214,8 +211,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'cloudloading/addBook' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'cloudloading/addBook', options) command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation command.response_class = Google::Apis::BooksV1::LoadingResource command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil? @@ -253,8 +249,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'cloudloading/deleteBook' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'cloudloading/deleteBook', options) command.query['volumeId'] = volume_id unless volume_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -286,8 +281,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'cloudloading/updateBook' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'cloudloading/updateBook', options) command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation command.request_object = loading_resource_object command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation @@ -298,7 +292,7 @@ module Google execute_or_queue_command(command, &block) end - # Returns a list of offline dictionary meatadata available + # Returns a list of offline dictionary metadata available # @param [String] cpksver # The device/version ID from which to request the data. # @param [String] fields @@ -323,8 +317,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'dictionary/listOfflineMetadata' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'dictionary/listOfflineMetadata', options) command.response_representation = Google::Apis::BooksV1::Metadata::Representation command.response_class = Google::Apis::BooksV1::Metadata command.query['cpksver'] = cpksver unless cpksver.nil? @@ -365,8 +358,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}/layersummary/{summaryId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}/layersummary/{summaryId}', options) command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation command.response_class = Google::Apis::BooksV1::LayerSummary command.params['volumeId'] = volume_id unless volume_id.nil? @@ -412,8 +404,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}/layersummary' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}/layersummary', options) command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation command.response_class = Google::Apis::BooksV1::LayerSummaries command.params['volumeId'] = volume_id unless volume_id.nil? @@ -473,8 +464,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options) command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation command.response_class = Google::Apis::BooksV1::AnnotationData command.params['volumeId'] = volume_id unless volume_id.nil? @@ -548,8 +538,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_layer_annotation_data(volume_id, layer_id, content_version, annotation_data_id: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}/layers/{layerId}/data' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data', options) command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation command.response_class = Google::Apis::BooksV1::AnnotationsData command.params['volumeId'] = volume_id unless volume_id.nil? @@ -605,8 +594,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options) command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation command.response_class = Google::Apis::BooksV1::VolumeAnnotation command.params['volumeId'] = volume_id unless volume_id.nil? @@ -677,8 +665,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_layer_volume_annotations(volume_id, layer_id, content_version, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}/layers/{layerId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}', options) command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation command.response_class = Google::Apis::BooksV1::Volumeannotations command.params['volumeId'] = volume_id unless volume_id.nil? @@ -725,8 +712,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'myconfig/getUserSettings' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'myconfig/getUserSettings', options) command.response_representation = Google::Apis::BooksV1::UserSettings::Representation command.response_class = Google::Apis::BooksV1::UserSettings command.query['fields'] = fields unless fields.nil? @@ -766,8 +752,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'myconfig/releaseDownloadAccess' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'myconfig/releaseDownloadAccess', options) command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation command.response_class = Google::Apis::BooksV1::DownloadAccesses command.query['cpksver'] = cpksver unless cpksver.nil? @@ -815,8 +800,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'myconfig/requestAccess' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'myconfig/requestAccess', options) command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation command.response_class = Google::Apis::BooksV1::RequestAccess command.query['cpksver'] = cpksver unless cpksver.nil? @@ -868,8 +852,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def sync_volume_licenses(source, nonce, cpksver, features: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'myconfig/syncVolumeLicenses' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.query['cpksver'] = cpksver unless cpksver.nil? @@ -911,8 +894,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'myconfig/updateUserSettings' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'myconfig/updateUserSettings', options) command.request_representation = Google::Apis::BooksV1::UserSettings::Representation command.request_object = user_settings_object command.response_representation = Google::Apis::BooksV1::UserSettings::Representation @@ -950,8 +932,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/annotations/{annotationId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'mylibrary/annotations/{annotationId}', options) command.params['annotationId'] = annotation_id unless annotation_id.nil? command.query['source'] = source unless source.nil? command.query['fields'] = fields unless fields.nil? @@ -991,8 +972,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_my_library_annotation(annotation_object = nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/annotations' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'mylibrary/annotations', options) command.request_representation = Google::Apis::BooksV1::Annotation::Representation command.request_object = annotation_object command.response_representation = Google::Apis::BooksV1::Annotation::Representation @@ -1052,8 +1032,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/annotations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'mylibrary/annotations', options) command.response_representation = Google::Apis::BooksV1::Annotations::Representation command.response_class = Google::Apis::BooksV1::Annotations command.query['contentVersion'] = content_version unless content_version.nil? @@ -1099,8 +1078,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/annotations/summary' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'mylibrary/annotations/summary', options) command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation command.response_class = Google::Apis::BooksV1::AnnotationsSummary command.query['layerIds'] = layer_ids unless layer_ids.nil? @@ -1139,8 +1117,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/annotations/{annotationId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'mylibrary/annotations/{annotationId}', options) command.request_representation = Google::Apis::BooksV1::Annotation::Representation command.request_object = annotation_object command.response_representation = Google::Apis::BooksV1::Annotation::Representation @@ -1184,8 +1161,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/bookshelves/{shelf}/addVolume' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/addVolume', options) command.params['shelf'] = shelf unless shelf.nil? command.query['reason'] = reason unless reason.nil? command.query['source'] = source unless source.nil? @@ -1223,8 +1199,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/bookshelves/{shelf}/clearVolumes' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/clearVolumes', options) command.params['shelf'] = shelf unless shelf.nil? command.query['source'] = source unless source.nil? command.query['fields'] = fields unless fields.nil? @@ -1261,8 +1236,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/bookshelves/{shelf}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}', options) command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation command.response_class = Google::Apis::BooksV1::Bookshelf command.params['shelf'] = shelf unless shelf.nil? @@ -1298,8 +1272,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/bookshelves' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'mylibrary/bookshelves', options) command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation command.response_class = Google::Apis::BooksV1::Bookshelves command.query['source'] = source unless source.nil? @@ -1341,8 +1314,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/bookshelves/{shelf}/moveVolume' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/moveVolume', options) command.params['shelf'] = shelf unless shelf.nil? command.query['source'] = source unless source.nil? command.query['volumeId'] = volume_id unless volume_id.nil? @@ -1384,8 +1356,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/bookshelves/{shelf}/removeVolume' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/removeVolume', options) command.params['shelf'] = shelf unless shelf.nil? command.query['reason'] = reason unless reason.nil? command.query['source'] = source unless source.nil? @@ -1435,8 +1406,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/bookshelves/{shelf}/volumes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.params['shelf'] = shelf unless shelf.nil? @@ -1482,8 +1452,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/readingpositions/{volumeId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'mylibrary/readingpositions/{volumeId}', options) command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation command.response_class = Google::Apis::BooksV1::ReadingPosition command.params['volumeId'] = volume_id unless volume_id.nil? @@ -1532,8 +1501,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'mylibrary/readingpositions/{volumeId}/setPosition' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options) command.params['volumeId'] = volume_id unless volume_id.nil? command.query['action'] = action unless action.nil? command.query['contentVersion'] = content_version unless content_version.nil? @@ -1547,6 +1515,48 @@ module Google execute_or_queue_command(command, &block) end + # Returns notification details for a given notification id. + # @param [String] notification_id + # String to identify the notification. + # @param [String] locale + # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + # generating notification title and body. + # @param [String] source + # String to identify the originator of this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BooksV1::Notification] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BooksV1::Notification] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'notification/get', options) + command.response_representation = Google::Apis::BooksV1::Notification::Representation + command.response_class = Google::Apis::BooksV1::Notification + command.query['locale'] = locale unless locale.nil? + command.query['notification_id'] = notification_id unless notification_id.nil? + command.query['source'] = source unless source.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # List categories for onboarding experience. # @param [String] locale # ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset. @@ -1572,8 +1582,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'onboarding/listCategories' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'onboarding/listCategories', options) command.response_representation = Google::Apis::BooksV1::Category::Representation command.response_class = Google::Apis::BooksV1::Category command.query['locale'] = locale unless locale.nil? @@ -1617,8 +1626,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'onboarding/listCategoryVolumes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'onboarding/listCategoryVolumes', options) command.response_representation = Google::Apis::BooksV1::Volume2::Representation command.response_class = Google::Apis::BooksV1::Volume2 command.query['categoryId'] = category_id unless category_id.nil? @@ -1632,6 +1640,49 @@ module Google execute_or_queue_command(command, &block) end + # Returns a stream of personalized book clusters + # @param [String] locale + # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + # generating recommendations. + # @param [String] max_allowed_maturity_rating + # The maximum allowed maturity rating of returned recommendations. Books with a + # higher maturity rating are filtered out. + # @param [String] source + # String to identify the originator of this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BooksV1::Discoveryclusters] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BooksV1::Discoveryclusters] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'personalizedstream/get', options) + command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation + command.response_class = Google::Apis::BooksV1::Discoveryclusters + command.query['locale'] = locale unless locale.nil? + command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil? + command.query['source'] = source unless source.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # # @param [String] android_id # device android_id @@ -1670,8 +1721,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'promooffer/accept' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'promooffer/accept', options) command.query['androidId'] = android_id unless android_id.nil? command.query['device'] = device unless device.nil? command.query['manufacturer'] = manufacturer unless manufacturer.nil? @@ -1723,8 +1773,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'promooffer/dismiss' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'promooffer/dismiss', options) command.query['androidId'] = android_id unless android_id.nil? command.query['device'] = device unless device.nil? command.query['manufacturer'] = manufacturer unless manufacturer.nil? @@ -1773,8 +1822,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'promooffer/get' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'promooffer/get', options) command.response_representation = Google::Apis::BooksV1::Offers::Representation command.response_class = Google::Apis::BooksV1::Offers command.query['androidId'] = android_id unless android_id.nil? @@ -1789,6 +1837,82 @@ module Google execute_or_queue_command(command, &block) end + # Returns Series metadata for the given series ids. + # @param [Array, String] series_id + # String that identifies the series + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BooksV1::Series] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BooksV1::Series] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_series(series_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'series/get', options) + command.response_representation = Google::Apis::BooksV1::Series::Representation + command.response_class = Google::Apis::BooksV1::Series + command.query['series_id'] = series_id unless series_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns Series membership data given the series id. + # @param [String] series_id + # String that identifies the series + # @param [Fixnum] page_size + # Number of maximum results per page to be included in the response. + # @param [String] page_token + # The value of the nextToken from the previous page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BooksV1::SeriesMembership] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BooksV1::SeriesMembership] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'series/membership/get', options) + command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation + command.response_class = Google::Apis::BooksV1::SeriesMembership + command.query['page_size'] = page_size unless page_size.nil? + command.query['page_token'] = page_token unless page_token.nil? + command.query['series_id'] = series_id unless series_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Gets volume information for a single volume. # @param [String] volume_id # ID of volume to retrieve. @@ -1823,8 +1947,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_volume(volume_id, country: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}', options) command.response_representation = Google::Apis::BooksV1::Volume::Representation command.response_class = Google::Apis::BooksV1::Volume command.params['volumeId'] = volume_id unless volume_id.nil? @@ -1888,8 +2011,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.query['download'] = download unless download.nil? @@ -1946,8 +2068,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/{volumeId}/associated' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/{volumeId}/associated', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.params['volumeId'] = volume_id unless volume_id.nil? @@ -1998,8 +2119,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_my_books(acquire_method: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/mybooks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/mybooks', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.query['acquireMethod'] = acquire_method unless acquire_method.nil? @@ -2023,6 +2143,8 @@ module Google # higher maturity rating are filtered out. # @param [String] source # String to identify the originator of this request. + # @param [Array, String] target_ids + # List of target ids used for experiments or user segments # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2044,14 +2166,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/recommended' - command = make_simple_command(:get, path, options) + def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'volumes/recommended', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.query['locale'] = locale unless locale.nil? command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil? command.query['source'] = source unless source.nil? + command.query['targetIds'] = target_ids unless target_ids.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -2090,8 +2212,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/recommended/rate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'volumes/recommended/rate', options) command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse command.query['locale'] = locale unless locale.nil? @@ -2141,8 +2262,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'volumes/useruploaded' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'volumes/useruploaded', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.query['locale'] = locale unless locale.nil? diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index fad3ba609..9ba3f3e2e 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20150720' + REVISION = '20151122' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/calendar_v3/classes.rb b/generated/google/apis/calendar_v3/classes.rb index 1be3c3a22..0fedf94d4 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -165,7 +165,8 @@ module Google # @return [String] attr_accessor :etag - # Identifier of the calendar. + # Identifier of the calendar. To retrieve IDs call the calendarList.list() + # method. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -580,7 +581,7 @@ module Google # @return [String] attr_accessor :kind - # Last modification time of the color palette (as a RFC 3339 timestamp). Read- + # Last modification time of the color palette (as a RFC3339 timestamp). Read- # only. # Corresponds to the JSON property `updated` # @return [DateTime] @@ -636,8 +637,8 @@ module Google class Event include Google::Apis::Core::Hashable - # Whether anyone can invite themselves to the event. Optional. The default is - # False. + # Whether anyone can invite themselves to the event (currently works for Google+ + # events only). Optional. The default is False. # Corresponds to the JSON property `anyoneCanAddSelf` # @return [Boolean] attr_accessor :anyone_can_add_self @@ -673,7 +674,7 @@ module Google # @return [String] attr_accessor :color_id - # Creation time of the event (as a RFC 3339 timestamp). Read-only. + # Creation time of the event (as a RFC3339 timestamp). Read-only. # Corresponds to the JSON property `created` # @return [DateTime] attr_accessor :created @@ -748,13 +749,19 @@ module Google # @return [String] attr_accessor :html_link - # Event ID in the iCalendar format. + # Event unique identifier as defined in RFC5545. It is used to uniquely identify + # events accross calendaring systems and must be supplied when importing events + # via the import method. + # Note that the icalUID and the id are not identical and only one of them should + # be supplied at event creation time. One difference in their semantics is that + # in recurring events, all occurrences of one event have different ids while + # they all share the same icalUIDs. # Corresponds to the JSON property `iCalUID` # @return [String] attr_accessor :i_cal_uid - # Identifier of the event. When creating new single or recurring events, you can - # specify their IDs. Provided IDs must follow these rules: + # Opaque identifier of the event. When creating new single or recurring events, + # you can specify their IDs. Provided IDs must follow these rules: # - characters allowed in the ID are those used in base32hex encoding, i.e. # lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938 # - the length of the ID must be between 5 and 1024 characters @@ -762,6 +769,11 @@ module Google # of the system, we cannot guarantee that ID collisions will be detected at # event creation time. To minimize the risk of collisions we recommend using an # established UUID algorithm such as one described in RFC4122. + # If you do not specify an ID, it will be automatically generated by the server. + # Note that the icalUID and the id are not identical and only one of them should + # be supplied at event creation time. One difference in their semantics is that + # in recurring events, all occurrences of one event have different ids while + # they all share the same icalUIDs. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -815,8 +827,8 @@ module Google # @return [Array] attr_accessor :recurrence - # For an instance of a recurring event, this is the event ID of the recurring - # event itself. Immutable. + # For an instance of a recurring event, this is the id of the recurring event to + # which this instance belongs. Immutable. # Corresponds to the JSON property `recurringEventId` # @return [String] attr_accessor :recurring_event_id @@ -864,7 +876,7 @@ module Google # @return [String] attr_accessor :transparency - # Last modification time of the event (as a RFC 3339 timestamp). Read-only. + # Last modification time of the event (as a RFC3339 timestamp). Read-only. # Corresponds to the JSON property `updated` # @return [DateTime] attr_accessor :updated @@ -941,7 +953,8 @@ module Google # @return [String] attr_accessor :email - # The creator's Profile ID, if available. + # The creator's Profile ID, if available. It corresponds to theid field in the + # People collection of the Google+ API # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1070,12 +1083,14 @@ module Google # @return [String] attr_accessor :display_name - # The organizer's email address, if available. + # The organizer's email address, if available. It must be a valid email address + # as per RFC5322. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email - # The organizer's Profile ID, if available. + # The organizer's Profile ID, if available. It corresponds to theid field in the + # People collection of the Google+ API # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1223,12 +1238,13 @@ module Google attr_accessor :display_name # The attendee's email address, if available. This field must be present when - # adding an attendee. + # adding an attendee. It must be a valid email address as per RFC5322. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email - # The attendee's Profile ID, if available. + # The attendee's Profile ID, if available. It corresponds to theid field in the + # People collection of the Google+ API # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1296,7 +1312,7 @@ module Google # @return [Date] attr_accessor :date - # The time, as a combined date-time value (formatted according to RFC 3339). A + # The time, as a combined date-time value (formatted according to RFC3339). A # time zone offset is required unless a time zone is explicitly specified in # timeZone. # Corresponds to the JSON property `dateTime` @@ -1424,7 +1440,7 @@ module Google # @return [String] attr_accessor :time_zone - # Last modification time of the calendar (as a RFC 3339 timestamp). Read-only. + # Last modification time of the calendar (as a RFC3339 timestamp). Read-only. # Corresponds to the JSON property `updated` # @return [DateTime] attr_accessor :updated diff --git a/generated/google/apis/calendar_v3/service.rb b/generated/google/apis/calendar_v3/service.rb index d359e32dc..12eed126f 100644 --- a/generated/google/apis/calendar_v3/service.rb +++ b/generated/google/apis/calendar_v3/service.rb @@ -54,7 +54,9 @@ module Google # Deletes an access control rule. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] rule_id # ACL rule identifier. # @param [String] fields @@ -79,8 +81,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/acl/{ruleId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'calendars/{calendarId}/acl/{ruleId}', options) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? @@ -91,7 +92,9 @@ module Google # Returns an access control rule. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] rule_id # ACL rule identifier. # @param [String] fields @@ -116,8 +119,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/acl/{ruleId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'calendars/{calendarId}/acl/{ruleId}', options) command.response_representation = Google::Apis::CalendarV3::AclRule::Representation command.response_class = Google::Apis::CalendarV3::AclRule command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -130,7 +132,9 @@ module Google # Creates an access control rule. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::AclRule] acl_rule_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -154,8 +158,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_acl(calendar_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/acl' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars/{calendarId}/acl', options) command.request_representation = Google::Apis::CalendarV3::AclRule::Representation command.request_object = acl_rule_object command.response_representation = Google::Apis::CalendarV3::AclRule::Representation @@ -169,7 +172,9 @@ module Google # Returns the rules in the access control list for the calendar. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Fixnum] max_results # Maximum number of entries returned on one result page. By default the value is # 100 entries. The page size can never be larger than 250 entries. Optional. @@ -212,8 +217,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_acls(calendar_id, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/acl' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'calendars/{calendarId}/acl', options) command.response_representation = Google::Apis::CalendarV3::Acl::Representation command.response_class = Google::Apis::CalendarV3::Acl command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -229,7 +233,9 @@ module Google # Updates an access control rule. This method supports patch semantics. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] rule_id # ACL rule identifier. # @param [Google::Apis::CalendarV3::AclRule] acl_rule_object @@ -255,8 +261,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/acl/{ruleId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'calendars/{calendarId}/acl/{ruleId}', options) command.request_representation = Google::Apis::CalendarV3::AclRule::Representation command.request_object = acl_rule_object command.response_representation = Google::Apis::CalendarV3::AclRule::Representation @@ -271,7 +276,9 @@ module Google # Updates an access control rule. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] rule_id # ACL rule identifier. # @param [Google::Apis::CalendarV3::AclRule] acl_rule_object @@ -297,8 +304,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/acl/{ruleId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'calendars/{calendarId}/acl/{ruleId}', options) command.request_representation = Google::Apis::CalendarV3::AclRule::Representation command.request_object = acl_rule_object command.response_representation = Google::Apis::CalendarV3::AclRule::Representation @@ -313,7 +319,9 @@ module Google # Watch for changes to ACL resources. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::Channel] channel_object # @param [Fixnum] max_results # Maximum number of entries returned on one result page. By default the value is @@ -357,8 +365,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_acl(calendar_id, channel_object = nil, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/acl/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars/{calendarId}/acl/watch', options) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation @@ -376,7 +383,9 @@ module Google # Deletes an entry on the user's calendar list. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -399,8 +408,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/calendarList/{calendarId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'users/me/calendarList/{calendarId}', options) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -410,7 +418,9 @@ module Google # Returns an entry on the user's calendar list. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -433,8 +443,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/calendarList/{calendarId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/me/calendarList/{calendarId}', options) command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.response_class = Google::Apis::CalendarV3::CalendarListEntry command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -473,8 +482,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_calendar_list(calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/calendarList' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/me/calendarList', options) command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.request_object = calendar_list_entry_object command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation @@ -537,8 +545,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_calendar_lists(max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/calendarList' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/me/calendarList', options) command.response_representation = Google::Apis::CalendarV3::CalendarList::Representation command.response_class = Google::Apis::CalendarV3::CalendarList command.query['maxResults'] = max_results unless max_results.nil? @@ -556,7 +563,9 @@ module Google # Updates an entry on the user's calendar list. This method supports patch # semantics. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object # @param [Boolean] color_rgb_format # Whether to use the foregroundColor and backgroundColor fields to write the @@ -585,8 +594,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/calendarList/{calendarId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'users/me/calendarList/{calendarId}', options) command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.request_object = calendar_list_entry_object command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation @@ -601,7 +609,9 @@ module Google # Updates an entry on the user's calendar list. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object # @param [Boolean] color_rgb_format # Whether to use the foregroundColor and backgroundColor fields to write the @@ -630,8 +640,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/calendarList/{calendarId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'users/me/calendarList/{calendarId}', options) command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.request_object = calendar_list_entry_object command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation @@ -696,8 +705,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_calendar_list(channel_object = nil, max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/calendarList/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/me/calendarList/watch', options) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation @@ -717,7 +725,9 @@ module Google # Clears a primary calendar. This operation deletes all events associated with # the primary calendar of an account. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -740,8 +750,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def clear_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/clear' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars/{calendarId}/clear', options) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -752,7 +761,9 @@ module Google # Deletes a secondary calendar. Use calendars.clear for clearing all events on # primary calendars. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -775,8 +786,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'calendars/{calendarId}', options) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -786,7 +796,9 @@ module Google # Returns metadata for a calendar. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -809,8 +821,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'calendars/{calendarId}', options) command.response_representation = Google::Apis::CalendarV3::Calendar::Representation command.response_class = Google::Apis::CalendarV3::Calendar command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -844,8 +855,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_calendar(calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars', options) command.request_representation = Google::Apis::CalendarV3::Calendar::Representation command.request_object = calendar_object command.response_representation = Google::Apis::CalendarV3::Calendar::Representation @@ -858,7 +868,9 @@ module Google # Updates metadata for a calendar. This method supports patch semantics. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::Calendar] calendar_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -882,8 +894,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'calendars/{calendarId}', options) command.request_representation = Google::Apis::CalendarV3::Calendar::Representation command.request_object = calendar_object command.response_representation = Google::Apis::CalendarV3::Calendar::Representation @@ -897,7 +908,9 @@ module Google # Updates metadata for a calendar. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::Calendar] calendar_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -921,8 +934,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'calendars/{calendarId}', options) command.request_representation = Google::Apis::CalendarV3::Calendar::Representation command.request_object = calendar_object command.response_representation = Google::Apis::CalendarV3::Calendar::Representation @@ -958,8 +970,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channels/stop' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'channels/stop', options) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.query['fields'] = fields unless fields.nil? @@ -991,8 +1002,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_color(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'colors' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'colors', options) command.response_representation = Google::Apis::CalendarV3::Colors::Representation command.response_class = Google::Apis::CalendarV3::Colors command.query['fields'] = fields unless fields.nil? @@ -1003,7 +1013,9 @@ module Google # Deletes an event. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] event_id # Event identifier. # @param [Boolean] send_notifications @@ -1031,8 +1043,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_event(calendar_id, event_id, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/{eventId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'calendars/{calendarId}/events/{eventId}', options) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['eventId'] = event_id unless event_id.nil? command.query['sendNotifications'] = send_notifications unless send_notifications.nil? @@ -1044,7 +1055,9 @@ module Google # Returns an event. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] event_id # Event identifier. # @param [Boolean] always_include_email @@ -1082,8 +1095,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/{eventId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}', options) command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -1100,7 +1112,9 @@ module Google # Imports an event. This operation is used to add a private copy of an existing # event to a calendar. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::Event] event_object # @param [Boolean] supports_attachments # Whether API client performing operation supports event attachments. Optional. @@ -1127,8 +1141,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def import_event(calendar_id, event_object = nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/import' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars/{calendarId}/events/import', options) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation @@ -1143,7 +1156,9 @@ module Google # Creates an event. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::Event] event_object # @param [Fixnum] max_attendees # The maximum number of attendees to include in the response. If there are more @@ -1177,8 +1192,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_event(calendar_id, event_object = nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars/{calendarId}/events', options) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation @@ -1195,7 +1209,9 @@ module Google # Returns instances of the specified recurring event. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] event_id # Recurring event identifier. # @param [Boolean] always_include_email @@ -1252,8 +1268,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def instances_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/{eventId}/instances' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}/instances', options) command.response_representation = Google::Apis::CalendarV3::Events::Representation command.response_class = Google::Apis::CalendarV3::Events command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -1275,7 +1290,9 @@ module Google # Returns events on the specified calendar. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Boolean] always_include_email # Whether to always include a value in the email field for the organizer, # creator and attendees, even if no real email is available (i.e. a generated, @@ -1357,7 +1374,7 @@ module Google # Time zone used in the response. Optional. The default is the time zone of the # calendar. # @param [DateTime] updated_min - # Lower bound for an event's last modification time (as a RFC 3339 timestamp) to + # Lower bound for an event's last modification time (as a RFC3339 timestamp) to # filter by. When specified, entries deleted since this time will always be # included regardless of showDeleted. Optional. The default is not to filter by # last modification time. @@ -1383,8 +1400,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_events(calendar_id, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'calendars/{calendarId}/events', options) command.response_representation = Google::Apis::CalendarV3::Events::Representation command.response_class = Google::Apis::CalendarV3::Events command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -1443,8 +1459,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_event(calendar_id, event_id, destination, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/{eventId}/move' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars/{calendarId}/events/{eventId}/move', options) command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -1459,7 +1474,9 @@ module Google # Updates an event. This method supports patch semantics. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] event_id # Event identifier. # @param [Google::Apis::CalendarV3::Event] event_object @@ -1501,8 +1518,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/{eventId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'calendars/{calendarId}/events/{eventId}', options) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation @@ -1521,7 +1537,9 @@ module Google # Creates an event based on a simple text string. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] text # The text describing the event to be created. # @param [Boolean] send_notifications @@ -1548,9 +1566,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/quickAdd' - command = make_simple_command(:post, path, options) + def quick_event_add(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'calendars/{calendarId}/events/quickAdd', options) command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? @@ -1564,7 +1581,9 @@ module Google # Updates an event. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [String] event_id # Event identifier. # @param [Google::Apis::CalendarV3::Event] event_object @@ -1606,8 +1625,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/{eventId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'calendars/{calendarId}/events/{eventId}', options) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation @@ -1626,7 +1644,9 @@ module Google # Watch for changes to Events resources. # @param [String] calendar_id - # Calendar identifier. + # Calendar identifier. To retrieve calendar IDs call the calendarList.list + # method. If you want to access the primary calendar of the currently logged in + # user, use the "primary" keyword. # @param [Google::Apis::CalendarV3::Channel] channel_object # @param [Boolean] always_include_email # Whether to always include a value in the email field for the organizer, @@ -1709,7 +1729,7 @@ module Google # Time zone used in the response. Optional. The default is the time zone of the # calendar. # @param [DateTime] updated_min - # Lower bound for an event's last modification time (as a RFC 3339 timestamp) to + # Lower bound for an event's last modification time (as a RFC3339 timestamp) to # filter by. When specified, entries deleted since this time will always be # included regardless of showDeleted. Optional. The default is not to filter by # last modification time. @@ -1735,8 +1755,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'calendars/{calendarId}/events/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'calendars/{calendarId}/events/watch', options) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation @@ -1789,8 +1808,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_freebusy(free_busy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'freeBusy' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'freeBusy', options) command.request_representation = Google::Apis::CalendarV3::FreeBusyRequest::Representation command.request_object = free_busy_request_object command.response_representation = Google::Apis::CalendarV3::FreeBusyResponse::Representation @@ -1826,8 +1844,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_setting(setting, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/settings/{setting}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/me/settings/{setting}', options) command.response_representation = Google::Apis::CalendarV3::Setting::Representation command.response_class = Google::Apis::CalendarV3::Setting command.params['setting'] = setting unless setting.nil? @@ -1874,8 +1891,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_settings(max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/settings' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/me/settings', options) command.response_representation = Google::Apis::CalendarV3::Settings::Representation command.response_class = Google::Apis::CalendarV3::Settings command.query['maxResults'] = max_results unless max_results.nil? @@ -1925,8 +1941,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_setting(channel_object = nil, max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/me/settings/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/me/settings/watch', options) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation diff --git a/generated/google/apis/civicinfo_v2.rb b/generated/google/apis/civicinfo_v2.rb index 5eaa2c288..9067e9959 100644 --- a/generated/google/apis/civicinfo_v2.rb +++ b/generated/google/apis/civicinfo_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/civic-information module CivicinfoV2 VERSION = 'V2' - REVISION = '20150707' + REVISION = '20150820' end end end diff --git a/generated/google/apis/civicinfo_v2/classes.rb b/generated/google/apis/civicinfo_v2/classes.rb index a47fe03da..64e910915 100644 --- a/generated/google/apis/civicinfo_v2/classes.rb +++ b/generated/google/apis/civicinfo_v2/classes.rb @@ -323,9 +323,9 @@ module Google # @return [Array] attr_accessor :referendum_ballot_responses - # Specifies a short summary of the referendum that is on the ballot below the - # title but above the text. This field is only populated for contests of type ' - # Referendum'. + # Specifies a short summary of the referendum that is typically on the ballot + # below the title but above the text. This field is only populated for contests + # of type 'Referendum'. # Corresponds to the JSON property `referendumBrief` # @return [String] attr_accessor :referendum_brief @@ -515,6 +515,14 @@ module Google # @return [String] attr_accessor :name + # The political division of the election. Represented as an OCD Division ID. + # Voters within these political jurisdictions are covered by this election. This + # is typically a state such as ocd-division/country:us/state:ca or for the + # midterms or general election the entire US (i.e. ocd-division/country:us). + # Corresponds to the JSON property `ocdDivisionId` + # @return [String] + attr_accessor :ocd_division_id + def initialize(**args) update!(**args) end @@ -524,6 +532,7 @@ module Google @election_day = args[:election_day] unless args[:election_day].nil? @id = args[:id] unless args[:id].nil? @name = args[:name] unless args[:name].nil? + @ocd_division_id = args[:ocd_division_id] unless args[:ocd_division_id].nil? end end diff --git a/generated/google/apis/civicinfo_v2/representations.rb b/generated/google/apis/civicinfo_v2/representations.rb index e8b571b75..f3cf64ae2 100644 --- a/generated/google/apis/civicinfo_v2/representations.rb +++ b/generated/google/apis/civicinfo_v2/representations.rb @@ -218,6 +218,7 @@ module Google property :election_day, as: 'electionDay' property :id, as: 'id' property :name, as: 'name' + property :ocd_division_id, as: 'ocdDivisionId' end end diff --git a/generated/google/apis/civicinfo_v2/service.rb b/generated/google/apis/civicinfo_v2/service.rb index f3d3d5bc3..61b9d8010 100644 --- a/generated/google/apis/civicinfo_v2/service.rb +++ b/generated/google/apis/civicinfo_v2/service.rb @@ -80,8 +80,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_divisions(query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'divisions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'divisions', options) command.response_representation = Google::Apis::CivicinfoV2::SearchDivisionResponse::Representation command.response_class = Google::Apis::CivicinfoV2::SearchDivisionResponse command.query['query'] = query unless query.nil? @@ -114,8 +113,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_election(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'elections' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'elections', options) command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse command.query['fields'] = fields unless fields.nil? @@ -155,8 +153,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'voterinfo' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'voterinfo', options) command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse command.query['address'] = address unless address.nil? @@ -206,8 +203,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def representative_info_by_address(address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'representatives' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'representatives', options) command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse command.query['address'] = address unless address.nil? @@ -257,8 +253,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def representative_info_by_division(ocd_id, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'representatives/{ocdId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'representatives/{ocdId}', options) command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData command.params['ocdId'] = ocd_id unless ocd_id.nil? diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb new file mode 100644 index 000000000..c4fd87e8c --- /dev/null +++ b/generated/google/apis/classroom_v1.rb @@ -0,0 +1,49 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/classroom_v1/service.rb' +require 'google/apis/classroom_v1/classes.rb' +require 'google/apis/classroom_v1/representations.rb' + +module Google + module Apis + # Google Classroom API + # + # Google Classroom API + # + # @see https://developers.google.com/classroom/ + module ClassroomV1 + VERSION = 'V1' + REVISION = '20151013' + + # Manage your Google Classroom classes + AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses' + + # View your Google Classroom classes + AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly' + + # View the email addresses of people in your classes + AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails' + + # View the profile photos of people in your classes + AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos' + + # Manage your Google Classroom class rosters + AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters' + + # View your Google Classroom class rosters + AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly' + end + end +end diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb new file mode 100644 index 000000000..894881a25 --- /dev/null +++ b/generated/google/apis/classroom_v1/classes.rb @@ -0,0 +1,512 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClassroomV1 + + # A Course in Classroom. + class Course + include Google::Apis::Core::Hashable + + # Identifier for this course assigned by Classroom. When creating a course, you + # may optionally set this identifier to an alias string in the request to create + # a corresponding alias. The `id` is still assigned by Classroom and cannot be + # updated after the course is created. Specifying this field in a course update + # mask will result in an error. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Name of the course. For example, "10th Grade Biology". The name is required. + # It must be between 1 and 750 characters and a valid UTF-8 string. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Section of the course. For example, "Period 2". If set, this field must be a + # valid UTF-8 string and no longer than 2800 characters. + # Corresponds to the JSON property `section` + # @return [String] + attr_accessor :section + + # Optional heading for the description. For example, "Welcome to 10th Grade + # Biology." If set, this field must be a valid UTF-8 string and no longer than + # 3600 characters. + # Corresponds to the JSON property `descriptionHeading` + # @return [String] + attr_accessor :description_heading + + # Optional description. For example, "We'll be learning about the structure of + # living creatures from a combination of textbooks, guest lectures, and lab work. + # Expect to be excited!" If set, this field must be a valid UTF-8 string and no + # longer than 30,000 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional room location. For example, "301". If set, this field must be a valid + # UTF-8 string and no longer than 650 characters. + # Corresponds to the JSON property `room` + # @return [String] + attr_accessor :room + + # The identifier of the owner of a course. When specified as a parameter of a + # create course request, this field is required. The identifier can be one of + # the following: * the numeric identifier for the user * the email address of + # the user * the string literal `"me"`, indicating the requesting user This must + # be set in a create request. Specifying this field in a course update mask will + # result in an `INVALID_ARGUMENT` error. + # Corresponds to the JSON property `ownerId` + # @return [String] + attr_accessor :owner_id + + # Creation time of the course. Specifying this field in a course update mask + # will result in an error. Read-only. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Time of the most recent update to this course. Specifying this field in a + # course update mask will result in an error. Read-only. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Enrollment code to use when joining this course. Specifying this field in a + # course update mask will result in an error. Read-only. + # Corresponds to the JSON property `enrollmentCode` + # @return [String] + attr_accessor :enrollment_code + + # State of the course. If unspecified, the default state is `PROVISIONED`. + # Corresponds to the JSON property `courseState` + # @return [String] + attr_accessor :course_state + + # Absolute link to this course in the Classroom web UI. Read-only. + # Corresponds to the JSON property `alternateLink` + # @return [String] + attr_accessor :alternate_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @section = args[:section] unless args[:section].nil? + @description_heading = args[:description_heading] unless args[:description_heading].nil? + @description = args[:description] unless args[:description].nil? + @room = args[:room] unless args[:room].nil? + @owner_id = args[:owner_id] unless args[:owner_id].nil? + @creation_time = args[:creation_time] unless args[:creation_time].nil? + @update_time = args[:update_time] unless args[:update_time].nil? + @enrollment_code = args[:enrollment_code] unless args[:enrollment_code].nil? + @course_state = args[:course_state] unless args[:course_state].nil? + @alternate_link = args[:alternate_link] unless args[:alternate_link].nil? + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response when listing courses. + class ListCoursesResponse + include Google::Apis::Core::Hashable + + # Courses that match the list request. + # Corresponds to the JSON property `courses` + # @return [Array] + attr_accessor :courses + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @courses = args[:courses] unless args[:courses].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Alternative identifier for a course. An alias uniquely identifies a course. It + # must be unique within one of the following scopes: * domain: A domain-scoped + # alias is visible to all users within the alias creator's domain and can be + # created only by a domain admin. A domain-scoped alias is often used when a + # course has an identifier external to Classroom. * project: A project-scoped + # alias is visible to any request from an application using the Developer + # Console project ID that created the alias and can be created by any project. A + # project-scoped alias is often used when an application has alternative + # identifiers. A random value can also be used to avoid duplicate courses in the + # event of transmission failures, as retrying a request will return ` + # ALREADY_EXISTS` if a previous one has succeeded. + class CourseAlias + include Google::Apis::Core::Hashable + + # Alias string. The format of the string indicates the desired alias scoping. * ` + # d:` indicates a domain-scoped alias. Example: `d:math_101` * `p:` indicates a + # project-scoped alias. Example: `p:abc123` This field has a maximum length of + # 256 characters. + # Corresponds to the JSON property `alias` + # @return [String] + attr_accessor :alias + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alias = args[:alias] unless args[:alias].nil? + end + end + + # Response when listing course aliases. + class ListCourseAliasesResponse + include Google::Apis::Core::Hashable + + # The course aliases. + # Corresponds to the JSON property `aliases` + # @return [Array] + attr_accessor :aliases + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aliases = args[:aliases] unless args[:aliases].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # An invitation to join a course. + class Invitation + include Google::Apis::Core::Hashable + + # Identifier assigned by Classroom. Read-only. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifier of the invited user. When specified as a parameter of a request, + # this identifier can be set to one of the following: * the numeric identifier + # for the user * the email address of the user * the string literal `"me"`, + # indicating the requesting user + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # Identifier of the course to invite the user to. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @user_id = args[:user_id] unless args[:user_id].nil? + @course_id = args[:course_id] unless args[:course_id].nil? + @role = args[:role] unless args[:role].nil? + end + end + + # Response when listing invitations. + class ListInvitationsResponse + include Google::Apis::Core::Hashable + + # Invitations that match the list request. + # Corresponds to the JSON property `invitations` + # @return [Array] + attr_accessor :invitations + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @invitations = args[:invitations] unless args[:invitations].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Global information for a user. + class UserProfile + include Google::Apis::Core::Hashable + + # Identifier of the user. Read-only. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Details of the user's name. + # Corresponds to the JSON property `name` + # @return [Google::Apis::ClassroomV1::Name] + attr_accessor :name + + # Email address of the user. Read-only. + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + # URL of user's profile photo. Read-only. + # Corresponds to the JSON property `photoUrl` + # @return [String] + attr_accessor :photo_url + + # Global permissions of the user. Read-only. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @email_address = args[:email_address] unless args[:email_address].nil? + @photo_url = args[:photo_url] unless args[:photo_url].nil? + @permissions = args[:permissions] unless args[:permissions].nil? + end + end + + # Details of the user's name. + class Name + include Google::Apis::Core::Hashable + + # The user's first name. Read-only. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # The user's last name. Read-only. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # The user's full name formed by concatenating the first and last name values. + # Read-only. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @given_name = args[:given_name] unless args[:given_name].nil? + @family_name = args[:family_name] unless args[:family_name].nil? + @full_name = args[:full_name] unless args[:full_name].nil? + end + end + + # Global user permission description. + class GlobalPermission + include Google::Apis::Core::Hashable + + # Permission value. + # Corresponds to the JSON property `permission` + # @return [String] + attr_accessor :permission + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permission = args[:permission] unless args[:permission].nil? + end + end + + # Teacher of a course. + class Teacher + include Google::Apis::Core::Hashable + + # Identifier of the course. Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # Identifier of the user. When specified as a parameter of a request, this + # identifier can be one of the following: * the numeric identifier for the user * + # the email address of the user * the string literal `"me"`, indicating the + # requesting user + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # Global information for a user. + # Corresponds to the JSON property `profile` + # @return [Google::Apis::ClassroomV1::UserProfile] + attr_accessor :profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_id = args[:course_id] unless args[:course_id].nil? + @user_id = args[:user_id] unless args[:user_id].nil? + @profile = args[:profile] unless args[:profile].nil? + end + end + + # Response when listing teachers. + class ListTeachersResponse + include Google::Apis::Core::Hashable + + # Teachers who match the list request. + # Corresponds to the JSON property `teachers` + # @return [Array] + attr_accessor :teachers + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @teachers = args[:teachers] unless args[:teachers].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Student in a course. + class Student + include Google::Apis::Core::Hashable + + # Identifier of the course. Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # Identifier of the user. When specified as a parameter of a request, this + # identifier can be one of the following: * the numeric identifier for the user * + # the email address of the user * the string literal `"me"`, indicating the + # requesting user + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # Global information for a user. + # Corresponds to the JSON property `profile` + # @return [Google::Apis::ClassroomV1::UserProfile] + attr_accessor :profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_id = args[:course_id] unless args[:course_id].nil? + @user_id = args[:user_id] unless args[:user_id].nil? + @profile = args[:profile] unless args[:profile].nil? + end + end + + # Response when listing students. + class ListStudentsResponse + include Google::Apis::Core::Hashable + + # Students who match the list request. + # Corresponds to the JSON property `students` + # @return [Array] + attr_accessor :students + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @students = args[:students] unless args[:students].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + end + end +end diff --git a/generated/google/apis/classroom_v1/representations.rb b/generated/google/apis/classroom_v1/representations.rb new file mode 100644 index 000000000..4d97dcd8c --- /dev/null +++ b/generated/google/apis/classroom_v1/representations.rb @@ -0,0 +1,217 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClassroomV1 + + class Course + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListCoursesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CourseAlias + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListCourseAliasesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Invitation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListInvitationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UserProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Name + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GlobalPermission + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Teacher + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListTeachersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Student + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListStudentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Course + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + property :section, as: 'section' + property :description_heading, as: 'descriptionHeading' + property :description, as: 'description' + property :room, as: 'room' + property :owner_id, as: 'ownerId' + property :creation_time, as: 'creationTime' + property :update_time, as: 'updateTime' + property :enrollment_code, as: 'enrollmentCode' + property :course_state, as: 'courseState' + property :alternate_link, as: 'alternateLink' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListCoursesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :courses, as: 'courses', class: Google::Apis::ClassroomV1::Course, decorator: Google::Apis::ClassroomV1::Course::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class CourseAlias + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alias, as: 'alias' + end + end + + class ListCourseAliasesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :aliases, as: 'aliases', class: Google::Apis::ClassroomV1::CourseAlias, decorator: Google::Apis::ClassroomV1::CourseAlias::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Invitation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :user_id, as: 'userId' + property :course_id, as: 'courseId' + property :role, as: 'role' + end + end + + class ListInvitationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class UserProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name', class: Google::Apis::ClassroomV1::Name, decorator: Google::Apis::ClassroomV1::Name::Representation + + property :email_address, as: 'emailAddress' + property :photo_url, as: 'photoUrl' + collection :permissions, as: 'permissions', class: Google::Apis::ClassroomV1::GlobalPermission, decorator: Google::Apis::ClassroomV1::GlobalPermission::Representation + + end + end + + class Name + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :given_name, as: 'givenName' + property :family_name, as: 'familyName' + property :full_name, as: 'fullName' + end + end + + class GlobalPermission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :permission, as: 'permission' + end + end + + class Teacher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' + property :user_id, as: 'userId' + property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation + + end + end + + class ListTeachersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1::Teacher, decorator: Google::Apis::ClassroomV1::Teacher::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Student + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' + property :user_id, as: 'userId' + property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation + + end + end + + class ListStudentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :students, as: 'students', class: Google::Apis::ClassroomV1::Student, decorator: Google::Apis::ClassroomV1::Student::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + end + end +end diff --git a/generated/google/apis/classroom_v1/service.rb b/generated/google/apis/classroom_v1/service.rb new file mode 100644 index 000000000..498e033ea --- /dev/null +++ b/generated/google/apis/classroom_v1/service.rb @@ -0,0 +1,970 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClassroomV1 + # Google Classroom API + # + # Google Classroom API + # + # @example + # require 'google/apis/classroom_v1' + # + # Classroom = Google::Apis::ClassroomV1 # Alias the module + # service = Classroom::ClassroomService.new + # + # @see https://developers.google.com/classroom/ + class ClassroomService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://classroom.googleapis.com/', '') + end + + # Creates a course. The user specified in `ownerId` is the owner of the created + # course and added as a teacher. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to create courses + # or for access errors. * `NOT_FOUND` if the primary teacher is not a valid user. + # * `FAILED_PRECONDITION` if the course owner's account is disabled or for the + # following request errors: * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` + # if an alias was specified in the `id` and already exists. + # @param [Google::Apis::ClassroomV1::Course] course_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Course] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_course(course_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses', options) + command.request_representation = Google::Apis::ClassroomV1::Course::Representation + command.request_object = course_object + command.response_representation = Google::Apis::ClassroomV1::Course::Representation + command.response_class = Google::Apis::ClassroomV1::Course + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a course. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to access the + # requested course or for access errors. * `NOT_FOUND` if no course exists with + # the requested ID. + # @param [String] id + # Identifier of the course to return. This identifier can be either the + # Classroom-assigned identifier or an alias. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Course] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_course(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::Course::Representation + command.response_class = Google::Apis::ClassroomV1::Course + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a course. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to modify the + # requested course or for access errors. * `NOT_FOUND` if no course exists with + # the requested ID. * `FAILED_PRECONDITION` for the following request errors: * + # CourseNotModifiable + # @param [String] id + # Identifier of the course to update. This identifier can be either the + # Classroom-assigned identifier or an alias. + # @param [Google::Apis::ClassroomV1::Course] course_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Course] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_course(id, course_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/courses/{id}', options) + command.request_representation = Google::Apis::ClassroomV1::Course::Representation + command.request_object = course_object + command.response_representation = Google::Apis::ClassroomV1::Course::Representation + command.response_class = Google::Apis::ClassroomV1::Course + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates one or more fields in a course. This method returns the following + # error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + # modify the requested course or for access errors. * `NOT_FOUND` if no course + # exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are + # specified in the update mask or if no update mask is supplied. * ` + # FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable + # @param [String] id + # Identifier of the course to update. This identifier can be either the + # Classroom-assigned identifier or an alias. + # @param [Google::Apis::ClassroomV1::Course] course_object + # @param [String] update_mask + # Mask that identifies which fields on the course to update. This field is + # required to do an update. The update will fail if invalid fields are specified. + # The following fields are valid: * `name` * `section` * `descriptionHeading` * + # `description` * `room` * `courseState` When set in a query parameter, this + # field should be specified as `updateMask=,,...` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Course] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Course] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_course(id, course_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/courses/{id}', options) + command.request_representation = Google::Apis::ClassroomV1::Course::Representation + command.request_object = course_object + command.response_representation = Google::Apis::ClassroomV1::Course::Representation + command.response_class = Google::Apis::ClassroomV1::Course + command.params['id'] = id unless id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a course. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to delete the + # requested course or for access errors. * `NOT_FOUND` if no course exists with + # the requested ID. + # @param [String] id + # Identifier of the course to delete. This identifier can be either the + # Classroom-assigned identifier or an alias. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_course(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/courses/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of courses that the requesting user is permitted to view, + # restricted to those that match the request. This method returns the following + # error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if + # the query argument is malformed. * `NOT_FOUND` if any users specified in the + # query arguments do not exist. + # @param [String] student_id + # Restricts returned courses to those having a student with the specified + # identifier. The identifier can be one of the following: * the numeric + # identifier for the user * the email address of the user * the string literal `" + # me"`, indicating the requesting user + # @param [String] teacher_id + # Restricts returned courses to those having a teacher with the specified + # identifier. The identifier can be one of the following: * the numeric + # identifier for the user * the email address of the user * the string literal `" + # me"`, indicating the requesting user + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. The server may return fewer than the specified + # number of results. + # @param [String] page_token + # nextPageToken value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListCoursesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListCoursesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_courses(student_id: nil, teacher_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses', options) + command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse + command.query['studentId'] = student_id unless student_id.nil? + command.query['teacherId'] = teacher_id unless teacher_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an alias for a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to create the + # alias or for access errors. * `NOT_FOUND` if the course does not exist. * ` + # ALREADY_EXISTS` if the alias already exists. + # @param [String] course_id + # Identifier of the course to alias. This identifier can be either the Classroom- + # assigned identifier or an alias. + # @param [Google::Apis::ClassroomV1::CourseAlias] course_alias_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::CourseAlias] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::CourseAlias] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_course_alias(course_id, course_alias_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/aliases', options) + command.request_representation = Google::Apis::ClassroomV1::CourseAlias::Representation + command.request_object = course_alias_object + command.response_representation = Google::Apis::ClassroomV1::CourseAlias::Representation + command.response_class = Google::Apis::ClassroomV1::CourseAlias + command.params['courseId'] = course_id unless course_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an alias of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to remove the + # alias or for access errors. * `NOT_FOUND` if the alias does not exist. + # @param [String] course_id + # Identifier of the course whose alias should be deleted. This identifier can be + # either the Classroom-assigned identifier or an alias. + # @param [String] alias_ + # Alias to delete. This may not be the Classroom-assigned identifier. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_course_alias(course_id, alias_, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/courses/{courseId}/aliases/{alias}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['alias'] = alias_ unless alias_.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of aliases for a course. This method returns the following + # error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + # access the course or for access errors. * `NOT_FOUND` if the course does not + # exist. + # @param [String] course_id + # The identifier of the course. This identifier can be either the Classroom- + # assigned identifier or an alias. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. The server may return fewer than the specified + # number of results. + # @param [String] page_token + # nextPageToken value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListCourseAliasesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListCourseAliasesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_course_aliases(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/aliases', options) + command.response_representation = Google::Apis::ClassroomV1::ListCourseAliasesResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListCourseAliasesResponse + command.params['courseId'] = course_id unless course_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a teacher of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to create + # teachers in this course or for access errors. * `NOT_FOUND` if the requested + # course ID does not exist. * `FAILED_PRECONDITION` if the requested user's + # account is disabled, for the following request errors: * + # CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * + # UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a + # teacher or student in the course. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [Google::Apis::ClassroomV1::Teacher] teacher_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Teacher] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Teacher] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_course_teacher(course_id, teacher_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/teachers', options) + command.request_representation = Google::Apis::ClassroomV1::Teacher::Representation + command.request_object = teacher_object + command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation + command.response_class = Google::Apis::ClassroomV1::Teacher + command.params['courseId'] = course_id unless course_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a teacher of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to view teachers + # of this course or for access errors. * `NOT_FOUND` if no teacher of this + # course has the requested ID or if the course does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the teacher to return. The identifier can be one of the + # following: * the numeric identifier for the user * the email address of the + # user * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Teacher] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Teacher] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/teachers/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation + command.response_class = Google::Apis::ClassroomV1::Teacher + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a teacher of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to delete + # teachers of this course or for access errors. * `NOT_FOUND` if no teacher of + # this course has the requested ID or if the course does not exist. * ` + # FAILED_PRECONDITION` if the requested ID belongs to the primary teacher of + # this course. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the teacher to delete. The identifier can be one of the + # following: * the numeric identifier for the user * the email address of the + # user * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/courses/{courseId}/teachers/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of teachers of this course that the requester is permitted to + # view. This method returns the following error codes: * `NOT_FOUND` if the + # course does not exist. * `PERMISSION_DENIED` for access errors. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero means no maximum. The server may + # return fewer than the specified number of results. + # @param [String] page_token + # nextPageToken value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListTeachersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListTeachersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_course_teachers(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/teachers', options) + command.response_representation = Google::Apis::ClassroomV1::ListTeachersResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListTeachersResponse + command.params['courseId'] = course_id unless course_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Adds a user as a student of a course. This method returns the following error + # codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create + # students in this course or for access errors. * `NOT_FOUND` if the requested + # course ID does not exist. * `FAILED_PRECONDITION` if the requested user's + # account is disabled, for the following request errors: * + # CourseMemberLimitReached * CourseNotModifiable * + # UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a + # student or teacher in the course. + # @param [String] course_id + # Identifier of the course to create the student in. This identifier can be + # either the Classroom-assigned identifier or an alias. + # @param [Google::Apis::ClassroomV1::Student] student_object + # @param [String] enrollment_code + # Enrollment code of the course to create the student in. This code is required + # if userId corresponds to the requesting user; it may be omitted if the + # requesting user has administrative permissions to create students for any user. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Student] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Student] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_course_student(course_id, student_object = nil, enrollment_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/students', options) + command.request_representation = Google::Apis::ClassroomV1::Student::Representation + command.request_object = student_object + command.response_representation = Google::Apis::ClassroomV1::Student::Representation + command.response_class = Google::Apis::ClassroomV1::Student + command.params['courseId'] = course_id unless course_id.nil? + command.query['enrollmentCode'] = enrollment_code unless enrollment_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a student of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to view students + # of this course or for access errors. * `NOT_FOUND` if no student of this + # course has the requested ID or if the course does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the student to return. The identifier can be one of the + # following: * the numeric identifier for the user * the email address of the + # user * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Student] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Student] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/students/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::Student::Representation + command.response_class = Google::Apis::ClassroomV1::Student + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a student of a course. This method returns the following error codes: * + # `PERMISSION_DENIED` if the requesting user is not permitted to delete + # students of this course or for access errors. * `NOT_FOUND` if no student of + # this course has the requested ID or if the course does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] user_id + # Identifier of the student to delete. The identifier can be one of the + # following: * the numeric identifier for the user * the email address of the + # user * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/courses/{courseId}/students/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of students of this course that the requester is permitted to + # view. This method returns the following error codes: * `NOT_FOUND` if the + # course does not exist. * `PERMISSION_DENIED` for access errors. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero means no maximum. The server may + # return fewer than the specified number of results. + # @param [String] page_token + # nextPageToken value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListStudentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListStudentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_course_students(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/students', options) + command.response_representation = Google::Apis::ClassroomV1::ListStudentsResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListStudentsResponse + command.params['courseId'] = course_id unless course_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an invitation. Only one invitation for a user and course may exist at + # a time. Delete and re-create an invitation to make changes. This method + # returns the following error codes: * `PERMISSION_DENIED` if the requesting + # user is not permitted to create invitations for this course or for access + # errors. * `NOT_FOUND` if the course or the user does not exist. * ` + # FAILED_PRECONDITION` if the requested user's account is disabled or if the + # user already has this role or a role with greater permissions. * ` + # ALREADY_EXISTS` if an invitation for the specified user and course already + # exists. + # @param [Google::Apis::ClassroomV1::Invitation] invitation_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Invitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Invitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_invitation(invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/invitations', options) + command.request_representation = Google::Apis::ClassroomV1::Invitation::Representation + command.request_object = invitation_object + command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation + command.response_class = Google::Apis::ClassroomV1::Invitation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns an invitation. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to view the + # requested invitation or for access errors. * `NOT_FOUND` if no invitation + # exists with the requested ID. + # @param [String] id + # Identifier of the invitation to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Invitation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Invitation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_invitation(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/invitations/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation + command.response_class = Google::Apis::ClassroomV1::Invitation + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an invitation. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to delete the + # requested invitation or for access errors. * `NOT_FOUND` if no invitation + # exists with the requested ID. + # @param [String] id + # Identifier of the invitation to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_invitation(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/invitations/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of invitations that the requesting user is permitted to view, + # restricted to those that match the list request. *Note:* At least one of ` + # user_id` or `course_id` must be supplied. Both fields can be supplied. This + # method returns the following error codes: * `PERMISSION_DENIED` for access + # errors. + # @param [String] user_id + # Restricts returned invitations to those for a specific user. The identifier + # can be one of the following: * the numeric identifier for the user * the email + # address of the user * the string literal `"me"`, indicating the requesting + # user + # @param [String] course_id + # Restricts returned invitations to those for a course with the specified + # identifier. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero means no maximum. The server may + # return fewer than the specified number of results. + # @param [String] page_token + # nextPageToken value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that resulted in this token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::ListInvitationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListInvitationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_invitations(user_id: nil, course_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/invitations', options) + command.response_representation = Google::Apis::ClassroomV1::ListInvitationsResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListInvitationsResponse + command.query['userId'] = user_id unless user_id.nil? + command.query['courseId'] = course_id unless course_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Accepts an invitation, removing it and adding the invited user to the teachers + # or students (as appropriate) of the specified course. Only the invited user + # may accept an invitation. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to accept the + # requested invitation or for access errors. * `FAILED_PRECONDITION` for the + # following request errors: * CourseMemberLimitReached * CourseNotModifiable * + # CourseTeacherLimitReached * UserGroupsMembershipLimitReached * `NOT_FOUND` if + # no invitation exists with the requested ID. + # @param [String] id + # Identifier of the invitation to accept. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def accept_invitation(id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/invitations/{id}:accept', options) + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a user profile. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to access this user + # profile or if no profile exists with the requested ID or for access errors. + # @param [String] user_id + # Identifier of the profile to return. The identifier can be one of the + # following: * the numeric identifier for the user * the email address of the + # user * the string literal `"me"`, indicating the requesting user + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClassroomV1::UserProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::UserProfile] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/userProfiles/{userId}', options) + command.response_representation = Google::Apis::ClassroomV1::UserProfile::Representation + command.response_class = Google::Apis::ClassroomV1::UserProfile + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudbilling_v1.rb b/generated/google/apis/cloudbilling_v1.rb new file mode 100644 index 000000000..68bdddc97 --- /dev/null +++ b/generated/google/apis/cloudbilling_v1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/cloudbilling_v1/service.rb' +require 'google/apis/cloudbilling_v1/classes.rb' +require 'google/apis/cloudbilling_v1/representations.rb' + +module Google + module Apis + # Google Cloud Billing API + # + # Retrieves Google Developers Console billing accounts and associates them with + # projects. + # + # @see https://cloud.google.com/billing/ + module CloudbillingV1 + VERSION = 'V1' + REVISION = '20150903' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/cloudbilling_v1/classes.rb b/generated/google/apis/cloudbilling_v1/classes.rb new file mode 100644 index 000000000..cd93583cd --- /dev/null +++ b/generated/google/apis/cloudbilling_v1/classes.rb @@ -0,0 +1,169 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudbillingV1 + + # A billing account in [Google Developers Console](https://console.developers. + # google.com/). You can assign a billing account to one or more projects. + class BillingAccount + include Google::Apis::Core::Hashable + + # The resource name of the billing account. The resource name has the form ` + # billingAccounts/`billing_account_id``. For example, `billingAccounts/012345- + # 567890-ABCDEF` would be the resource name for billing account `012345-567890- + # ABCDEF`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # True if the billing account is open, and will therefore be charged for any + # usage on associated projects. False if the billing account is closed, and + # therefore projects associated with it will be unable to use paid services. + # Corresponds to the JSON property `open` + # @return [Boolean] + attr_accessor :open + alias_method :open?, :open + + # The display name given to the billing account, such as `My Billing Account`. + # This name is displayed in the Google Developers Console. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @open = args[:open] unless args[:open].nil? + @display_name = args[:display_name] unless args[:display_name].nil? + end + end + + # Response message for `ListBillingAccounts`. + class ListBillingAccountsResponse + include Google::Apis::Core::Hashable + + # A list of billing accounts. + # Corresponds to the JSON property `billingAccounts` + # @return [Array] + attr_accessor :billing_accounts + + # A token to retrieve the next page of results. To retrieve the next page, call ` + # ListBillingAccounts` again with the `page_token` field set to this value. This + # field is empty if there are no more results to retrieve. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @billing_accounts = args[:billing_accounts] unless args[:billing_accounts].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Request message for `ListProjectBillingInfoResponse`. + class ListProjectBillingInfoResponse + include Google::Apis::Core::Hashable + + # A list of `ProjectBillingInfo` resources representing the projects associated + # with the billing account. + # Corresponds to the JSON property `projectBillingInfo` + # @return [Array] + attr_accessor :project_billing_info + + # A token to retrieve the next page of results. To retrieve the next page, call ` + # ListProjectBillingInfo` again with the `page_token` field set to this value. + # This field is empty if there are no more results to retrieve. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_billing_info = args[:project_billing_info] unless args[:project_billing_info].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Encapsulation of billing information for a Developers Console project. A + # project has at most one associated billing account at a time (but a billing + # account can be assigned to multiple projects). + class ProjectBillingInfo + include Google::Apis::Core::Hashable + + # The resource name for the `ProjectBillingInfo`; has the form `projects/` + # project_id`/billingInfo`. For example, the resource name for the billing + # information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/ + # billingInfo`. This field is read-only. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The ID of the project that this `ProjectBillingInfo` represents, such as ` + # tokyo-rain-123`. This is a convenience field so that you don't need to parse + # the `name` field to obtain a project ID. This field is read-only. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The resource name of the billing account associated with the project, if any. + # For example, `billingAccounts/012345-567890-ABCDEF`. + # Corresponds to the JSON property `billingAccountName` + # @return [String] + attr_accessor :billing_account_name + + # True if the project is associated with an open billing account, to which usage + # on the project is charged. False if the project is associated with a closed + # billing account, or no billing account at all, and therefore cannot use paid + # services. This field is read-only. + # Corresponds to the JSON property `billingEnabled` + # @return [Boolean] + attr_accessor :billing_enabled + alias_method :billing_enabled?, :billing_enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @project_id = args[:project_id] unless args[:project_id].nil? + @billing_account_name = args[:billing_account_name] unless args[:billing_account_name].nil? + @billing_enabled = args[:billing_enabled] unless args[:billing_enabled].nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudbilling_v1/representations.rb b/generated/google/apis/cloudbilling_v1/representations.rb new file mode 100644 index 000000000..b9288c1a4 --- /dev/null +++ b/generated/google/apis/cloudbilling_v1/representations.rb @@ -0,0 +1,79 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudbillingV1 + + class BillingAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListBillingAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListProjectBillingInfoResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ProjectBillingInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BillingAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :open, as: 'open' + property :display_name, as: 'displayName' + end + end + + class ListBillingAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :billing_accounts, as: 'billingAccounts', class: Google::Apis::CloudbillingV1::BillingAccount, decorator: Google::Apis::CloudbillingV1::BillingAccount::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListProjectBillingInfoResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :project_billing_info, as: 'projectBillingInfo', class: Google::Apis::CloudbillingV1::ProjectBillingInfo, decorator: Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ProjectBillingInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :project_id, as: 'projectId' + property :billing_account_name, as: 'billingAccountName' + property :billing_enabled, as: 'billingEnabled' + end + end + end + end +end diff --git a/generated/google/apis/cloudbilling_v1/service.rb b/generated/google/apis/cloudbilling_v1/service.rb new file mode 100644 index 000000000..b9479c90c --- /dev/null +++ b/generated/google/apis/cloudbilling_v1/service.rb @@ -0,0 +1,258 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudbillingV1 + # Google Cloud Billing API + # + # Retrieves Google Developers Console billing accounts and associates them with + # projects. + # + # @example + # require 'google/apis/cloudbilling_v1' + # + # Cloudbilling = Google::Apis::CloudbillingV1 # Alias the module + # service = Cloudbilling::CloudbillingService.new + # + # @see https://cloud.google.com/billing/ + class CloudbillingService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://cloudbilling.googleapis.com/', '') + end + + # Gets information about a billing account. The current authenticated user must + # be an [owner of the billing account](https://support.google.com/cloud/answer/ + # 4430947). + # @param [String] name + # The resource name of the billing account to retrieve. For example, ` + # billingAccounts/012345-567890-ABCDEF`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbillingV1::BillingAccount] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_billing_account(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation + command.response_class = Google::Apis::CloudbillingV1::BillingAccount + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the billing accounts that the current authenticated user [owns](https:// + # support.google.com/cloud/answer/4430947). + # @param [Fixnum] page_size + # Requested page size. The maximum page size is 100; this is also the default. + # @param [String] page_token + # A token identifying a page of results to return. This should be a ` + # next_page_token` value returned from a previous `ListBillingAccounts` call. If + # unspecified, the first page of results is returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbillingV1::ListBillingAccountsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_billing_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/billingAccounts', options) + command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation + command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the projects associated with a billing account. The current + # authenticated user must be an [owner of the billing account](https://support. + # google.com/cloud/answer/4430947). + # @param [String] name + # The resource name of the billing account associated with the projects that you + # want to list. For example, `billingAccounts/012345-567890-ABCDEF`. + # @param [Fixnum] page_size + # Requested page size. The maximum page size is 100; this is also the default. + # @param [String] page_token + # A token identifying a page of results to be returned. This should be a ` + # next_page_token` value returned from a previous `ListProjectBillingInfo` call. + # If unspecified, the first page of results is returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_billing_account_projects(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/projects', options) + command.response_representation = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse::Representation + command.response_class = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the billing information for a project. The current authenticated user + # must have [permission to view the project](https://cloud.google.com/docs/ + # permissions-overview#h.bgs0oxofvnoo ). + # @param [String] name + # The resource name of the project for which billing information is retrieved. + # For example, `projects/tokyo-rain-123`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbillingV1::ProjectBillingInfo] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbillingV1::ProjectBillingInfo] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_billing_info(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/billingInfo', options) + command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation + command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets or updates the billing account associated with a project. You specify the + # new billing account by setting the `billing_account_name` in the ` + # ProjectBillingInfo` resource to the resource name of a billing account. + # Associating a project with an open billing account enables billing on the + # project and allows charges for resource usage. If the project already had a + # billing account, this method changes the billing account used for resource + # usage charges. *Note:* Incurred charges that have not yet been reported in the + # transaction history of the Google Developers Console may be billed to the new + # billing account, even if the charge occurred before the new billing account + # was assigned to the project. The current authenticated user must have + # ownership privileges for both the [project](https://cloud.google.com/docs/ + # permissions-overview#h.bgs0oxofvnoo ) and the [billing account](https:// + # support.google.com/cloud/answer/4430947). You can disable billing on the + # project by setting the `billing_account_name` field to empty. This action + # disassociates the current billing account from the project. Any billable + # activity of your in-use services will stop, and your application could stop + # functioning as expected. Any unbilled charges to date will be billed to the + # previously associated account. The current authenticated user must be either + # an owner of the project or an owner of the billing account for the project. + # Note that associating a project with a *closed* billing account will have much + # the same effect as disabling billing on the project: any paid resources used + # by the project will be shut down. Thus, unless you wish to disable billing, + # you should always call this method with the name of an *open* billing account. + # @param [String] name + # The resource name of the project associated with the billing information that + # you want to update. For example, `projects/tokyo-rain-123`. + # @param [Google::Apis::CloudbillingV1::ProjectBillingInfo] project_billing_info_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbillingV1::ProjectBillingInfo] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbillingV1::ProjectBillingInfo] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_billing_info(name, project_billing_info_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}/billingInfo', options) + command.request_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation + command.request_object = project_billing_info_object + command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation + command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/clouddebugger_v2.rb b/generated/google/apis/clouddebugger_v2.rb new file mode 100644 index 000000000..b7b417570 --- /dev/null +++ b/generated/google/apis/clouddebugger_v2.rb @@ -0,0 +1,41 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/clouddebugger_v2/service.rb' +require 'google/apis/clouddebugger_v2/classes.rb' +require 'google/apis/clouddebugger_v2/representations.rb' + +module Google + module Apis + # Google Cloud Debugger API + # + # Lets you examine the stack and variables of your running application without + # stopping or slowing it down. + # + # @see https://cloud.google.com/tools/cloud-debugger + module ClouddebuggerV2 + VERSION = 'V2' + REVISION = '20151123' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Manage cloud debugger + AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger' + + # Manage active breakpoints in cloud debugger + AUTH_CLOUD_DEBUGLETCONTROLLER = 'https://www.googleapis.com/auth/cloud_debugletcontroller' + end + end +end diff --git a/generated/google/apis/clouddebugger_v2/classes.rb b/generated/google/apis/clouddebugger_v2/classes.rb new file mode 100644 index 000000000..139c6b3d5 --- /dev/null +++ b/generated/google/apis/clouddebugger_v2/classes.rb @@ -0,0 +1,1004 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClouddebuggerV2 + + # Request to register a debuggee. + class RegisterDebuggeeRequest + include Google::Apis::Core::Hashable + + # Represents the application to debug. The application may include one or more + # replicated processes executing the same code. Each of these processes is + # attached with a debugger agent, carrying out the debugging commands. The + # agents attached to the same debuggee are identified by using exactly the same + # field values when registering. + # Corresponds to the JSON property `debuggee` + # @return [Google::Apis::ClouddebuggerV2::Debuggee] + attr_accessor :debuggee + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @debuggee = args[:debuggee] unless args[:debuggee].nil? + end + end + + # Represents the application to debug. The application may include one or more + # replicated processes executing the same code. Each of these processes is + # attached with a debugger agent, carrying out the debugging commands. The + # agents attached to the same debuggee are identified by using exactly the same + # field values when registering. + class Debuggee + include Google::Apis::Core::Hashable + + # Unique identifier for the debuggee generated by the controller service. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Project the debuggee is associated with. Use the project number when + # registering a Google Cloud Platform project. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # Debuggee uniquifier within the project. Any string that identifies the + # application within the project can be used. Including environment and version + # or build IDs is recommended. + # Corresponds to the JSON property `uniquifier` + # @return [String] + attr_accessor :uniquifier + + # Human readable description of the debuggee. Including a human-readable project + # name, environment name and version information is recommended. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # If set to `true`, indicates that the debuggee is considered as inactive by the + # Controller service. + # Corresponds to the JSON property `isInactive` + # @return [Boolean] + attr_accessor :is_inactive + alias_method :is_inactive?, :is_inactive + + # Version ID of the agent release. The version ID is structured as following: ` + # domain/type/vmajor.minor` (for example `google.com/gcp-java/v1.1`). + # Corresponds to the JSON property `agentVersion` + # @return [String] + attr_accessor :agent_version + + # If set to `true`, indicates that the agent should disable itself and detach + # from the debuggee. + # Corresponds to the JSON property `isDisabled` + # @return [Boolean] + attr_accessor :is_disabled + alias_method :is_disabled?, :is_disabled + + # Represents a contextual status message. The message can indicate an error or + # informational status, and refer to specific parts of the containing object. + # For example, the `Breakpoint.status` field can indicate an error referring to + # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ClouddebuggerV2::StatusMessage] + attr_accessor :status + + # References to the locations and revisions of the source code used in the + # deployed application. NOTE: This field is deprecated. Consumers should use ` + # ext_source_contexts` if it is not empty. Debug agents should populate both + # this field and `ext_source_contexts`. + # Corresponds to the JSON property `sourceContexts` + # @return [Array] + attr_accessor :source_contexts + + # References to the locations and revisions of the source code used in the + # deployed application. Contexts describing a remote repo related to the source + # code have a `category` label of `remote_repo`. Source snapshot source contexts + # have a `category` of `snapshot`. + # Corresponds to the JSON property `extSourceContexts` + # @return [Array] + attr_accessor :ext_source_contexts + + # A set of custom debuggee properties, populated by the agent, to be displayed + # to the user. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @project = args[:project] unless args[:project].nil? + @uniquifier = args[:uniquifier] unless args[:uniquifier].nil? + @description = args[:description] unless args[:description].nil? + @is_inactive = args[:is_inactive] unless args[:is_inactive].nil? + @agent_version = args[:agent_version] unless args[:agent_version].nil? + @is_disabled = args[:is_disabled] unless args[:is_disabled].nil? + @status = args[:status] unless args[:status].nil? + @source_contexts = args[:source_contexts] unless args[:source_contexts].nil? + @ext_source_contexts = args[:ext_source_contexts] unless args[:ext_source_contexts].nil? + @labels = args[:labels] unless args[:labels].nil? + end + end + + # Represents a contextual status message. The message can indicate an error or + # informational status, and refer to specific parts of the containing object. + # For example, the `Breakpoint.status` field can indicate an error referring to + # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. + class StatusMessage + include Google::Apis::Core::Hashable + + # Distinguishes errors from informational messages. + # Corresponds to the JSON property `isError` + # @return [Boolean] + attr_accessor :is_error + alias_method :is_error?, :is_error + + # Reference to which the message applies. + # Corresponds to the JSON property `refersTo` + # @return [String] + attr_accessor :refers_to + + # Represents a message with parameters. + # Corresponds to the JSON property `description` + # @return [Google::Apis::ClouddebuggerV2::FormatMessage] + attr_accessor :description + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_error = args[:is_error] unless args[:is_error].nil? + @refers_to = args[:refers_to] unless args[:refers_to].nil? + @description = args[:description] unless args[:description].nil? + end + end + + # Represents a message with parameters. + class FormatMessage + include Google::Apis::Core::Hashable + + # Format template for the message. The `format` uses placeholders `$0`, `$1`, + # etc. to reference parameters. `$$` can be used to denote the `$` character. + # Examples: * `Failed to load '$0' which helps debug $1 the first time it is + # loaded. Again, $0 is very important.` * `Please pay $$10 to use $0 instead of $ + # 1.` + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Optional parameters to be embedded into the message. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @format = args[:format] unless args[:format].nil? + @parameters = args[:parameters] unless args[:parameters].nil? + end + end + + # A SourceContext is a reference to a tree of files. A SourceContext together + # with a path point to a unique revision of a single file or directory. + class SourceContext + include Google::Apis::Core::Hashable + + # A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo + # hosted by the Google Cloud Platform). + # Corresponds to the JSON property `cloudRepo` + # @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext] + attr_accessor :cloud_repo + + # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. + # Corresponds to the JSON property `cloudWorkspace` + # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext] + attr_accessor :cloud_workspace + + # A SourceContext referring to a Gerrit project. + # Corresponds to the JSON property `gerrit` + # @return [Google::Apis::ClouddebuggerV2::GerritSourceContext] + attr_accessor :gerrit + + # A GitSourceContext denotes a particular revision in a third party Git + # repository (e.g. GitHub). + # Corresponds to the JSON property `git` + # @return [Google::Apis::ClouddebuggerV2::GitSourceContext] + attr_accessor :git + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cloud_repo = args[:cloud_repo] unless args[:cloud_repo].nil? + @cloud_workspace = args[:cloud_workspace] unless args[:cloud_workspace].nil? + @gerrit = args[:gerrit] unless args[:gerrit].nil? + @git = args[:git] unless args[:git].nil? + end + end + + # A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo + # hosted by the Google Cloud Platform). + class CloudRepoSourceContext + include Google::Apis::Core::Hashable + + # A unique identifier for a cloud repo. + # Corresponds to the JSON property `repoId` + # @return [Google::Apis::ClouddebuggerV2::RepoId] + attr_accessor :repo_id + + # A revision ID. + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + # The name of an alias (branch, tag, etc.). + # Corresponds to the JSON property `aliasName` + # @return [String] + attr_accessor :alias_name + + # An alias to a repo revision. + # Corresponds to the JSON property `aliasContext` + # @return [Google::Apis::ClouddebuggerV2::AliasContext] + attr_accessor :alias_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @repo_id = args[:repo_id] unless args[:repo_id].nil? + @revision_id = args[:revision_id] unless args[:revision_id].nil? + @alias_name = args[:alias_name] unless args[:alias_name].nil? + @alias_context = args[:alias_context] unless args[:alias_context].nil? + end + end + + # A unique identifier for a cloud repo. + class RepoId + include Google::Apis::Core::Hashable + + # Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) + # and a repo name within that project. + # Corresponds to the JSON property `projectRepoId` + # @return [Google::Apis::ClouddebuggerV2::ProjectRepoId] + attr_accessor :project_repo_id + + # A server-assigned, globally unique identifier. + # Corresponds to the JSON property `uid` + # @return [String] + attr_accessor :uid + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_repo_id = args[:project_repo_id] unless args[:project_repo_id].nil? + @uid = args[:uid] unless args[:uid].nil? + end + end + + # Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) + # and a repo name within that project. + class ProjectRepoId + include Google::Apis::Core::Hashable + + # The ID of the project. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The name of the repo. Leave empty for the default repo. + # Corresponds to the JSON property `repoName` + # @return [String] + attr_accessor :repo_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_id = args[:project_id] unless args[:project_id].nil? + @repo_name = args[:repo_name] unless args[:repo_name].nil? + end + end + + # An alias to a repo revision. + class AliasContext + include Google::Apis::Core::Hashable + + # The alias kind. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The alias name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + end + end + + # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. + class CloudWorkspaceSourceContext + include Google::Apis::Core::Hashable + + # A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud + # workspace is a place associated with a repo where modified files can be stored + # before they are committed. + # Corresponds to the JSON property `workspaceId` + # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId] + attr_accessor :workspace_id + + # The ID of the snapshot. An empty snapshot_id refers to the most recent + # snapshot. + # Corresponds to the JSON property `snapshotId` + # @return [String] + attr_accessor :snapshot_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @workspace_id = args[:workspace_id] unless args[:workspace_id].nil? + @snapshot_id = args[:snapshot_id] unless args[:snapshot_id].nil? + end + end + + # A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud + # workspace is a place associated with a repo where modified files can be stored + # before they are committed. + class CloudWorkspaceId + include Google::Apis::Core::Hashable + + # A unique identifier for a cloud repo. + # Corresponds to the JSON property `repoId` + # @return [Google::Apis::ClouddebuggerV2::RepoId] + attr_accessor :repo_id + + # The unique name of the workspace within the repo. This is the name chosen by + # the client in the Source API's CreateWorkspace method. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @repo_id = args[:repo_id] unless args[:repo_id].nil? + @name = args[:name] unless args[:name].nil? + end + end + + # A SourceContext referring to a Gerrit project. + class GerritSourceContext + include Google::Apis::Core::Hashable + + # The URI of a running Gerrit instance. + # Corresponds to the JSON property `hostUri` + # @return [String] + attr_accessor :host_uri + + # The full project name within the host. Projects may be nested, so "project/ + # subproject" is a valid project name. The "repo name" is hostURI/project. + # Corresponds to the JSON property `gerritProject` + # @return [String] + attr_accessor :gerrit_project + + # A revision (commit) ID. + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + # The name of an alias (branch, tag, etc.). + # Corresponds to the JSON property `aliasName` + # @return [String] + attr_accessor :alias_name + + # An alias to a repo revision. + # Corresponds to the JSON property `aliasContext` + # @return [Google::Apis::ClouddebuggerV2::AliasContext] + attr_accessor :alias_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @host_uri = args[:host_uri] unless args[:host_uri].nil? + @gerrit_project = args[:gerrit_project] unless args[:gerrit_project].nil? + @revision_id = args[:revision_id] unless args[:revision_id].nil? + @alias_name = args[:alias_name] unless args[:alias_name].nil? + @alias_context = args[:alias_context] unless args[:alias_context].nil? + end + end + + # A GitSourceContext denotes a particular revision in a third party Git + # repository (e.g. GitHub). + class GitSourceContext + include Google::Apis::Core::Hashable + + # Git repository URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # Git commit hash. required. + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url = args[:url] unless args[:url].nil? + @revision_id = args[:revision_id] unless args[:revision_id].nil? + end + end + + # An ExtendedSourceContext is a SourceContext combined with additional details + # describing the context. + class ExtendedSourceContext + include Google::Apis::Core::Hashable + + # A SourceContext is a reference to a tree of files. A SourceContext together + # with a path point to a unique revision of a single file or directory. + # Corresponds to the JSON property `context` + # @return [Google::Apis::ClouddebuggerV2::SourceContext] + attr_accessor :context + + # Labels with user defined metadata. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @context = args[:context] unless args[:context].nil? + @labels = args[:labels] unless args[:labels].nil? + end + end + + # Response for registering a debuggee. + class RegisterDebuggeeResponse + include Google::Apis::Core::Hashable + + # Represents the application to debug. The application may include one or more + # replicated processes executing the same code. Each of these processes is + # attached with a debugger agent, carrying out the debugging commands. The + # agents attached to the same debuggee are identified by using exactly the same + # field values when registering. + # Corresponds to the JSON property `debuggee` + # @return [Google::Apis::ClouddebuggerV2::Debuggee] + attr_accessor :debuggee + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @debuggee = args[:debuggee] unless args[:debuggee].nil? + end + end + + # Response for listing active breakpoints. + class ListActiveBreakpointsResponse + include Google::Apis::Core::Hashable + + # List of all active breakpoints. The fields `id` and `location` are guaranteed + # to be set on each breakpoint. + # Corresponds to the JSON property `breakpoints` + # @return [Array] + attr_accessor :breakpoints + + # A wait token that can be used in the next method call to block until the list + # of breakpoints changes. + # Corresponds to the JSON property `nextWaitToken` + # @return [String] + attr_accessor :next_wait_token + + # The `wait_expired` field is set to true by the server when the request times + # out and the field `success_on_timeout` is set to true. + # Corresponds to the JSON property `waitExpired` + # @return [Boolean] + attr_accessor :wait_expired + alias_method :wait_expired?, :wait_expired + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoints = args[:breakpoints] unless args[:breakpoints].nil? + @next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil? + @wait_expired = args[:wait_expired] unless args[:wait_expired].nil? + end + end + + # Represents the breakpoint specification, status and results. + class Breakpoint + include Google::Apis::Core::Hashable + + # Breakpoint identifier, unique in the scope of the debuggee. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Action that the agent should perform when the code at the breakpoint location + # is hit. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Represents a location in the source code. + # Corresponds to the JSON property `location` + # @return [Google::Apis::ClouddebuggerV2::SourceLocation] + attr_accessor :location + + # Condition that triggers the breakpoint. The condition is a compound boolean + # expression composed using expressions in a programming language at the source + # location. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # List of read-only expressions to evaluate at the breakpoint location. The + # expressions are composed using expressions in the programming language at the + # source location. If the breakpoint action is `LOG`, the evaluated expressions + # are included in log statements. + # Corresponds to the JSON property `expressions` + # @return [Array] + attr_accessor :expressions + + # Only relevant when action is `LOG`. Defines the message to log when the + # breakpoint hits. The message may include parameter placeholders `$0`, `$1`, + # etc. These placeholders are replaced with the evaluated value of the + # appropriate expression. Expressions not referenced in `log_message_format` are + # not logged. Example: `Message received, id = $0, count = $1` with `expressions` + # = `[ message.id, message.count ]`. + # Corresponds to the JSON property `logMessageFormat` + # @return [String] + attr_accessor :log_message_format + + # Indicates the severity of the log. Only relevant when action is `LOG`. + # Corresponds to the JSON property `logLevel` + # @return [String] + attr_accessor :log_level + + # When true, indicates that this is a final result and the breakpoint state will + # not change from here on. + # Corresponds to the JSON property `isFinalState` + # @return [Boolean] + attr_accessor :is_final_state + alias_method :is_final_state?, :is_final_state + + # Time this breakpoint was created by the server in seconds resolution. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Time this breakpoint was finalized as seen by the server in seconds resolution. + # Corresponds to the JSON property `finalTime` + # @return [String] + attr_accessor :final_time + + # E-mail address of the user that created this breakpoint + # Corresponds to the JSON property `userEmail` + # @return [String] + attr_accessor :user_email + + # Represents a contextual status message. The message can indicate an error or + # informational status, and refer to specific parts of the containing object. + # For example, the `Breakpoint.status` field can indicate an error referring to + # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ClouddebuggerV2::StatusMessage] + attr_accessor :status + + # The stack at breakpoint time. + # Corresponds to the JSON property `stackFrames` + # @return [Array] + attr_accessor :stack_frames + + # Values of evaluated expressions at breakpoint time. The evaluated expressions + # appear in exactly the same order they are listed in the `expressions` field. + # The `name` field holds the original expression text, the `value` or `members` + # field holds the result of the evaluated expression. If the expression cannot + # be evaluated, the `status` inside the `Variable` will indicate an error and + # contain the error text. + # Corresponds to the JSON property `evaluatedExpressions` + # @return [Array] + attr_accessor :evaluated_expressions + + # The `variable_table` exists to aid with computation, memory and network + # traffic optimization. It enables storing a variable once and reference it from + # multiple variables, including variables stored in the `variable_table` itself. + # For example, the same `this` object, which may appear at many levels of the + # stack, can have all of its data stored once in this table. The stack frame + # variables then would hold only a reference to it. The variable ` + # var_table_index` field is an index into this repeated field. The stored + # objects are nameless and get their name from the referencing variable. The + # effective variable is a merge of the referencing veariable and the referenced + # variable. + # Corresponds to the JSON property `variableTable` + # @return [Array] + attr_accessor :variable_table + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @action = args[:action] unless args[:action].nil? + @location = args[:location] unless args[:location].nil? + @condition = args[:condition] unless args[:condition].nil? + @expressions = args[:expressions] unless args[:expressions].nil? + @log_message_format = args[:log_message_format] unless args[:log_message_format].nil? + @log_level = args[:log_level] unless args[:log_level].nil? + @is_final_state = args[:is_final_state] unless args[:is_final_state].nil? + @create_time = args[:create_time] unless args[:create_time].nil? + @final_time = args[:final_time] unless args[:final_time].nil? + @user_email = args[:user_email] unless args[:user_email].nil? + @status = args[:status] unless args[:status].nil? + @stack_frames = args[:stack_frames] unless args[:stack_frames].nil? + @evaluated_expressions = args[:evaluated_expressions] unless args[:evaluated_expressions].nil? + @variable_table = args[:variable_table] unless args[:variable_table].nil? + end + end + + # Represents a location in the source code. + class SourceLocation + include Google::Apis::Core::Hashable + + # Path to the source file within the source context of the target binary. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + # Line inside the file. The first line in the file has the value `1`. + # Corresponds to the JSON property `line` + # @return [Fixnum] + attr_accessor :line + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path = args[:path] unless args[:path].nil? + @line = args[:line] unless args[:line].nil? + end + end + + # Represents a stack frame context. + class StackFrame + include Google::Apis::Core::Hashable + + # Demangled function name at the call site. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # Represents a location in the source code. + # Corresponds to the JSON property `location` + # @return [Google::Apis::ClouddebuggerV2::SourceLocation] + attr_accessor :location + + # Set of arguments passed to this function. Note that this might not be + # populated for all stack frames. + # Corresponds to the JSON property `arguments` + # @return [Array] + attr_accessor :arguments + + # Set of local variables at the stack frame location. Note that this might not + # be populated for all stack frames. + # Corresponds to the JSON property `locals` + # @return [Array] + attr_accessor :locals + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @function = args[:function] unless args[:function].nil? + @location = args[:location] unless args[:location].nil? + @arguments = args[:arguments] unless args[:arguments].nil? + @locals = args[:locals] unless args[:locals].nil? + end + end + + # Represents a variable or an argument possibly of a compound object type. Note + # how the following variables are represented: 1) A simple variable: int x = 5 ` + # name: "x", value: "5", type: "int" ` // Captured variable 2) A compound object: + # struct T ` int m1; int m2; `; T x = ` 3, 7 `; ` // Captured variable name: "x" + # , type: "T", members ` name: "m1", value: "3", type: "int" `, members ` name: " + # m2", value: "7", type: "int" ` ` 3) A pointer where the pointee was captured: + # T x = ` 3, 7 `; T* p = &x; ` // Captured variable name: "p", type: "T*", value: + # "0x00500500", members ` name: "m1", value: "3", type: "int" `, members ` name: + # "m2", value: "7", type: "int" ` ` 4) A pointer where the pointee was not + # captured: T* p = new T; ` // Captured variable name: "p", type: "T*", value: " + # 0x00400400" status ` is_error: true, description ` format: "unavailable" ` ` ` + # The status should describe the reason for the missing value, such as ``, ``, ` + # `. Note that a null pointer should not have members. 5) An unnamed value: int* + # p = new int(7); ` // Captured variable name: "p", value: "0x00500500", type: " + # int*", members ` value: "7", type: "int" ` ` 6) An unnamed pointer where the + # pointee was not captured: int* p = new int(7); int** pp = &p; ` // Captured + # variable name: "pp", value: "0x00500500", type: "int**", members ` value: " + # 0x00400400", type: "int*" status ` is_error: true, description: ` format: " + # unavailable" ` ` ` ` ` To optimize computation, memory and network traffic, + # variables that repeat in the output multiple times can be stored once in a + # shared variable table and be referenced using the `var_table_index` field. The + # variables stored in the shared table are nameless and are essentially a + # partition of the complete variable. To reconstruct the complete variable, + # merge the referencing variable with the referenced variable. When using the + # shared variable table, the following variables: T x = ` 3, 7 `; T* p = &x; T& + # r = x; ` name: "x", var_table_index: 3, type: "T" ` // Captured variables ` + # name: "p", value "0x00500500", type="T*", var_table_index: 3 ` ` name: "r", + # type="T&", var_table_index: 3 ` ` // Shared variable table entry #3: members ` + # name: "m1", value: "3", type: "int" `, members ` name: "m2", value: "7", type: + # "int" ` ` Note that the pointer address is stored with the referencing + # variable and not with the referenced variable. This allows the referenced + # variable to be shared between pointers and references. The type field is + # optional. The debugger agent may or may not support it. + class Variable + include Google::Apis::Core::Hashable + + # Name of the variable, if any. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Simple value of the variable. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # Variable type (e.g. `MyClass`). If the variable is split with `var_table_index` + # , `type` goes next to `value`. The interpretation of a type is agent specific. + # It is recommended to include the dynamic type rather than a static type of an + # object. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Members contained or pointed to by the variable. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Reference to a variable in the shared variable table. More than one variable + # can reference the same variable in the table. The `var_table_index` field is + # an index into `variable_table` in Breakpoint. + # Corresponds to the JSON property `varTableIndex` + # @return [Fixnum] + attr_accessor :var_table_index + + # Represents a contextual status message. The message can indicate an error or + # informational status, and refer to specific parts of the containing object. + # For example, the `Breakpoint.status` field can indicate an error referring to + # the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ClouddebuggerV2::StatusMessage] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @value = args[:value] unless args[:value].nil? + @type = args[:type] unless args[:type].nil? + @members = args[:members] unless args[:members].nil? + @var_table_index = args[:var_table_index] unless args[:var_table_index].nil? + @status = args[:status] unless args[:status].nil? + end + end + + # Request to update an active breakpoint. + class UpdateActiveBreakpointRequest + include Google::Apis::Core::Hashable + + # Represents the breakpoint specification, status and results. + # Corresponds to the JSON property `breakpoint` + # @return [Google::Apis::ClouddebuggerV2::Breakpoint] + attr_accessor :breakpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoint = args[:breakpoint] unless args[:breakpoint].nil? + end + end + + # Response for updating an active breakpoint. The message is defined to allow + # future extensions. + class UpdateActiveBreakpointResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response for setting a breakpoint. + class SetBreakpointResponse + include Google::Apis::Core::Hashable + + # Represents the breakpoint specification, status and results. + # Corresponds to the JSON property `breakpoint` + # @return [Google::Apis::ClouddebuggerV2::Breakpoint] + attr_accessor :breakpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoint = args[:breakpoint] unless args[:breakpoint].nil? + end + end + + # Response for getting breakpoint information. + class GetBreakpointResponse + include Google::Apis::Core::Hashable + + # Represents the breakpoint specification, status and results. + # Corresponds to the JSON property `breakpoint` + # @return [Google::Apis::ClouddebuggerV2::Breakpoint] + attr_accessor :breakpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoint = args[:breakpoint] unless args[:breakpoint].nil? + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response for listing breakpoints. + class ListBreakpointsResponse + include Google::Apis::Core::Hashable + + # List of all breakpoints with complete state. The fields `id` and `location` + # are guaranteed to be set on each breakpoint. + # Corresponds to the JSON property `breakpoints` + # @return [Array] + attr_accessor :breakpoints + + # A wait token that can be used in the next call to `list` (REST) or ` + # ListBreakpoints` (RPC) to block until the list of breakpoints has changes. + # Corresponds to the JSON property `nextWaitToken` + # @return [String] + attr_accessor :next_wait_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @breakpoints = args[:breakpoints] unless args[:breakpoints].nil? + @next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil? + end + end + + # Response for listing debuggees. + class ListDebuggeesResponse + include Google::Apis::Core::Hashable + + # List of debuggees accessible to the calling user. Note that the `description` + # field is the only human readable field that should be displayed to the user. + # The fields `debuggee.id` and `description` fields are guaranteed to be set on + # each debuggee. + # Corresponds to the JSON property `debuggees` + # @return [Array] + attr_accessor :debuggees + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @debuggees = args[:debuggees] unless args[:debuggees].nil? + end + end + end + end +end diff --git a/generated/google/apis/clouddebugger_v2/representations.rb b/generated/google/apis/clouddebugger_v2/representations.rb new file mode 100644 index 000000000..a8dfecd2d --- /dev/null +++ b/generated/google/apis/clouddebugger_v2/representations.rb @@ -0,0 +1,410 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClouddebuggerV2 + + class RegisterDebuggeeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Debuggee + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class StatusMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class FormatMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CloudRepoSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RepoId + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ProjectRepoId + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AliasContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CloudWorkspaceSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CloudWorkspaceId + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GerritSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GitSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExtendedSourceContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RegisterDebuggeeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListActiveBreakpointsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Breakpoint + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SourceLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class StackFrame + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Variable + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UpdateActiveBreakpointRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UpdateActiveBreakpointResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SetBreakpointResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetBreakpointResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListBreakpointsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListDebuggeesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RegisterDebuggeeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation + + end + end + + class Debuggee + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :project, as: 'project' + property :uniquifier, as: 'uniquifier' + property :description, as: 'description' + property :is_inactive, as: 'isInactive' + property :agent_version, as: 'agentVersion' + property :is_disabled, as: 'isDisabled' + property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation + + collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation + + collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation + + hash :labels, as: 'labels' + end + end + + class StatusMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_error, as: 'isError' + property :refers_to, as: 'refersTo' + property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation + + end + end + + class FormatMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :format, as: 'format' + collection :parameters, as: 'parameters' + end + end + + class SourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation + + property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation + + property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation + + property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation + + end + end + + class CloudRepoSourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation + + property :revision_id, as: 'revisionId' + property :alias_name, as: 'aliasName' + property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation + + end + end + + class RepoId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation + + property :uid, as: 'uid' + end + end + + class ProjectRepoId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + property :repo_name, as: 'repoName' + end + end + + class AliasContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class CloudWorkspaceSourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation + + property :snapshot_id, as: 'snapshotId' + end + end + + class CloudWorkspaceId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation + + property :name, as: 'name' + end + end + + class GerritSourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :host_uri, as: 'hostUri' + property :gerrit_project, as: 'gerritProject' + property :revision_id, as: 'revisionId' + property :alias_name, as: 'aliasName' + property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation + + end + end + + class GitSourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :revision_id, as: 'revisionId' + end + end + + class ExtendedSourceContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation + + hash :labels, as: 'labels' + end + end + + class RegisterDebuggeeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation + + end + end + + class ListActiveBreakpointsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation + + property :next_wait_token, as: 'nextWaitToken' + property :wait_expired, as: 'waitExpired' + end + end + + class Breakpoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :action, as: 'action' + property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation + + property :condition, as: 'condition' + collection :expressions, as: 'expressions' + property :log_message_format, as: 'logMessageFormat' + property :log_level, as: 'logLevel' + property :is_final_state, as: 'isFinalState' + property :create_time, as: 'createTime' + property :final_time, as: 'finalTime' + property :user_email, as: 'userEmail' + property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation + + collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation + + collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + + collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + + end + end + + class SourceLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path, as: 'path' + property :line, as: 'line' + end + end + + class StackFrame + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :function, as: 'function' + property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation + + collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + + collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + + end + end + + class Variable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + property :type, as: 'type' + collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + + property :var_table_index, as: 'varTableIndex' + property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation + + end + end + + class UpdateActiveBreakpointRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation + + end + end + + class UpdateActiveBreakpointResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class SetBreakpointResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation + + end + end + + class GetBreakpointResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListBreakpointsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation + + property :next_wait_token, as: 'nextWaitToken' + end + end + + class ListDebuggeesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation + + end + end + end + end +end diff --git a/generated/google/apis/clouddebugger_v2/service.rb b/generated/google/apis/clouddebugger_v2/service.rb new file mode 100644 index 000000000..433ced402 --- /dev/null +++ b/generated/google/apis/clouddebugger_v2/service.rb @@ -0,0 +1,370 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClouddebuggerV2 + # Google Cloud Debugger API + # + # Lets you examine the stack and variables of your running application without + # stopping or slowing it down. + # + # @example + # require 'google/apis/clouddebugger_v2' + # + # Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module + # service = Clouddebugger::ClouddebuggerService.new + # + # @see https://cloud.google.com/tools/cloud-debugger + class ClouddebuggerService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://clouddebugger.googleapis.com/', '') + end + + # Registers the debuggee with the controller service. All agents attached to the + # same application should call this method with the same request content to get + # back the same stable `debuggee_id`. Agents should call this method again + # whenever `google.rpc.Code.NOT_FOUND` is returned from any controller method. + # This allows the controller service to disable the agent or recover from any + # data loss. If the debuggee is disabled by the server, the response will have ` + # is_disabled` set to `true`. + # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/controller/debuggees/register', options) + command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation + command.request_object = register_debuggee_request_object + command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all active breakpoints for the debuggee. The breakpoint + # specification (location, condition, and expression fields) is semantically + # immutable, although the field values may change. For example, an agent may + # update the location line number to reflect the actual line where the + # breakpoint was set, but this doesn't change the breakpoint semantics. This + # means that an agent does not need to check if a breakpoint has changed when it + # encounters the same breakpoint on a successive call. Moreover, an agent should + # remember the breakpoints that are completed until the controller removes them + # from the active list to avoid setting those breakpoints again. + # @param [String] debuggee_id + # Identifies the debuggee. + # @param [String] wait_token + # A wait token that, if specified, blocks the method call until the list of + # active breakpoints has changed, or a server selected timeout has expired. The + # value should be set from the last returned response. + # @param [Boolean] success_on_timeout + # If set to `true`, returns `google.rpc.Code.OK` status and sets the ` + # wait_expired` response field to `true` when the server-selected timeout has + # expired (recommended). If set to `false`, returns `google.rpc.Code.ABORTED` + # status when the server-selected timeout has expired (deprecated). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options) + command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.query['waitToken'] = wait_token unless wait_token.nil? + command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the breakpoint state or mutable fields. The entire Breakpoint message + # must be sent back to the controller service. Updates to active breakpoint + # fields are only allowed if the new value does not change the breakpoint + # specification. Updates to the `location`, `condition` and `expression` fields + # should not alter the breakpoint semantics. These may only make changes such as + # canonicalizing a value or snapping the location to the correct line of code. + # @param [String] debuggee_id + # Identifies the debuggee being debugged. + # @param [String] id + # Breakpoint identifier, unique in the scope of the debuggee. + # @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options) + command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation + command.request_object = update_active_breakpoint_request_object + command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the debuggees that the user can set breakpoints to. + # @param [String] project + # Project number of a Google Cloud project whose debuggees to list. + # @param [Boolean] include_inactive + # When set to `true`, the result includes all debuggees. Otherwise, the result + # includes only debuggees that are active. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_debugger_debuggees(project: nil, include_inactive: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/debugger/debuggees', options) + command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse + command.query['project'] = project unless project.nil? + command.query['includeInactive'] = include_inactive unless include_inactive.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the breakpoint to the debuggee. + # @param [String] debuggee_id + # ID of the debuggee where the breakpoint is to be set. + # @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options) + command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation + command.request_object = breakpoint_object + command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets breakpoint information. + # @param [String] debuggee_id + # ID of the debuggee whose breakpoint to get. + # @param [String] breakpoint_id + # ID of the breakpoint to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) + command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the breakpoint from the debuggee. + # @param [String] debuggee_id + # ID of the debuggee whose breakpoint to delete. + # @param [String] breakpoint_id + # ID of the breakpoint to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) + command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation + command.response_class = Google::Apis::ClouddebuggerV2::Empty + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all breakpoints for the debuggee. + # @param [String] debuggee_id + # ID of the debuggee whose breakpoints to list. + # @param [Boolean] include_all_users + # When set to `true`, the response includes the list of breakpoints set by any + # user. Otherwise, it includes only breakpoints set by the caller. + # @param [Boolean] include_inactive + # When set to `true`, the response includes active and inactive breakpoints. + # Otherwise, it includes only active breakpoints. + # @param [String] action_value + # Only breakpoints with the specified action will pass the filter. + # @param [Boolean] strip_results + # When set to `true`, the response breakpoints are stripped of the results + # fields: `stack_frames`, `evaluated_expressions` and `variable_table`. + # @param [String] wait_token + # A wait token that, if specified, blocks the call until the breakpoints list + # has changed, or a server selected timeout has expired. The value should be set + # from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is + # returned on wait timeout, which should be called again with the same ` + # wait_token`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, action_value: nil, strip_results: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options) + command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation + command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse + command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.query['includeAllUsers'] = include_all_users unless include_all_users.nil? + command.query['includeInactive'] = include_inactive unless include_inactive.nil? + command.query['action.value'] = action_value unless action_value.nil? + command.query['stripResults'] = strip_results unless strip_results.nil? + command.query['waitToken'] = wait_token unless wait_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudmonitoring_v2beta2.rb b/generated/google/apis/cloudmonitoring_v2beta2.rb index fc85c24d8..53d7e6ffe 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/monitoring/v2beta2/ module CloudmonitoringV2beta2 VERSION = 'V2beta2' - REVISION = '20150727' + REVISION = '20151130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudmonitoring_v2beta2/service.rb b/generated/google/apis/cloudmonitoring_v2beta2/service.rb index 19c38583e..c8f91d0a6 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2/service.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2/service.rb @@ -79,8 +79,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_metric_descriptor(project, metric_descriptor_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/metricDescriptors' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/metricDescriptors', options) command.request_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation command.request_object = metric_descriptor_object command.response_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation @@ -119,8 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_metric_descriptor(project, metric, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/metricDescriptors/{metric}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/metricDescriptors/{metric}', options) command.response_representation = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse::Representation command.response_class = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse command.params['project'] = project unless project.nil? @@ -175,8 +173,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_metric_descriptors(project, list_metric_descriptors_request_object = nil, count: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/metricDescriptors' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/metricDescriptors', options) command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsRequest::Representation command.request_object = list_metric_descriptors_request_object command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse::Representation @@ -273,8 +270,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_timeseries(project, metric, youngest, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/timeseries/{metric}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/timeseries/{metric}', options) command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation command.request_object = list_timeseries_request_object command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse::Representation @@ -328,8 +324,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def write_timeseries(project, write_timeseries_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/timeseries:write' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/timeseries:write', options) command.request_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest::Representation command.request_object = write_timeseries_request_object command.response_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse::Representation @@ -423,8 +418,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_timeseries_descriptors(project, metric, youngest, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/timeseriesDescriptors/{metric}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/timeseriesDescriptors/{metric}', options) command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation command.request_object = list_timeseries_descriptors_request_object command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse::Representation diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 0100ba43d..30d5778c7 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,10 +26,13 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20150729' + REVISION = '20151117' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 13a58cf25..0fb0b3993 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -44,10 +44,9 @@ module Google # @return [String] attr_accessor :lifecycle_state - # The user-assigned name of the project. This field is optional and can remain - # unset. Allowed characters are: lowercase and uppercase letters, numbers, - # hyphen, single-quote, double-quote, space, and exclamation point. Example: My - # Project Read-write. + # The user-assigned name of the project. It must be 4 to 30 characters. Allowed + # characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, + # double-quote, space, and exclamation point. Example: My Project Read-write. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -69,6 +68,14 @@ module Google # @return [Hash] attr_accessor :labels + # A container to reference an id for any resource type. A 'resource' in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an AppEngine app, a + # Compute Engine instance, Cloud SQL database, ... + # Corresponds to the JSON property `parent` + # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId] + attr_accessor :parent + def initialize(**args) update!(**args) end @@ -81,14 +88,43 @@ module Google @name = args[:name] unless args[:name].nil? @create_time = args[:create_time] unless args[:create_time].nil? @labels = args[:labels] unless args[:labels].nil? + @parent = args[:parent] unless args[:parent].nil? end end - # A page of the response received from the [ListProjects][google. - # cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] method. - # A paginated response where more pages are available has `next_page_token` set. - # This token can be used in a subsequent request to retrieve the next request - # page. + # A container to reference an id for any resource type. A 'resource' in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an AppEngine app, a + # Compute Engine instance, Cloud SQL database, ... + class ResourceId + include Google::Apis::Core::Hashable + + # Required field representing the resource type this id is for. At present, the + # only valid type is "organization". + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Required field for the type-specific id. This should correspond to the id used + # in the type-specific API's. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] unless args[:type].nil? + @id = args[:id] unless args[:id].nil? + end + end + + # A page of the response received from the ListProjects method. A paginated + # response where more pages are available has `next_page_token` set. This token + # can be used in a subsequent request to retrieve the next request page. class ListProjectsResponse include Google::Apis::Core::Hashable @@ -102,8 +138,7 @@ module Google # Feeding this value into a new list request with the `page_token` parameter # gives the next page of the results. When `next_page_token` is not filled in, # there is no next page and the list returned is the last page in the result set. - # Pagination tokens have a limited lifetime. Note: pagination is not yet - # supported; the server will not set this field. + # Pagination tokens have a limited lifetime. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -149,41 +184,39 @@ module Google end end - # # Overview The `Policy` defines an access control policy language. It is used - # to define policies that are attached to resources like files, folders, VMs, - # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` - # binds a set of members to a role, where the members include user accounts, - # user groups, user domains, and service accounts. A 'role' is a named set of - # permissions, defined by IAM. The definition of a role is outside the policy. A - # permission check first determines the roles that include the specified - # permission, and then determines if the principal specified is a member of a - # binding to at least one of these roles. The membership check is recursive when - # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " - # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", - # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. - # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` - # `` + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). class Policy include Google::Apis::Core::Hashable - # The policy language version. The version of the policy is represented by the - # etag. The default version is 0. + # Version of the `Policy`. The default version is 0. 0 = + # resourcemanager_projects only support legacy roles. 1 = supports non-legacy + # roles 2 = supports AuditConfig # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version - # It is an error to specify multiple bindings for the same role. It is an error - # to specify a binding with no members. + # Associates a list of `members` to a `role`. Multiple `bindings` must not be + # specified for the same `role`. `bindings` with no members will result in an + # error. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - # Can be used to perform a read-modify-write. + # The etag is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the etag in the read-modify-write cycle to + # perform policy updates in order to avoid race conditions. If no etag is + # provided in the call to SetIamPolicy, then the existing policy is overwritten + # blindly. # Corresponds to the JSON property `etag` # @return [String] attr_accessor :etag @@ -196,29 +229,32 @@ module Google def update!(**args) @version = args[:version] unless args[:version].nil? @bindings = args[:bindings] unless args[:bindings].nil? - @rules = args[:rules] unless args[:rules].nil? @etag = args[:etag] unless args[:etag].nil? end end - # Associates members with roles. See below for allowed formats of members. + # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable - # The name of the role to which the members should be bound. Examples: "roles/ - # viewer", "roles/editor", "roles/owner". Required + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role - # Format of member entries: 1. allUsers Matches any requesting principal (users, - # service accounts or anonymous). 2. allAuthenticatedUsers Matches any - # requesting authenticated principal (users or service accounts). 3. user:` - # emailid` A google user account using an email address. For example alice@gmail. - # com, joe@example.com 4. serviceAccount:`emailid` An service account email. 5. - # group:`emailid` A google group with an email address. For example auth-ti- - # cloud@google.com 6. domain:`domain` A Google Apps domain name. For example - # google.com, example.com + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following formats: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:` + # emailid``: An email address that represents a service account. For example, ` + # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email + # address that represents a Google group. For example, `admins@example.com`. * ` + # domain:`domain``: A Google Apps domain name that represents all the users of + # that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -234,227 +270,20 @@ module Google end end - # A rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value - # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. - # *') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries. - # Corresponds to the JSON property `in` - # @return [Array] - attr_accessor :in - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of - # entries. The formation for in and not_in entries is the same as members in a - # Binding above. - # Corresponds to the JSON property `notIn` - # @return [Array] - attr_accessor :not_in - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfig` - # @return [Array] - attr_accessor :log_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] unless args[:description].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @action = args[:action] unless args[:action].nil? - @in = args[:in] unless args[:in].nil? - @not_in = args[:not_in] unless args[:not_in].nil? - @conditions = args[:conditions] unless args[:conditions].nil? - @log_config = args[:log_config] unless args[:log_config].nil? - end - end - - # A condition to be met. - class Condition - include Google::Apis::Core::Hashable - - # Trusted attributes supplied by the IAM system. - # Corresponds to the JSON property `iam` - # @return [String] - attr_accessor :iam - - # Trusted attributes supplied by any service that owns resources and uses the - # IAM system for access control. - # Corresponds to the JSON property `sys` - # @return [String] - attr_accessor :sys - - # Trusted attributes discharged by the service. - # Corresponds to the JSON property `svc` - # @return [String] - attr_accessor :svc - - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - - # The object of the condition. Exactly one of these must be set. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @iam = args[:iam] unless args[:iam].nil? - @sys = args[:sys] unless args[:sys].nil? - @svc = args[:svc] unless args[:svc].nil? - @op = args[:op] unless args[:op].nil? - @value = args[:value] unless args[:value].nil? - @values = args[:values] unless args[:values].nil? - end - end - - # Specifies what kind of log the caller must write Increment a streamz counter - # with the specified metric and field names. Metric names should start with a '/' - # , generally be lowercase-only, and end in "_count". Field names should not - # contain an initial slash. The actual exported metric names will have "/iam/ - # policy" prepended. Field names correspond to IAM request parameters and field - # values are their respective values. At present only "iam_principal", - # corresponding to IAMContext.principal, is supported. Examples: counter ` - # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter / - # iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext. - # principal]` At this time we do not support: * multiple field names (though - # this may be supported in the future) * decrementing the counter * incrementing - # it by anything other than 1 - class LogConfig - include Google::Apis::Core::Hashable - - # Options for counters - # Corresponds to the JSON property `counter` - # @return [Google::Apis::CloudresourcemanagerV1beta1::CounterOptions] - attr_accessor :counter - - # Write a Data Access (Gin) log - # Corresponds to the JSON property `dataAccess` - # @return [Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions] - attr_accessor :data_access - - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions] - attr_accessor :cloud_audit - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @counter = args[:counter] unless args[:counter].nil? - @data_access = args[:data_access] unless args[:data_access].nil? - @cloud_audit = args[:cloud_audit] unless args[:cloud_audit].nil? - end - end - - # Options for counters - class CounterOptions - include Google::Apis::Core::Hashable - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric = args[:metric] unless args[:metric].nil? - @field = args[:field] unless args[:field].nil? - end - end - - # Write a Data Access (Gin) log - class DataAccessOptions - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Write a Cloud Audit log - class CloudAuditOptions - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # Request message for `SetIamPolicy` method. class SetIamPolicyRequest include Google::Apis::Core::Hashable - # # Overview The `Policy` defines an access control policy language. It is used - # to define policies that are attached to resources like files, folders, VMs, - # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` - # binds a set of members to a role, where the members include user accounts, - # user groups, user domains, and service accounts. A 'role' is a named set of - # permissions, defined by IAM. The definition of a role is outside the policy. A - # permission check first determines the roles that include the specified - # permission, and then determines if the principal specified is a member of a - # binding to at least one of these roles. The membership check is recursive when - # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " - # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", - # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. - # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` - # `` + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). # Corresponds to the JSON property `policy` # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] attr_accessor :policy @@ -473,7 +302,7 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the 'resource'. Permissions with wildcards + # The set of permissions to check for the `resource`. Permissions with wildcards # (such as '*' or 'storage.*') are not allowed. # Corresponds to the JSON property `permissions` # @return [Array] @@ -507,6 +336,101 @@ module Google @permissions = args[:permissions] unless args[:permissions].nil? end end + + # The response returned from the ListOrganizations method. + class ListOrganizationsResponse + include Google::Apis::Core::Hashable + + # The list of Organizations that matched the list query, possibly paginated. + # Corresponds to the JSON property `organizations` + # @return [Array] + attr_accessor :organizations + + # A pagination token to be used to retrieve the next page of results. If the + # result is too large to fit within the page size specified in the request, this + # field will be set with a token that can be used to fetch the next page of + # results. If this field is empty, it indicates that this response contains the + # last page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @organizations = args[:organizations] unless args[:organizations].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # The root node in the resource hierarchy to which a particular entity's (e.g., + # company) resources belong. + class Organization + include Google::Apis::Core::Hashable + + # An immutable id for the Organization that is assigned on creation. This should + # be omitted when creating a new Organization. This field is read-only. + # Corresponds to the JSON property `organizationId` + # @return [String] + attr_accessor :organization_id + + # A friendly string to be used to refer to the Organization in the UI. This + # field is required. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The entity that owns an Organization. The lifetime of the Organization and all + # of its descendants are bound to the OrganizationOwner. If the + # OrganizationOwner is deleted, the Organization and all its descendants will be + # deleted. + # Corresponds to the JSON property `owner` + # @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner] + attr_accessor :owner + + # Timestamp when the Organization was created. Assigned by the server. @ + # OutputOnly + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @organization_id = args[:organization_id] unless args[:organization_id].nil? + @display_name = args[:display_name] unless args[:display_name].nil? + @owner = args[:owner] unless args[:owner].nil? + @creation_time = args[:creation_time] unless args[:creation_time].nil? + end + end + + # The entity that owns an Organization. The lifetime of the Organization and all + # of its descendants are bound to the OrganizationOwner. If the + # OrganizationOwner is deleted, the Organization and all its descendants will be + # deleted. + class OrganizationOwner + include Google::Apis::Core::Hashable + + # The Google for Work customer id used in the Directory API. + # Corresponds to the JSON property `directoryCustomerId` + # @return [String] + attr_accessor :directory_customer_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @directory_customer_id = args[:directory_customer_id] unless args[:directory_customer_id].nil? + end + end end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb index c1b8a45f3..347feef9e 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb @@ -26,6 +26,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class ResourceId + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ListProjectsResponse class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -46,30 +50,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end - class Rule - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class Condition - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class LogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class CounterOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class DataAccessOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class CloudAuditOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - end - class SetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -82,6 +62,18 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class ListOrganizationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Organization + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrganizationOwner + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Project # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -91,6 +83,16 @@ module Google property :name, as: 'name' property :create_time, as: 'createTime' hash :labels, as: 'labels' + property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation + + end + end + + class ResourceId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :id, as: 'id' end end @@ -121,8 +123,6 @@ module Google property :version, as: 'version' collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation - collection :rules, as: 'rules', class: Google::Apis::CloudresourcemanagerV1beta1::Rule, decorator: Google::Apis::CloudresourcemanagerV1beta1::Rule::Representation - property :etag, :base64 => true, as: 'etag' end end @@ -135,65 +135,6 @@ module Google end end - class Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - collection :permissions, as: 'permissions' - property :action, as: 'action' - collection :in, as: 'in' - collection :not_in, as: 'notIn' - collection :conditions, as: 'conditions', class: Google::Apis::CloudresourcemanagerV1beta1::Condition, decorator: Google::Apis::CloudresourcemanagerV1beta1::Condition::Representation - - collection :log_config, as: 'logConfig', class: Google::Apis::CloudresourcemanagerV1beta1::LogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::LogConfig::Representation - - end - end - - class Condition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :iam, as: 'iam' - property :sys, as: 'sys' - property :svc, as: 'svc' - property :op, as: 'op' - property :value, as: 'value' - collection :values, as: 'values' - end - end - - class LogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :counter, as: 'counter', class: Google::Apis::CloudresourcemanagerV1beta1::CounterOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::CounterOptions::Representation - - property :data_access, as: 'dataAccess', class: Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions::Representation - - property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions::Representation - - end - end - - class CounterOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metric, as: 'metric' - property :field, as: 'field' - end - end - - class DataAccessOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class CloudAuditOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class SetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -215,6 +156,33 @@ module Google collection :permissions, as: 'permissions' end end + + class ListOrganizationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Organization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :organization_id, as: 'organizationId' + property :display_name, as: 'displayName' + property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation + + property :creation_time, as: 'creationTime' + end + end + + class OrganizationOwner + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :directory_customer_id, as: 'directoryCustomerId' + end + end end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index 820fec84c..9d0cfb86d 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -70,8 +70,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta1/projects', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.request_object = project_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation @@ -86,13 +85,11 @@ module Google # necessarily appear at the end of the list. # @param [String] page_token # A pagination token returned from a previous call to ListProject that indicates - # from where listing should continue. Note: pagination is not yet supported; the - # server ignores this field. Optional. + # from where listing should continue. Optional. # @param [Fixnum] page_size # The maximum number of Projects to return in the response. The server can # return fewer projects than requested. If unspecified, server picks an - # appropriate default. Note: pagination is not yet supported; the server ignores - # this field. Optional. + # appropriate default. Optional. # @param [String] filter # An expression for filtering the results of the request. Filter rules are case # insensitive. The fields eligible for filtering are: + `name` + `id` + labels. @@ -121,8 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta1/projects', options) command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse command.query['pageToken'] = page_token unless page_token.nil? @@ -155,8 +151,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects/{projectId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options) command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project command.params['projectId'] = project_id unless project_id.nil? @@ -189,8 +184,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects/{projectId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.request_object = project_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation @@ -204,24 +198,15 @@ module Google # Marks the project identified by the specified `project_id` (for example, `my- # project-123`) for deletion. This method will only affect the project if the # following criteria are met: + The project does not have a billing account - # associated with it. + The project has a lifecycle state of [ACTIVE][google. - # cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method - # changes the project's lifecycle state from [ACTIVE][google. - # cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [ - # DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState. - # DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point - # the lifecycle state changes to [DELETE_IN_PROGRESS] [google. - # cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. - # Until the deletion completes, you can check the lifecycle state checked by - # retrieving the project with [GetProject] [google.cloudresourcemanager.projects. - # v1beta1.DeveloperProjects.GetProject], and the project remains visible to [ - # ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects. - # ListProjects]. However, you cannot update the project. After the deletion - # completes, the project is not retrievable by the [GetProject] [google. - # cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [ - # ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects. - # ListProjects] methods. The caller must have modify permissions for this - # project. + # associated with it. + The project has a lifecycle state of ACTIVE. This method + # changes the project's lifecycle state from ACTIVE to DELETE_REQUESTED. The + # deletion starts at an unspecified time, at which point the lifecycle state + # changes to DELETE_IN_PROGRESS. Until the deletion completes, you can check the + # lifecycle state checked by retrieving the project with GetProject, and the + # project remains visible to ListProjects. However, you cannot update the + # project. After the deletion completes, the project is not retrievable by the + # GetProject and ListProjects methods. The caller must have modify permissions + # for this project. # @param [String] project_id # The project ID (for example, `foo-bar-123`). Required. # @param [String] fields @@ -242,8 +227,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects/{projectId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options) command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty command.params['projectId'] = project_id unless project_id.nil? @@ -254,11 +238,9 @@ module Google # Restores the project identified by the specified `project_id` (for example, ` # my-project-123`). You can only use this method for a project that has a - # lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects. - # v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated - # by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager. - # projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be - # restored. The caller must have modify permissions for this project. + # lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a + # lifecycle state of DELETE_IN_PROGRESS, the project cannot be restored. The + # caller must have modify permissions for this project. # @param [String] project_id # The project ID (for example, `foo-bar-123`). Required. # @param [String] fields @@ -279,8 +261,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def undelete_project(project_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects/{projectId}:undelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options) command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty command.params['projectId'] = project_id unless project_id.nil? @@ -291,8 +272,10 @@ module Google # Returns the IAM access control policy for specified project. # @param [String] resource - # REQUIRED: The resource for which policy is being requested. Resource is - # usually specified as a path, such as, projects/`project`. + # REQUIRED: The resource for which policy is being requested. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective GetIamPolicy rpc. # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -311,9 +294,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects/{resource}:getIamPolicy' - command = make_simple_command(:post, path, options) + def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation @@ -328,9 +310,10 @@ module Google # currently support 'domain:' prefixed members in a Binding of a Policy. Calling # this method requires enabling the App Engine Admin API. # @param [String] resource - # REQUIRED: The resource for which policy is being specified. Resource is - # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/` - # disk`. + # REQUIRED: The resource for which policy is being specified. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective SetIamPolicy rpc. # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -349,9 +332,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects/{resource}:setIamPolicy' - command = make_simple_command(:post, path, options) + def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation @@ -365,8 +347,11 @@ module Google # Tests the specified permissions against the IAM access control policy for the # specified project. # @param [String] resource - # REQUIRED: The resource for which policy detail is being requested. Resource is - # usually specified as a path, such as, projects/`project`. + # REQUIRED: The resource for which policy detail is being requested. `resource` + # is usually specified as a path, such as, `projects/`project`/zones/`zone`/ + # disks/`disk``. The format for the path specified in this value is resource + # specific and is specified in the documentation for the respective + # TestIamPermissions rpc. # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -385,9 +370,227 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta1/projects/{resource}:testIamPermissions' - command = make_simple_command(:post, path, options) + def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Query Organization resources. + # @param [Fixnum] page_size + # The maximum number of Organizations to return in the response. This field is + # optional. + # @param [String] page_token + # A pagination token returned from a previous call to ListOrganizations that + # indicates from where listing should continue. This field is optional. + # @param [String] filter + # An optional query string used to filter the Organizations to be return in the + # response. Filter rules are case-insensitive. Organizations may be filtered by ` + # owner.directoryCustomerId` or by `domain`, where the domain is a Google for + # Work domain, for example: |Filter|Description| |------|-----------| |owner. + # directorycustomerid:123456789|Organizations with `owner.directory_customer_id` + # equal to `123456789`.| |domain:google.com|Organizations corresponding to the + # domain `google.com`.| This field is optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organizations(page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/organizations', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['filter'] = filter unless filter.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Fetches an Organization resource by id. + # @param [String] organization_id + # The id of the Organization resource to fetch. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization(organization_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/organizations/{organizationId}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization + command.params['organizationId'] = organization_id unless organization_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates an Organization resource. + # @param [String] organization_id + # An immutable id for the Organization that is assigned on creation. This should + # be omitted when creating a new Organization. This field is read-only. + # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_organization(organization_id, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/organizations/{organizationId}', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation + command.request_object = organization_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization + command.params['organizationId'] = organization_id unless organization_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on a Organization resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective SetIamPolicy rpc. + # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/organizations/{resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a Organization resource. May be empty if no + # such policy or resource exists. + # @param [String] resource + # REQUIRED: The resource for which policy is being requested. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective GetIamPolicy rpc. + # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/organizations/{resource}:getIamPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified Organization. + # @param [String] resource + # REQUIRED: The resource for which policy detail is being requested. `resource` + # is usually specified as a path, such as, `projects/`project`/zones/`zone`/ + # disks/`disk``. The format for the path specified in this value is resource + # specific and is specified in the documentation for the respective + # TestIamPermissions rpc. + # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/organizations/{resource}:testIamPermissions', options) command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation diff --git a/generated/google/apis/cloudtrace_v1.rb b/generated/google/apis/cloudtrace_v1.rb new file mode 100644 index 000000000..454d5e22b --- /dev/null +++ b/generated/google/apis/cloudtrace_v1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/cloudtrace_v1/service.rb' +require 'google/apis/cloudtrace_v1/classes.rb' +require 'google/apis/cloudtrace_v1/representations.rb' + +module Google + module Apis + # Google Cloud Trace API + # + # The Google Cloud Trace API provides services for reading and writing runtime + # trace data for Cloud applications. + # + # @see https://cloud.google.com/tools/cloud-trace + module CloudtraceV1 + VERSION = 'V1' + REVISION = '20150825' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/cloudtrace_v1/classes.rb b/generated/google/apis/cloudtrace_v1/classes.rb new file mode 100644 index 000000000..0212d0932 --- /dev/null +++ b/generated/google/apis/cloudtrace_v1/classes.rb @@ -0,0 +1,184 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudtraceV1 + + # The response message for the ListTraces method. + class ListTracesResponse + include Google::Apis::Core::Hashable + + # The list of trace records returned. + # Corresponds to the JSON property `traces` + # @return [Array] + attr_accessor :traces + + # If defined, indicates that there are more topics that match the request, and + # this value should be passed to the next ListTopicsRequest to continue. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @traces = args[:traces] unless args[:traces].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A Trace is a collection of spans describing the execution timings of a single + # operation. + class Trace + include Google::Apis::Core::Hashable + + # The Project ID of the Google Cloud project. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # A 128-bit numeric value, formatted as a 32-byte hex string, that represents a + # trace. Each trace should have an identifier that is globally unique. + # Corresponds to the JSON property `traceId` + # @return [String] + attr_accessor :trace_id + + # The collection of span records within this trace. Spans that appear in calls + # to PatchTraces may be incomplete or partial. + # Corresponds to the JSON property `spans` + # @return [Array] + attr_accessor :spans + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_id = args[:project_id] unless args[:project_id].nil? + @trace_id = args[:trace_id] unless args[:trace_id].nil? + @spans = args[:spans] unless args[:spans].nil? + end + end + + # A span is the data recorded with a single span. + class TraceSpan + include Google::Apis::Core::Hashable + + # Identifier of the span within the trace. Each span should have an identifier + # that is unique per trace. + # Corresponds to the JSON property `spanId` + # @return [String] + attr_accessor :span_id + + # SpanKind distinguishes spans generated in a particular context. For example, + # two spans with the same name, one with the kind RPC_CLIENT, and the other with + # RPC_SERVER can indicate the queueing latency associated with the span. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the trace. This is sanitized and displayed on the UI. This may be + # a method name or some other per-callsite name. For the same binary and the + # same call point, it is a good practice to choose a consistent name in order to + # correlate cross-trace spans. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The start time of the span in nanoseconds from the UNIX epoch. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The end time of the span in nanoseconds from the UNIX epoch. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Identifies the parent of the current span. May be missing. Serialized bytes + # representation of SpanId. + # Corresponds to the JSON property `parentSpanId` + # @return [String] + attr_accessor :parent_span_id + + # Annotations via labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @span_id = args[:span_id] unless args[:span_id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @start_time = args[:start_time] unless args[:start_time].nil? + @end_time = args[:end_time] unless args[:end_time].nil? + @parent_span_id = args[:parent_span_id] unless args[:parent_span_id].nil? + @labels = args[:labels] unless args[:labels].nil? + end + end + + # A list of traces for the PatchTraces method. + class Traces + include Google::Apis::Core::Hashable + + # A list of traces. + # Corresponds to the JSON property `traces` + # @return [Array] + attr_accessor :traces + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @traces = args[:traces] unless args[:traces].nil? + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + end + end +end diff --git a/generated/google/apis/cloudtrace_v1/representations.rb b/generated/google/apis/cloudtrace_v1/representations.rb new file mode 100644 index 000000000..79b50102c --- /dev/null +++ b/generated/google/apis/cloudtrace_v1/representations.rb @@ -0,0 +1,92 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudtraceV1 + + class ListTracesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Trace + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TraceSpan + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Traces + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListTracesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Trace + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + property :trace_id, as: 'traceId' + collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation + + end + end + + class TraceSpan + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :span_id, as: 'spanId' + property :kind, as: 'kind' + property :name, as: 'name' + property :start_time, as: 'startTime' + property :end_time, as: 'endTime' + property :parent_span_id, as: 'parentSpanId' + hash :labels, as: 'labels' + end + end + + class Traces + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + end + end +end diff --git a/generated/google/apis/cloudtrace_v1/service.rb b/generated/google/apis/cloudtrace_v1/service.rb new file mode 100644 index 000000000..fb2ccec70 --- /dev/null +++ b/generated/google/apis/cloudtrace_v1/service.rb @@ -0,0 +1,226 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudtraceV1 + # Google Cloud Trace API + # + # The Google Cloud Trace API provides services for reading and writing runtime + # trace data for Cloud applications. + # + # @example + # require 'google/apis/cloudtrace_v1' + # + # Cloudtrace = Google::Apis::CloudtraceV1 # Alias the module + # service = Cloudtrace::CloudtraceService.new + # + # @see https://cloud.google.com/tools/cloud-trace + class CloudtraceService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://cloudtrace.googleapis.com/', '') + end + + # Updates the existing traces specified by PatchTracesRequest and inserts the + # new traces. Any existing trace or span fields included in an update are + # overwritten by the update, and any additional fields in an update are merged + # with the existing trace data. + # @param [String] project_id + # The project id of the trace to patch. + # @param [Google::Apis::CloudtraceV1::Traces] traces_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtraceV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options) + command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation + command.request_object = traces_object + command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation + command.response_class = Google::Apis::CloudtraceV1::Empty + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # List traces matching the filter expression. + # @param [String] project_id + # The stringified-version of the project id. + # @param [String] view + # ViewType specifies the projection of the result. + # @param [Fixnum] page_size + # Maximum number of topics to return. If not specified or <= 0, the + # implementation will select a reasonable value. The implemenation may always + # return fewer than the requested page_size. + # @param [String] page_token + # The token identifying the page of results to return from the ListTraces method. + # If present, this value is should be taken from the next_page_token field of a + # previous ListTracesResponse. + # @param [String] start_time + # End of the time interval (inclusive). + # @param [String] end_time + # Start of the time interval (exclusive). + # @param [String] filter + # An optional filter for the request. + # @param [String] order_by + # The trace field used to establish the order of traces returned by the + # ListTraces method. Possible options are: trace_id name (name field of root + # span) duration (different between end_time and start_time fields of root span) + # start (start_time field of root span) Descending order can be specified by + # appending "desc" to the sort field: name desc Only one sort field is permitted, + # though this may change in the future. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtraceV1::ListTracesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV1::ListTracesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_traces(project_id, view: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, filter: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options) + command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation + command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse + command.params['projectId'] = project_id unless project_id.nil? + command.query['view'] = view unless view.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['startTime'] = start_time unless start_time.nil? + command.query['endTime'] = end_time unless end_time.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets one trace by id. + # @param [String] project_id + # The project id of the trace to return. + # @param [String] trace_id + # The trace id of the trace to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtraceV1::Trace] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV1::Trace] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options) + command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation + command.response_class = Google::Apis::CloudtraceV1::Trace + command.params['projectId'] = project_id unless project_id.nil? + command.params['traceId'] = trace_id unless trace_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a discovery document in the specified `format`. The typeurl in the + # returned google.protobuf.Any value depends on the requested format. + # @param [String] format + # The format requested for discovery. + # @param [Array, String] labels + # A list of labels (like visibility) influencing the scope of the requested doc. + # @param [String] version + # The API version of the requested discovery doc. + # @param [Array, String] args + # Any additional arguments. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_discovery(format: nil, labels: nil, version: nil, args: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/discovery', options) + command.query['format'] = format unless format.nil? + command.query['labels'] = labels unless labels.nil? + command.query['version'] = version unless version.nil? + command.query['args'] = args unless args.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/clouduseraccounts_beta.rb b/generated/google/apis/clouduseraccounts_beta.rb new file mode 100644 index 000000000..7414ad66a --- /dev/null +++ b/generated/google/apis/clouduseraccounts_beta.rb @@ -0,0 +1,43 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/clouduseraccounts_beta/service.rb' +require 'google/apis/clouduseraccounts_beta/classes.rb' +require 'google/apis/clouduseraccounts_beta/representations.rb' + +module Google + module Apis + # Cloud User Accounts API + # + # API for the Google Cloud User Accounts service. + # + # @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/ + module ClouduseraccountsBeta + VERSION = 'Beta' + REVISION = '20150924' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + + # Manage your Google Cloud User Accounts + AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts' + + # View your Google Cloud User Accounts + AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly' + end + end +end diff --git a/generated/google/apis/clouduseraccounts_beta/classes.rb b/generated/google/apis/clouduseraccounts_beta/classes.rb new file mode 100644 index 000000000..80df1bed2 --- /dev/null +++ b/generated/google/apis/clouduseraccounts_beta/classes.rb @@ -0,0 +1,823 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClouduseraccountsBeta + + # A list of authorized public keys for a user account. + class AuthorizedKeysView + include Google::Apis::Core::Hashable + + # [Output Only] The list of authorized public keys in SSH format. + # Corresponds to the JSON property `keys` + # @return [Array] + attr_accessor :keys + + # [Output Only] Whether the user has the ability to elevate on the instance that + # requested the authorized keys. + # Corresponds to the JSON property `sudoer` + # @return [Boolean] + attr_accessor :sudoer + alias_method :sudoer?, :sudoer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @keys = args[:keys] unless args[:keys].nil? + @sudoer = args[:sudoer] unless args[:sudoer].nil? + end + end + + # A Group resource. + class Group + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource; provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] Type of the resource. Always clouduseraccounts#group for groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A list of URLs to User resources who belong to the group. Users + # may only be members of groups in the same project. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Name of the resource; provided by the client when the resource is created. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @members = args[:members] unless args[:members].nil? + @name = args[:name] unless args[:name].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # + class GroupList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of Group resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always clouduseraccounts#groupList for lists + # of groups. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # + class GroupsAddMemberRequest + include Google::Apis::Core::Hashable + + # Fully-qualified URLs of the User resources to add. + # Corresponds to the JSON property `users` + # @return [Array] + attr_accessor :users + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @users = args[:users] unless args[:users].nil? + end + end + + # + class GroupsRemoveMemberRequest + include Google::Apis::Core::Hashable + + # Fully-qualified URLs of the User resources to remove. + # Corresponds to the JSON property `users` + # @return [Array] + attr_accessor :users + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @users = args[:users] unless args[:users].nil? + end + end + + # A list of all Linux accounts for this project. This API is only used by + # Compute Engine virtual machines to get information about user accounts for a + # project or instance. Linux resources are read-only views into users and groups + # managed by the Compute Engine Accounts API. + class LinuxAccountViews + include Google::Apis::Core::Hashable + + # [Output Only] A list of all groups within a project. + # Corresponds to the JSON property `groupViews` + # @return [Array] + attr_accessor :group_views + + # [Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews + # for Linux resources. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A list of all users within a project. + # Corresponds to the JSON property `userViews` + # @return [Array] + attr_accessor :user_views + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @group_views = args[:group_views] unless args[:group_views].nil? + @kind = args[:kind] unless args[:kind].nil? + @user_views = args[:user_views] unless args[:user_views].nil? + end + end + + # + class LinuxGetAuthorizedKeysViewResponse + include Google::Apis::Core::Hashable + + # A list of authorized public keys for a user account. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource = args[:resource] unless args[:resource].nil? + end + end + + # + class LinuxGetLinuxAccountViewsResponse + include Google::Apis::Core::Hashable + + # A list of all Linux accounts for this project. This API is only used by + # Compute Engine virtual machines to get information about user accounts for a + # project or instance. Linux resources are read-only views into users and groups + # managed by the Compute Engine Accounts API. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::ClouduseraccountsBeta::LinuxAccountViews] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource = args[:resource] unless args[:resource].nil? + end + end + + # A detailed view of a Linux group. + class LinuxGroupView + include Google::Apis::Core::Hashable + + # [Output Only] The Group ID. + # Corresponds to the JSON property `gid` + # @return [Fixnum] + attr_accessor :gid + + # [Output Only] Group name. + # Corresponds to the JSON property `groupName` + # @return [String] + attr_accessor :group_name + + # [Output Only] List of user accounts that belong to the group. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gid = args[:gid] unless args[:gid].nil? + @group_name = args[:group_name] unless args[:group_name].nil? + @members = args[:members] unless args[:members].nil? + end + end + + # A detailed view of a Linux user account. + class LinuxUserView + include Google::Apis::Core::Hashable + + # [Output Only] The GECOS (user information) entry for this account. + # Corresponds to the JSON property `gecos` + # @return [String] + attr_accessor :gecos + + # [Output Only] User's default group ID. + # Corresponds to the JSON property `gid` + # @return [Fixnum] + attr_accessor :gid + + # [Output Only] The path to the home directory for this account. + # Corresponds to the JSON property `homeDirectory` + # @return [String] + attr_accessor :home_directory + + # [Output Only] The path to the login shell for this account. + # Corresponds to the JSON property `shell` + # @return [String] + attr_accessor :shell + + # [Output Only] User ID. + # Corresponds to the JSON property `uid` + # @return [Fixnum] + attr_accessor :uid + + # [Output Only] The username of the account. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gecos = args[:gecos] unless args[:gecos].nil? + @gid = args[:gid] unless args[:gid].nil? + @home_directory = args[:home_directory] unless args[:home_directory].nil? + @shell = args[:shell] unless args[:shell].nil? + @uid = args[:uid] unless args[:uid].nil? + @username = args[:username] unless args[:username].nil? + end + end + + # An Operation resource, used to manage asynchronous API requests. + class Operation + include Google::Apis::Core::Hashable + + # [Output Only] An optional identifier specified by the client when the mutation + # was initiated. Must be unique for all Operation resources in the project. + # Corresponds to the JSON property `clientOperationId` + # @return [String] + attr_accessor :client_operation_id + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # [Output Only] The time that this operation was completed. This is in RFC3339 + # text format. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # [Output Only] If errors are generated during processing of the operation, this + # field will be populated. + # Corresponds to the JSON property `error` + # @return [Google::Apis::ClouduseraccountsBeta::Operation::Error] + attr_accessor :error + + # [Output Only] If the operation fails, this field contains the HTTP error + # message that was returned, such as NOT FOUND. + # Corresponds to the JSON property `httpErrorMessage` + # @return [String] + attr_accessor :http_error_message + + # [Output Only] If the operation fails, this field contains the HTTP error + # message that was returned, such as 404. + # Corresponds to the JSON property `httpErrorStatusCode` + # @return [Fixnum] + attr_accessor :http_error_status_code + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] The time that this operation was requested. This is in RFC3339 + # text format. + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # [Output Only] Type of the resource. Always compute#operation for Operation + # resources. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] Name of the resource. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Type of the operation, such as insert, compute.instanceGroups. + # update, or compute.instanceGroups.delete. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # [Output Only] An optional progress indicator that ranges from 0 to 100. There + # is no requirement that this be linear or support any granularity of operations. + # This should not be used to guess at when the operation will be complete. This + # number should monotonically increase as the operation progresses. + # Corresponds to the JSON property `progress` + # @return [Fixnum] + attr_accessor :progress + + # [Output Only] URL of the region where the operation resides. Only applicable + # for regional resources. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The time that this operation was started by the server. This is + # in RFC3339 text format. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # [Output Only] Status of the operation. Can be one of the following: PENDING, + # RUNNING, or DONE. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] An optional textual description of the current status of the + # operation. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + # [Output Only] Unique target ID which identifies a particular incarnation of + # the target. + # Corresponds to the JSON property `targetId` + # @return [String] + attr_accessor :target_id + + # [Output Only] URL of the resource the operation is mutating. + # Corresponds to the JSON property `targetLink` + # @return [String] + attr_accessor :target_link + + # [Output Only] User who requested the operation, for example: user@example.com. + # Corresponds to the JSON property `user` + # @return [String] + attr_accessor :user + + # [Output Only] If warning messages are generated during processing of the + # operation, this field will be populated. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + # [Output Only] URL of the zone where the operation resides. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil? + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @end_time = args[:end_time] unless args[:end_time].nil? + @error = args[:error] unless args[:error].nil? + @http_error_message = args[:http_error_message] unless args[:http_error_message].nil? + @http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil? + @id = args[:id] unless args[:id].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @operation_type = args[:operation_type] unless args[:operation_type].nil? + @progress = args[:progress] unless args[:progress].nil? + @region = args[:region] unless args[:region].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @start_time = args[:start_time] unless args[:start_time].nil? + @status = args[:status] unless args[:status].nil? + @status_message = args[:status_message] unless args[:status_message].nil? + @target_id = args[:target_id] unless args[:target_id].nil? + @target_link = args[:target_link] unless args[:target_link].nil? + @user = args[:user] unless args[:user].nil? + @warnings = args[:warnings] unless args[:warnings].nil? + @zone = args[:zone] unless args[:zone].nil? + end + + # [Output Only] If errors are generated during processing of the operation, this + # field will be populated. + class Error + include Google::Apis::Core::Hashable + + # [Output Only] The array of errors encountered while processing this operation. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors = args[:errors] unless args[:errors].nil? + end + + # + class Error + include Google::Apis::Core::Hashable + + # [Output Only] The error type identifier for this error. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Indicates the field in the request which caused the error. This + # property is optional. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # [Output Only] An optional, human-readable error message. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @location = args[:location] unless args[:location].nil? + @message = args[:message] unless args[:message].nil? + end + end + end + + # + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] The warning type identifier for this warning. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata for this warning in key: value format. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] Optional human-readable details for this warning. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @data = args[:data] unless args[:data].nil? + @message = args[:message] unless args[:message].nil? + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key for the warning data. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + end + end + + # Contains a list of Operation resources. + class OperationList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] The Operation resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#operations for Operations + # resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token used to continue a truncate. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # A public key for authenticating to guests. + class PublicKey + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource; provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional expiration timestamp. If provided, the timestamp must be in RFC3339 + # text format. If not provided, the public key never expires. + # Corresponds to the JSON property `expirationTimestamp` + # @return [String] + attr_accessor :expiration_timestamp + + # [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5 + # digest of the public key. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # Public key text in SSH format, defined by RFC4253 section 6.6. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @expiration_timestamp = args[:expiration_timestamp] unless args[:expiration_timestamp].nil? + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @key = args[:key] unless args[:key].nil? + end + end + + # A User resource. + class User + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource; provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] A list of URLs to Group resources who contain the user. Users + # are only members of groups in the same project. + # Corresponds to the JSON property `groups` + # @return [Array] + attr_accessor :groups + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] Type of the resource. Always clouduseraccounts#user for users. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource; provided by the client when the resource is created. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Email address of account's owner. This account will be validated to make sure + # it exists. The email can belong to any domain, but it must be tied to a Google + # account. + # Corresponds to the JSON property `owner` + # @return [String] + attr_accessor :owner + + # [Output Only] Public keys that this user may use to login. + # Corresponds to the JSON property `publicKeys` + # @return [Array] + attr_accessor :public_keys + + # [Output Only] Server defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @groups = args[:groups] unless args[:groups].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @owner = args[:owner] unless args[:owner].nil? + @public_keys = args[:public_keys] unless args[:public_keys].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # + class UserList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of User resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always clouduseraccounts#userList for lists of + # users. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + end + end +end diff --git a/generated/google/apis/clouduseraccounts_beta/representations.rb b/generated/google/apis/clouduseraccounts_beta/representations.rb new file mode 100644 index 000000000..aeecd9fff --- /dev/null +++ b/generated/google/apis/clouduseraccounts_beta/representations.rb @@ -0,0 +1,313 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClouduseraccountsBeta + + class AuthorizedKeysView + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Group + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GroupList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GroupsAddMemberRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GroupsRemoveMemberRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LinuxAccountViews + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LinuxGetAuthorizedKeysViewResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LinuxGetLinuxAccountViewsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LinuxGroupView + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LinuxUserView + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + + class OperationList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class User + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UserList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AuthorizedKeysView + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :keys, as: 'keys' + property :sudoer, as: 'sudoer' + end + end + + class Group + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, as: 'id' + property :kind, as: 'kind' + collection :members, as: 'members' + property :name, as: 'name' + property :self_link, as: 'selfLink' + end + end + + class GroupList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::Group, decorator: Google::Apis::ClouduseraccountsBeta::Group::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class GroupsAddMemberRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :users, as: 'users' + end + end + + class GroupsRemoveMemberRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :users, as: 'users' + end + end + + class LinuxAccountViews + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsBeta::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsBeta::LinuxGroupView::Representation + + property :kind, as: 'kind' + collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsBeta::LinuxUserView, decorator: Google::Apis::ClouduseraccountsBeta::LinuxUserView::Representation + + end + end + + class LinuxGetAuthorizedKeysViewResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView::Representation + + end + end + + class LinuxGetLinuxAccountViewsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsBeta::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsBeta::LinuxAccountViews::Representation + + end + end + + class LinuxGroupView + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gid, as: 'gid' + property :group_name, as: 'groupName' + collection :members, as: 'members' + end + end + + class LinuxUserView + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gecos, as: 'gecos' + property :gid, as: 'gid' + property :home_directory, as: 'homeDirectory' + property :shell, as: 'shell' + property :uid, as: 'uid' + property :username, as: 'username' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_operation_id, as: 'clientOperationId' + property :creation_timestamp, as: 'creationTimestamp' + property :end_time, as: 'endTime' + property :error, as: 'error', class: Google::Apis::ClouduseraccountsBeta::Operation::Error, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Error::Representation + + property :http_error_message, as: 'httpErrorMessage' + property :http_error_status_code, as: 'httpErrorStatusCode' + property :id, as: 'id' + property :insert_time, as: 'insertTime' + property :kind, as: 'kind' + property :name, as: 'name' + property :operation_type, as: 'operationType' + property :progress, as: 'progress' + property :region, as: 'region' + property :self_link, as: 'selfLink' + property :start_time, as: 'startTime' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + property :target_id, as: 'targetId' + property :target_link, as: 'targetLink' + property :user, as: 'user' + collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsBeta::Operation::Warning, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Representation + + property :zone, as: 'zone' + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsBeta::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Error::Error::Representation + + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :location, as: 'location' + property :message, as: 'message' + end + end + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class OperationList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::Operation, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class PublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :expiration_timestamp, as: 'expirationTimestamp' + property :fingerprint, as: 'fingerprint' + property :key, as: 'key' + end + end + + class User + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + collection :groups, as: 'groups' + property :id, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :owner, as: 'owner' + collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsBeta::PublicKey, decorator: Google::Apis::ClouduseraccountsBeta::PublicKey::Representation + + property :self_link, as: 'selfLink' + end + end + + class UserList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::User, decorator: Google::Apis::ClouduseraccountsBeta::User::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + end + end +end diff --git a/generated/google/apis/clouduseraccounts_beta/service.rb b/generated/google/apis/clouduseraccounts_beta/service.rb new file mode 100644 index 000000000..62d412de8 --- /dev/null +++ b/generated/google/apis/clouduseraccounts_beta/service.rb @@ -0,0 +1,854 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ClouduseraccountsBeta + # Cloud User Accounts API + # + # API for the Google Cloud User Accounts service. + # + # @example + # require 'google/apis/clouduseraccounts_beta' + # + # Clouduseraccounts = Google::Apis::ClouduseraccountsBeta # Alias the module + # service = Clouduseraccounts::CloudUserAccountsService.new + # + # @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/ + class CloudUserAccountsService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + attr_accessor :quota_user + + # @return [String] + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'clouduseraccounts/beta/projects/') + end + + # Deletes the specified operation resource. + # @param [String] project + # Project ID for this request. + # @param [String] operation + # Name of the Operations resource to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/operations/{operation}', options) + command.params['project'] = project unless project.nil? + command.params['operation'] = operation unless operation.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified operation resource. + # @param [String] project + # Project ID for this request. + # @param [String] operation + # Name of the Operations resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/operations/{operation}', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.params['operation'] = operation unless operation.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of operation resources contained within the specified + # project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::OperationList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::OperationList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_global_accounts_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/operations', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::OperationList::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::OperationList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Adds users to the specified group. + # @param [String] project + # Project ID for this request. + # @param [String] group_name + # Name of the group for this request. + # @param [Google::Apis::ClouduseraccountsBeta::GroupsAddMemberRequest] groups_add_member_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def add_group_member(project, group_name, groups_add_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/groups/{groupName}/addMember', options) + command.request_representation = Google::Apis::ClouduseraccountsBeta::GroupsAddMemberRequest::Representation + command.request_object = groups_add_member_request_object + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.params['groupName'] = group_name unless group_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified Group resource. + # @param [String] project + # Project ID for this request. + # @param [String] group_name + # Name of the Group resource to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/groups/{groupName}', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.params['groupName'] = group_name unless group_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified Group resource. + # @param [String] project + # Project ID for this request. + # @param [String] group_name + # Name of the Group resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Group] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Group] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/groups/{groupName}', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::Group::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Group + command.params['project'] = project unless project.nil? + command.params['groupName'] = group_name unless group_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a Group resource in the specified project using the data included in + # the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ClouduseraccountsBeta::Group] group_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_group(project, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/groups', options) + command.request_representation = Google::Apis::ClouduseraccountsBeta::Group::Representation + command.request_object = group_object + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of groups contained within the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::GroupList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::GroupList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/groups', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::GroupList::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::GroupList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Removes users from the specified group. + # @param [String] project + # Project ID for this request. + # @param [String] group_name + # Name of the group for this request. + # @param [Google::Apis::ClouduseraccountsBeta::GroupsRemoveMemberRequest] groups_remove_member_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def remove_group_member(project, group_name, groups_remove_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/groups/{groupName}/removeMember', options) + command.request_representation = Google::Apis::ClouduseraccountsBeta::GroupsRemoveMemberRequest::Representation + command.request_object = groups_remove_member_request_object + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.params['groupName'] = group_name unless group_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of authorized public keys for a specific user account. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] user + # The user account for which you want to get a list of authorized public keys. + # @param [String] instance + # The fully-qualified URL of the virtual machine requesting the view. + # @param [Boolean] login + # Whether the view was requested as part of a user-initiated login. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_linux_authorized_keys_view(project, zone, user, instance, login: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/authorizedKeysView/{user}', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['user'] = user unless user.nil? + command.query['instance'] = instance unless instance.nil? + command.query['login'] = login unless login.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of user accounts for an instance within a specific project. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] instance + # The fully-qualified URL of the virtual machine requesting the views. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_linux_linux_account_views(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/linuxAccountViews', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['instance'] = instance unless instance.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Adds a public key to the specified User resource with the data included in the + # request. + # @param [String] project + # Project ID for this request. + # @param [String] user + # Name of the user for this request. + # @param [Google::Apis::ClouduseraccountsBeta::PublicKey] public_key_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def add_user_public_key(project, user, public_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/users/{user}/addPublicKey', options) + command.request_representation = Google::Apis::ClouduseraccountsBeta::PublicKey::Representation + command.request_object = public_key_object + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.params['user'] = user unless user.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified User resource. + # @param [String] project + # Project ID for this request. + # @param [String] user + # Name of the user resource to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/users/{user}', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.params['user'] = user unless user.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified User resource. + # @param [String] project + # Project ID for this request. + # @param [String] user + # Name of the user resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::User] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::User] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/users/{user}', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::User::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::User + command.params['project'] = project unless project.nil? + command.params['user'] = user unless user.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a User resource in the specified project using the data included in + # the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ClouduseraccountsBeta::User] user_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_user(project, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/users', options) + command.request_representation = Google::Apis::ClouduseraccountsBeta::User::Representation + command.request_object = user_object + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of users contained within the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::UserList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::UserList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_users(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/users', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::UserList::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::UserList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Removes the specified public key from the user. + # @param [String] project + # Project ID for this request. + # @param [String] user + # Name of the user for this request. + # @param [String] fingerprint + # The fingerprint of the public key to delete. Public keys are identified by + # their fingerprint, which is defined by RFC4716 to be the MD5 digest of the + # public key. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouduseraccountsBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def remove_user_public_key(project, user, fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/users/{user}/removePublicKey', options) + command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation + command.response_class = Google::Apis::ClouduseraccountsBeta::Operation + command.params['project'] = project unless project.nil? + command.params['user'] = user unless user.nil? + command.query['fingerprint'] = fingerprint unless fingerprint.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index bb685ea55..dad1e3fb7 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20150723' + REVISION = '20151116' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 1f078bd56..bd2fd1949 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -110,7 +110,7 @@ module Google # @return [String] attr_accessor :region - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -172,7 +172,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -216,7 +216,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -337,9 +337,9 @@ module Google alias_method :boot?, :boot # Specifies a unique device name of your choice that is reflected into the /dev/ - # tree of a Linux operating system running within the instance. This name can be - # used to reference the device for mounting, resizing, and so on, from within - # the instance. + # disk/by-id/google-* tree of a Linux operating system running within the + # instance. This name can be used to reference the device for mounting, resizing, + # and so on, from within the instance. # If not specified, the server chooses a default device name to apply to this # disk, in the form persistent-disks-x, where x is a number assigned by Google # Compute Engine. This field is only applicable for persistent disks. @@ -364,7 +364,9 @@ module Google # @return [Google::Apis::ComputeV1::AttachedDiskInitializeParams] attr_accessor :initialize_params - # + # Specifies the disk interface to use for attaching this disk, either SCSI or + # NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, + # see Local SSD performance. # Corresponds to the JSON property `interface` # @return [String] attr_accessor :interface @@ -488,7 +490,7 @@ module Google # @return [Google::Apis::ComputeV1::AutoscalingPolicy] attr_accessor :autoscaling_policy - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -499,7 +501,7 @@ module Google # @return [String] attr_accessor :description - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -509,13 +511,17 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Server defined URL for the resource (output only). + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -526,7 +532,7 @@ module Google # @return [String] attr_accessor :target - # URL of the zone where the instance group resides (output only). + # [Output Only] URL of the zone where the instance group resides. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -553,7 +559,7 @@ module Google class AutoscalerAggregatedList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -568,12 +574,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -596,7 +602,7 @@ module Google class AutoscalerList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -611,12 +617,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -929,8 +935,8 @@ module Google end end - # A BackendService resource. This resource defines a group of backend VMs - # together with their serving capacity. + # A BackendService resource. This resource defines a group of backend virtual + # machines together with their serving capacity. class BackendService include Google::Apis::Core::Hashable @@ -958,9 +964,9 @@ module Google # @return [String] attr_accessor :fingerprint - # The list of URLs to the HttpHealthCheck resource for health checking this - # BackendService. Currently at most one health check can be specified, and a - # health check is required. + # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for + # health checking this BackendService. Currently at most one health check can be + # specified, and a health check is required. # Corresponds to the JSON property `healthChecks` # @return [Array] attr_accessor :health_checks @@ -1003,7 +1009,7 @@ module Google # @return [String] attr_accessor :protocol - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1350,7 +1356,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1393,7 +1399,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1454,7 +1460,7 @@ module Google # @return [String] attr_accessor :creation_timestamp - # [Output Only] Server defined default disk size in GB. + # [Output Only] Server-defined default disk size in GB. # Corresponds to the JSON property `defaultDiskSizeGb` # @return [String] attr_accessor :default_disk_size_gb @@ -1484,7 +1490,7 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1543,7 +1549,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1586,7 +1592,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1826,7 +1832,7 @@ module Google # @return [String] attr_accessor :network - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1933,7 +1939,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1953,8 +1959,8 @@ module Google end # A ForwardingRule resource. A ForwardingRule resource specifies which pool of - # target VMs to forward a packet to if it matches the given [IPAddress, - # IPProtocol, portRange] tuple. + # target virtual machines to forward a packet to if it matches the given [ + # IPAddress, IPProtocol, portRange] tuple. class ForwardingRule include Google::Apis::Core::Hashable @@ -1967,7 +1973,7 @@ module Google # @return [String] attr_accessor :ip_address - # The IP protocol to which this rule applies, valid options are TCP, UDP, ESP, + # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, # AH or SCTP. # Corresponds to the JSON property `IPProtocol` # @return [String] @@ -1989,7 +1995,7 @@ module Google # @return [String] attr_accessor :id - # Type of the resource. + # [Output Only] Type of the resource. Always compute#forwardingRule. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2004,10 +2010,9 @@ module Google # @return [String] attr_accessor :name - # Applicable only when `IPProtocol` is TCP, UDP, or SCTP, only packets addressed - # to ports in the specified range will be forwarded to target. If portRange is - # left empty (default value), all ports are forwarded. Forwarding rules with the - # same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. + # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed + # to ports in the specified range will be forwarded to target. Forwarding rules + # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. # Corresponds to the JSON property `portRange` # @return [String] attr_accessor :port_range @@ -2075,7 +2080,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2118,7 +2123,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2286,14 +2291,14 @@ module Google # @return [String] attr_accessor :description - # The list of host patterns to match. They must be valid hostnames except that - # they may start with *. or *-. The * acts like a glob and will match any string - # of atoms (separated by .s and -s) to the left. + # The list of host patterns to match. They must be valid hostnames, except * + # will match any string of ([a-z0-9-.]*). In that case, * must be the first + # character and must be followed in the pattern by either - or .. # Corresponds to the JSON property `hosts` # @return [Array] attr_accessor :hosts - # The name of the PathMatcher to match the path portion of the URL, if the this + # The name of the PathMatcher to use to match the path portion of the URL if the # hostRule matches the URL's host portion. # Corresponds to the JSON property `pathMatcher` # @return [String] @@ -2312,7 +2317,7 @@ module Google end # An HttpHealthCheck resource. This resource defines a template for how - # individual VMs should be checked for health, via HTTP. + # individual instances should be checked for health, via HTTP. class HttpHealthCheck include Google::Apis::Core::Hashable @@ -2321,7 +2326,7 @@ module Google # @return [Fixnum] attr_accessor :check_interval_sec - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -2332,7 +2337,7 @@ module Google # @return [String] attr_accessor :description - # A so-far unhealthy VM will be marked healthy after this many consecutive + # A so-far unhealthy instance will be marked healthy after this many consecutive # successes. The default value is 2. # Corresponds to the JSON property `healthyThreshold` # @return [Fixnum] @@ -2345,7 +2350,7 @@ module Google # @return [String] attr_accessor :host - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -2355,8 +2360,12 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2371,7 +2380,7 @@ module Google # @return [String] attr_accessor :request_path - # Server defined URL for the resource (output only). + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2383,7 +2392,7 @@ module Google # @return [Fixnum] attr_accessor :timeout_sec - # A so-far healthy VM will be marked unhealthy after this many consecutive + # A so-far healthy instance will be marked unhealthy after this many consecutive # failures. The default value is 2. # Corresponds to the JSON property `unhealthyThreshold` # @return [Fixnum] @@ -2415,7 +2424,7 @@ module Google class HttpHealthCheckList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -2430,12 +2439,160 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # An HttpsHealthCheck resource. This resource defines a template for how + # individual instances should be checked for health, via HTTPS. + class HttpsHealthCheck + include Google::Apis::Core::Hashable + + # How often (in seconds) to send a health check. The default value is 5 seconds. + # Corresponds to the JSON property `checkIntervalSec` + # @return [Fixnum] + attr_accessor :check_interval_sec + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource; provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A so-far unhealthy instance will be marked healthy after this many consecutive + # successes. The default value is 2. + # Corresponds to the JSON property `healthyThreshold` + # @return [Fixnum] + attr_accessor :healthy_threshold + + # The value of the host header in the HTTPS health check request. If left empty ( + # default value), the public IP on behalf of which this health check is + # performed will be used. + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Type of the resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The TCP port number for the HTTPS health check request. The default value is + # 443. + # Corresponds to the JSON property `port` + # @return [Fixnum] + attr_accessor :port + + # The request path of the HTTPS health check request. The default value is "/". + # Corresponds to the JSON property `requestPath` + # @return [String] + attr_accessor :request_path + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # How long (in seconds) to wait before claiming failure. The default value is 5 + # seconds. It is invalid for timeoutSec to have a greater value than + # checkIntervalSec. + # Corresponds to the JSON property `timeoutSec` + # @return [Fixnum] + attr_accessor :timeout_sec + + # A so-far healthy instance will be marked unhealthy after this many consecutive + # failures. The default value is 2. + # Corresponds to the JSON property `unhealthyThreshold` + # @return [Fixnum] + attr_accessor :unhealthy_threshold + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @check_interval_sec = args[:check_interval_sec] unless args[:check_interval_sec].nil? + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @healthy_threshold = args[:healthy_threshold] unless args[:healthy_threshold].nil? + @host = args[:host] unless args[:host].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @port = args[:port] unless args[:port].nil? + @request_path = args[:request_path] unless args[:request_path].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @timeout_sec = args[:timeout_sec] unless args[:timeout_sec].nil? + @unhealthy_threshold = args[:unhealthy_threshold] unless args[:unhealthy_threshold].nil? + end + end + + # Contains a list of HttpsHealthCheck resources. + class HttpsHealthCheckList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of HttpsHealthCheck resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2514,7 +2671,7 @@ module Google # @return [Google::Apis::ComputeV1::Image::RawDisk] attr_accessor :raw_disk - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2614,12 +2771,12 @@ module Google class ImageList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A list of Image resources. + # [Output Only] A list of Image resources. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items @@ -2629,12 +2786,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2852,14 +3009,14 @@ module Google # @return [String] attr_accessor :description - # [Output Only] The fingerprint of the named ports information. The system uses - # this fingerprint to detect conflicts when multiple users change the named - # ports information concurrently. + # [Output Only] The fingerprint of the named ports. The system uses this + # fingerprint to detect conflicts when multiple users change the named ports + # concurrently. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint - # [Output Only] A unique identifier for this instance group. The server defines + # [Output Only] A unique identifier for this resource type. The server generates # this identifier. # Corresponds to the JSON property `id` # @return [String] @@ -2877,21 +3034,22 @@ module Google # @return [String] attr_accessor :name - # Assigns a name to a port number. For example: `name: ?http?, port: 80` This - # allows the system to reference ports by the assigned name instead of a port - # number. Named ports can also contain multiple ports. For example: [`name: ? - # http?, port: 80`,`name: "http", port: 8080`] Named ports apply to all - # instances in this instance group. + # Assigns a name to a port number. For example: `name: "http", port: 80` + # This allows the system to reference ports by the assigned name instead of a + # port number. Named ports can also contain multiple ports. For example: [`name: + # "http", port: 80`,`name: "http", port: 8080`] + # Named ports apply to all instances in this instance group. # Corresponds to the JSON property `namedPorts` # @return [Array] attr_accessor :named_ports - # The URL of the network to which all instances in the instance group belong. + # [Output Only] The URL of the network to which all instances in the instance + # group belong. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # [Output Only] The URL for this instance group. The server defines this URL. + # [Output Only] The URL for this instance group. The server generates this URL. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2901,7 +3059,7 @@ module Google # @return [Fixnum] attr_accessor :size - # The URL of the zone where the instance group is located. + # [Output Only] The URL of the zone where the instance group is located. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -2931,7 +3089,7 @@ module Google include Google::Apis::Core::Hashable # [Output Only] A unique identifier for this aggregated list of instance groups. - # The server defines this identifier. + # The server generates this identifier. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -2952,8 +3110,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A unique identifier for this aggregated list of instance groups. - # The server defines this identifier. + # [Output Only] The URL for this resource type. The server generates this URL. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2977,12 +3134,12 @@ module Google include Google::Apis::Core::Hashable # [Output Only] A unique identifier for this list of instance groups. The server - # defines this identifier. + # generates this identifier. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A list of InstanceGroup resources. + # A list of instance groups. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items @@ -2998,7 +3155,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] The URL for this instance group. The server defines this URL. + # [Output Only] The URL for this resource type. The server generates this URL. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -3018,16 +3175,10 @@ module Google end # InstanceGroupManagers - # Next available tag: 17 + # Next available tag: 20 class InstanceGroupManager include Google::Apis::Core::Hashable - # The autohealing policy for this managed instance group. You can specify only - # one value. - # Corresponds to the JSON property `autoHealingPolicies` - # @return [Array] - attr_accessor :auto_healing_policies - # The base instance name to use for instances in this group. The value must be 1- # 58 characters long. Instances are named by appending a hyphen and a random # four-character string to the base instance name. The base instance name must @@ -3043,7 +3194,7 @@ module Google attr_accessor :creation_timestamp # [Output Only] The list of instance actions and the number of instances in this - # managed instance group that are scheduled for those actions. + # managed instance group that are scheduled for each of those actions. # Corresponds to the JSON property `currentActions` # @return [Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary] attr_accessor :current_actions @@ -3053,20 +3204,20 @@ module Google # @return [String] attr_accessor :description - # [Output Only] The fingerprint of the target pools information, which is a hash - # of the contents. This field is used for optimistic locking when updating the - # target pool entries. + # [Output Only] The fingerprint of the target pools information. You can use + # this optional field for optimistic locking when you update the target pool + # entries. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint - # [Output Only] A unique identifier for this managed instance group. The server - # defines this identifier. + # [Output Only] A unique identifier for this resource type. The server generates + # this identifier. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # [Output Only] The URL of the InstanceGroup resource. + # [Output Only] The URL of the Instance Group resource. # Corresponds to the JSON property `instanceGroup` # @return [String] attr_accessor :instance_group @@ -3090,14 +3241,21 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Server defined URL for this managed instance group. + # Named ports configured for the Instance Groups complementary to this Instance + # Group Manager. + # Corresponds to the JSON property `namedPorts` + # @return [Array] + attr_accessor :named_ports + + # [Output Only] The URL for this managed instance group. The server defines this + # URL. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link - # The URLs of all TargetPool resources to which new instances in the - # instanceGroup field are added. Updating the target pool values does not affect - # existing instances. + # The URLs for all TargetPool resources to which instances in the instanceGroup + # field are added. The target pools automatically apply to all of the instances + # in the managed instance group. # Corresponds to the JSON property `targetPools` # @return [Array] attr_accessor :target_pools @@ -3109,7 +3267,7 @@ module Google # @return [Fixnum] attr_accessor :target_size - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -3120,7 +3278,6 @@ module Google # Update properties of this object def update!(**args) - @auto_healing_policies = args[:auto_healing_policies] unless args[:auto_healing_policies].nil? @base_instance_name = args[:base_instance_name] unless args[:base_instance_name].nil? @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? @current_actions = args[:current_actions] unless args[:current_actions].nil? @@ -3131,6 +3288,7 @@ module Google @instance_template = args[:instance_template] unless args[:instance_template].nil? @kind = args[:kind] unless args[:kind].nil? @name = args[:name] unless args[:name].nil? + @named_ports = args[:named_ports] unless args[:named_ports].nil? @self_link = args[:self_link] unless args[:self_link].nil? @target_pools = args[:target_pools] unless args[:target_pools].nil? @target_size = args[:target_size] unless args[:target_size].nil? @@ -3142,9 +3300,9 @@ module Google class InstanceGroupManagerActionsSummary include Google::Apis::Core::Hashable - # [Output Only] Total number of instances in the managed instance group that are - # scheduled to be abandoned. Abandoning an instance removes it from the managed - # instance group without deleting it. + # [Output Only] The total number of instances in the managed instance group that + # are scheduled to be abandoned. Abandoning an instance removes it from the + # managed instance group without deleting it. # Corresponds to the JSON property `abandoning` # @return [Fixnum] attr_accessor :abandoning @@ -3161,8 +3319,8 @@ module Google # @return [Fixnum] attr_accessor :deleting - # [Output Only] The number of instances in the managed instance group that - # currently have no scheduled actions. + # [Output Only] The number of instances in the managed instance group that are + # running and have no scheduled actions. # Corresponds to the JSON property `none` # @return [Fixnum] attr_accessor :none @@ -3209,17 +3367,17 @@ module Google include Google::Apis::Core::Hashable # [Output Only] A unique identifier for this aggregated list of managed instance - # groups. The server defines this identifier. + # groups. The server generates this identifier. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A map of filtered managed instance group lists. + # [Output Only] A map of filtered managed instance group lists. # Corresponds to the JSON property `items` # @return [Hash] attr_accessor :items - # [Output Only] Type of the resource. Always compute# + # [Output Only] The resource type, which is always compute# # instanceGroupManagerAggregatedList for an aggregated list of managed instance # groups. # Corresponds to the JSON property `kind` @@ -3231,8 +3389,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] The URL for this aggregated list of managed instance groups. The - # server defines this URL. + # [Output Only] The URL for this resource type. The server generates this URL. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -3251,52 +3408,23 @@ module Google end end - # - class InstanceGroupManagerAutoHealingPolicy - include Google::Apis::Core::Hashable - - # The action to perform when an instance becomes unhealthy. Possible values are - # RECREATE or RESTART. RECREATE replaces an unhealthy instance with a new - # instance that is based on the instance template for this managed instance - # group. RESTART performs a soft restart on an instance. If the instance cannot - # restart softly, the instance performs a hard restart. - # Corresponds to the JSON property `actionType` - # @return [String] - attr_accessor :action_type - - # The URL for the HealthCheck that signals autohealing. - # Corresponds to the JSON property `healthCheck` - # @return [String] - attr_accessor :health_check - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @action_type = args[:action_type] unless args[:action_type].nil? - @health_check = args[:health_check] unless args[:health_check].nil? - end - end - - # [Output Only] A list of InstanceGroupManager resources. + # [Output Only] A list of managed instance groups. class InstanceGroupManagerList include Google::Apis::Core::Hashable - # [Output Only] A unique identifier for this managed instance group. The server - # defines this identifier. + # [Output Only] A unique identifier for this resource type. The server generates + # this identifier. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # [Output Only] A list of managed instance group resources. + # [Output Only] A list of managed instance groups. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items - # [Output Only] Type of the resource. Always compute#instanceGroupManagerList - # for a list of managed instance group resources. + # [Output Only] The resource type, which is always compute# + # instanceGroupManagerList for a list of managed instance groups. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -3306,8 +3434,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] The URL for this managed instance group. The server defines this - # URL. + # [Output Only] The URL for this resource type. The server generates this URL. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -3330,7 +3457,7 @@ module Google class InstanceGroupManagersAbandonInstancesRequest include Google::Apis::Core::Hashable - # The names of instances to abandon from the managed instance group. + # The URL for one or more instances to abandon from the managed instance group. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -3349,7 +3476,8 @@ module Google class InstanceGroupManagersDeleteInstancesRequest include Google::Apis::Core::Hashable - # The names of one or more instances to delete. + # The list of instances to delete from this managed instance group. Specify one + # or more instance URLs. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -3368,7 +3496,7 @@ module Google class InstanceGroupManagersListManagedInstancesResponse include Google::Apis::Core::Hashable - # List of managed instances. If empty - all instances are listed. + # [Output Only] The list of instances in the managed instance group. # Corresponds to the JSON property `managedInstances` # @return [Array] attr_accessor :managed_instances @@ -3387,7 +3515,7 @@ module Google class InstanceGroupManagersRecreateInstancesRequest include Google::Apis::Core::Hashable - # The names of one or more instances to recreate. + # The URL for one or more instances to recreate. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -3511,18 +3639,19 @@ module Google class InstanceGroupManagersSetTargetPoolsRequest include Google::Apis::Core::Hashable - # The fingerprint of the target pools information, which is a hash of the - # contents. This field is used for optimistic locking when updating the target - # pool entries. + # The fingerprint of the target pools information. Use this optional property to + # prevent conflicts when multiple users change the target pools settings + # concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. + # Then, include the fingerprint in your request to ensure that you do not + # overwrite changes that were applied from another concurrent request. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # The list of target pool URLs that instances in this managed instance group - # belong to. When the managed instance group creates new instances, the group - # automatically adds those instances to the target pools that are specified in - # this parameter. Changing the value of this parameter does not change the - # target pools of existing instances in this managed instance group. + # belong to. The managed instance group applies these target pools to all of the + # instances in the group. Existing instances and new instances in the group all + # receive these target pool settings. # Corresponds to the JSON property `targetPools` # @return [Array] attr_accessor :target_pools @@ -3542,7 +3671,7 @@ module Google class InstanceGroupsAddInstancesRequest include Google::Apis::Core::Hashable - # The instances to add to the instance group. + # The list of instances to add to the instance group. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -3562,13 +3691,13 @@ module Google include Google::Apis::Core::Hashable # [Output Only] A unique identifier for this list of instance groups. The server - # defines this identifier. + # generates this identifier. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A list of InstanceWithNamedPorts resources, which contains all named ports for - # the given instance. + # [Output Only] A list of instances and any named ports that are assigned to + # those instances. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items @@ -3584,7 +3713,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] The URL for this list of instance groups. The server defines + # [Output Only] The URL for this list of instance groups. The server generates # this URL. # Corresponds to the JSON property `selfLink` # @return [String] @@ -3615,15 +3744,6 @@ module Google # @return [String] attr_accessor :instance_state - # A filter for the named ports that are associated with instances in the - # instance group. If you specify this parameter, the generated list includes - # only instances that are associated with the specified named ports. If you do - # not specify this parameter, the generated list includes all instances - # regardless of their named ports. - # Corresponds to the JSON property `portName` - # @return [String] - attr_accessor :port_name - def initialize(**args) update!(**args) end @@ -3631,7 +3751,6 @@ module Google # Update properties of this object def update!(**args) @instance_state = args[:instance_state] unless args[:instance_state].nil? - @port_name = args[:port_name] unless args[:port_name].nil? end end @@ -3639,7 +3758,7 @@ module Google class InstanceGroupsRemoveInstancesRequest include Google::Apis::Core::Hashable - # The instances to remove from the instance group. + # The list of instances to remove from the instance group. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -3741,9 +3860,12 @@ module Google class InstanceGroupsSetNamedPortsRequest include Google::Apis::Core::Hashable - # The fingerprint of the named ports information, which is a hash of the - # contents. Use this field for optimistic locking when you update the named - # ports entries. + # The fingerprint of the named ports information for this instance group. Use + # this optional property to prevent conflicts when multiple users change the + # named ports settings concurrently. Obtain the fingerprint with the + # instanceGroups.get method. Then, include the fingerprint in your request to + # ensure that you do not overwrite changes that were applied from another + # concurrent request. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -3846,11 +3968,12 @@ module Google class InstanceProperties include Google::Apis::Core::Hashable - # A boolean that specifies if instances created from this template can send - # packets with source IP addresses other than their own or receive packets with - # destination IP addresses other than their own. If you use these instances as - # an IP gateway or as the next-hop in a Route resource, specify true. Otherwise, - # specify false. + # Enables instances created based on this template to send packets with source + # IP addresses other than their own and receive packets with destination IP + # addresses other than their own. If these instances will be used as an IP + # gateway or it will be set as the next-hop in a Route resource, specify true. + # If unsure, leave this set to false. See the canIpForward documentation for + # more information. # Corresponds to the JSON property `canIpForward` # @return [Boolean] attr_accessor :can_ip_forward @@ -3878,12 +4001,7 @@ module Google # @return [Google::Apis::ComputeV1::Metadata] attr_accessor :metadata - # An array of network access configurations for this interface. This specifies - # how this interface is configured to interact with other network services, such - # as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only supported - # access configuration. If you do not specify any access configurations, the - # instances that are created from this template will have no external internet - # access. + # An array of network access configurations for this interface. # Corresponds to the JSON property `networkInterfaces` # @return [Array] attr_accessor :network_interfaces @@ -3927,7 +4045,7 @@ module Google class InstanceReference include Google::Apis::Core::Hashable - # + # The URL for a specific instance. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance @@ -3969,8 +4087,12 @@ module Google # @return [String] attr_accessor :kind - # The name of the instance template. The name must be 1-63 characters long, and - # comply with RFC1035. + # Name of the resource; provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4011,7 +4133,7 @@ module Google # @return [String] attr_accessor :id - # A list of InstanceTemplate resources. + # [Output Only] list of InstanceTemplate resources. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items @@ -4051,17 +4173,17 @@ module Google class InstanceWithNamedPorts include Google::Apis::Core::Hashable - # The URL of the instance. + # [Output Only] The URL of the instance. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance - # The named ports that belong to this instance group. + # [Output Only] The named ports that belong to this instance group. # Corresponds to the JSON property `namedPorts` # @return [Array] attr_accessor :named_ports - # The status of the instance. + # [Output Only] The status of the instance. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -4177,13 +4299,13 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource. The name must be 1-63 characters long, and comply with - # RCF1035. + # [Output Only] Name of the resource. The name is 1-63 characters long and + # complies with RFC1035. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4267,7 +4389,7 @@ module Google # @return [Array] attr_accessor :scratch_disks - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4345,7 +4467,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4389,7 +4511,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4495,28 +4617,44 @@ module Google class ManagedInstance include Google::Apis::Core::Hashable - # The current action that the managed instance group has scheduled for the - # instance. + # [Output Only] The current action that the managed instance group has scheduled + # for the instance. Possible values: + # - NONE The instance is running, and the managed instance group does not have + # any scheduled actions for this instance. + # - CREATING The managed instance group is creating this instance. + # - RECREATING The managed instance group is recreating this instance. + # - DELETING The managed instance group is permanently deleting this instance. + # - ABANDONING The managed instance group is abandoning this instance. The + # instance will be removed from the instance group and from any target pools + # that are associated with this group. + # - RESTARTING The managed instance group is restarting the instance. + # - REFRESHING The managed instance group is applying configuration changes to + # the instance without stopping it. For example, the group can update the target + # pool list for an instance without stopping that instance. # Corresponds to the JSON property `currentAction` # @return [String] attr_accessor :current_action - # The unique identifier for this resource (empty when instance does not exist). + # [Output only] The unique identifier for this resource. This field is empty + # when instance does not exist. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # The URL of the instance (set even though instance does not exist yet). + # [Output Only] The URL of the instance. The URL can exist even if the instance + # has not yet been created. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance - # The status of the instance (empty when instance does not exist). + # [Output Only] The status of the instance. This field is empty when the + # instance does not exist. # Corresponds to the JSON property `instanceStatus` # @return [String] attr_accessor :instance_status - # Information about the last attempt to create or delete the instance. + # [Output Only] Information about the last attempt to create or delete the + # instance. # Corresponds to the JSON property `lastAttempt` # @return [Google::Apis::ComputeV1::ManagedInstanceLastAttempt] attr_accessor :last_attempt @@ -4539,7 +4677,8 @@ module Google class ManagedInstanceLastAttempt include Google::Apis::Core::Hashable - # Encountered errors during the last attempt to create or delete the instance. + # [Output Only] Encountered errors during the last attempt to create or delete + # the instance. # Corresponds to the JSON property `errors` # @return [Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors] attr_accessor :errors @@ -4553,7 +4692,8 @@ module Google @errors = args[:errors] unless args[:errors].nil? end - # Encountered errors during the last attempt to create or delete the instance. + # [Output Only] Encountered errors during the last attempt to create or delete + # the instance. class Errors include Google::Apis::Core::Hashable @@ -4672,11 +4812,12 @@ module Google end end - # The named port information. For example: . + # The named port. For example: . class NamedPort include Google::Apis::Core::Hashable - # The name for this NamedPort. + # The name for this named port. The name must be 1-63 characters long, and + # comply with RFC1035. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4746,7 +4887,7 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4843,7 +4984,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource . + # [Output Only] Server-defined URL for this resource . # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -4912,7 +5053,7 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#Operation for Operation + # [Output Only] Type of the resource. Always compute#operation for Operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -4923,7 +5064,8 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Type of the operation, such as insert, update, and delete. + # [Output Only] Type of the operation, such as insert, compute.instanceGroups. + # update, or compute.instanceGroups.delete. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type @@ -4942,7 +5084,7 @@ module Google # @return [String] attr_accessor :region - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5156,7 +5298,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5200,7 +5342,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5303,13 +5445,12 @@ module Google end # A matcher for the path portion of the URL. The BackendService from the longest- - # matched rule will serve the URL. If no rule was matched, the default_service + # matched rule will serve the URL. If no rule was matched, the default service # will be used. class PathMatcher include Google::Apis::Core::Hashable - # The URL to the BackendService resource. This will be used if none of the ' - # pathRules' defined by this PathMatcher is met by the URL's path portion. + # # Corresponds to the JSON property `defaultService` # @return [String] attr_accessor :default_service @@ -5391,6 +5532,11 @@ module Google # @return [String] attr_accessor :description + # Restricted features enabled for use on this project. + # Corresponds to the JSON property `enabledFeatures` + # @return [Array] + attr_accessor :enabled_features + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] @@ -5411,7 +5557,7 @@ module Google # @return [Array] attr_accessor :quotas - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5431,6 +5577,7 @@ module Google @common_instance_metadata = args[:common_instance_metadata] unless args[:common_instance_metadata].nil? @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? @description = args[:description] unless args[:description].nil? + @enabled_features = args[:enabled_features] unless args[:enabled_features].nil? @id = args[:id] unless args[:id].nil? @kind = args[:kind] unless args[:kind].nil? @name = args[:name] unless args[:name].nil? @@ -5510,7 +5657,7 @@ module Google # @return [Array] attr_accessor :quotas - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5569,7 +5716,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5608,17 +5755,18 @@ module Google end # The route resource. A Route is a rule that specifies how certain packets - # should be handled by the virtual network. Routes are associated with VMs by - # tag and the set of Routes for a particular VM is called its routing table. For - # each packet leaving a VM, the system searches that VM's routing table for a - # single best matching Route. Routes match packets by destination IP address, - # preferring smaller or more specific ranges over larger ones. If there is a tie, - # the system selects the Route with the smallest priority value. If there is - # still a tie, it uses the layer three and four packet headers to select just - # one of the remaining matching Routes. The packet is then forwarded as - # specified by the nextHop field of the winning Route -- either to another VM - # destination, a VM gateway or a GCE operated gateway. Packets that do not match - # any Route in the sending VM's routing table are dropped. + # should be handled by the virtual network. Routes are associated with instances + # by tag and the set of Routes for a particular instance is called its routing + # table. For each packet leaving a instance, the system searches that instance's + # routing table for a single best matching Route. Routes match packets by + # destination IP address, preferring smaller or more specific ranges over larger + # ones. If there is a tie, the system selects the Route with the smallest + # priority value. If there is still a tie, it uses the layer three and four + # packet headers to select just one of the remaining matching Routes. The packet + # is then forwarded as specified by the nextHop field of the winning Route -- + # either to another instance destination, a instance gateway or a Google Compute + # Engien-operated gateway. Packets that do not match any Route in the sending + # instance's routing table are dropped. class Route include Google::Apis::Core::Hashable @@ -5820,7 +5968,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -5844,19 +5992,23 @@ module Google include Google::Apis::Core::Hashable # Specifies whether the instance should be automatically restarted if it is - # terminated by Compute Engine (not terminated by a user). + # terminated by Compute Engine (not terminated by a user). You can only set the + # automatic restart option for standard instances. Preemptible instances cannot + # be automatically restarted. # Corresponds to the JSON property `automaticRestart` # @return [Boolean] attr_accessor :automatic_restart alias_method :automatic_restart?, :automatic_restart - # Defines the maintenance behavior for this instance. The default behavior is - # MIGRATE. For more information, see Setting maintenance behavior. + # Defines the maintenance behavior for this instance. For standard instances, + # the default behavior is MIGRATE. For preemptible instances, the default and + # only possible behavior is TERMINATE. For more information, see Setting + # maintenance behavior. # Corresponds to the JSON property `onHostMaintenance` # @return [String] attr_accessor :on_host_maintenance - # Whether the Instance is preemptible. + # Whether the instance is preemptible. # Corresponds to the JSON property `preemptible` # @return [Boolean] attr_accessor :preemptible @@ -6038,7 +6190,7 @@ module Google class SnapshotList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -6053,12 +6205,128 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # An SslCertificate resource. This resource provides a mechanism to upload an + # SSL key and certificate to global HTTPS loadbalancer to serve secure + # connections. + class SslCertificate + include Google::Apis::Core::Hashable + + # A local certificate file. The certificate must be in PEM format. The + # certificate chain must be no greater than 5 certs long. The chain must include + # at least one intermediate cert. + # Corresponds to the JSON property `certificate` + # @return [String] + attr_accessor :certificate + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource. Provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] Unique identifier for the resource. Defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#sslCertificate for SSL + # certificates. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A write-only private key in PEM format. Only insert RPCs will include this + # field. + # Corresponds to the JSON property `privateKey` + # @return [String] + attr_accessor :private_key + + # [Output only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @certificate = args[:certificate] unless args[:certificate].nil? + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @private_key = args[:private_key] unless args[:private_key].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # Contains a list of SslCertificate resources. + class SslCertificateList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource. Defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of SslCertificate resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -6128,7 +6396,7 @@ module Google # @return [String] attr_accessor :id - # [Output Only] Type of resource. Always compute#Operation for Operation + # [Output Only] Type of resource. Always compute#operation for Operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -6144,7 +6412,7 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -6215,12 +6483,144 @@ module Google end end - # A TargetInstance resource. This resource defines an endpoint VM that + # + class TargetHttpsProxiesSetSslCertificatesRequest + include Google::Apis::Core::Hashable + + # New set of URLs to SslCertificate resources to associate with this + # TargetHttpProxy. Currently exactly one ssl certificate must be specified. + # Corresponds to the JSON property `sslCertificates` + # @return [Array] + attr_accessor :ssl_certificates + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ssl_certificates = args[:ssl_certificates] unless args[:ssl_certificates].nil? + end + end + + # A TargetHttpsProxy resource. This resource defines an HTTPS proxy. + class TargetHttpsProxy + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource. Provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Type of the resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # URLs to SslCertificate resources that are used to authenticate connections to + # Backends. Currently exactly one SSL certificate must be specified. + # Corresponds to the JSON property `sslCertificates` + # @return [Array] + attr_accessor :ssl_certificates + + # URL to the UrlMap resource that defines the mapping from URL to the + # BackendService. + # Corresponds to the JSON property `urlMap` + # @return [String] + attr_accessor :url_map + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @description = args[:description] unless args[:description].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @ssl_certificates = args[:ssl_certificates] unless args[:ssl_certificates].nil? + @url_map = args[:url_map] unless args[:url_map].nil? + end + end + + # Contains a list of TargetHttpsProxy resources. + class TargetHttpsProxyList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of TargetHttpsProxy resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # A TargetInstance resource. This resource defines an endpoint instance that # terminates traffic of certain protocols. class TargetInstance include Google::Apis::Core::Hashable - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -6231,7 +6631,7 @@ module Google # @return [String] attr_accessor :description - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -6246,24 +6646,28 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # NAT option controlling how IPs are NAT'ed to the VM. Currently only NO_NAT ( - # default value) is supported. + # NAT option controlling how IPs are NAT'ed to the instance. Currently only + # NO_NAT (default value) is supported. # Corresponds to the JSON property `natPolicy` # @return [String] attr_accessor :nat_policy - # Server defined URL for the resource (output only). + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link - # URL of the zone where the target instance resides (output only). + # [Output Only] URL of the zone where the target instance resides. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -6290,7 +6694,7 @@ module Google class TargetInstanceAggregatedList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -6305,12 +6709,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -6333,7 +6737,7 @@ module Google class TargetInstanceList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -6348,12 +6752,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -6455,27 +6859,28 @@ module Google end end - # A TargetPool resource. This resource defines a pool of VMs, associated + # A TargetPool resource. This resource defines a pool of instances, associated # HttpHealthCheck resources, and the fallback TargetPool. class TargetPool include Google::Apis::Core::Hashable # This field is applicable only when the containing target pool is serving a - # forwarding rule as the primary pool, and its 'failoverRatio' field is properly + # forwarding rule as the primary pool, and its failoverRatio field is properly # set to a value between [0, 1]. - # 'backupPool' and 'failoverRatio' together define the fallback behavior of the - # primary target pool: if the ratio of the healthy VMs in the primary pool is at - # or below 'failoverRatio', traffic arriving at the load-balanced IP will be + # backupPool and failoverRatio together define the fallback behavior of the + # primary target pool: if the ratio of the healthy instances in the primary pool + # is at or below failoverRatio, traffic arriving at the load-balanced IP will be # directed to the backup pool. - # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in - # the backup pool are unhealthy, the traffic will be directed back to the + # In case where failoverRatio and backupPool are not set, or all the instances + # in the backup pool are unhealthy, the traffic will be directed back to the # primary pool in the "force" mode, where traffic will be spread to the healthy - # VMs with the best effort, or to all VMs when no VM is healthy. + # instances with the best effort, or to all instances when no instance is + # healthy. # Corresponds to the JSON property `backupPool` # @return [String] attr_accessor :backup_pool - # Creation timestamp in RFC3339 text format (output only). + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] attr_accessor :creation_timestamp @@ -6489,32 +6894,32 @@ module Google # This field is applicable only when the containing target pool is serving a # forwarding rule as the primary pool (i.e., not as a backup pool to some other # target pool). The value of the field must be in [0, 1]. - # If set, 'backupPool' must also be set. They together define the fallback - # behavior of the primary target pool: if the ratio of the healthy VMs in the - # primary pool is at or below this number, traffic arriving at the load-balanced - # IP will be directed to the backup pool. - # In case where 'failoverRatio' is not set or all the VMs in the backup pool are - # unhealthy, the traffic will be directed back to the primary pool in the "force" - # mode, where traffic will be spread to the healthy VMs with the best effort, - # or to all VMs when no VM is healthy. + # If set, backupPool must also be set. They together define the fallback + # behavior of the primary target pool: if the ratio of the healthy instances in + # the primary pool is at or below this number, traffic arriving at the load- + # balanced IP will be directed to the backup pool. + # In case where failoverRatio is not set or all the instances in the backup pool + # are unhealthy, the traffic will be directed back to the primary pool in the " + # force" mode, where traffic will be spread to the healthy instances with the + # best effort, or to all instances when no instance is healthy. # Corresponds to the JSON property `failoverRatio` # @return [Float] attr_accessor :failover_ratio - # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is - # considered healthy if and only if all specified health checks pass. An empty - # list means all member VMs will be considered healthy at all times. + # A list of URLs to the HttpHealthCheck resource. A member instance in this pool + # is considered healthy if and only if all specified health checks pass. An + # empty list means all member instances will be considered healthy at all times. # Corresponds to the JSON property `healthChecks` # @return [Array] attr_accessor :health_checks - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A list of resource URLs to the member VMs serving this pool. They must live in - # zones contained in the same region as this pool. + # A list of resource URLs to the member virtual machines serving this pool. They + # must live in zones contained in the same region as this pool. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -6524,28 +6929,32 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The - # name must be 1-63 characters long, and comply with RFC1035. + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # URL of the region where the target pool resides (output only). + # [Output Only] URL of the region where the target pool resides. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region - # Server defined URL for the resource (output only). + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link - # Sesssion affinity option, must be one of the following values: 'NONE': - # Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': - # Connections from the same client IP will go to the same VM in the pool while - # that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client - # IP with the same IP protocol will go to the same VM in the pool while that VM - # remains healthy. + # Sesssion affinity option, must be one of the following values: + # NONE: Connections from the same client IP may go to any instance in the pool. + # CLIENT_IP: Connections from the same client IP will go to the same instance in + # the pool while that instance remains healthy. + # CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol + # will go to the same instance in the pool while that instance remains healthy. # Corresponds to the JSON property `sessionAffinity` # @return [String] attr_accessor :session_affinity @@ -6575,7 +6984,7 @@ module Google class TargetPoolAggregatedList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -6590,12 +6999,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -6643,7 +7052,7 @@ module Google class TargetPoolList include Google::Apis::Core::Hashable - # Unique identifier for the resource; defined by the server (output only). + # [Output Only] Unique identifier for the resource. Defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -6658,12 +7067,12 @@ module Google # @return [String] attr_accessor :kind - # A token used to continue a truncated list request (output only). + # [Output Only] A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -7218,7 +7627,7 @@ module Google # @return [Array] attr_accessor :path_matchers - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -7273,7 +7682,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -7518,7 +7927,7 @@ module Google # @return [String] attr_accessor :region - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -7592,7 +8001,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] Server defined URL for this resource. + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -7783,7 +8192,7 @@ module Google # @return [String] attr_accessor :region - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -7873,7 +8282,7 @@ module Google # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 12f4cc728..376a0d4ef 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -226,6 +226,14 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class HttpsHealthCheck + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class HttpsHealthCheckList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end @@ -270,10 +278,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end - class InstanceGroupManagerAutoHealingPolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - end - class InstanceGroupManagerList class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -562,6 +566,14 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class SslCertificate + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SslCertificateList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Tags class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -574,6 +586,18 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class TargetHttpsProxiesSetSslCertificatesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetHttpsProxy + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetHttpsProxyList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class TargetInstance class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -1337,6 +1361,37 @@ module Google end end + class HttpsHealthCheck + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :check_interval_sec, as: 'checkIntervalSec' + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :healthy_threshold, as: 'healthyThreshold' + property :host, as: 'host' + property :id, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :port, as: 'port' + property :request_path, as: 'requestPath' + property :self_link, as: 'selfLink' + property :timeout_sec, as: 'timeoutSec' + property :unhealthy_threshold, as: 'unhealthyThreshold' + end + end + + class HttpsHealthCheckList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::HttpsHealthCheck, decorator: Google::Apis::ComputeV1::HttpsHealthCheck::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + class Image # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1468,8 +1523,6 @@ module Google class InstanceGroupManager # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :auto_healing_policies, as: 'autoHealingPolicies', class: Google::Apis::ComputeV1::InstanceGroupManagerAutoHealingPolicy, decorator: Google::Apis::ComputeV1::InstanceGroupManagerAutoHealingPolicy::Representation - property :base_instance_name, as: 'baseInstanceName' property :creation_timestamp, as: 'creationTimestamp' property :current_actions, as: 'currentActions', class: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary::Representation @@ -1481,6 +1534,8 @@ module Google property :instance_template, as: 'instanceTemplate' property :kind, as: 'kind' property :name, as: 'name' + collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation + property :self_link, as: 'selfLink' collection :target_pools, as: 'targetPools' property :target_size, as: 'targetSize' @@ -1513,14 +1568,6 @@ module Google end end - class InstanceGroupManagerAutoHealingPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :action_type, as: 'actionType' - property :health_check, as: 'healthCheck' - end - end - class InstanceGroupManagerList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1629,7 +1676,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :instance_state, as: 'instanceState' - property :port_name, as: 'portName' end end @@ -2124,6 +2170,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + collection :enabled_features, as: 'enabledFeatures' property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' @@ -2291,6 +2338,32 @@ module Google end end + class SslCertificate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :certificate, as: 'certificate' + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :private_key, as: 'privateKey' + property :self_link, as: 'selfLink' + end + end + + class SslCertificateList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::SslCertificate, decorator: Google::Apis::ComputeV1::SslCertificate::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + class Tags # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2324,6 +2397,39 @@ module Google end end + class TargetHttpsProxiesSetSslCertificatesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ssl_certificates, as: 'sslCertificates' + end + end + + class TargetHttpsProxy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :self_link, as: 'selfLink' + collection :ssl_certificates, as: 'sslCertificates' + property :url_map, as: 'urlMap' + end + end + + class TargetHttpsProxyList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::TargetHttpsProxy, decorator: Google::Apis::ComputeV1::TargetHttpsProxy::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + class TargetInstance # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 6a49efdbd..6ce4409f6 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -95,8 +95,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_addresses(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/addresses' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/addresses', options) command.response_representation = Google::Apis::ComputeV1::AddressAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::AddressAggregatedList command.params['project'] = project unless project.nil? @@ -138,8 +137,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_address(project, region, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/addresses/{address}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/regions/{region}/addresses/{address}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -180,8 +178,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_address(project, region, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/addresses/{address}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/addresses/{address}', options) command.response_representation = Google::Apis::ComputeV1::Address::Representation command.response_class = Google::Apis::ComputeV1::Address command.params['project'] = project unless project.nil? @@ -222,8 +219,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_address(project, region, address_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/addresses' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/addresses', options) command.request_representation = Google::Apis::ComputeV1::Address::Representation command.request_object = address_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -281,8 +277,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_addresses(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/addresses' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/addresses', options) command.response_representation = Google::Apis::ComputeV1::AddressList::Representation command.response_class = Google::Apis::ComputeV1::AddressList command.params['project'] = project unless project.nil? @@ -338,9 +333,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def aggregated_list_autoscaler(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/autoscalers' - command = make_simple_command(:get, path, options) + def aggregated_autoscaler_list(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/autoscalers', options) command.response_representation = Google::Apis::ComputeV1::AutoscalerAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::AutoscalerAggregatedList command.params['project'] = project unless project.nil? @@ -382,8 +376,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/autoscalers/{autoscaler}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -424,8 +417,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/autoscalers/{autoscaler}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeV1::Autoscaler::Representation command.response_class = Google::Apis::ComputeV1::Autoscaler command.params['project'] = project unless project.nil? @@ -466,8 +458,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/autoscalers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -525,8 +516,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/autoscalers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/autoscalers', options) command.response_representation = Google::Apis::ComputeV1::AutoscalerList::Representation command.response_class = Google::Apis::ComputeV1::AutoscalerList command.params['project'] = project unless project.nil? @@ -571,8 +561,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/autoscalers' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -617,8 +606,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/autoscalers' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -659,8 +647,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_service(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/backendServices/{backendService}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -698,8 +685,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_service(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/backendServices/{backendService}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeV1::BackendService::Representation command.response_class = Google::Apis::ComputeV1::BackendService command.params['project'] = project unless project.nil? @@ -737,8 +723,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_service_health(project, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/backendServices/{backendService}/getHealth' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/getHealth', options) command.request_representation = Google::Apis::ComputeV1::ResourceGroupReference::Representation command.request_object = resource_group_reference_object command.response_representation = Google::Apis::ComputeV1::BackendServiceGroupHealth::Representation @@ -778,8 +763,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_backend_service(project, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/backendServices' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/backendServices', options) command.request_representation = Google::Apis::ComputeV1::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -835,8 +819,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_backend_services(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/backendServices' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/backendServices', options) command.response_representation = Google::Apis::ComputeV1::BackendServiceList::Representation command.response_class = Google::Apis::ComputeV1::BackendServiceList command.params['project'] = project unless project.nil? @@ -878,8 +861,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_backend_service(project, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/backendServices/{backendService}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{project}/global/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeV1::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -920,8 +902,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_backend_service(project, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/backendServices/{backendService}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{project}/global/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeV1::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -977,8 +958,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_disk_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/diskTypes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/diskTypes', options) command.response_representation = Google::Apis::ComputeV1::DiskTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::DiskTypeAggregatedList command.params['project'] = project unless project.nil? @@ -1020,8 +1000,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk_type(project, zone, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/diskTypes/{diskType}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/diskTypes/{diskType}', options) command.response_representation = Google::Apis::ComputeV1::DiskType::Representation command.response_class = Google::Apis::ComputeV1::DiskType command.params['project'] = project unless project.nil? @@ -1078,8 +1057,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_disk_types(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/diskTypes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/diskTypes', options) command.response_representation = Google::Apis::ComputeV1::DiskTypeList::Representation command.response_class = Google::Apis::ComputeV1::DiskTypeList command.params['project'] = project unless project.nil? @@ -1136,8 +1114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_disk(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/disks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/disks', options) command.response_representation = Google::Apis::ComputeV1::DiskAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::DiskAggregatedList command.params['project'] = project unless project.nil? @@ -1180,8 +1157,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_disk_snapshot(project, zone, disk, snapshot_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/disks/{disk}/createSnapshot' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/createSnapshot', options) command.request_representation = Google::Apis::ComputeV1::Snapshot::Representation command.request_object = snapshot_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -1226,8 +1202,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_disk(project, zone, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/disks/{disk}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -1268,8 +1243,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk(project, zone, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/disks/{disk}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeV1::Disk::Representation command.response_class = Google::Apis::ComputeV1::Disk command.params['project'] = project unless project.nil? @@ -1312,8 +1286,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_disk(project, zone, disk_object = nil, source_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/disks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/disks', options) command.request_representation = Google::Apis::ComputeV1::Disk::Representation command.request_object = disk_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -1372,8 +1345,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_disks(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/disks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/disks', options) command.response_representation = Google::Apis::ComputeV1::DiskList::Representation command.response_class = Google::Apis::ComputeV1::DiskList command.params['project'] = project unless project.nil? @@ -1414,8 +1386,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_firewall(project, firewall, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/firewalls/{firewall}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/firewalls/{firewall}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -1453,8 +1424,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_firewall(project, firewall, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/firewalls/{firewall}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/firewalls/{firewall}', options) command.response_representation = Google::Apis::ComputeV1::Firewall::Representation command.response_class = Google::Apis::ComputeV1::Firewall command.params['project'] = project unless project.nil? @@ -1492,8 +1462,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_firewall(project, firewall_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/firewalls' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/firewalls', options) command.request_representation = Google::Apis::ComputeV1::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -1548,8 +1517,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_firewalls(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/firewalls' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/firewalls', options) command.response_representation = Google::Apis::ComputeV1::FirewallList::Representation command.response_class = Google::Apis::ComputeV1::FirewallList command.params['project'] = project unless project.nil? @@ -1591,8 +1559,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_firewall(project, firewall, firewall_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/firewalls/{firewall}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{project}/global/firewalls/{firewall}', options) command.request_representation = Google::Apis::ComputeV1::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -1633,8 +1600,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_firewall(project, firewall, firewall_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/firewalls/{firewall}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{project}/global/firewalls/{firewall}', options) command.request_representation = Google::Apis::ComputeV1::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -1690,8 +1656,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_forwarding_rules(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/forwardingRules' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/forwardingRules', options) command.response_representation = Google::Apis::ComputeV1::ForwardingRuleAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::ForwardingRuleAggregatedList command.params['project'] = project unless project.nil? @@ -1733,8 +1698,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_forwarding_rule(project, region, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/forwardingRules/{forwardingRule}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -1775,8 +1739,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_forwarding_rule(project, region, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/forwardingRules/{forwardingRule}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeV1::ForwardingRule::Representation command.response_class = Google::Apis::ComputeV1::ForwardingRule command.params['project'] = project unless project.nil? @@ -1817,8 +1780,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_forwarding_rule(project, region, forwarding_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/forwardingRules' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules', options) command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -1877,8 +1839,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_forwarding_rules(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/forwardingRules' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/forwardingRules', options) command.response_representation = Google::Apis::ComputeV1::ForwardingRuleList::Representation command.response_class = Google::Apis::ComputeV1::ForwardingRuleList command.params['project'] = project unless project.nil? @@ -1892,7 +1853,8 @@ module Google execute_or_queue_command(command, &block) end - # Changes target url for forwarding rule. + # Changes target url for forwarding rule. The new target should be of the same + # type as the old target. # @param [String] project # Name of the project scoping this request. # @param [String] region @@ -1922,8 +1884,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_forwarding_rule_target(project, region, forwarding_rule, target_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', options) command.request_representation = Google::Apis::ComputeV1::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -1964,8 +1925,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_address(project, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/addresses/{address}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/addresses/{address}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -2003,8 +1963,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_address(project, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/addresses/{address}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/addresses/{address}', options) command.response_representation = Google::Apis::ComputeV1::Address::Representation command.response_class = Google::Apis::ComputeV1::Address command.params['project'] = project unless project.nil? @@ -2042,8 +2001,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_address(project, address_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/addresses' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/addresses', options) command.request_representation = Google::Apis::ComputeV1::Address::Representation command.request_object = address_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2098,8 +2056,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_addresses(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/addresses' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/addresses', options) command.response_representation = Google::Apis::ComputeV1::AddressList::Representation command.response_class = Google::Apis::ComputeV1::AddressList command.params['project'] = project unless project.nil? @@ -2139,8 +2096,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/forwardingRules/{forwardingRule}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -2178,8 +2134,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/forwardingRules/{forwardingRule}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeV1::ForwardingRule::Representation command.response_class = Google::Apis::ComputeV1::ForwardingRule command.params['project'] = project unless project.nil? @@ -2217,8 +2172,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_forwarding_rule(project, forwarding_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/forwardingRules' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/forwardingRules', options) command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2274,8 +2228,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_forwarding_rules(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/forwardingRules' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/forwardingRules', options) command.response_representation = Google::Apis::ComputeV1::ForwardingRuleList::Representation command.response_class = Google::Apis::ComputeV1::ForwardingRuleList command.params['project'] = project unless project.nil? @@ -2288,7 +2241,8 @@ module Google execute_or_queue_command(command, &block) end - # Changes target url for forwarding rule. + # Changes target url for forwarding rule. The new target should be of the same + # type as the old target. # @param [String] project # Name of the project scoping this request. # @param [String] forwarding_rule @@ -2316,8 +2270,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_global_forwarding_rule_target(project, forwarding_rule, target_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/forwardingRules/{forwardingRule}/setTarget' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/forwardingRules/{forwardingRule}/setTarget', options) command.request_representation = Google::Apis::ComputeV1::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2373,8 +2326,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_global_operation(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/operations', options) command.response_representation = Google::Apis::ComputeV1::OperationAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::OperationAggregatedList command.params['project'] = project unless project.nil? @@ -2414,8 +2366,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/operations/{operation}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? @@ -2451,8 +2402,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/operations/{operation}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -2507,8 +2457,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/operations', options) command.response_representation = Google::Apis::ComputeV1::OperationList::Representation command.response_class = Google::Apis::ComputeV1::OperationList command.params['project'] = project unless project.nil? @@ -2548,8 +2497,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/httpHealthChecks/{httpHealthCheck}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -2587,8 +2535,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/httpHealthChecks/{httpHealthCheck}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.response_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation command.response_class = Google::Apis::ComputeV1::HttpHealthCheck command.params['project'] = project unless project.nil? @@ -2626,8 +2573,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_http_health_check(project, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/httpHealthChecks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/httpHealthChecks', options) command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2683,8 +2629,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_http_health_checks(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/httpHealthChecks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/httpHealthChecks', options) command.response_representation = Google::Apis::ComputeV1::HttpHealthCheckList::Representation command.response_class = Google::Apis::ComputeV1::HttpHealthCheckList command.params['project'] = project unless project.nil? @@ -2726,8 +2671,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/httpHealthChecks/{httpHealthCheck}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2769,8 +2713,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/httpHealthChecks/{httpHealthCheck}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2783,6 +2726,262 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified HttpsHealthCheck resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] https_health_check + # Name of the HttpsHealthCheck resource to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified HttpsHealthCheck resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] https_health_check + # Name of the HttpsHealthCheck resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::HttpsHealthCheck] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::HttpsHealthCheck] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command.response_representation = Google::Apis::ComputeV1::HttpsHealthCheck::Representation + command.response_class = Google::Apis::ComputeV1::HttpsHealthCheck + command.params['project'] = project unless project.nil? + command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a HttpsHealthCheck resource in the specified project using the data + # included in the request. + # @param [String] project + # Name of the project scoping this request. + # @param [Google::Apis::ComputeV1::HttpsHealthCheck] https_health_check_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_https_health_check(project, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/httpsHealthChecks', options) + command.request_representation = Google::Apis::ComputeV1::HttpsHealthCheck::Representation + command.request_object = https_health_check_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of HttpsHealthCheck resources available to the specified + # project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::HttpsHealthCheckList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::HttpsHealthCheckList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_https_health_checks(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/httpsHealthChecks', options) + command.response_representation = Google::Apis::ComputeV1::HttpsHealthCheckList::Representation + command.response_class = Google::Apis::ComputeV1::HttpsHealthCheckList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a HttpsHealthCheck resource in the specified project using the data + # included in the request. This method supports patch semantics. + # @param [String] project + # Name of the project scoping this request. + # @param [String] https_health_check + # Name of the HttpsHealthCheck resource to update. + # @param [Google::Apis::ComputeV1::HttpsHealthCheck] https_health_check_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_https_health_check(project, https_health_check, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command.request_representation = Google::Apis::ComputeV1::HttpsHealthCheck::Representation + command.request_object = https_health_check_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a HttpsHealthCheck resource in the specified project using the data + # included in the request. + # @param [String] project + # Name of the project scoping this request. + # @param [String] https_health_check + # Name of the HttpsHealthCheck resource to update. + # @param [Google::Apis::ComputeV1::HttpsHealthCheck] https_health_check_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_https_health_check(project, https_health_check, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command.request_representation = Google::Apis::ComputeV1::HttpsHealthCheck::Representation + command.request_object = https_health_check_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified image resource. # @param [String] project # Project ID for this request. @@ -2810,8 +3009,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/images/{image}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/images/{image}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -2851,8 +3049,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def deprecate_image(project, image, deprecation_status_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/images/{image}/deprecate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/images/{image}/deprecate', options) command.request_representation = Google::Apis::ComputeV1::DeprecationStatus::Representation command.request_object = deprecation_status_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2892,8 +3089,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/images/{image}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/images/{image}', options) command.response_representation = Google::Apis::ComputeV1::Image::Representation command.response_class = Google::Apis::ComputeV1::Image command.params['project'] = project unless project.nil? @@ -2931,8 +3127,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_image(project, image_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/images' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/images', options) command.request_representation = Google::Apis::ComputeV1::Image::Representation command.request_object = image_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -2944,7 +3139,13 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of image resources available to the specified project. + # Retrieves the list of private images available to the specified project. + # Private images are images you create that belong to your project. This method + # does not get any images that belong to other projects, including publicly- + # available images, like Debian 7. If you want to get a list of publicly- + # available images, use this method to make a request to the respective image + # project, such as debian-cloud or windows-cloud. + # See Accessing images for more information. # @param [String] project # Project ID for this request. # @param [String] filter @@ -2987,8 +3188,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_images(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/images' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/images', options) command.response_representation = Google::Apis::ComputeV1::ImageList::Representation command.response_class = Google::Apis::ComputeV1::ImageList command.params['project'] = project unless project.nil? @@ -3001,16 +3201,20 @@ module Google execute_or_queue_command(command, &block) end - # Removes the specified instances from the managed instance group, and from any - # target pools where they are a member. The instances are not deleted. The - # managed instance group automatically reduces its targetSize value by the - # number of instances that you abandon from the group. + # Schedules a group action to remove the specified instances from the managed + # instance group. Abandoning an instance does not delete the instance, but it + # does remove the instance from any target pools that are applied by the managed + # instance group. This method reduces the targetSize of the managed instance + # group by the number of instances that you abandon. This operation is marked as + # DONE when the action is scheduled even if the instances have not yet been + # removed from the group. You must separately verify the status of the + # abandoning action with the listmanagedinstances method. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager. + # The name of the managed instance group. # @param [Google::Apis::ComputeV1::InstanceGroupManagersAbandonInstancesRequest] instance_group_managers_abandon_instances_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3034,8 +3238,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def abandon_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_abandon_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersAbandonInstancesRequest::Representation command.request_object = instance_group_managers_abandon_instances_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3049,8 +3252,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of managed instance groups, and groups them by project and - # zone. + # Retrieves the list of managed instance groups and groups them by zone. # @param [String] project # The project ID for this request. # @param [String] filter @@ -3093,8 +3295,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_instance_group_managers(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/instanceGroupManagers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList command.params['project'] = project unless project.nil? @@ -3107,13 +3308,14 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified managed instance group resource. + # Deletes the specified managed instance group and all of the instances in that + # group. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager to delete. + # The name of the managed instance group to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3136,8 +3338,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -3149,16 +3350,19 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified instances. The instances are deleted and removed from - # the instance group and any target pools where they are a member. The managed - # instance group automatically reduces its targetSize value by the number of - # instances that you delete. + # Schedules a group action to delete the specified instances in the managed + # instance group. The instances are also removed from any target pools of which + # they were a member. This method reduces the targetSize of the managed instance + # group by the number of instances that you delete. This operation is marked as + # DONE when the action is scheduled even if the instances are still being + # deleted. You must separately verify the status of the deleting action with the + # listmanagedinstances method. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager. + # The name of the managed instance group. # @param [Google::Apis::ComputeV1::InstanceGroupManagersDeleteInstancesRequest] instance_group_managers_delete_instances_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3182,8 +3386,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_delete_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersDeleteInstancesRequest::Representation command.request_object = instance_group_managers_delete_instances_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3197,13 +3400,13 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified managed instance group resource. + # Returns all of the details about the specified managed instance group. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager resource. + # The name of the managed instance group. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3226,8 +3429,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation command.response_class = Google::Apis::ComputeV1::InstanceGroupManager command.params['project'] = project unless project.nil? @@ -3239,12 +3441,16 @@ module Google execute_or_queue_command(command, &block) end - # Creates a managed instance group resource in the specified project using the - # data that is included in the request. + # Creates a managed instance group using the information that you specify in the + # request. After the group is created, it schedules an action to create + # instances in the group using the specified instance template. This operation + # is marked as DONE when the group is created even if the instances in the group + # have not yet been created. You must separately verify the status of the + # individual instances with the listmanagedinstances method. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where you want to create the managed instance group. # @param [Google::Apis::ComputeV1::InstanceGroupManager] instance_group_manager_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3268,8 +3474,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_group_manager(project, zone, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3287,7 +3492,7 @@ module Google # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: FIELD_NAME @@ -3328,8 +3533,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_managers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerList::Representation command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerList command.params['project'] = project unless project.nil? @@ -3343,11 +3547,15 @@ module Google execute_or_queue_command(command, &block) end - # Lists managed instances. + # Lists all of the instances in the managed instance group. Each instance in the + # list has a currentAction, which indicates the action that the managed instance + # group is performing on the instance. For example, if the group is still + # creating an instance, the currentAction is CREATING. If a previous action + # failed, the list displays the errors for that failed action. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager # The name of the managed instance group. # @param [String] fields @@ -3372,8 +3580,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse::Representation command.response_class = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse command.params['project'] = project unless project.nil? @@ -3385,14 +3592,18 @@ module Google execute_or_queue_command(command, &block) end - # Recreates the specified instances. The instances are deleted, then recreated - # using the managed instance group's current instance template. + # Schedules a group action to recreate the specified instances in the managed + # instance group. The instances are deleted and recreated using the current + # instance template for the managed instance group. This operation is marked as + # DONE when the action is scheduled even if the instances have not yet been + # recreated. You must separately verify the status of the recreating action with + # the listmanagedinstances method. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager. + # The name of the managed instance group. # @param [Google::Apis::ComputeV1::InstanceGroupManagersRecreateInstancesRequest] instance_group_managers_recreate_instances_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3416,8 +3627,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def recreate_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_recreate_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersRecreateInstancesRequest::Representation command.request_object = instance_group_managers_recreate_instances_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3433,14 +3643,16 @@ module Google # Resizes the managed instance group. If you increase the size, the group # creates new instances using the current instance template. If you decrease the - # size, the group removes instances in the order that is outlined in Resizing a - # managed instance group. + # size, the group deletes instances. The resize operation is marked DONE when + # the resize actions are scheduled even if the group has not yet added or + # deleted any instances. You must separately verify the status of the creating + # or deleting actions with the listmanagedinstances method. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager. + # The name of the managed instance group. # @param [Fixnum] size # The number of running instances that the managed instance group should # maintain at any given time. The group automatically adds or removes instances @@ -3467,8 +3679,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_instance_group_manager(project, zone, instance_group_manager, size, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -3487,9 +3698,9 @@ module Google # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager. + # The name of the managed instance group. # @param [Google::Apis::ComputeV1::InstanceGroupManagersSetInstanceTemplateRequest] instance_group_managers_set_instance_template_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3513,8 +3724,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_instance_group_manager_instance_template(project, zone, instance_group_manager, instance_group_managers_set_instance_template_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersSetInstanceTemplateRequest::Representation command.request_object = instance_group_managers_set_instance_template_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3528,15 +3738,18 @@ module Google execute_or_queue_command(command, &block) end - # Modifies the target pools to which all new instances in this group are - # assigned. The target pools for existing instances in the group do not change - # unless you recreate them. + # Modifies the target pools to which all instances in this managed instance + # group are assigned. The target pools automatically apply to all of the + # instances in the managed instance group. This operation is marked DONE when + # you make the request even if the instances have not yet been added to their + # target pools. The change might take some time to apply to all of the instances + # in the group depending on the size of the group. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager - # The name of the instance group manager. + # The name of the managed instance group. # @param [Google::Apis::ComputeV1::InstanceGroupManagersSetTargetPoolsRequest] instance_group_managers_set_target_pools_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3560,8 +3773,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_instance_group_manager_target_pools(project, zone, instance_group_manager, instance_group_managers_set_target_pools_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersSetTargetPoolsRequest::Representation command.request_object = instance_group_managers_set_target_pools_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3575,12 +3787,12 @@ module Google execute_or_queue_command(command, &block) end - # Adds a list of instances to an instance group. All of the instances in the - # instance group must be in the same network. + # Adds a list of instances to the specified instance group. All of the instances + # in the instance group must be in the same network/subnetwork. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where the instance group is located. # @param [String] instance_group # The name of the instance group where you are adding instances. # @param [Google::Apis::ComputeV1::InstanceGroupsAddInstancesRequest] instance_groups_add_instances_request_object @@ -3606,8 +3818,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_group_instances(project, zone, instance_group, instance_groups_add_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupsAddInstancesRequest::Representation command.request_object = instance_groups_add_instances_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3621,7 +3832,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of instance groups, and sorts them by zone. + # Retrieves the list of instance groups and sorts them by zone. # @param [String] project # The project ID for this request. # @param [String] filter @@ -3664,8 +3875,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_instance_groups(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/instanceGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/instanceGroups', options) command.response_representation = Google::Apis::ComputeV1::InstanceGroupAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::InstanceGroupAggregatedList command.params['project'] = project unless project.nil? @@ -3678,11 +3888,12 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified instance group. + # Deletes the specified instance group. The instances in the group are not + # deleted. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where the instance group is located. # @param [String] instance_group # The name of the instance group to delete. # @param [String] fields @@ -3707,8 +3918,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -3724,7 +3934,7 @@ module Google # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where the instance group is located. # @param [String] instance_group # The name of the instance group. # @param [String] fields @@ -3749,8 +3959,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_instance_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeV1::InstanceGroup::Representation command.response_class = Google::Apis::ComputeV1::InstanceGroup command.params['project'] = project unless project.nil? @@ -3767,7 +3976,7 @@ module Google # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where you want to create the instance group. # @param [Google::Apis::ComputeV1::InstanceGroup] instance_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -3791,8 +4000,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_group(project, zone, instance_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroup::Representation command.request_object = instance_group_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3810,7 +4018,7 @@ module Google # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where the instance group is located. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: FIELD_NAME @@ -3851,8 +4059,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_groups(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroups', options) command.response_representation = Google::Apis::ComputeV1::InstanceGroupList::Representation command.response_class = Google::Apis::ComputeV1::InstanceGroupList command.params['project'] = project unless project.nil? @@ -3866,12 +4073,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists instances in an instance group. The parameters for this method specify - # whether the list filters instances by state and named ports information. + # Lists the instances in the specified instance group. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where the instance group is located. # @param [String] instance_group # The name of the instance group from which you want to generate a list of # included instances. @@ -3916,8 +4122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_instances(project, zone, instance_group, instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupsListInstancesRequest::Representation command.request_object = instance_groups_list_instances_request_object command.response_representation = Google::Apis::ComputeV1::InstanceGroupsListInstances::Representation @@ -3934,11 +4139,12 @@ module Google execute_or_queue_command(command, &block) end - # Removes a list of instances from an instance group. + # Removes one or more instances from the specified instance group, but does not + # delete those instances. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where the instance group is located. # @param [String] instance_group # The name of the instance group where the specified instances will be removed. # @param [Google::Apis::ComputeV1::InstanceGroupsRemoveInstancesRequest] instance_groups_remove_instances_request_object @@ -3964,8 +4170,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_instance_group_instances(project, zone, instance_group, instance_groups_remove_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupsRemoveInstancesRequest::Representation command.request_object = instance_groups_remove_instances_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3979,11 +4184,11 @@ module Google execute_or_queue_command(command, &block) end - # Sets the named ports in an instance group. + # Sets the named ports for the specified instance group. # @param [String] project # The project ID for this request. # @param [String] zone - # The URL of the zone where the instance group is located. + # The name of the zone where the instance group is located. # @param [String] instance_group # The name of the instance group where the named ports are updated. # @param [Google::Apis::ComputeV1::InstanceGroupsSetNamedPortsRequest] instance_groups_set_named_ports_request_object @@ -4009,8 +4214,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_instance_group_named_ports(project, zone, instance_group, instance_groups_set_named_ports_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts', options) command.request_representation = Google::Apis::ComputeV1::InstanceGroupsSetNamedPortsRequest::Representation command.request_object = instance_groups_set_named_ports_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4051,8 +4255,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_template(project, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/instanceTemplates/{instanceTemplate}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/instanceTemplates/{instanceTemplate}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -4090,8 +4293,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_instance_template(project, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/instanceTemplates/{instanceTemplate}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/instanceTemplates/{instanceTemplate}', options) command.response_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation command.response_class = Google::Apis::ComputeV1::InstanceTemplate command.params['project'] = project unless project.nil? @@ -4129,8 +4331,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_template(project, instance_template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/instanceTemplates' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/instanceTemplates', options) command.request_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation command.request_object = instance_template_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4186,8 +4387,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_templates(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/instanceTemplates' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/instanceTemplates', options) command.response_representation = Google::Apis::ComputeV1::InstanceTemplateList::Representation command.response_class = Google::Apis::ComputeV1::InstanceTemplateList command.params['project'] = project unless project.nil? @@ -4232,8 +4432,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_access_config(project, zone, instance, network_interface, access_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/addAccessConfig' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/addAccessConfig', options) command.request_representation = Google::Apis::ComputeV1::AccessConfig::Representation command.request_object = access_config_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4248,7 +4447,7 @@ module Google execute_or_queue_command(command, &block) end - # + # Retrieves aggregated list of instance resources. # @param [String] project # Project ID for this request. # @param [String] filter @@ -4291,8 +4490,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/instances' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/instances', options) command.response_representation = Google::Apis::ComputeV1::InstanceAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::InstanceAggregatedList command.params['project'] = project unless project.nil? @@ -4335,8 +4533,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def attach_disk(project, zone, instance, attached_disk_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/attachDisk' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/attachDisk', options) command.request_representation = Google::Apis::ComputeV1::AttachedDisk::Representation command.request_object = attached_disk_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4380,8 +4577,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/instances/{instance}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -4426,8 +4622,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_access_config(project, zone, instance, access_config, network_interface, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -4472,8 +4667,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def detach_disk(project, zone, instance, device_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/detachDisk' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/detachDisk', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -4515,8 +4709,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_instance(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}', options) command.response_representation = Google::Apis::ComputeV1::Instance::Representation command.response_class = Google::Apis::ComputeV1::Instance command.params['project'] = project unless project.nil? @@ -4559,8 +4752,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_instance_serial_port_output(project, zone, instance, port: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/serialPort' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/serialPort', options) command.response_representation = Google::Apis::ComputeV1::SerialPortOutput::Representation command.response_class = Google::Apis::ComputeV1::SerialPortOutput command.params['project'] = project unless project.nil? @@ -4602,8 +4794,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance(project, zone, instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances', options) command.request_representation = Google::Apis::ComputeV1::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4661,8 +4852,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instances(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instances', options) command.response_representation = Google::Apis::ComputeV1::InstanceList::Representation command.response_class = Google::Apis::ComputeV1::InstanceList command.params['project'] = project unless project.nil? @@ -4705,8 +4895,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reset_instance(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/reset' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/reset', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -4751,8 +4940,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_disk_auto_delete(project, zone, instance, auto_delete, device_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -4796,8 +4984,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_instance_metadata(project, zone, instance, metadata_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/setMetadata' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMetadata', options) command.request_representation = Google::Apis::ComputeV1::Metadata::Representation command.request_object = metadata_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4841,8 +5028,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_instance_scheduling(project, zone, instance, scheduling_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/setScheduling' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setScheduling', options) command.request_representation = Google::Apis::ComputeV1::Scheduling::Representation command.request_object = scheduling_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4886,8 +5072,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_instance_tags(project, zone, instance, tags_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/setTags' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setTags', options) command.request_representation = Google::Apis::ComputeV1::Tags::Representation command.request_object = tags_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4931,8 +5116,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_instance(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/start' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/start', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -4978,8 +5162,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_instance(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instances/{instance}/stop' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/stop', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -5018,8 +5201,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/licenses/{license}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/licenses/{license}', options) command.response_representation = Google::Apis::ComputeV1::License::Representation command.response_class = Google::Apis::ComputeV1::License command.params['project'] = project unless project.nil? @@ -5073,8 +5255,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_machine_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/machineTypes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/machineTypes', options) command.response_representation = Google::Apis::ComputeV1::MachineTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::MachineTypeAggregatedList command.params['project'] = project unless project.nil? @@ -5116,8 +5297,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/machineTypes/{machineType}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/machineTypes/{machineType}', options) command.response_representation = Google::Apis::ComputeV1::MachineType::Representation command.response_class = Google::Apis::ComputeV1::MachineType command.params['project'] = project unless project.nil? @@ -5175,8 +5355,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_machine_types(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/machineTypes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/machineTypes', options) command.response_representation = Google::Apis::ComputeV1::MachineTypeList::Representation command.response_class = Google::Apis::ComputeV1::MachineTypeList command.params['project'] = project unless project.nil? @@ -5217,8 +5396,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_network(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/networks/{network}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/networks/{network}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -5256,8 +5434,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/networks/{network}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/networks/{network}', options) command.response_representation = Google::Apis::ComputeV1::Network::Representation command.response_class = Google::Apis::ComputeV1::Network command.params['project'] = project unless project.nil? @@ -5295,8 +5472,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_network(project, network_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/networks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/networks', options) command.request_representation = Google::Apis::ComputeV1::Network::Representation command.request_object = network_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -5351,8 +5527,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_networks(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/networks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/networks', options) command.response_representation = Google::Apis::ComputeV1::NetworkList::Representation command.response_class = Google::Apis::ComputeV1::NetworkList command.params['project'] = project unless project.nil? @@ -5390,8 +5565,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}', options) command.response_representation = Google::Apis::ComputeV1::Project::Representation command.response_class = Google::Apis::ComputeV1::Project command.params['project'] = project unless project.nil? @@ -5427,8 +5601,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_disk(project, move_disk_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/moveDisk' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/moveDisk', options) command.request_representation = Google::Apis::ComputeV1::MoveDiskRequest::Representation command.request_object = move_disk_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -5466,8 +5639,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_instance(project, move_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/moveInstance' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/moveInstance', options) command.request_representation = Google::Apis::ComputeV1::MoveInstanceRequest::Representation command.request_object = move_instance_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -5506,8 +5678,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_common_instance_metadata(project, metadata_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/setCommonInstanceMetadata' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/setCommonInstanceMetadata', options) command.request_representation = Google::Apis::ComputeV1::Metadata::Representation command.request_object = metadata_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -5547,8 +5718,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_usage_export_bucket(project, usage_export_location_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/setUsageExportBucket' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/setUsageExportBucket', options) command.request_representation = Google::Apis::ComputeV1::UsageExportLocation::Representation command.request_object = usage_export_location_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -5589,8 +5759,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/operations/{operation}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/regions/{region}/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['operation'] = operation unless operation.nil? @@ -5629,8 +5798,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/operations/{operation}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -5688,8 +5856,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_operations(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/operations', options) command.response_representation = Google::Apis::ComputeV1::OperationList::Representation command.response_class = Google::Apis::ComputeV1::OperationList command.params['project'] = project unless project.nil? @@ -5730,8 +5897,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}', options) command.response_representation = Google::Apis::ComputeV1::Region::Representation command.response_class = Google::Apis::ComputeV1::Region command.params['project'] = project unless project.nil? @@ -5785,8 +5951,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_regions(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions', options) command.response_representation = Google::Apis::ComputeV1::RegionList::Representation command.response_class = Google::Apis::ComputeV1::RegionList command.params['project'] = project unless project.nil? @@ -5826,8 +5991,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_route(project, route, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/routes/{route}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/routes/{route}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -5865,8 +6029,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_route(project, route, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/routes/{route}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/routes/{route}', options) command.response_representation = Google::Apis::ComputeV1::Route::Representation command.response_class = Google::Apis::ComputeV1::Route command.params['project'] = project unless project.nil? @@ -5904,8 +6067,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_route(project, route_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/routes' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/routes', options) command.request_representation = Google::Apis::ComputeV1::Route::Representation command.request_object = route_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -5960,8 +6122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_routes(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/routes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/routes', options) command.response_representation = Google::Apis::ComputeV1::RouteList::Representation command.response_class = Google::Apis::ComputeV1::RouteList command.params['project'] = project unless project.nil? @@ -6005,8 +6166,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/snapshots/{snapshot}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/snapshots/{snapshot}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -6044,8 +6204,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/snapshots/{snapshot}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/snapshots/{snapshot}', options) command.response_representation = Google::Apis::ComputeV1::Snapshot::Representation command.response_class = Google::Apis::ComputeV1::Snapshot command.params['project'] = project unless project.nil? @@ -6100,8 +6259,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_snapshots(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/snapshots' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/snapshots', options) command.response_representation = Google::Apis::ComputeV1::SnapshotList::Representation command.response_class = Google::Apis::ComputeV1::SnapshotList command.params['project'] = project unless project.nil? @@ -6114,6 +6272,178 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified SslCertificate resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] ssl_certificate + # Name of the SslCertificate resource to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/sslCertificates/{sslCertificate}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified SslCertificate resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] ssl_certificate + # Name of the SslCertificate resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::SslCertificate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SslCertificate] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/sslCertificates/{sslCertificate}', options) + command.response_representation = Google::Apis::ComputeV1::SslCertificate::Representation + command.response_class = Google::Apis::ComputeV1::SslCertificate + command.params['project'] = project unless project.nil? + command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a SslCertificate resource in the specified project using the data + # included in the request. + # @param [String] project + # Name of the project scoping this request. + # @param [Google::Apis::ComputeV1::SslCertificate] ssl_certificate_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_ssl_certificate(project, ssl_certificate_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/sslCertificates', options) + command.request_representation = Google::Apis::ComputeV1::SslCertificate::Representation + command.request_object = ssl_certificate_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of SslCertificate resources available to the specified + # project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::SslCertificateList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SslCertificateList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_ssl_certificates(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/sslCertificates', options) + command.response_representation = Google::Apis::ComputeV1::SslCertificateList::Representation + command.response_class = Google::Apis::ComputeV1::SslCertificateList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified TargetHttpProxy resource. # @param [String] project # Name of the project scoping this request. @@ -6141,8 +6471,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/targetHttpProxies/{targetHttpProxy}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -6180,8 +6509,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/targetHttpProxies/{targetHttpProxy}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeV1::TargetHttpProxy::Representation command.response_class = Google::Apis::ComputeV1::TargetHttpProxy command.params['project'] = project unless project.nil? @@ -6219,8 +6547,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_http_proxy(project, target_http_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/targetHttpProxies' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/targetHttpProxies', options) command.request_representation = Google::Apis::ComputeV1::TargetHttpProxy::Representation command.request_object = target_http_proxy_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -6276,8 +6603,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_http_proxies(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/targetHttpProxies' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/targetHttpProxies', options) command.response_representation = Google::Apis::ComputeV1::TargetHttpProxyList::Representation command.response_class = Google::Apis::ComputeV1::TargetHttpProxyList command.params['project'] = project unless project.nil? @@ -6318,8 +6644,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeV1::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -6332,6 +6657,260 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified TargetHttpsProxy resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified TargetHttpsProxy resource. + # @param [String] project + # Name of the project scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TargetHttpsProxy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TargetHttpsProxy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) + command.response_representation = Google::Apis::ComputeV1::TargetHttpsProxy::Representation + command.response_class = Google::Apis::ComputeV1::TargetHttpsProxy + command.params['project'] = project unless project.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a TargetHttpsProxy resource in the specified project using the data + # included in the request. + # @param [String] project + # Name of the project scoping this request. + # @param [Google::Apis::ComputeV1::TargetHttpsProxy] target_https_proxy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_target_https_proxy(project, target_https_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetHttpsProxies', options) + command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxy::Representation + command.request_object = target_https_proxy_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of TargetHttpsProxy resources available to the specified + # project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TargetHttpsProxyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TargetHttpsProxyList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_target_https_proxies(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/targetHttpsProxies', options) + command.response_representation = Google::Apis::ComputeV1::TargetHttpsProxyList::Representation + command.response_class = Google::Apis::ComputeV1::TargetHttpsProxyList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Replaces SslCertificates for TargetHttpsProxy. + # @param [String] project + # Name of the project scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource whose SSLCertificate is to be set. + # @param [Google::Apis::ComputeV1::TargetHttpsProxiesSetSslCertificatesRequest] target_https_proxies_set_ssl_certificates_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_target_https_proxy_ssl_certificates(project, target_https_proxy, target_https_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) + command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxiesSetSslCertificatesRequest::Representation + command.request_object = target_https_proxies_set_ssl_certificates_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Changes the URL map for TargetHttpsProxy. + # @param [String] project + # Name of the project scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource whose URL map is to be set. + # @param [Google::Apis::ComputeV1::UrlMapReference] url_map_reference_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_target_https_proxy_url_map(project, target_https_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) + command.request_representation = Google::Apis::ComputeV1::UrlMapReference::Representation + command.request_object = url_map_reference_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the list of target instances grouped by scope. # @param [String] project # Name of the project scoping this request. @@ -6375,8 +6954,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_target_instance(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/targetInstances' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/targetInstances', options) command.response_representation = Google::Apis::ComputeV1::TargetInstanceAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::TargetInstanceAggregatedList command.params['project'] = project unless project.nil? @@ -6418,8 +6996,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/targetInstances/{targetInstance}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/targetInstances/{targetInstance}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -6460,8 +7037,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/targetInstances/{targetInstance}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances/{targetInstance}', options) command.response_representation = Google::Apis::ComputeV1::TargetInstance::Representation command.response_class = Google::Apis::ComputeV1::TargetInstance command.params['project'] = project unless project.nil? @@ -6502,8 +7078,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_instance(project, zone, target_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/targetInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances', options) command.request_representation = Google::Apis::ComputeV1::TargetInstance::Representation command.request_object = target_instance_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -6562,8 +7137,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_instances(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/targetInstances' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances', options) command.response_representation = Google::Apis::ComputeV1::TargetInstanceList::Representation command.response_class = Google::Apis::ComputeV1::TargetInstanceList command.params['project'] = project unless project.nil? @@ -6606,8 +7180,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_target_pool_health_check(project, region, target_pool, add_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', options) command.request_representation = Google::Apis::ComputeV1::AddTargetPoolsHealthCheckRequest::Representation command.request_object = add_target_pools_health_check_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -6650,8 +7223,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_target_pool_instance(project, region, target_pool, add_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}/addInstance' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addInstance', options) command.request_representation = Google::Apis::ComputeV1::AddTargetPoolsInstanceRequest::Representation command.request_object = add_target_pools_instance_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -6708,8 +7280,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_target_pools(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/targetPools' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/targetPools', options) command.response_representation = Google::Apis::ComputeV1::TargetPoolAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::TargetPoolAggregatedList command.params['project'] = project unless project.nil? @@ -6751,8 +7322,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/regions/{region}/targetPools/{targetPool}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -6793,8 +7363,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/targetPools/{targetPool}', options) command.response_representation = Google::Apis::ComputeV1::TargetPool::Representation command.response_class = Google::Apis::ComputeV1::TargetPool command.params['project'] = project unless project.nil? @@ -6836,8 +7405,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_pool_health(project, region, target_pool, instance_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}/getHealth' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/getHealth', options) command.request_representation = Google::Apis::ComputeV1::InstanceReference::Representation command.request_object = instance_reference_object command.response_representation = Google::Apis::ComputeV1::TargetPoolInstanceHealth::Representation @@ -6880,8 +7448,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_pool(project, region, target_pool_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools', options) command.request_representation = Google::Apis::ComputeV1::TargetPool::Representation command.request_object = target_pool_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -6940,8 +7507,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_pools(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/targetPools', options) command.response_representation = Google::Apis::ComputeV1::TargetPoolList::Representation command.response_class = Google::Apis::ComputeV1::TargetPoolList command.params['project'] = project unless project.nil? @@ -6984,8 +7550,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_target_pool_health_check(project, region, target_pool, remove_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', options) command.request_representation = Google::Apis::ComputeV1::RemoveTargetPoolsHealthCheckRequest::Representation command.request_object = remove_target_pools_health_check_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7028,8 +7593,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_target_pool_instance(project, region, target_pool, remove_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}/removeInstance' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', options) command.request_representation = Google::Apis::ComputeV1::RemoveTargetPoolsInstanceRequest::Representation command.request_object = remove_target_pools_instance_request_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7075,8 +7639,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_pool_backup(project, region, target_pool, target_reference_object = nil, failover_ratio: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetPools/{targetPool}/setBackup' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/setBackup', options) command.request_representation = Google::Apis::ComputeV1::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7134,8 +7697,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_target_vpn_gateways(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/targetVpnGateways' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/targetVpnGateways', options) command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayAggregatedList command.params['project'] = project unless project.nil? @@ -7177,8 +7739,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -7219,8 +7780,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) command.response_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation command.response_class = Google::Apis::ComputeV1::TargetVpnGateway command.params['project'] = project unless project.nil? @@ -7261,8 +7821,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_vpn_gateway(project, region, target_vpn_gateway_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetVpnGateways' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways', options) command.request_representation = Google::Apis::ComputeV1::TargetVpnGateway::Representation command.request_object = target_vpn_gateway_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7321,8 +7880,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_vpn_gateways(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/targetVpnGateways' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/targetVpnGateways', options) command.response_representation = Google::Apis::ComputeV1::TargetVpnGatewayList::Representation command.response_class = Google::Apis::ComputeV1::TargetVpnGatewayList command.params['project'] = project unless project.nil? @@ -7363,8 +7921,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_url_map(project, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/urlMaps/{urlMap}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -7402,8 +7959,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_url_map(project, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/urlMaps/{urlMap}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeV1::UrlMap::Representation command.response_class = Google::Apis::ComputeV1::UrlMap command.params['project'] = project unless project.nil? @@ -7441,8 +7997,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_url_map(project, url_map_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/urlMaps' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/urlMaps', options) command.request_representation = Google::Apis::ComputeV1::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7497,8 +8052,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_url_maps(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/urlMaps' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/urlMaps', options) command.response_representation = Google::Apis::ComputeV1::UrlMapList::Representation command.response_class = Google::Apis::ComputeV1::UrlMapList command.params['project'] = project unless project.nil? @@ -7540,8 +8094,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_url_map(project, url_map, url_map_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/urlMaps/{urlMap}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{project}/global/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeV1::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7582,8 +8135,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_url_map(project, url_map, url_map_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/urlMaps/{urlMap}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{project}/global/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeV1::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7625,8 +8177,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def validate_url_map(project, url_map, validate_url_maps_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/urlMaps/{urlMap}/validate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/validate', options) command.request_representation = Google::Apis::ComputeV1::ValidateUrlMapsRequest::Representation command.request_object = validate_url_maps_request_object command.response_representation = Google::Apis::ComputeV1::ValidateUrlMapsResponse::Representation @@ -7682,8 +8233,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_vpn_tunnel(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/aggregated/vpnTunnels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/aggregated/vpnTunnels', options) command.response_representation = Google::Apis::ComputeV1::VpnTunnelAggregatedList::Representation command.response_class = Google::Apis::ComputeV1::VpnTunnelAggregatedList command.params['project'] = project unless project.nil? @@ -7725,8 +8275,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/vpnTunnels/{vpnTunnel}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -7767,8 +8316,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/vpnTunnels/{vpnTunnel}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) command.response_representation = Google::Apis::ComputeV1::VpnTunnel::Representation command.response_class = Google::Apis::ComputeV1::VpnTunnel command.params['project'] = project unless project.nil? @@ -7809,8 +8357,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/vpnTunnels' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/regions/{region}/vpnTunnels', options) command.request_representation = Google::Apis::ComputeV1::VpnTunnel::Representation command.request_object = vpn_tunnel_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -7869,8 +8416,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_vpn_tunnels(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/regions/{region}/vpnTunnels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/regions/{region}/vpnTunnels', options) command.response_representation = Google::Apis::ComputeV1::VpnTunnelList::Representation command.response_class = Google::Apis::ComputeV1::VpnTunnelList command.params['project'] = project unless project.nil? @@ -7913,8 +8459,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations/{operation}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['operation'] = operation unless operation.nil? @@ -7953,8 +8498,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? @@ -8011,8 +8555,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations', options) command.response_representation = Google::Apis::ComputeV1::OperationList::Representation command.response_class = Google::Apis::ComputeV1::OperationList command.params['project'] = project unless project.nil? @@ -8053,8 +8596,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}', options) command.response_representation = Google::Apis::ComputeV1::Zone::Representation command.response_class = Google::Apis::ComputeV1::Zone command.params['project'] = project unless project.nil? @@ -8108,8 +8650,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zones(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones', options) command.response_representation = Google::Apis::ComputeV1::ZoneList::Representation command.response_class = Google::Apis::ComputeV1::ZoneList command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index 0526fc708..536a064b0 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20150605' + REVISION = '20150603' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 0f375aeef..eef94af63 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -103,69 +103,67 @@ module Google # The IP address range of the container pods in this cluster, in [CIDR](http:// # en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0. # 0/14`). Leave blank to have one automatically chosen or specify a `/14` block - # in `10.0.0.0/8` or `172.16.0.0/12`. + # in `10.0.0.0/8`. # Corresponds to the JSON property `clusterIpv4Cidr` # @return [String] attr_accessor :cluster_ipv4_cidr - # [Output only] Server-defined URL for the resource. @OutputOnly. + # [Output only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link # [Output only] The name of the Google Compute Engine [zone](/compute/docs/zones# - # available) in which the cluster resides. @OutputOnly. + # available) in which the cluster resides. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone # [Output only] The IP address of this cluster's Kubernetes master endpoint. The # endpoint can be accessed from the internet at `https://username:password@ - # endpoint/`. @OutputOnly. See the `masterAuth` property of this resource for - # username and password information. + # endpoint/`. See the `masterAuth` property of this resource for username and + # password information. # Corresponds to the JSON property `endpoint` # @return [String] attr_accessor :endpoint # [Output only] The software version of Kubernetes master and kubelets used in - # the cluster when it was first created. The version can be upgraded over time. @ - # OutputOnly. + # the cluster when it was first created. The version can be upgraded over time. # Corresponds to the JSON property `initialClusterVersion` # @return [String] attr_accessor :initial_cluster_version - # [Output only] The current software version of the master endpoint. @OutputOnly. + # [Output only] The current software version of the master endpoint. # Corresponds to the JSON property `currentMasterVersion` # @return [String] attr_accessor :current_master_version # [Output only] The current version of the node software components. If they are # currently at different versions because they're in the process of being - # upgraded, this reflects the minimum version of any of them. @OutputOnly. + # upgraded, this reflects the minimum version of any of them. # Corresponds to the JSON property `currentNodeVersion` # @return [String] attr_accessor :current_node_version - # [Output only] The time the cluster was created, in [RFC3339](href='https://www. - # ietf.org/rfc/rfc3339.txt) text format. @OutputOnly. + # [Output only] The time the cluster was created, in [RFC3339](https://www.ietf. + # org/rfc/rfc3339.txt) text format. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # [Output only] The current status of this cluster. @OutputOnly. + # [Output only] The current status of this cluster. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status # [Output only] Additional information about the current status of this cluster, - # if available. @OutputOnly. + # if available. # Corresponds to the JSON property `statusMessage` # @return [String] attr_accessor :status_message # [Output only] The size of the address space on each node for hosting - # containers. This is provisioned from within the container_ipv4_cidr range. @ - # OutputOnly. + # containers. This is provisioned from within the container_ipv4_cidr range. # Corresponds to the JSON property `nodeIpv4CidrSize` # @return [Fixnum] attr_accessor :node_ipv4_cidr_size @@ -173,13 +171,13 @@ module Google # [Output only] The IP address range of the Kubernetes services in this cluster, # in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) # notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last / - # 16 from the container CIDR. @OutputOnly. + # 16 from the container CIDR. # Corresponds to the JSON property `servicesIpv4Cidr` # @return [String] attr_accessor :services_ipv4_cidr # [Output only] The resource URLs of [instance groups](/compute/docs/instance- - # groups/) associated with this cluster. @OutputOnly. + # groups/) associated with this cluster. # Corresponds to the JSON property `instanceGroupUrls` # @return [Array] attr_accessor :instance_group_urls @@ -226,15 +224,17 @@ module Google attr_accessor :machine_type # Size of the disk attached to each node, specified in GB. The smallest allowed - # disk size is 10GB, and the default is 100GB. + # disk size is 10GB. If unspecified, the default disk size is 100GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb # The set of Google API scopes to be made available on all of the node VMs under - # the "default" service account. Currently, the following scopes are necessary - # to ensure the correct functioning of the cluster: * "https://www.googleapis. - # com/auth/compute" * "https://www.googleapis.com/auth/devstorage.read_only" + # the "default" service account. The following scopes are recommended, but not + # required, and by default are not included: * `https://www.googleapis.com/auth/ + # compute` is required for mounting persistent storage on your nodes. * `https:// + # www.googleapis.com/auth/devstorage.read_only` is required for communicating + # with *gcr.io*. If unspecified, no scopes are added. # Corresponds to the JSON property `oauthScopes` # @return [Array] attr_accessor :oauth_scopes @@ -270,19 +270,19 @@ module Google attr_accessor :password # [Output only] Base64 encoded public certificate that is the root of trust for - # the cluster. @OutputOnly. + # the cluster. # Corresponds to the JSON property `clusterCaCertificate` # @return [String] attr_accessor :cluster_ca_certificate # [Output only] Base64 encoded public certificate used by clients to - # authenticate to the cluster endpoint. @OutputOnly. + # authenticate to the cluster endpoint. # Corresponds to the JSON property `clientCertificate` # @return [String] attr_accessor :client_certificate # [Output only] Base64 encoded private key used by clients to authenticate to - # the cluster endpoint. @OutputOnly. + # the cluster endpoint. # Corresponds to the JSON property `clientKey` # @return [String] attr_accessor :client_key @@ -324,38 +324,38 @@ module Google class Operation include Google::Apis::Core::Hashable - # The server-assigned ID for the operation. @OutputOnly. + # The server-assigned ID for the operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - # which the operation is taking place. @OutputOnly. + # which the operation is taking place. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone - # The operation type. @OutputOnly. + # The operation type. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type - # The current status of the operation. @OutputOnly. + # The current status of the operation. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # If an error has occurred, a textual description of the error. @OutputOnly. + # If an error has occurred, a textual description of the error. # Corresponds to the JSON property `statusMessage` # @return [String] attr_accessor :status_message - # Server-defined URL for the resource. @OutputOnly. + # Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link - # Server-defined URL for the target of the operation. @OutputOnly. + # Server-defined URL for the target of the operation. # Corresponds to the JSON property `targetLink` # @return [String] attr_accessor :target_link @@ -433,6 +433,31 @@ module Google @operations = args[:operations] unless args[:operations].nil? end end + + # Container Engine Server configuration. + class ServerConfig + include Google::Apis::Core::Hashable + + # What version this server deploys by default. + # Corresponds to the JSON property `defaultClusterVersion` + # @return [String] + attr_accessor :default_cluster_version + + # List of valid node upgrade target versions. + # Corresponds to the JSON property `validNodeVersions` + # @return [Array] + attr_accessor :valid_node_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_cluster_version = args[:default_cluster_version] unless args[:default_cluster_version].nil? + @valid_node_versions = args[:valid_node_versions] unless args[:valid_node_versions].nil? + end + end end end end diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index c75373ef5..229a7e251 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -58,6 +58,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class ServerConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ListClustersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -158,6 +162,14 @@ module Google end end + + class ServerConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_cluster_version, as: 'defaultClusterVersion' + collection :valid_node_versions, as: 'validNodeVersions' + end + end end end end diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index 4361d760e..f0521eeda 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -47,12 +47,46 @@ module Google super('https://container.googleapis.com/', '') end + # Returns configuration info about the Container Engine service. + # @param [String] project_id + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) to + # return operations for, or "-" for all zones. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::ServerConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ServerConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_zone_serverconfig(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/serverconfig', options) + command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation + command.response_class = Google::Apis::ContainerV1::ServerConfig + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists all clusters owned by a project in either the specified zone or all # zones. # @param [String] project_id - # The Google Developers Console [project ID](https://console.developers.google. - # com/project) or [project number](https://developers.google.com/console/help/ - # project-number) + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in # which the cluster resides, or "-" for all zones. @@ -74,8 +108,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/projects/{projectId}/zones/{zone}/clusters' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options) command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation command.response_class = Google::Apis::ContainerV1::ListClustersResponse command.params['projectId'] = project_id unless project_id.nil? @@ -87,9 +120,8 @@ module Google # Gets a specific cluster. # @param [String] project_id - # The Google Developers Console A [project ID](https://console.developers.google. - # com/project) or [project number](https://developers.google.com/console/help/ - # project-number) + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in # which the cluster resides. @@ -113,8 +145,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) command.response_representation = Google::Apis::ContainerV1::Cluster::Representation command.response_class = Google::Apis::ContainerV1::Cluster command.params['projectId'] = project_id unless project_id.nil? @@ -127,16 +158,15 @@ module Google # Creates a cluster, consisting of the specified number and type of Google # Compute Engine instances, plus a Kubernetes master endpoint. By default, the - # cluster is created in the project's [default network]('/compute/docs/ - # networking#networks_1'). One firewall is added for the cluster. After cluster - # creation, the cluster creates routes for each node to allow the containers on - # that node to communicate with all other instances in the cluster. Finally, an - # entry is added to the project's global metadata indicating which CIDR range is - # being used by the cluster. + # cluster is created in the project's [default network](/compute/docs/networking# + # networks_1). One firewall is added for the cluster. After cluster creation, + # the cluster creates routes for each node to allow the containers on that node + # to communicate with all other instances in the cluster. Finally, an entry is + # added to the project's global metadata indicating which CIDR range is being + # used by the cluster. # @param [String] project_id - # The Google Developers Console [project ID](https://console.developers.google. - # com/project) or [project number](https://developers.google.com/console/help/ - # project-number) + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in # which the cluster resides. @@ -159,8 +189,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/projects/{projectId}/zones/{zone}/clusters' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options) command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation command.request_object = create_cluster_request_object command.response_representation = Google::Apis::ContainerV1::Operation::Representation @@ -174,9 +203,8 @@ module Google # Update settings of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID](https://console.developers.google. - # com/project) or [project number](https://developers.google.com/console/help/ - # project-number) + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in # which the cluster resides. @@ -201,8 +229,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation command.request_object = update_cluster_request_object command.response_representation = Google::Apis::ContainerV1::Operation::Representation @@ -219,9 +246,8 @@ module Google # Firewalls and routes that were configured during cluster creation are also # deleted. # @param [String] project_id - # The Google Developers Console [project ID](https://console.developers.google. - # com/project) or [project number](https://developers.google.com/console/help/ - # project-number) + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in # which the cluster resides. @@ -245,8 +271,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? @@ -259,9 +284,8 @@ module Google # Lists all operations in a project in a specific zone or all zones. # @param [String] project_id - # The Google Developers Console [project ID](https://console.developers.google. - # com/project) or [project number](https://developers.google.com/console/help/ - # project-number) + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine [zone](/compute/docs/zones#available) to # return operations for, or "-" for all zones. @@ -283,8 +307,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/projects/{projectId}/zones/{zone}/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options) command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation command.response_class = Google::Apis::ContainerV1::ListOperationsResponse command.params['projectId'] = project_id unless project_id.nil? @@ -296,9 +319,8 @@ module Google # Gets the specified operation. # @param [String] project_id - # The Google Developers Console [project ID](https://console.developers.google. - # com/project) or [project number](https://developers.google.com/console/help/ - # project-number) + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). # @param [String] zone # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in # which the cluster resides. @@ -322,8 +344,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options) command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 21b5ccdb4..078cf9460 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -23,10 +23,10 @@ module Google # Manage product items, inventory, and Merchant Center accounts for Google # Shopping. # - # @see https://developers.google.com/shopping-content/v2/ + # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20150729' + REVISION = '20151112' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 3bbe890e0..1c8177ef8 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -2171,6 +2171,31 @@ module Google end end + # + class Installment + include Google::Apis::Core::Hashable + + # The amount the buyer has to pay per month. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :amount + + # The number of installments the buyer has to pay. + # Corresponds to the JSON property `months` + # @return [String] + attr_accessor :months + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] unless args[:amount].nil? + @months = args[:months] unless args[:months].nil? + end + end + # class Inventory include Google::Apis::Core::Hashable @@ -2180,12 +2205,22 @@ module Google # @return [String] attr_accessor :availability + # Number and amount of installments to pay for an item. Brazil only. + # Corresponds to the JSON property `installment` + # @return [Google::Apis::ContentV2::Installment] + attr_accessor :installment + # Identifies what kind of resource this is. Value: the fixed string "content# # inventory". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # Loyalty points that users receive after purchasing the item. Japan only. + # Corresponds to the JSON property `loyaltyPoints` + # @return [Google::Apis::ContentV2::LoyaltyPoints] + attr_accessor :loyalty_points + # The price of the product. # Corresponds to the JSON property `price` # @return [Google::Apis::ContentV2::Price] @@ -2222,7 +2257,9 @@ module Google # Update properties of this object def update!(**args) @availability = args[:availability] unless args[:availability].nil? + @installment = args[:installment] unless args[:installment].nil? @kind = args[:kind] unless args[:kind].nil? + @loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil? @price = args[:price] unless args[:price].nil? @quantity = args[:quantity] unless args[:quantity].nil? @sale_price = args[:sale_price] unless args[:sale_price].nil? @@ -2361,6 +2398,16 @@ module Google # @return [String] attr_accessor :availability + # Number and amount of installments to pay for an item. Brazil only. + # Corresponds to the JSON property `installment` + # @return [Google::Apis::ContentV2::Installment] + attr_accessor :installment + + # Loyalty points that users receive after purchasing the item. Japan only. + # Corresponds to the JSON property `loyaltyPoints` + # @return [Google::Apis::ContentV2::LoyaltyPoints] + attr_accessor :loyalty_points + # The price of the product. # Corresponds to the JSON property `price` # @return [Google::Apis::ContentV2::Price] @@ -2397,6 +2444,8 @@ module Google # Update properties of this object def update!(**args) @availability = args[:availability] unless args[:availability].nil? + @installment = args[:installment] unless args[:installment].nil? + @loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil? @price = args[:price] unless args[:price].nil? @quantity = args[:quantity] unless args[:quantity].nil? @sale_price = args[:sale_price] unless args[:sale_price].nil? @@ -2458,6 +2507,1879 @@ module Google end end + # + class Order + include Google::Apis::Core::Hashable + + # Whether the order was acknowledged. + # Corresponds to the JSON property `acknowledged` + # @return [Boolean] + attr_accessor :acknowledged + alias_method :acknowledged?, :acknowledged + + # The details of the customer who placed the order. + # Corresponds to the JSON property `customer` + # @return [Google::Apis::ContentV2::OrderCustomer] + attr_accessor :customer + + # The details for the delivery. + # Corresponds to the JSON property `deliveryDetails` + # @return [Google::Apis::ContentV2::OrderDeliveryDetails] + attr_accessor :delivery_details + + # The REST id of the order. Globally unique. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # order". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Line items that are ordered. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # + # Corresponds to the JSON property `merchantId` + # @return [String] + attr_accessor :merchant_id + + # Merchant-provided id of the order. + # Corresponds to the JSON property `merchantOrderId` + # @return [String] + attr_accessor :merchant_order_id + + # The net amount for the order. For example, if an order was originally for a + # grand total of $100 and a refund was issued for $20, the net amount will be $ + # 80. + # Corresponds to the JSON property `netAmount` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :net_amount + + # The details of the payment method. + # Corresponds to the JSON property `paymentMethod` + # @return [Google::Apis::ContentV2::OrderPaymentMethod] + attr_accessor :payment_method + + # The status of the payment. + # Corresponds to the JSON property `paymentStatus` + # @return [String] + attr_accessor :payment_status + + # The date when the order was placed, in ISO 8601 format. + # Corresponds to the JSON property `placedDate` + # @return [String] + attr_accessor :placed_date + + # Refunds for the order. + # Corresponds to the JSON property `refunds` + # @return [Array] + attr_accessor :refunds + + # Shipments of the order. + # Corresponds to the JSON property `shipments` + # @return [Array] + attr_accessor :shipments + + # The total cost of shipping for all items. + # Corresponds to the JSON property `shippingCost` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :shipping_cost + + # The tax for the total shipping cost. + # Corresponds to the JSON property `shippingCostTax` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :shipping_cost_tax + + # The requested shipping option. + # Corresponds to the JSON property `shippingOption` + # @return [String] + attr_accessor :shipping_option + + # The status of the order. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @acknowledged = args[:acknowledged] unless args[:acknowledged].nil? + @customer = args[:customer] unless args[:customer].nil? + @delivery_details = args[:delivery_details] unless args[:delivery_details].nil? + @id = args[:id] unless args[:id].nil? + @kind = args[:kind] unless args[:kind].nil? + @line_items = args[:line_items] unless args[:line_items].nil? + @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? + @merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil? + @net_amount = args[:net_amount] unless args[:net_amount].nil? + @payment_method = args[:payment_method] unless args[:payment_method].nil? + @payment_status = args[:payment_status] unless args[:payment_status].nil? + @placed_date = args[:placed_date] unless args[:placed_date].nil? + @refunds = args[:refunds] unless args[:refunds].nil? + @shipments = args[:shipments] unless args[:shipments].nil? + @shipping_cost = args[:shipping_cost] unless args[:shipping_cost].nil? + @shipping_cost_tax = args[:shipping_cost_tax] unless args[:shipping_cost_tax].nil? + @shipping_option = args[:shipping_option] unless args[:shipping_option].nil? + @status = args[:status] unless args[:status].nil? + end + end + + # + class OrderAddress + include Google::Apis::Core::Hashable + + # CLDR country code (e.g. "US"). + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # Strings representing the lines of the printed label for mailing the order, for + # example: + # John Smith + # 1600 Amphitheatre Parkway + # Mountain View, CA, 94043 + # United States + # Corresponds to the JSON property `fullAddress` + # @return [Array] + attr_accessor :full_address + + # Whether the address is a post office box. + # Corresponds to the JSON property `isPostOfficeBox` + # @return [Boolean] + attr_accessor :is_post_office_box + alias_method :is_post_office_box?, :is_post_office_box + + # City, town or commune. May also include dependent localities or sublocalities ( + # e.g. neighborhoods or suburbs). + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # Postal Code or ZIP (e.g. "94043"). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Name of the recipient. + # Corresponds to the JSON property `recipientName` + # @return [String] + attr_accessor :recipient_name + + # Top-level administrative subdivision of the country (e.g. "CA"). + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # Street-level part of the address. + # Corresponds to the JSON property `streetAddress` + # @return [Array] + attr_accessor :street_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] unless args[:country].nil? + @full_address = args[:full_address] unless args[:full_address].nil? + @is_post_office_box = args[:is_post_office_box] unless args[:is_post_office_box].nil? + @locality = args[:locality] unless args[:locality].nil? + @postal_code = args[:postal_code] unless args[:postal_code].nil? + @recipient_name = args[:recipient_name] unless args[:recipient_name].nil? + @region = args[:region] unless args[:region].nil? + @street_address = args[:street_address] unless args[:street_address].nil? + end + end + + # + class OrderCancellation + include Google::Apis::Core::Hashable + + # The actor that created the cancellation. + # Corresponds to the JSON property `actor` + # @return [String] + attr_accessor :actor + + # Date on which the cancellation has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # The quantity that was canceled. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @actor = args[:actor] unless args[:actor].nil? + @creation_date = args[:creation_date] unless args[:creation_date].nil? + @quantity = args[:quantity] unless args[:quantity].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrderCustomer + include Google::Apis::Core::Hashable + + # Email address of the customer. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # If set, this indicates the user had a choice to opt in or out of providing + # marketing rights to the merchant. If unset, this indicates the user has + # already made this choice in a previous purchase, and was thus not shown the + # marketing right opt in/out checkbox during the Purchases on Google checkout + # flow. + # Corresponds to the JSON property `explicitMarketingPreference` + # @return [Boolean] + attr_accessor :explicit_marketing_preference + alias_method :explicit_marketing_preference?, :explicit_marketing_preference + + # Full name of the customer. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] unless args[:email].nil? + @explicit_marketing_preference = args[:explicit_marketing_preference] unless args[:explicit_marketing_preference].nil? + @full_name = args[:full_name] unless args[:full_name].nil? + end + end + + # + class OrderDeliveryDetails + include Google::Apis::Core::Hashable + + # The delivery address + # Corresponds to the JSON property `address` + # @return [Google::Apis::ContentV2::OrderAddress] + attr_accessor :address + + # The phone number of the person receiving the delivery. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] unless args[:address].nil? + @phone_number = args[:phone_number] unless args[:phone_number].nil? + end + end + + # + class OrderLineItem + include Google::Apis::Core::Hashable + + # Cancellations of the line item. + # Corresponds to the JSON property `cancellations` + # @return [Array] + attr_accessor :cancellations + + # The id of the line item. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Total price for the line item. For example, if two items for $10 are purchased, + # the total price will be $20. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :price + + # Product data from the time of the order placement. + # Corresponds to the JSON property `product` + # @return [Google::Apis::ContentV2::OrderLineItemProduct] + attr_accessor :product + + # Number of items canceled. + # Corresponds to the JSON property `quantityCanceled` + # @return [Fixnum] + attr_accessor :quantity_canceled + + # Number of items delivered. + # Corresponds to the JSON property `quantityDelivered` + # @return [Fixnum] + attr_accessor :quantity_delivered + + # Number of items ordered. + # Corresponds to the JSON property `quantityOrdered` + # @return [Fixnum] + attr_accessor :quantity_ordered + + # Number of items pending. + # Corresponds to the JSON property `quantityPending` + # @return [Fixnum] + attr_accessor :quantity_pending + + # Number of items returned. + # Corresponds to the JSON property `quantityReturned` + # @return [Fixnum] + attr_accessor :quantity_returned + + # Number of items shipped. + # Corresponds to the JSON property `quantityShipped` + # @return [Fixnum] + attr_accessor :quantity_shipped + + # Details of the return policy for the line item. + # Corresponds to the JSON property `returnInfo` + # @return [Google::Apis::ContentV2::OrderLineItemReturnInfo] + attr_accessor :return_info + + # Returns of the line item. + # Corresponds to the JSON property `returns` + # @return [Array] + attr_accessor :returns + + # Details of the requested shipping for the line item. + # Corresponds to the JSON property `shippingDetails` + # @return [Google::Apis::ContentV2::OrderLineItemShippingDetails] + attr_accessor :shipping_details + + # Total tax amount for the line item. For example, if two items are purchased, + # and each have a cost tax of $2, the total tax amount will be $4. + # Corresponds to the JSON property `tax` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :tax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cancellations = args[:cancellations] unless args[:cancellations].nil? + @id = args[:id] unless args[:id].nil? + @price = args[:price] unless args[:price].nil? + @product = args[:product] unless args[:product].nil? + @quantity_canceled = args[:quantity_canceled] unless args[:quantity_canceled].nil? + @quantity_delivered = args[:quantity_delivered] unless args[:quantity_delivered].nil? + @quantity_ordered = args[:quantity_ordered] unless args[:quantity_ordered].nil? + @quantity_pending = args[:quantity_pending] unless args[:quantity_pending].nil? + @quantity_returned = args[:quantity_returned] unless args[:quantity_returned].nil? + @quantity_shipped = args[:quantity_shipped] unless args[:quantity_shipped].nil? + @return_info = args[:return_info] unless args[:return_info].nil? + @returns = args[:returns] unless args[:returns].nil? + @shipping_details = args[:shipping_details] unless args[:shipping_details].nil? + @tax = args[:tax] unless args[:tax].nil? + end + end + + # + class OrderLineItemProduct + include Google::Apis::Core::Hashable + + # Brand of the item. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # The item's channel (online or local). + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # Condition or state of the item. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number (GTIN) of the item. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # The REST id of the product. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # URL of an image of the item. + # Corresponds to the JSON property `imageLink` + # @return [String] + attr_accessor :image_link + + # Shared identifier for all variants of the same product. + # Corresponds to the JSON property `itemGroupId` + # @return [String] + attr_accessor :item_group_id + + # Manufacturer Part Number (MPN) of the item. + # Corresponds to the JSON property `mpn` + # @return [String] + attr_accessor :mpn + + # An identifier of the item. + # Corresponds to the JSON property `offerId` + # @return [String] + attr_accessor :offer_id + + # Price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :price + + # URL to the cached image shown to the user when order was placed. + # Corresponds to the JSON property `shownImage` + # @return [String] + attr_accessor :shown_image + + # The CLDR territory code of the target country of the product. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The title of the product. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Variant attributes for the item. These are dimensions of the product, such as + # color, gender, material, pattern, and size. You can find a comprehensive list + # of variant attributes here. + # Corresponds to the JSON property `variantAttributes` + # @return [Array] + attr_accessor :variant_attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] unless args[:brand].nil? + @channel = args[:channel] unless args[:channel].nil? + @condition = args[:condition] unless args[:condition].nil? + @content_language = args[:content_language] unless args[:content_language].nil? + @gtin = args[:gtin] unless args[:gtin].nil? + @id = args[:id] unless args[:id].nil? + @image_link = args[:image_link] unless args[:image_link].nil? + @item_group_id = args[:item_group_id] unless args[:item_group_id].nil? + @mpn = args[:mpn] unless args[:mpn].nil? + @offer_id = args[:offer_id] unless args[:offer_id].nil? + @price = args[:price] unless args[:price].nil? + @shown_image = args[:shown_image] unless args[:shown_image].nil? + @target_country = args[:target_country] unless args[:target_country].nil? + @title = args[:title] unless args[:title].nil? + @variant_attributes = args[:variant_attributes] unless args[:variant_attributes].nil? + end + end + + # + class OrderLineItemProductVariantAttribute + include Google::Apis::Core::Hashable + + # The dimension of the variant. + # Corresponds to the JSON property `dimension` + # @return [String] + attr_accessor :dimension + + # The value for the dimension. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension = args[:dimension] unless args[:dimension].nil? + @value = args[:value] unless args[:value].nil? + end + end + + # + class OrderLineItemReturnInfo + include Google::Apis::Core::Hashable + + # How many days later the item can be returned. + # Corresponds to the JSON property `daysToReturn` + # @return [Fixnum] + attr_accessor :days_to_return + + # Whether the item is returnable. + # Corresponds to the JSON property `isReturnable` + # @return [Boolean] + attr_accessor :is_returnable + alias_method :is_returnable?, :is_returnable + + # URL of the item return policy. + # Corresponds to the JSON property `policyUrl` + # @return [String] + attr_accessor :policy_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @days_to_return = args[:days_to_return] unless args[:days_to_return].nil? + @is_returnable = args[:is_returnable] unless args[:is_returnable].nil? + @policy_url = args[:policy_url] unless args[:policy_url].nil? + end + end + + # + class OrderLineItemShippingDetails + include Google::Apis::Core::Hashable + + # The delivery by date, in ISO 8601 format. + # Corresponds to the JSON property `deliverByDate` + # @return [String] + attr_accessor :deliver_by_date + + # Details of the shipping method. + # Corresponds to the JSON property `method` + # @return [Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod] + attr_accessor :method_prop + + # The ship by date, in ISO 8601 format. + # Corresponds to the JSON property `shipByDate` + # @return [String] + attr_accessor :ship_by_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deliver_by_date = args[:deliver_by_date] unless args[:deliver_by_date].nil? + @method_prop = args[:method_prop] unless args[:method_prop].nil? + @ship_by_date = args[:ship_by_date] unless args[:ship_by_date].nil? + end + end + + # + class OrderLineItemShippingDetailsMethod + include Google::Apis::Core::Hashable + + # The carrier for the shipping. Optional. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # Maximum transit time. + # Corresponds to the JSON property `maxDaysInTransit` + # @return [Fixnum] + attr_accessor :max_days_in_transit + + # The name of the shipping method. + # Corresponds to the JSON property `methodName` + # @return [String] + attr_accessor :method_name + + # Minimum transit time. + # Corresponds to the JSON property `minDaysInTransit` + # @return [Fixnum] + attr_accessor :min_days_in_transit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] unless args[:carrier].nil? + @max_days_in_transit = args[:max_days_in_transit] unless args[:max_days_in_transit].nil? + @method_name = args[:method_name] unless args[:method_name].nil? + @min_days_in_transit = args[:min_days_in_transit] unless args[:min_days_in_transit].nil? + end + end + + # + class OrderPaymentMethod + include Google::Apis::Core::Hashable + + # The billing address. + # Corresponds to the JSON property `billingAddress` + # @return [Google::Apis::ContentV2::OrderAddress] + attr_accessor :billing_address + + # The card expiration month (January = 1, February = 2 etc.). + # Corresponds to the JSON property `expirationMonth` + # @return [Fixnum] + attr_accessor :expiration_month + + # The card expiration year (4-digit, e.g. 2015). + # Corresponds to the JSON property `expirationYear` + # @return [Fixnum] + attr_accessor :expiration_year + + # The last four digits of the card number. + # Corresponds to the JSON property `lastFourDigits` + # @return [String] + attr_accessor :last_four_digits + + # The billing phone number. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # The type of instrument (VISA, Mastercard, etc). + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @billing_address = args[:billing_address] unless args[:billing_address].nil? + @expiration_month = args[:expiration_month] unless args[:expiration_month].nil? + @expiration_year = args[:expiration_year] unless args[:expiration_year].nil? + @last_four_digits = args[:last_four_digits] unless args[:last_four_digits].nil? + @phone_number = args[:phone_number] unless args[:phone_number].nil? + @type = args[:type] unless args[:type].nil? + end + end + + # + class OrderRefund + include Google::Apis::Core::Hashable + + # The actor that created the refund. + # Corresponds to the JSON property `actor` + # @return [String] + attr_accessor :actor + + # The amount that is refunded. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :amount + + # Date on which the item has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # The reason for the refund. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @actor = args[:actor] unless args[:actor].nil? + @amount = args[:amount] unless args[:amount].nil? + @creation_date = args[:creation_date] unless args[:creation_date].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrderReturn + include Google::Apis::Core::Hashable + + # The actor that created the refund. + # Corresponds to the JSON property `actor` + # @return [String] + attr_accessor :actor + + # Date on which the item has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # Quantity that is returned. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @actor = args[:actor] unless args[:actor].nil? + @creation_date = args[:creation_date] unless args[:creation_date].nil? + @quantity = args[:quantity] unless args[:quantity].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrderShipment + include Google::Apis::Core::Hashable + + # The carrier handling the shipment. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # Date on which the shipment has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # Date on which the shipment has been delivered, in ISO 8601 format. Present + # only if status is delievered + # Corresponds to the JSON property `deliveryDate` + # @return [String] + attr_accessor :delivery_date + + # The id of the shipment. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The line items that are shipped. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # The status of the shipment. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The tracking id for the shipment. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] unless args[:carrier].nil? + @creation_date = args[:creation_date] unless args[:creation_date].nil? + @delivery_date = args[:delivery_date] unless args[:delivery_date].nil? + @id = args[:id] unless args[:id].nil? + @line_items = args[:line_items] unless args[:line_items].nil? + @status = args[:status] unless args[:status].nil? + @tracking_id = args[:tracking_id] unless args[:tracking_id].nil? + end + end + + # + class OrderShipmentLineItemShipment + include Google::Apis::Core::Hashable + + # The id of the line item that is shipped. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The quantity that is shipped. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] unless args[:line_item_id].nil? + @quantity = args[:quantity] unless args[:quantity].nil? + end + end + + # + class OrdersAcknowledgeRequest + include Google::Apis::Core::Hashable + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_id = args[:operation_id] unless args[:operation_id].nil? + end + end + + # + class OrdersAcknowledgeResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersAcknowledgeResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersAdvanceTestOrderResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersAdvanceTestOrderResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersCancelLineItemRequest + include Google::Apis::Core::Hashable + + # The ID of the line item to cancel. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The quantity to cancel. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] unless args[:line_item_id].nil? + @operation_id = args[:operation_id] unless args[:operation_id].nil? + @quantity = args[:quantity] unless args[:quantity].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersCancelLineItemResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCancelLineItemResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersCancelRequest + include Google::Apis::Core::Hashable + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_id = args[:operation_id] unless args[:operation_id].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersCancelResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCancelResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersCreateTestOrderRequest + include Google::Apis::Core::Hashable + + # The test order template to use. Specify as an alternative to testOrder as a + # shortcut for retrieving a template and then creating an order using that + # template. + # Corresponds to the JSON property `templateName` + # @return [String] + attr_accessor :template_name + + # The test order to create. + # Corresponds to the JSON property `testOrder` + # @return [Google::Apis::ContentV2::TestOrder] + attr_accessor :test_order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @template_name = args[:template_name] unless args[:template_name].nil? + @test_order = args[:test_order] unless args[:test_order].nil? + end + end + + # + class OrdersCreateTestOrderResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCreateTestOrderResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The ID of the newly created test order. + # Corresponds to the JSON property `orderId` + # @return [String] + attr_accessor :order_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @order_id = args[:order_id] unless args[:order_id].nil? + end + end + + # + class OrdersCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] unless args[:entries].nil? + end + end + + # + class OrdersCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # Required for cancel method. + # Corresponds to the JSON property `cancel` + # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel] + attr_accessor :cancel + + # Required for cancelLineItem method. + # Corresponds to the JSON property `cancelLineItem` + # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem] + attr_accessor :cancel_line_item + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [String] + attr_accessor :merchant_id + + # The merchant order id. Required for updateMerchantOrderId and + # getByMerchantOrderId methods. + # Corresponds to the JSON property `merchantOrderId` + # @return [String] + attr_accessor :merchant_order_id + + # The method to apply. + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # The ID of the operation. Unique across all operations for a given order. + # Required for all methods beside get and getByMerchantOrderId. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the order. Required for all methods beside getByMerchantOrderId. + # Corresponds to the JSON property `orderId` + # @return [String] + attr_accessor :order_id + + # Required for refund method. + # Corresponds to the JSON property `refund` + # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund] + attr_accessor :refund + + # Required for returnLineItem method. + # Corresponds to the JSON property `returnLineItem` + # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem] + attr_accessor :return_line_item + + # Required for shipLineItems method. + # Corresponds to the JSON property `shipLineItems` + # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems] + attr_accessor :ship_line_items + + # Required for updateShipment method. + # Corresponds to the JSON property `updateShipment` + # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment] + attr_accessor :update_shipment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] unless args[:batch_id].nil? + @cancel = args[:cancel] unless args[:cancel].nil? + @cancel_line_item = args[:cancel_line_item] unless args[:cancel_line_item].nil? + @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? + @merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil? + @method_prop = args[:method_prop] unless args[:method_prop].nil? + @operation_id = args[:operation_id] unless args[:operation_id].nil? + @order_id = args[:order_id] unless args[:order_id].nil? + @refund = args[:refund] unless args[:refund].nil? + @return_line_item = args[:return_line_item] unless args[:return_line_item].nil? + @ship_line_items = args[:ship_line_items] unless args[:ship_line_items].nil? + @update_shipment = args[:update_shipment] unless args[:update_shipment].nil? + end + end + + # + class OrdersCustomBatchRequestEntryCancel + include Google::Apis::Core::Hashable + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersCustomBatchRequestEntryCancelLineItem + include Google::Apis::Core::Hashable + + # The ID of the line item to cancel. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The quantity to cancel. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] unless args[:line_item_id].nil? + @quantity = args[:quantity] unless args[:quantity].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersCustomBatchRequestEntryRefund + include Google::Apis::Core::Hashable + + # The amount that is refunded. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :amount + + # The reason for the refund. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] unless args[:amount].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersCustomBatchRequestEntryReturnLineItem + include Google::Apis::Core::Hashable + + # The ID of the line item to return. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The quantity to return. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] unless args[:line_item_id].nil? + @quantity = args[:quantity] unless args[:quantity].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersCustomBatchRequestEntryShipLineItems + include Google::Apis::Core::Hashable + + # The carrier handling the shipment. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # Line items to ship. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # The ID of the shipment. + # Corresponds to the JSON property `shipmentId` + # @return [String] + attr_accessor :shipment_id + + # The tracking id for the shipment. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] unless args[:carrier].nil? + @line_items = args[:line_items] unless args[:line_items].nil? + @shipment_id = args[:shipment_id] unless args[:shipment_id].nil? + @tracking_id = args[:tracking_id] unless args[:tracking_id].nil? + end + end + + # + class OrdersCustomBatchRequestEntryUpdateShipment + include Google::Apis::Core::Hashable + + # The carrier handling the shipment. Not updated if missing. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # The ID of the shipment. + # Corresponds to the JSON property `shipmentId` + # @return [String] + attr_accessor :shipment_id + + # New status for the shipment. Not updated if missing. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The tracking id for the shipment. Not updated if missing. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] unless args[:carrier].nil? + @shipment_id = args[:shipment_id] unless args[:shipment_id].nil? + @status = args[:status] unless args[:status].nil? + @tracking_id = args[:tracking_id] unless args[:tracking_id].nil? + end + end + + # + class OrdersCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] unless args[:entries].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2::Errors] + attr_accessor :errors + + # The status of the execution. Only defined if the method is not get or + # getByMerchantOrderId and if the request was successful. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The retrieved order. Only defined if the method is get and if the request was + # successful. + # Corresponds to the JSON property `order` + # @return [Google::Apis::ContentV2::Order] + attr_accessor :order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] unless args[:batch_id].nil? + @errors = args[:errors] unless args[:errors].nil? + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + @order = args[:order] unless args[:order].nil? + end + end + + # + class OrdersGetByMerchantOrderIdResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersGetByMerchantOrderIdResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The requested order. + # Corresponds to the JSON property `order` + # @return [Google::Apis::ContentV2::Order] + attr_accessor :order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @order = args[:order] unless args[:order].nil? + end + end + + # + class OrdersGetTestOrderTemplateResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersGetTestOrderTemplateResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The requested test order template. + # Corresponds to the JSON property `template` + # @return [Google::Apis::ContentV2::TestOrder] + attr_accessor :template + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @template = args[:template] unless args[:template].nil? + end + end + + # + class OrdersListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of orders. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @resources = args[:resources] unless args[:resources].nil? + end + end + + # + class OrdersRefundRequest + include Google::Apis::Core::Hashable + + # The amount that is refunded. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :amount + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The reason for the refund. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] unless args[:amount].nil? + @operation_id = args[:operation_id] unless args[:operation_id].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersRefundResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersRefundResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersReturnLineItemRequest + include Google::Apis::Core::Hashable + + # The ID of the line item to return. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The quantity to return. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] unless args[:line_item_id].nil? + @operation_id = args[:operation_id] unless args[:operation_id].nil? + @quantity = args[:quantity] unless args[:quantity].nil? + @reason = args[:reason] unless args[:reason].nil? + @reason_text = args[:reason_text] unless args[:reason_text].nil? + end + end + + # + class OrdersReturnLineItemResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersReturnLineItemResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersShipLineItemsRequest + include Google::Apis::Core::Hashable + + # The carrier handling the shipment. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # Line items to ship. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the shipment. + # Corresponds to the JSON property `shipmentId` + # @return [String] + attr_accessor :shipment_id + + # The tracking id for the shipment. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] unless args[:carrier].nil? + @line_items = args[:line_items] unless args[:line_items].nil? + @operation_id = args[:operation_id] unless args[:operation_id].nil? + @shipment_id = args[:shipment_id] unless args[:shipment_id].nil? + @tracking_id = args[:tracking_id] unless args[:tracking_id].nil? + end + end + + # + class OrdersShipLineItemsResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersShipLineItemsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersUpdateMerchantOrderIdRequest + include Google::Apis::Core::Hashable + + # The merchant order id to be assigned to the order. Must be unique per merchant. + # Corresponds to the JSON property `merchantOrderId` + # @return [String] + attr_accessor :merchant_order_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil? + @operation_id = args[:operation_id] unless args[:operation_id].nil? + end + end + + # + class OrdersUpdateMerchantOrderIdResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersUpdateMerchantOrderIdResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # + class OrdersUpdateShipmentRequest + include Google::Apis::Core::Hashable + + # The carrier handling the shipment. Not updated if missing. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the shipment. + # Corresponds to the JSON property `shipmentId` + # @return [String] + attr_accessor :shipment_id + + # New status for the shipment. Not updated if missing. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The tracking id for the shipment. Not updated if missing. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] unless args[:carrier].nil? + @operation_id = args[:operation_id] unless args[:operation_id].nil? + @shipment_id = args[:shipment_id] unless args[:shipment_id].nil? + @status = args[:status] unless args[:status].nil? + @tracking_id = args[:tracking_id] unless args[:tracking_id].nil? + end + end + + # + class OrdersUpdateShipmentResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersUpdateShipmentResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] unless args[:execution_status].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + # class Price include Google::Apis::Core::Hashable @@ -2681,7 +4603,7 @@ module Google # Number and amount of installments to pay for an item. Brazil only. # Corresponds to the JSON property `installment` - # @return [Google::Apis::ContentV2::ProductInstallment] + # @return [Google::Apis::ContentV2::Installment] attr_accessor :installment # Whether the item is a merchant-defined bundle. A bundle is a custom grouping @@ -2768,6 +4690,11 @@ module Google # @return [String] attr_accessor :sale_price_effective_date + # The quantity of the product that is reserved for sell-on-google ads. + # Corresponds to the JSON property `sellOnGoogleQuantity` + # @return [String] + attr_accessor :sell_on_google_quantity + # Shipping rules. # Corresponds to the JSON property `shipping` # @return [Array] @@ -2908,6 +4835,7 @@ module Google @product_type = args[:product_type] unless args[:product_type].nil? @sale_price = args[:sale_price] unless args[:sale_price].nil? @sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil? + @sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil? @shipping = args[:shipping] unless args[:shipping].nil? @shipping_height = args[:shipping_height] unless args[:shipping_height].nil? @shipping_label = args[:shipping_label] unless args[:shipping_label].nil? @@ -3047,31 +4975,6 @@ module Google end end - # - class ProductInstallment - include Google::Apis::Core::Hashable - - # The amount the buyer has to pay per month. - # Corresponds to the JSON property `amount` - # @return [Google::Apis::ContentV2::Price] - attr_accessor :amount - - # The number of installments the buyer has to pay. - # Corresponds to the JSON property `months` - # @return [String] - attr_accessor :months - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @months = args[:months] unless args[:months].nil? - end - end - # class ProductShipping include Google::Apis::Core::Hashable @@ -3761,6 +5664,282 @@ module Google end end + # + class TestOrder + include Google::Apis::Core::Hashable + + # The details of the customer who placed the order. + # Corresponds to the JSON property `customer` + # @return [Google::Apis::ContentV2::TestOrderCustomer] + attr_accessor :customer + + # Identifies what kind of resource this is. Value: the fixed string "content# + # testOrder". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Line items that are ordered. At least one line item must be provided. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # The details of the payment method. + # Corresponds to the JSON property `paymentMethod` + # @return [Google::Apis::ContentV2::TestOrderPaymentMethod] + attr_accessor :payment_method + + # Identifier of one of the predefined delivery addresses for the delivery. + # Corresponds to the JSON property `predefinedDeliveryAddress` + # @return [String] + attr_accessor :predefined_delivery_address + + # The total cost of shipping for all items. + # Corresponds to the JSON property `shippingCost` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :shipping_cost + + # The tax for the total shipping cost. + # Corresponds to the JSON property `shippingCostTax` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :shipping_cost_tax + + # The requested shipping option. + # Corresponds to the JSON property `shippingOption` + # @return [String] + attr_accessor :shipping_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @customer = args[:customer] unless args[:customer].nil? + @kind = args[:kind] unless args[:kind].nil? + @line_items = args[:line_items] unless args[:line_items].nil? + @payment_method = args[:payment_method] unless args[:payment_method].nil? + @predefined_delivery_address = args[:predefined_delivery_address] unless args[:predefined_delivery_address].nil? + @shipping_cost = args[:shipping_cost] unless args[:shipping_cost].nil? + @shipping_cost_tax = args[:shipping_cost_tax] unless args[:shipping_cost_tax].nil? + @shipping_option = args[:shipping_option] unless args[:shipping_option].nil? + end + end + + # + class TestOrderCustomer + include Google::Apis::Core::Hashable + + # Email address of the customer. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # If set, this indicates the user had a choice to opt in or out of providing + # marketing rights to the merchant. If unset, this indicates the user has + # already made this choice in a previous purchase, and was thus not shown the + # marketing right opt in/out checkbox during the Purchases on Google checkout + # flow. Optional. + # Corresponds to the JSON property `explicitMarketingPreference` + # @return [Boolean] + attr_accessor :explicit_marketing_preference + alias_method :explicit_marketing_preference?, :explicit_marketing_preference + + # Full name of the customer. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] unless args[:email].nil? + @explicit_marketing_preference = args[:explicit_marketing_preference] unless args[:explicit_marketing_preference].nil? + @full_name = args[:full_name] unless args[:full_name].nil? + end + end + + # + class TestOrderLineItem + include Google::Apis::Core::Hashable + + # Product data from the time of the order placement. + # Corresponds to the JSON property `product` + # @return [Google::Apis::ContentV2::TestOrderLineItemProduct] + attr_accessor :product + + # Number of items ordered. + # Corresponds to the JSON property `quantityOrdered` + # @return [Fixnum] + attr_accessor :quantity_ordered + + # Details of the return policy for the line item. + # Corresponds to the JSON property `returnInfo` + # @return [Google::Apis::ContentV2::OrderLineItemReturnInfo] + attr_accessor :return_info + + # Details of the requested shipping for the line item. + # Corresponds to the JSON property `shippingDetails` + # @return [Google::Apis::ContentV2::OrderLineItemShippingDetails] + attr_accessor :shipping_details + + # Unit tax for the line item. + # Corresponds to the JSON property `unitTax` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :unit_tax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @product = args[:product] unless args[:product].nil? + @quantity_ordered = args[:quantity_ordered] unless args[:quantity_ordered].nil? + @return_info = args[:return_info] unless args[:return_info].nil? + @shipping_details = args[:shipping_details] unless args[:shipping_details].nil? + @unit_tax = args[:unit_tax] unless args[:unit_tax].nil? + end + end + + # + class TestOrderLineItemProduct + include Google::Apis::Core::Hashable + + # Brand of the item. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # The item's channel. + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # Condition or state of the item. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number (GTIN) of the item. Optional. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # URL of an image of the item. + # Corresponds to the JSON property `imageLink` + # @return [String] + attr_accessor :image_link + + # Shared identifier for all variants of the same product. Optional. + # Corresponds to the JSON property `itemGroupId` + # @return [String] + attr_accessor :item_group_id + + # Manufacturer Part Number (MPN) of the item. Optional. + # Corresponds to the JSON property `mpn` + # @return [String] + attr_accessor :mpn + + # An identifier of the item. + # Corresponds to the JSON property `offerId` + # @return [String] + attr_accessor :offer_id + + # The price for the product. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :price + + # The CLDR territory code of the target country of the product. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The title of the product. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Variant attributes for the item. Optional. + # Corresponds to the JSON property `variantAttributes` + # @return [Array] + attr_accessor :variant_attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] unless args[:brand].nil? + @channel = args[:channel] unless args[:channel].nil? + @condition = args[:condition] unless args[:condition].nil? + @content_language = args[:content_language] unless args[:content_language].nil? + @gtin = args[:gtin] unless args[:gtin].nil? + @image_link = args[:image_link] unless args[:image_link].nil? + @item_group_id = args[:item_group_id] unless args[:item_group_id].nil? + @mpn = args[:mpn] unless args[:mpn].nil? + @offer_id = args[:offer_id] unless args[:offer_id].nil? + @price = args[:price] unless args[:price].nil? + @target_country = args[:target_country] unless args[:target_country].nil? + @title = args[:title] unless args[:title].nil? + @variant_attributes = args[:variant_attributes] unless args[:variant_attributes].nil? + end + end + + # + class TestOrderPaymentMethod + include Google::Apis::Core::Hashable + + # The card expiration month (January = 1, February = 2 etc.). + # Corresponds to the JSON property `expirationMonth` + # @return [Fixnum] + attr_accessor :expiration_month + + # The card expiration year (4-digit, e.g. 2015). + # Corresponds to the JSON property `expirationYear` + # @return [Fixnum] + attr_accessor :expiration_year + + # The last four digits of the card number. + # Corresponds to the JSON property `lastFourDigits` + # @return [String] + attr_accessor :last_four_digits + + # The billing address. + # Corresponds to the JSON property `predefinedBillingAddress` + # @return [String] + attr_accessor :predefined_billing_address + + # The type of instrument. Note that real orders might have different values than + # the four values accepted by createTestOrder. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expiration_month = args[:expiration_month] unless args[:expiration_month].nil? + @expiration_year = args[:expiration_year] unless args[:expiration_year].nil? + @last_four_digits = args[:last_four_digits] unless args[:last_four_digits].nil? + @predefined_billing_address = args[:predefined_billing_address] unless args[:predefined_billing_address].nil? + @type = args[:type] unless args[:type].nil? + end + end + # class Weight include Google::Apis::Core::Hashable diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 375254e5c..5b3f5544f 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -254,6 +254,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Installment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Inventory class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -286,6 +290,198 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Order + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderCancellation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderCustomer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderDeliveryDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderLineItem + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderLineItemProduct + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderLineItemProductVariantAttribute + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderLineItemReturnInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderLineItemShippingDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderLineItemShippingDetailsMethod + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderPaymentMethod + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderRefund + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderReturn + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderShipment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrderShipmentLineItemShipment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersAcknowledgeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersAcknowledgeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersAdvanceTestOrderResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCancelLineItemRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCancelLineItemResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCancelRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCancelResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCreateTestOrderRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCreateTestOrderResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequestEntryCancel + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequestEntryCancelLineItem + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequestEntryRefund + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequestEntryReturnLineItem + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequestEntryShipLineItems + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchRequestEntryUpdateShipment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersGetByMerchantOrderIdResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersGetTestOrderTemplateResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersRefundRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersRefundResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersReturnLineItemRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersReturnLineItemResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersShipLineItemsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersShipLineItemsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersUpdateMerchantOrderIdRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersUpdateMerchantOrderIdResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersUpdateShipmentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OrdersUpdateShipmentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Price class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -310,10 +506,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end - class ProductInstallment - class Representation < Google::Apis::Core::JsonRepresentation; end - end - class ProductShipping class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -390,6 +582,26 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class TestOrder + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestOrderCustomer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestOrderLineItem + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestOrderLineItemProduct + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestOrderPaymentMethod + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Weight class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -1019,11 +1231,24 @@ module Google end end + class Installment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :months, as: 'months' + end + end + class Inventory # @private class Representation < Google::Apis::Core::JsonRepresentation property :availability, as: 'availability' + property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation + property :kind, as: 'kind' + property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation + property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :quantity, as: 'quantity' @@ -1077,6 +1302,10 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :availability, as: 'availability' + property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation + + property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation + property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :quantity, as: 'quantity' @@ -1103,6 +1332,536 @@ module Google end end + class Order + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :acknowledged, as: 'acknowledged' + property :customer, as: 'customer', class: Google::Apis::ContentV2::OrderCustomer, decorator: Google::Apis::ContentV2::OrderCustomer::Representation + + property :delivery_details, as: 'deliveryDetails', class: Google::Apis::ContentV2::OrderDeliveryDetails, decorator: Google::Apis::ContentV2::OrderDeliveryDetails::Representation + + property :id, as: 'id' + property :kind, as: 'kind' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderLineItem, decorator: Google::Apis::ContentV2::OrderLineItem::Representation + + property :merchant_id, as: 'merchantId' + property :merchant_order_id, as: 'merchantOrderId' + property :net_amount, as: 'netAmount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::OrderPaymentMethod, decorator: Google::Apis::ContentV2::OrderPaymentMethod::Representation + + property :payment_status, as: 'paymentStatus' + property :placed_date, as: 'placedDate' + collection :refunds, as: 'refunds', class: Google::Apis::ContentV2::OrderRefund, decorator: Google::Apis::ContentV2::OrderRefund::Representation + + collection :shipments, as: 'shipments', class: Google::Apis::ContentV2::OrderShipment, decorator: Google::Apis::ContentV2::OrderShipment::Representation + + property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :shipping_option, as: 'shippingOption' + property :status, as: 'status' + end + end + + class OrderAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + collection :full_address, as: 'fullAddress' + property :is_post_office_box, as: 'isPostOfficeBox' + property :locality, as: 'locality' + property :postal_code, as: 'postalCode' + property :recipient_name, as: 'recipientName' + property :region, as: 'region' + collection :street_address, as: 'streetAddress' + end + end + + class OrderCancellation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :actor, as: 'actor' + property :creation_date, as: 'creationDate' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrderCustomer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :explicit_marketing_preference, as: 'explicitMarketingPreference' + property :full_name, as: 'fullName' + end + end + + class OrderDeliveryDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address', class: Google::Apis::ContentV2::OrderAddress, decorator: Google::Apis::ContentV2::OrderAddress::Representation + + property :phone_number, as: 'phoneNumber' + end + end + + class OrderLineItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2::OrderCancellation, decorator: Google::Apis::ContentV2::OrderCancellation::Representation + + property :id, as: 'id' + property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :product, as: 'product', class: Google::Apis::ContentV2::OrderLineItemProduct, decorator: Google::Apis::ContentV2::OrderLineItemProduct::Representation + + property :quantity_canceled, as: 'quantityCanceled' + property :quantity_delivered, as: 'quantityDelivered' + property :quantity_ordered, as: 'quantityOrdered' + property :quantity_pending, as: 'quantityPending' + property :quantity_returned, as: 'quantityReturned' + property :quantity_shipped, as: 'quantityShipped' + property :return_info, as: 'returnInfo', class: Google::Apis::ContentV2::OrderLineItemReturnInfo, decorator: Google::Apis::ContentV2::OrderLineItemReturnInfo::Representation + + collection :returns, as: 'returns', class: Google::Apis::ContentV2::OrderReturn, decorator: Google::Apis::ContentV2::OrderReturn::Representation + + property :shipping_details, as: 'shippingDetails', class: Google::Apis::ContentV2::OrderLineItemShippingDetails, decorator: Google::Apis::ContentV2::OrderLineItemShippingDetails::Representation + + property :tax, as: 'tax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + end + end + + class OrderLineItemProduct + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' + property :channel, as: 'channel' + property :condition, as: 'condition' + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :id, as: 'id' + property :image_link, as: 'imageLink' + property :item_group_id, as: 'itemGroupId' + property :mpn, as: 'mpn' + property :offer_id, as: 'offerId' + property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :shown_image, as: 'shownImage' + property :target_country, as: 'targetCountry' + property :title, as: 'title' + collection :variant_attributes, as: 'variantAttributes', class: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute, decorator: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute::Representation + + end + end + + class OrderLineItemProductVariantAttribute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension, as: 'dimension' + property :value, as: 'value' + end + end + + class OrderLineItemReturnInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :days_to_return, as: 'daysToReturn' + property :is_returnable, as: 'isReturnable' + property :policy_url, as: 'policyUrl' + end + end + + class OrderLineItemShippingDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deliver_by_date, as: 'deliverByDate' + property :method_prop, as: 'method', class: Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod, decorator: Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod::Representation + + property :ship_by_date, as: 'shipByDate' + end + end + + class OrderLineItemShippingDetailsMethod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :max_days_in_transit, as: 'maxDaysInTransit' + property :method_name, as: 'methodName' + property :min_days_in_transit, as: 'minDaysInTransit' + end + end + + class OrderPaymentMethod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :billing_address, as: 'billingAddress', class: Google::Apis::ContentV2::OrderAddress, decorator: Google::Apis::ContentV2::OrderAddress::Representation + + property :expiration_month, as: 'expirationMonth' + property :expiration_year, as: 'expirationYear' + property :last_four_digits, as: 'lastFourDigits' + property :phone_number, as: 'phoneNumber' + property :type, as: 'type' + end + end + + class OrderRefund + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :actor, as: 'actor' + property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :creation_date, as: 'creationDate' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrderReturn + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :actor, as: 'actor' + property :creation_date, as: 'creationDate' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrderShipment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :creation_date, as: 'creationDate' + property :delivery_date, as: 'deliveryDate' + property :id, as: 'id' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation + + property :status, as: 'status' + property :tracking_id, as: 'trackingId' + end + end + + class OrderShipmentLineItemShipment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :quantity, as: 'quantity' + end + end + + class OrdersAcknowledgeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_id, as: 'operationId' + end + end + + class OrdersAcknowledgeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersAdvanceTestOrderResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class OrdersCancelLineItemRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCancelLineItemResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersCancelRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_id, as: 'operationId' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCancelResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersCreateTestOrderRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :template_name, as: 'templateName' + property :test_order, as: 'testOrder', class: Google::Apis::ContentV2::TestOrder, decorator: Google::Apis::ContentV2::TestOrder::Representation + + end + end + + class OrdersCreateTestOrderResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :order_id, as: 'orderId' + end + end + + class OrdersCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntry::Representation + + end + end + + class OrdersCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :cancel, as: 'cancel', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel::Representation + + property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem::Representation + + property :merchant_id, as: 'merchantId' + property :merchant_order_id, as: 'merchantOrderId' + property :method_prop, as: 'method' + property :operation_id, as: 'operationId' + property :order_id, as: 'orderId' + property :refund, as: 'refund', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund::Representation + + property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation + + property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation + + property :update_shipment, as: 'updateShipment', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment::Representation + + end + end + + class OrdersCustomBatchRequestEntryCancel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCustomBatchRequestEntryCancelLineItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCustomBatchRequestEntryRefund + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCustomBatchRequestEntryReturnLineItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCustomBatchRequestEntryShipLineItems + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation + + property :shipment_id, as: 'shipmentId' + property :tracking_id, as: 'trackingId' + end + end + + class OrdersCustomBatchRequestEntryUpdateShipment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :shipment_id, as: 'shipmentId' + property :status, as: 'status' + property :tracking_id, as: 'trackingId' + end + end + + class OrdersCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2::OrdersCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::OrdersCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class OrdersCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation + + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + property :order, as: 'order', class: Google::Apis::ContentV2::Order, decorator: Google::Apis::ContentV2::Order::Representation + + end + end + + class OrdersGetByMerchantOrderIdResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :order, as: 'order', class: Google::Apis::ContentV2::Order, decorator: Google::Apis::ContentV2::Order::Representation + + end + end + + class OrdersGetTestOrderTemplateResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :template, as: 'template', class: Google::Apis::ContentV2::TestOrder, decorator: Google::Apis::ContentV2::TestOrder::Representation + + end + end + + class OrdersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2::Order, decorator: Google::Apis::ContentV2::Order::Representation + + end + end + + class OrdersRefundRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :operation_id, as: 'operationId' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersRefundResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersReturnLineItemRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersReturnLineItemResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersShipLineItemsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation + + property :operation_id, as: 'operationId' + property :shipment_id, as: 'shipmentId' + property :tracking_id, as: 'trackingId' + end + end + + class OrdersShipLineItemsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersUpdateMerchantOrderIdRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :merchant_order_id, as: 'merchantOrderId' + property :operation_id, as: 'operationId' + end + end + + class OrdersUpdateMerchantOrderIdResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersUpdateShipmentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :operation_id, as: 'operationId' + property :shipment_id, as: 'shipmentId' + property :status, as: 'status' + property :tracking_id, as: 'trackingId' + end + end + + class OrdersUpdateShipmentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + class Price # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1154,7 +1913,7 @@ module Google property :id, as: 'id' property :identifier_exists, as: 'identifierExists' property :image_link, as: 'imageLink' - property :installment, as: 'installment', class: Google::Apis::ContentV2::ProductInstallment, decorator: Google::Apis::ContentV2::ProductInstallment::Representation + property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation property :is_bundle, as: 'isBundle' property :item_group_id, as: 'itemGroupId' @@ -1175,6 +1934,7 @@ module Google property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :sale_price_effective_date, as: 'salePriceEffectiveDate' + property :sell_on_google_quantity, as: 'sellOnGoogleQuantity' collection :shipping, as: 'shipping', class: Google::Apis::ContentV2::ProductShipping, decorator: Google::Apis::ContentV2::ProductShipping::Representation property :shipping_height, as: 'shippingHeight', class: Google::Apis::ContentV2::ProductShippingDimension, decorator: Google::Apis::ContentV2::ProductShippingDimension::Representation @@ -1239,15 +1999,6 @@ module Google end end - class ProductInstallment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation - - property :months, as: 'months' - end - end - class ProductShipping # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1446,6 +2197,81 @@ module Google end end + class TestOrder + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :customer, as: 'customer', class: Google::Apis::ContentV2::TestOrderCustomer, decorator: Google::Apis::ContentV2::TestOrderCustomer::Representation + + property :kind, as: 'kind' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::TestOrderLineItem, decorator: Google::Apis::ContentV2::TestOrderLineItem::Representation + + property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2::TestOrderPaymentMethod::Representation + + property :predefined_delivery_address, as: 'predefinedDeliveryAddress' + property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :shipping_option, as: 'shippingOption' + end + end + + class TestOrderCustomer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :explicit_marketing_preference, as: 'explicitMarketingPreference' + property :full_name, as: 'fullName' + end + end + + class TestOrderLineItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :product, as: 'product', class: Google::Apis::ContentV2::TestOrderLineItemProduct, decorator: Google::Apis::ContentV2::TestOrderLineItemProduct::Representation + + property :quantity_ordered, as: 'quantityOrdered' + property :return_info, as: 'returnInfo', class: Google::Apis::ContentV2::OrderLineItemReturnInfo, decorator: Google::Apis::ContentV2::OrderLineItemReturnInfo::Representation + + property :shipping_details, as: 'shippingDetails', class: Google::Apis::ContentV2::OrderLineItemShippingDetails, decorator: Google::Apis::ContentV2::OrderLineItemShippingDetails::Representation + + property :unit_tax, as: 'unitTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + end + end + + class TestOrderLineItemProduct + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' + property :channel, as: 'channel' + property :condition, as: 'condition' + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :image_link, as: 'imageLink' + property :item_group_id, as: 'itemGroupId' + property :mpn, as: 'mpn' + property :offer_id, as: 'offerId' + property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation + + property :target_country, as: 'targetCountry' + property :title, as: 'title' + collection :variant_attributes, as: 'variantAttributes', class: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute, decorator: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute::Representation + + end + end + + class TestOrderPaymentMethod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expiration_month, as: 'expirationMonth' + property :expiration_year, as: 'expirationYear' + property :last_four_digits, as: 'lastFourDigits' + property :predefined_billing_address, as: 'predefinedBillingAddress' + property :type, as: 'type' + end + end + class Weight # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index f55e5c8d8..ba0153194 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -31,7 +31,7 @@ module Google # Content = Google::Apis::ContentV2 # Alias the module # service = Content::ShoppingContentService.new # - # @see https://developers.google.com/shopping-content/v2/ + # @see https://developers.google.com/shopping-content class ShoppingContentService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -76,8 +76,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_authinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/authinfo' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/authinfo', options) command.response_representation = Google::Apis::ContentV2::AccountsAuthInfoResponse::Representation command.response_class = Google::Apis::ContentV2::AccountsAuthInfoResponse command.query['fields'] = fields unless fields.nil? @@ -113,8 +112,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/batch', options) command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation command.request_object = batch_accounts_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation @@ -155,8 +153,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounts/{accountId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['dryRun'] = dry_run unless dry_run.nil? @@ -193,8 +190,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounts/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options) command.response_representation = Google::Apis::ContentV2::Account::Representation command.response_class = Google::Apis::ContentV2::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -233,8 +229,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{merchantId}/accounts', options) command.request_representation = Google::Apis::ContentV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2::Account::Representation @@ -276,8 +271,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accounts', options) command.response_representation = Google::Apis::ContentV2::ListAccountsResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -319,8 +313,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounts/{accountId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{merchantId}/accounts/{accountId}', options) command.request_representation = Google::Apis::ContentV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2::Account::Representation @@ -364,8 +357,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounts/{accountId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options) command.request_representation = Google::Apis::ContentV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2::Account::Representation @@ -406,8 +398,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_account_shipping(batch_account_shipping_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accountshipping/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accountshipping/batch', options) command.request_representation = Google::Apis::ContentV2::BatchAccountShippingRequest::Representation command.request_object = batch_account_shipping_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountShippingResponse::Representation @@ -446,8 +437,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_shipping(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accountshipping/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accountshipping/{accountId}', options) command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation command.response_class = Google::Apis::ContentV2::AccountShipping command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -489,8 +479,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_shippings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accountshipping' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accountshipping', options) command.response_representation = Google::Apis::ContentV2::ListAccountShippingResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountShippingResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -533,8 +522,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_account_shipping(merchant_id, account_id, account_shipping_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accountshipping/{accountId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{merchantId}/accountshipping/{accountId}', options) command.request_representation = Google::Apis::ContentV2::AccountShipping::Representation command.request_object = account_shipping_object command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation @@ -578,8 +566,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account_shipping(merchant_id, account_id, account_shipping_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accountshipping/{accountId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{merchantId}/accountshipping/{accountId}', options) command.request_representation = Google::Apis::ContentV2::AccountShipping::Representation command.request_object = account_shipping_object command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation @@ -617,8 +604,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accountstatuses/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accountstatuses/batch', options) command.request_representation = Google::Apis::ContentV2::BatchAccountStatusesRequest::Representation command.request_object = batch_account_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountStatusesResponse::Representation @@ -656,8 +642,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_status(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accountstatuses/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options) command.response_representation = Google::Apis::ContentV2::AccountStatus::Representation command.response_class = Google::Apis::ContentV2::AccountStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -698,8 +683,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accountstatuses' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accountstatuses', options) command.response_representation = Google::Apis::ContentV2::ListAccountStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -737,8 +721,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounttax/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounttax/batch', options) command.request_representation = Google::Apis::ContentV2::BatchAccountTaxRequest::Representation command.request_object = batch_account_tax_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountTaxResponse::Representation @@ -777,8 +760,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounttax/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options) command.response_representation = Google::Apis::ContentV2::AccountTax::Representation command.response_class = Google::Apis::ContentV2::AccountTax command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -818,8 +800,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounttax' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/accounttax', options) command.response_representation = Google::Apis::ContentV2::ListAccountTaxResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountTaxResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -861,8 +842,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounttax/{accountId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{merchantId}/accounttax/{accountId}', options) command.request_representation = Google::Apis::ContentV2::AccountTax::Representation command.request_object = account_tax_object command.response_representation = Google::Apis::ContentV2::AccountTax::Representation @@ -906,8 +886,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/accounttax/{accountId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options) command.request_representation = Google::Apis::ContentV2::AccountTax::Representation command.request_object = account_tax_object command.response_representation = Google::Apis::ContentV2::AccountTax::Representation @@ -947,8 +926,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'datafeeds/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'datafeeds/batch', options) command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation command.request_object = batch_datafeeds_request_object command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation @@ -987,8 +965,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeeds/{datafeedId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['dryRun'] = dry_run unless dry_run.nil? @@ -1023,8 +1000,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeeds/{datafeedId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options) command.response_representation = Google::Apis::ContentV2::Datafeed::Representation command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1062,8 +1038,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeeds' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{merchantId}/datafeeds', options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -1105,8 +1080,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeeds' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/datafeeds', options) command.response_representation = Google::Apis::ContentV2::ListDatafeedsResponse::Representation command.response_class = Google::Apis::ContentV2::ListDatafeedsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1147,8 +1121,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeeds/{datafeedId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{merchantId}/datafeeds/{datafeedId}', options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -1190,8 +1163,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeeds/{datafeedId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -1229,8 +1201,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'datafeedstatuses/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'datafeedstatuses/batch', options) command.request_representation = Google::Apis::ContentV2::BatchDatafeedStatusesRequest::Representation command.request_object = batch_datafeed_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchDatafeedStatusesResponse::Representation @@ -1266,8 +1237,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_datafeed_status(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeedstatuses/{datafeedId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options) command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation command.response_class = Google::Apis::ContentV2::DatafeedStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1307,8 +1277,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/datafeedstatuses' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options) command.response_representation = Google::Apis::ContentV2::ListDatafeedStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListDatafeedStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1347,8 +1316,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'inventory/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'inventory/batch', options) command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation command.request_object = batch_inventory_request_object command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation @@ -1394,8 +1362,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/inventory/{storeCode}/products/{productId}' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{merchantId}/inventory/{storeCode}/products/{productId}', options) command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation command.request_object = set_inventory_request_object command.response_representation = Google::Apis::ContentV2::SetInventoryResponse::Representation @@ -1410,6 +1377,634 @@ module Google execute_or_queue_command(command, &block) end + # Marks an order as acknowledged. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2::OrdersAcknowledgeRequest] orders_acknowledge_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersAcknowledgeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersAcknowledgeResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options) + command.request_representation = Google::Apis::ContentV2::OrdersAcknowledgeRequest::Representation + command.request_object = orders_acknowledge_request_object + command.response_representation = Google::Apis::ContentV2::OrdersAcknowledgeResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersAcknowledgeResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sandbox only. Moves a test order from state "inProgress" to state " + # pendingShipment". + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the test order to modify. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options) + command.response_representation = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Cancels all line items in an order. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order to cancel. + # @param [Google::Apis::ContentV2::OrdersCancelRequest] orders_cancel_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersCancelResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersCancelResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options) + command.request_representation = Google::Apis::ContentV2::OrdersCancelRequest::Representation + command.request_object = orders_cancel_request_object + command.response_representation = Google::Apis::ContentV2::OrdersCancelResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersCancelResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Cancels a line item. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2::OrdersCancelLineItemRequest] orders_cancel_line_item_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersCancelLineItemResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersCancelLineItemResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options) + command.request_representation = Google::Apis::ContentV2::OrdersCancelLineItemRequest::Representation + command.request_object = orders_cancel_line_item_request_object + command.response_representation = Google::Apis::ContentV2::OrdersCancelLineItemResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersCancelLineItemResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sandbox only. Creates a test order. + # @param [String] merchant_id + # The ID of the managing account. + # @param [Google::Apis::ContentV2::OrdersCreateTestOrderRequest] orders_create_test_order_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersCreateTestOrderResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersCreateTestOrderResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/testorders', options) + command.request_representation = Google::Apis::ContentV2::OrdersCreateTestOrderRequest::Representation + command.request_object = orders_create_test_order_request_object + command.response_representation = Google::Apis::ContentV2::OrdersCreateTestOrderResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersCreateTestOrderResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves or modifies multiple orders in a single request. + # @param [Google::Apis::ContentV2::OrdersCustomBatchRequest] orders_custom_batch_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersCustomBatchResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'orders/batch', options) + command.request_representation = Google::Apis::ContentV2::OrdersCustomBatchRequest::Representation + command.request_object = orders_custom_batch_request_object + command.response_representation = Google::Apis::ContentV2::OrdersCustomBatchResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersCustomBatchResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an order from your Merchant Center account. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::Order] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::Order] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options) + command.response_representation = Google::Apis::ContentV2::Order::Representation + command.response_class = Google::Apis::ContentV2::Order + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an order using merchant order id. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] merchant_order_id + # The merchant order id to be looked for. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options) + command.response_representation = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sandbox only. Retrieves an order template that can be used to quickly create a + # new order in sandbox. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] template_name + # The name of the template to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_test_order_template(merchant_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options) + command.response_representation = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['templateName'] = template_name unless template_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the orders in your Merchant Center account. + # @param [String] merchant_id + # The ID of the managing account. + # @param [Boolean] acknowledged + # Obtains orders that match the acknowledgement status. When set to true, + # obtains orders that have been acknowledged. When false, obtains orders that + # have not been acknowledged. + # We recommend using this filter set to false, in conjunction with the + # acknowledge call, such that only un-acknowledged orders are returned. + # @param [Fixnum] max_results + # The maximum number of orders to return in the response, used for paging. The + # default value is 25 orders per page, and the maximum allowed value is 250 + # orders per page. + # Known issue: All List calls will return all Orders without limit regardless of + # the value of this field. + # @param [String] order_by + # The ordering of the returned list. The only supported value are placedDate + # desc and placedDate asc for now, which returns orders sorted by placement date. + # "placedDate desc" stands for listing orders by placement date, from oldest to + # most recent. "placedDate asc" stands for listing orders by placement date, + # from most recent to oldest. In future releases we'll support other sorting + # criteria. + # @param [String] page_token + # The token returned by the previous request. + # @param [String] placed_date_end + # Obtains orders placed before this date (exclusively), in ISO 8601 format. + # @param [String] placed_date_start + # Obtains orders placed after this date (inclusively), in ISO 8601 format. + # @param [Array, String] statuses + # Obtains orders that match any of the specified statuses. Multiple values can + # be specified with comma separation. Additionally, please note that active is a + # shortcut for pendingShipment and partiallyShipped, and completed is a shortcut + # for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and + # canceled. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{merchantId}/orders', options) + command.response_representation = Google::Apis::ContentV2::OrdersListResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersListResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['acknowledged'] = acknowledged unless acknowledged.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil? + command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil? + command.query['statuses'] = statuses unless statuses.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Refund a portion of the order, up to the full amount paid. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order to refund. + # @param [Google::Apis::ContentV2::OrdersRefundRequest] orders_refund_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersRefundResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersRefundResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refund', options) + command.request_representation = Google::Apis::ContentV2::OrdersRefundRequest::Representation + command.request_object = orders_refund_request_object + command.response_representation = Google::Apis::ContentV2::OrdersRefundResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersRefundResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns a line item. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2::OrdersReturnLineItemRequest] orders_return_line_item_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersReturnLineItemResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersReturnLineItemResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnLineItem', options) + command.request_representation = Google::Apis::ContentV2::OrdersReturnLineItemRequest::Representation + command.request_object = orders_return_line_item_request_object + command.response_representation = Google::Apis::ContentV2::OrdersReturnLineItemResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersReturnLineItemResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Marks line item(s) as shipped. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2::OrdersShipLineItemsRequest] orders_ship_line_items_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersShipLineItemsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersShipLineItemsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options) + command.request_representation = Google::Apis::ContentV2::OrdersShipLineItemsRequest::Representation + command.request_object = orders_ship_line_items_request_object + command.response_representation = Google::Apis::ContentV2::OrdersShipLineItemsResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersShipLineItemsResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the merchant order ID for a given order. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest] orders_update_merchant_order_id_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options) + command.request_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest::Representation + command.request_object = orders_update_merchant_order_id_request_object + command.response_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a shipment's status, carrier, and/or tracking ID. + # @param [String] merchant_id + # The ID of the managing account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2::OrdersUpdateShipmentRequest] orders_update_shipment_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2::OrdersUpdateShipmentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2::OrdersUpdateShipmentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options) + command.request_representation = Google::Apis::ContentV2::OrdersUpdateShipmentRequest::Representation + command.request_object = orders_update_shipment_request_object + command.response_representation = Google::Apis::ContentV2::OrdersUpdateShipmentResponse::Representation + command.response_class = Google::Apis::ContentV2::OrdersUpdateShipmentResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves, inserts, and deletes multiple products in a single request. # @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object # @param [Boolean] dry_run @@ -1436,8 +2031,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'products/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'products/batch', options) command.request_representation = Google::Apis::ContentV2::BatchProductsRequest::Representation command.request_object = batch_products_request_object command.response_representation = Google::Apis::ContentV2::BatchProductsResponse::Representation @@ -1478,8 +2072,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/products/{productId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{merchantId}/products/{productId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['dryRun'] = dry_run unless dry_run.nil? @@ -1516,8 +2109,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/products/{productId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/products/{productId}', options) command.response_representation = Google::Apis::ContentV2::Product::Representation command.response_class = Google::Apis::ContentV2::Product command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1556,8 +2148,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/products' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{merchantId}/products', options) command.request_representation = Google::Apis::ContentV2::Product::Representation command.request_object = product_object command.response_representation = Google::Apis::ContentV2::Product::Representation @@ -1573,6 +2164,9 @@ module Google # Lists the products in your Merchant Center account. # @param [String] merchant_id # The ID of the managing account. + # @param [Boolean] include_invalid_inserted_items + # Flag to include the invalid inserted items in the result of the list request. + # By default the invalid items are not shown (the default value is false). # @param [Fixnum] max_results # The maximum number of products to return in the response, used for paging. # @param [String] page_token @@ -1598,12 +2192,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/products' - command = make_simple_command(:get, path, options) + def list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{merchantId}/products', options) command.response_representation = Google::Apis::ContentV2::ListProductsResponse::Representation command.response_class = Google::Apis::ContentV2::ListProductsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -1636,8 +2230,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_product_status(batch_product_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'productstatuses/batch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'productstatuses/batch', options) command.request_representation = Google::Apis::ContentV2::BatchProductStatusesRequest::Representation command.request_object = batch_product_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchProductStatusesResponse::Representation @@ -1675,8 +2268,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_product_status(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/productstatuses/{productId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options) command.response_representation = Google::Apis::ContentV2::ProductStatus::Representation command.response_class = Google::Apis::ContentV2::ProductStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1690,6 +2282,9 @@ module Google # Lists the statuses of the products in your Merchant Center account. # @param [String] merchant_id # The ID of the managing account. + # @param [Boolean] include_invalid_inserted_items + # Flag to include the invalid inserted items in the result of the list request. + # By default the invalid items are not shown (the default value is false). # @param [Fixnum] max_results # The maximum number of product statuses to return in the response, used for # paging. @@ -1716,12 +2311,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_product_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{merchantId}/productstatuses' - command = make_simple_command(:get, path, options) + def list_product_statuses(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{merchantId}/productstatuses', options) command.response_representation = Google::Apis::ContentV2::ListProductStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListProductStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/coordinate_v1.rb b/generated/google/apis/coordinate_v1.rb index 489dcbffb..f899ee45e 100644 --- a/generated/google/apis/coordinate_v1.rb +++ b/generated/google/apis/coordinate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/coordinate/ module CoordinateV1 VERSION = 'V1' - REVISION = '20141215' + REVISION = '20150811' # View and manage your Google Maps Coordinate jobs AUTH_COORDINATE = 'https://www.googleapis.com/auth/coordinate' diff --git a/generated/google/apis/coordinate_v1/service.rb b/generated/google/apis/coordinate_v1/service.rb index 8c91c0d82..e8d87e63d 100644 --- a/generated/google/apis/coordinate_v1/service.rb +++ b/generated/google/apis/coordinate_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_custom_field_defs(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/custom_fields' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'teams/{teamId}/custom_fields', options) command.response_representation = Google::Apis::CoordinateV1::ListCustomFieldDefResponse::Representation command.response_class = Google::Apis::CoordinateV1::ListCustomFieldDefResponse command.params['teamId'] = team_id unless team_id.nil? @@ -115,8 +114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_job(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs/{jobId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'teams/{teamId}/jobs/{jobId}', options) command.response_representation = Google::Apis::CoordinateV1::Job::Representation command.response_class = Google::Apis::CoordinateV1::Job command.params['teamId'] = team_id unless team_id.nil? @@ -176,8 +174,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_job(team_id, address, lat, lng, title, job_object = nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, note: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'teams/{teamId}/jobs', options) command.request_representation = Google::Apis::CoordinateV1::Job::Representation command.request_object = job_object command.response_representation = Google::Apis::CoordinateV1::Job::Representation @@ -205,6 +202,8 @@ module Google # Maximum number of results to return in one page. # @param [String] min_modified_timestamp_ms # Minimum time a job was modified in milliseconds since epoch. + # @param [Boolean] omit_job_changes + # Whether to omit detail job history information. # @param [String] page_token # Continuation token # @param [String] fields @@ -228,14 +227,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_jobs(team_id, max_results: nil, min_modified_timestamp_ms: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs' - command = make_simple_command(:get, path, options) + def list_jobs(team_id, max_results: nil, min_modified_timestamp_ms: nil, omit_job_changes: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'teams/{teamId}/jobs', options) command.response_representation = Google::Apis::CoordinateV1::ListJobResponse::Representation command.response_class = Google::Apis::CoordinateV1::ListJobResponse command.params['teamId'] = team_id unless team_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['minModifiedTimestampMs'] = min_modified_timestamp_ms unless min_modified_timestamp_ms.nil? + command.query['omitJobChanges'] = omit_job_changes unless omit_job_changes.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -297,8 +296,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs/{jobId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'teams/{teamId}/jobs/{jobId}', options) command.request_representation = Google::Apis::CoordinateV1::Job::Representation command.request_object = job_object command.response_representation = Google::Apis::CoordinateV1::Job::Representation @@ -374,8 +372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs/{jobId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'teams/{teamId}/jobs/{jobId}', options) command.request_representation = Google::Apis::CoordinateV1::Job::Representation command.request_object = job_object command.response_representation = Google::Apis::CoordinateV1::Job::Representation @@ -431,8 +428,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_locations(team_id, worker_email, start_timestamp_ms, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/workers/{workerEmail}/locations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'teams/{teamId}/workers/{workerEmail}/locations', options) command.response_representation = Google::Apis::CoordinateV1::ListLocationResponse::Representation command.response_class = Google::Apis::CoordinateV1::ListLocationResponse command.params['teamId'] = team_id unless team_id.nil? @@ -473,8 +469,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_schedule(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs/{jobId}/schedule' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'teams/{teamId}/jobs/{jobId}/schedule', options) command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation command.response_class = Google::Apis::CoordinateV1::Schedule command.params['teamId'] = team_id unless team_id.nil? @@ -523,8 +518,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs/{jobId}/schedule' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'teams/{teamId}/jobs/{jobId}/schedule', options) command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation command.request_object = schedule_object command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation @@ -578,8 +572,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/jobs/{jobId}/schedule' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'teams/{teamId}/jobs/{jobId}/schedule', options) command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation command.request_object = schedule_object command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation @@ -625,8 +618,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_teams(admin: nil, dispatcher: nil, worker: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'teams', options) command.response_representation = Google::Apis::CoordinateV1::ListTeamResponse::Representation command.response_class = Google::Apis::CoordinateV1::ListTeamResponse command.query['admin'] = admin unless admin.nil? @@ -663,8 +655,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_workers(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'teams/{teamId}/workers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'teams/{teamId}/workers', options) command.response_representation = Google::Apis::CoordinateV1::ListWorkerResponse::Representation command.response_class = Google::Apis::CoordinateV1::ListWorkerResponse command.params['teamId'] = team_id unless team_id.nil? diff --git a/generated/google/apis/customsearch_v1/service.rb b/generated/google/apis/customsearch_v1/service.rb index 971de671d..8b453c4fc 100644 --- a/generated/google/apis/customsearch_v1/service.rb +++ b/generated/google/apis/customsearch_v1/service.rb @@ -153,8 +153,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_cses(q, c2coff: nil, cr: nil, cref: nil, cx: nil, date_restrict: nil, exact_terms: nil, exclude_terms: nil, file_type: nil, filter: nil, gl: nil, googlehost: nil, high_range: nil, hl: nil, hq: nil, img_color_type: nil, img_dominant_color: nil, img_size: nil, img_type: nil, link_site: nil, low_range: nil, lr: nil, num: nil, or_terms: nil, related_site: nil, rights: nil, safe: nil, search_type: nil, site_search: nil, site_search_filter: nil, sort: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'v1' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1', options) command.response_representation = Google::Apis::CustomsearchV1::Search::Representation command.response_class = Google::Apis::CustomsearchV1::Search command.query['c2coff'] = c2coff unless c2coff.nil? diff --git a/generated/google/apis/datastore_v1beta2.rb b/generated/google/apis/datastore_v1beta2.rb index 41e66a8d7..71e17e70b 100644 --- a/generated/google/apis/datastore_v1beta2.rb +++ b/generated/google/apis/datastore_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/datastore/ module DatastoreV1beta2 VERSION = 'V1beta2' - REVISION = '20150402' + REVISION = '20151008' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/datastore_v1beta2/service.rb b/generated/google/apis/datastore_v1beta2/service.rb index 7b594c5e3..3d39453f0 100644 --- a/generated/google/apis/datastore_v1beta2/service.rb +++ b/generated/google/apis/datastore_v1beta2/service.rb @@ -78,9 +78,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def allocate_ids(dataset_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{datasetId}/allocateIds' - command = make_simple_command(:post, path, options) + def allocate_dataset_ids(dataset_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{datasetId}/allocateIds', options) command.request_representation = Google::Apis::DatastoreV1beta2::AllocateIdsRequest::Representation command.request_object = allocate_ids_request_object command.response_representation = Google::Apis::DatastoreV1beta2::AllocateIdsResponse::Representation @@ -117,9 +116,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def begin_transaction(dataset_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{datasetId}/beginTransaction' - command = make_simple_command(:post, path, options) + def begin_dataset_transaction(dataset_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{datasetId}/beginTransaction', options) command.request_representation = Google::Apis::DatastoreV1beta2::BeginTransactionRequest::Representation command.request_object = begin_transaction_request_object command.response_representation = Google::Apis::DatastoreV1beta2::BeginTransactionResponse::Representation @@ -156,9 +154,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def commit(dataset_id, commit_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{datasetId}/commit' - command = make_simple_command(:post, path, options) + def commit_dataset(dataset_id, commit_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{datasetId}/commit', options) command.request_representation = Google::Apis::DatastoreV1beta2::CommitRequest::Representation command.request_object = commit_request_object command.response_representation = Google::Apis::DatastoreV1beta2::CommitResponse::Representation @@ -195,9 +192,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def lookup(dataset_id, lookup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{datasetId}/lookup' - command = make_simple_command(:post, path, options) + def lookup_dataset(dataset_id, lookup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{datasetId}/lookup', options) command.request_representation = Google::Apis::DatastoreV1beta2::LookupRequest::Representation command.request_object = lookup_request_object command.response_representation = Google::Apis::DatastoreV1beta2::LookupResponse::Representation @@ -234,9 +230,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def rollback(dataset_id, rollback_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{datasetId}/rollback' - command = make_simple_command(:post, path, options) + def rollback_dataset(dataset_id, rollback_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{datasetId}/rollback', options) command.request_representation = Google::Apis::DatastoreV1beta2::RollbackRequest::Representation command.request_object = rollback_request_object command.response_representation = Google::Apis::DatastoreV1beta2::RollbackResponse::Representation @@ -273,9 +268,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def run_query(dataset_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{datasetId}/runQuery' - command = make_simple_command(:post, path, options) + def run_dataset_query(dataset_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{datasetId}/runQuery', options) command.request_representation = Google::Apis::DatastoreV1beta2::RunQueryRequest::Representation command.request_object = run_query_request_object command.response_representation = Google::Apis::DatastoreV1beta2::RunQueryResponse::Representation diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb new file mode 100644 index 000000000..b670e02f7 --- /dev/null +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -0,0 +1,44 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/deploymentmanager_v2/service.rb' +require 'google/apis/deploymentmanager_v2/classes.rb' +require 'google/apis/deploymentmanager_v2/representations.rb' + +module Google + module Apis + # Google Cloud Deployment Manager API + # + # The Deployment Manager API allows users to declaratively configure, deploy and + # run complex solutions on the Google Cloud Platform. + # + # @see https://cloud.google.com/deployment-manager/ + module DeploymentmanagerV2 + VERSION = 'V2' + REVISION = '20151110' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + + # View and manage your Google Cloud Platform management resources and deployment status information + AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman' + + # View your Google Cloud Platform management resources and deployment status information + AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly' + end + end +end diff --git a/generated/google/apis/deploymentmanager_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb new file mode 100644 index 000000000..76fe51abf --- /dev/null +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -0,0 +1,1059 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DeploymentmanagerV2 + + # + class ConfigFile + include Google::Apis::Core::Hashable + + # The contents of the file. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] unless args[:content].nil? + end + end + + # + class Deployment + include Google::Apis::Core::Hashable + + # An optional user-provided description of the deployment. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Provides a fingerprint to use in requests to modify a deployment, such as + # update(), stop(), and cancelPreview() requests. A fingerprint is a randomly + # generated value that must be provided with update(), stop(), and cancelPreview( + # ) requests to perform optimistic locking. This ensures optimistic concurrency + # so that only one request happens at a time. + # The fingerprint is initially generated by Deployment Manager and changes after + # every request to modify data. To get the latest fingerprint value, perform a + # get() request to a deployment. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] Timestamp when the deployment was created, in RFC3339 text + # format . + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # [Output Only] URL of the manifest representing the last manifest that was + # successfully deployed. + # Corresponds to the JSON property `manifest` + # @return [String] + attr_accessor :manifest + + # Name of the resource; provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # An Operation resource, used to manage asynchronous API requests. + # Corresponds to the JSON property `operation` + # @return [Google::Apis::DeploymentmanagerV2::Operation] + attr_accessor :operation + + # + # Corresponds to the JSON property `target` + # @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration] + attr_accessor :target + + # + # Corresponds to the JSON property `update` + # @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate] + attr_accessor :update + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] unless args[:description].nil? + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @id = args[:id] unless args[:id].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? + @manifest = args[:manifest] unless args[:manifest].nil? + @name = args[:name] unless args[:name].nil? + @operation = args[:operation] unless args[:operation].nil? + @target = args[:target] unless args[:target].nil? + @update = args[:update] unless args[:update].nil? + end + end + + # + class DeploymentUpdate + include Google::Apis::Core::Hashable + + # [Output Only] URL of the manifest representing the update configuration of + # this deployment. + # Corresponds to the JSON property `manifest` + # @return [String] + attr_accessor :manifest + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @manifest = args[:manifest] unless args[:manifest].nil? + end + end + + # + class DeploymentsCancelPreviewRequest + include Google::Apis::Core::Hashable + + # Specifies a fingerprint for cancelPreview() requests. A fingerprint is a + # randomly generated value that must be provided in cancelPreview() requests to + # perform optimistic locking. This ensures optimistic concurrency so that the + # deployment does not have conflicting requests (e.g. if someone attempts to + # make a new update request while another user attempts to cancel a preview, + # this would prevent one of the requests). + # The fingerprint is initially generated by Deployment Manager and changes after + # every request to modify a deployment. To get the latest fingerprint value, + # perform a get() request to a deployment. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + end + end + + # A response containing a partial list of deployments and a page token used to + # build the next request if the request has been truncated. + class ListDeploymentsResponse + include Google::Apis::Core::Hashable + + # [Output Only] The deployments contained in this response. + # Corresponds to the JSON property `deployments` + # @return [Array] + attr_accessor :deployments + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deployments = args[:deployments] unless args[:deployments].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # + class DeploymentsStopRequest + include Google::Apis::Core::Hashable + + # Specifies a fingerprint for stop() requests. A fingerprint is a randomly + # generated value that must be provided in stop() requests to perform optimistic + # locking. This ensures optimistic concurrency so that the deployment does not + # have conflicting requests (e.g. if someone attempts to make a new update + # request while another user attempts to stop an ongoing update request, this + # would prevent a collision). + # The fingerprint is initially generated by Deployment Manager and changes after + # every request to modify a deployment. To get the latest fingerprint value, + # perform a get() request to a deployment. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + end + end + + # + class ImportFile + include Google::Apis::Core::Hashable + + # The contents of the file. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The name of the file. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] unless args[:content].nil? + @name = args[:name] unless args[:name].nil? + end + end + + # + class Manifest + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `config` + # @return [Google::Apis::DeploymentmanagerV2::ConfigFile] + attr_accessor :config + + # [Output Only] The fully-expanded configuration file, including any templates + # and references. + # Corresponds to the JSON property `expandedConfig` + # @return [String] + attr_accessor :expanded_config + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] The imported files for this manifest. + # Corresponds to the JSON property `imports` + # @return [Array] + attr_accessor :imports + + # [Output Only] Timestamp when the manifest was created, in RFC3339 text format. + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # [Output Only] The YAML layout for this manifest. + # Corresponds to the JSON property `layout` + # @return [String] + attr_accessor :layout + + # [Output Only] The name of the manifest. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Self link for the manifest. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] unless args[:config].nil? + @expanded_config = args[:expanded_config] unless args[:expanded_config].nil? + @id = args[:id] unless args[:id].nil? + @imports = args[:imports] unless args[:imports].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? + @layout = args[:layout] unless args[:layout].nil? + @name = args[:name] unless args[:name].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # A response containing a partial list of manifests and a page token used to + # build the next request if the request has been truncated. + class ListManifestsResponse + include Google::Apis::Core::Hashable + + # [Output Only] Manifests contained in this list response. + # Corresponds to the JSON property `manifests` + # @return [Array] + attr_accessor :manifests + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @manifests = args[:manifests] unless args[:manifests].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # An Operation resource, used to manage asynchronous API requests. + class Operation + include Google::Apis::Core::Hashable + + # [Output Only] An optional identifier specified by the client when the mutation + # was initiated. Must be unique for all Operation resources in the project. + # Corresponds to the JSON property `clientOperationId` + # @return [String] + attr_accessor :client_operation_id + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # [Output Only] The time that this operation was completed. This is in RFC3339 + # text format. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # [Output Only] If errors are generated during processing of the operation, this + # field will be populated. + # Corresponds to the JSON property `error` + # @return [Google::Apis::DeploymentmanagerV2::Operation::Error] + attr_accessor :error + + # [Output Only] If the operation fails, this field contains the HTTP error + # message that was returned, such as NOT FOUND. + # Corresponds to the JSON property `httpErrorMessage` + # @return [String] + attr_accessor :http_error_message + + # [Output Only] If the operation fails, this field contains the HTTP error + # message that was returned, such as 404. + # Corresponds to the JSON property `httpErrorStatusCode` + # @return [Fixnum] + attr_accessor :http_error_status_code + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] The time that this operation was requested. This is in RFC3339 + # text format. + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # [Output Only] Type of the resource. Always compute#operation for Operation + # resources. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] Name of the resource. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Type of the operation, such as insert, compute.instanceGroups. + # update, or compute.instanceGroups.delete. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # [Output Only] An optional progress indicator that ranges from 0 to 100. There + # is no requirement that this be linear or support any granularity of operations. + # This should not be used to guess at when the operation will be complete. This + # number should monotonically increase as the operation progresses. + # Corresponds to the JSON property `progress` + # @return [Fixnum] + attr_accessor :progress + + # [Output Only] URL of the region where the operation resides. Only applicable + # for regional resources. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The time that this operation was started by the server. This is + # in RFC3339 text format. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # [Output Only] Status of the operation. Can be one of the following: PENDING, + # RUNNING, or DONE. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] An optional textual description of the current status of the + # operation. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + # [Output Only] Unique target ID which identifies a particular incarnation of + # the target. + # Corresponds to the JSON property `targetId` + # @return [String] + attr_accessor :target_id + + # [Output Only] URL of the resource the operation is mutating. + # Corresponds to the JSON property `targetLink` + # @return [String] + attr_accessor :target_link + + # [Output Only] User who requested the operation, for example: user@example.com. + # Corresponds to the JSON property `user` + # @return [String] + attr_accessor :user + + # [Output Only] If warning messages are generated during processing of the + # operation, this field will be populated. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + # [Output Only] URL of the zone where the operation resides. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil? + @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? + @end_time = args[:end_time] unless args[:end_time].nil? + @error = args[:error] unless args[:error].nil? + @http_error_message = args[:http_error_message] unless args[:http_error_message].nil? + @http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil? + @id = args[:id] unless args[:id].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? + @kind = args[:kind] unless args[:kind].nil? + @name = args[:name] unless args[:name].nil? + @operation_type = args[:operation_type] unless args[:operation_type].nil? + @progress = args[:progress] unless args[:progress].nil? + @region = args[:region] unless args[:region].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + @start_time = args[:start_time] unless args[:start_time].nil? + @status = args[:status] unless args[:status].nil? + @status_message = args[:status_message] unless args[:status_message].nil? + @target_id = args[:target_id] unless args[:target_id].nil? + @target_link = args[:target_link] unless args[:target_link].nil? + @user = args[:user] unless args[:user].nil? + @warnings = args[:warnings] unless args[:warnings].nil? + @zone = args[:zone] unless args[:zone].nil? + end + + # [Output Only] If errors are generated during processing of the operation, this + # field will be populated. + class Error + include Google::Apis::Core::Hashable + + # [Output Only] The array of errors encountered while processing this operation. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors = args[:errors] unless args[:errors].nil? + end + + # + class Error + include Google::Apis::Core::Hashable + + # [Output Only] The error type identifier for this error. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Indicates the field in the request which caused the error. This + # property is optional. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # [Output Only] An optional, human-readable error message. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @location = args[:location] unless args[:location].nil? + @message = args[:message] unless args[:message].nil? + end + end + end + + # + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] The warning type identifier for this warning. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata for this warning in key: value format. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] Optional human-readable details for this warning. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @data = args[:data] unless args[:data].nil? + @message = args[:message] unless args[:message].nil? + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key for the warning data. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + end + end + + # A response containing a partial list of operations and a page token used to + # build the next request if the request has been truncated. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # [Output Only] A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Operations contained in this list response. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @operations = args[:operations] unless args[:operations].nil? + end + end + + # + class Resource + include Google::Apis::Core::Hashable + + # [Output Only] The evaluated properties of the resource with references + # expanded. Returned as serialized YAML. + # Corresponds to the JSON property `finalProperties` + # @return [String] + attr_accessor :final_properties + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] Timestamp when the resource was created or acquired, in RFC3339 + # text format . + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # [Output Only] URL of the manifest representing the current configuration of + # this resource. + # Corresponds to the JSON property `manifest` + # @return [String] + attr_accessor :manifest + + # [Output Only] The name of the resource as it appears in the YAML config. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] The current properties of the resource before any references + # have been filled in. Returned as serialized YAML. + # Corresponds to the JSON property `properties` + # @return [String] + attr_accessor :properties + + # [Output Only] The type of the resource, for example compute.v1.instance, or + # replicaPools.v1beta2.instanceGroupManager. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # + # Corresponds to the JSON property `update` + # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate] + attr_accessor :update + + # [Output Only] Timestamp when the resource was updated, in RFC3339 text format . + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # [Output Only] The URL of the actual resource. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # [Output Only] If warning messages are generated during processing of this + # resource, this field will be populated. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @final_properties = args[:final_properties] unless args[:final_properties].nil? + @id = args[:id] unless args[:id].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? + @manifest = args[:manifest] unless args[:manifest].nil? + @name = args[:name] unless args[:name].nil? + @properties = args[:properties] unless args[:properties].nil? + @type = args[:type] unless args[:type].nil? + @update = args[:update] unless args[:update].nil? + @update_time = args[:update_time] unless args[:update_time].nil? + @url = args[:url] unless args[:url].nil? + @warnings = args[:warnings] unless args[:warnings].nil? + end + + # + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] The warning type identifier for this warning. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata for this warning in key: value format. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] Optional human-readable details for this warning. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @data = args[:data] unless args[:data].nil? + @message = args[:message] unless args[:message].nil? + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key for the warning data. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + end + end + + # + class ResourceUpdate + include Google::Apis::Core::Hashable + + # [Output Only] If errors are generated during update of the resource, this + # field will be populated. + # Corresponds to the JSON property `error` + # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error] + attr_accessor :error + + # [Output Only] The expanded properties of the resource with reference values + # expanded. Returned as serialized YAML. + # Corresponds to the JSON property `finalProperties` + # @return [String] + attr_accessor :final_properties + + # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. + # Corresponds to the JSON property `intent` + # @return [String] + attr_accessor :intent + + # [Output Only] URL of the manifest representing the update configuration of + # this resource. + # Corresponds to the JSON property `manifest` + # @return [String] + attr_accessor :manifest + + # [Output Only] The set of updated properties for this resource, before + # references are expanded. Returned as serialized YAML. + # Corresponds to the JSON property `properties` + # @return [String] + attr_accessor :properties + + # [Output Only] The state of the resource. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # [Output Only] If warning messages are generated during processing of this + # resource, this field will be populated. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error = args[:error] unless args[:error].nil? + @final_properties = args[:final_properties] unless args[:final_properties].nil? + @intent = args[:intent] unless args[:intent].nil? + @manifest = args[:manifest] unless args[:manifest].nil? + @properties = args[:properties] unless args[:properties].nil? + @state = args[:state] unless args[:state].nil? + @warnings = args[:warnings] unless args[:warnings].nil? + end + + # [Output Only] If errors are generated during update of the resource, this + # field will be populated. + class Error + include Google::Apis::Core::Hashable + + # [Output Only] The array of errors encountered while processing this operation. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors = args[:errors] unless args[:errors].nil? + end + + # + class Error + include Google::Apis::Core::Hashable + + # [Output Only] The error type identifier for this error. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Indicates the field in the request which caused the error. This + # property is optional. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # [Output Only] An optional, human-readable error message. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @location = args[:location] unless args[:location].nil? + @message = args[:message] unless args[:message].nil? + end + end + end + + # + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] The warning type identifier for this warning. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata for this warning in key: value format. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] Optional human-readable details for this warning. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @data = args[:data] unless args[:data].nil? + @message = args[:message] unless args[:message].nil? + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key for the warning data. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @value = args[:value] unless args[:value].nil? + end + end + end + end + + # A response containing a partial list of resources and a page token used to + # build the next request if the request has been truncated. + class ListResourcesResponse + include Google::Apis::Core::Hashable + + # A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Resources contained in this list response. + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @resources = args[:resources] unless args[:resources].nil? + end + end + + # + class TargetConfiguration + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `config` + # @return [Google::Apis::DeploymentmanagerV2::ConfigFile] + attr_accessor :config + + # Specifies any files to import for this configuration. This can be used to + # import templates or other files. For example, you might import a text file in + # order to use the file in a template. + # Corresponds to the JSON property `imports` + # @return [Array] + attr_accessor :imports + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] unless args[:config].nil? + @imports = args[:imports] unless args[:imports].nil? + end + end + + # A resource type supported by Deployment Manager. + class Type + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] Timestamp when the type was created, in RFC3339 text format. + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # Name of the type. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Self link for the type. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? + @name = args[:name] unless args[:name].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + + # A response that returns all Types supported by Deployment Manager + class ListTypesResponse + include Google::Apis::Core::Hashable + + # A token used to continue a truncated list request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] A list of resource types supported by Deployment Manager. + # Corresponds to the JSON property `types` + # @return [Array] + attr_accessor :types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @types = args[:types] unless args[:types].nil? + end + end + end + end +end diff --git a/generated/google/apis/deploymentmanager_v2/representations.rb b/generated/google/apis/deploymentmanager_v2/representations.rb new file mode 100644 index 000000000..db0745881 --- /dev/null +++ b/generated/google/apis/deploymentmanager_v2/representations.rb @@ -0,0 +1,421 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DeploymentmanagerV2 + + class ConfigFile + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Deployment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeploymentUpdate + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeploymentsCancelPreviewRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListDeploymentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeploymentsStopRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ImportFile + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Manifest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListManifestsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + + class ResourceUpdate + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + + class ListResourcesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Type + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ConfigFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + end + end + + class Deployment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, as: 'id' + property :insert_time, as: 'insertTime' + property :manifest, as: 'manifest' + property :name, as: 'name' + property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerV2::Operation, decorator: Google::Apis::DeploymentmanagerV2::Operation::Representation + + property :target, as: 'target', class: Google::Apis::DeploymentmanagerV2::TargetConfiguration, decorator: Google::Apis::DeploymentmanagerV2::TargetConfiguration::Representation + + property :update, as: 'update', class: Google::Apis::DeploymentmanagerV2::DeploymentUpdate, decorator: Google::Apis::DeploymentmanagerV2::DeploymentUpdate::Representation + + end + end + + class DeploymentUpdate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :manifest, as: 'manifest' + end + end + + class DeploymentsCancelPreviewRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fingerprint, :base64 => true, as: 'fingerprint' + end + end + + class ListDeploymentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deployments, as: 'deployments', class: Google::Apis::DeploymentmanagerV2::Deployment, decorator: Google::Apis::DeploymentmanagerV2::Deployment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class DeploymentsStopRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fingerprint, :base64 => true, as: 'fingerprint' + end + end + + class ImportFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :name, as: 'name' + end + end + + class Manifest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::DeploymentmanagerV2::ConfigFile, decorator: Google::Apis::DeploymentmanagerV2::ConfigFile::Representation + + property :expanded_config, as: 'expandedConfig' + property :id, as: 'id' + collection :imports, as: 'imports', class: Google::Apis::DeploymentmanagerV2::ImportFile, decorator: Google::Apis::DeploymentmanagerV2::ImportFile::Representation + + property :insert_time, as: 'insertTime' + property :layout, as: 'layout' + property :name, as: 'name' + property :self_link, as: 'selfLink' + end + end + + class ListManifestsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :manifests, as: 'manifests', class: Google::Apis::DeploymentmanagerV2::Manifest, decorator: Google::Apis::DeploymentmanagerV2::Manifest::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_operation_id, as: 'clientOperationId' + property :creation_timestamp, as: 'creationTimestamp' + property :end_time, as: 'endTime' + property :error, as: 'error', class: Google::Apis::DeploymentmanagerV2::Operation::Error, decorator: Google::Apis::DeploymentmanagerV2::Operation::Error::Representation + + property :http_error_message, as: 'httpErrorMessage' + property :http_error_status_code, as: 'httpErrorStatusCode' + property :id, as: 'id' + property :insert_time, as: 'insertTime' + property :kind, as: 'kind' + property :name, as: 'name' + property :operation_type, as: 'operationType' + property :progress, as: 'progress' + property :region, as: 'region' + property :self_link, as: 'selfLink' + property :start_time, as: 'startTime' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + property :target_id, as: 'targetId' + property :target_link, as: 'targetLink' + property :user, as: 'user' + collection :warnings, as: 'warnings', class: Google::Apis::DeploymentmanagerV2::Operation::Warning, decorator: Google::Apis::DeploymentmanagerV2::Operation::Warning::Representation + + property :zone, as: 'zone' + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :errors, as: 'errors', class: Google::Apis::DeploymentmanagerV2::Operation::Error::Error, decorator: Google::Apis::DeploymentmanagerV2::Operation::Error::Error::Representation + + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :location, as: 'location' + property :message, as: 'message' + end + end + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum, decorator: Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::DeploymentmanagerV2::Operation, decorator: Google::Apis::DeploymentmanagerV2::Operation::Representation + + end + end + + class Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :final_properties, as: 'finalProperties' + property :id, as: 'id' + property :insert_time, as: 'insertTime' + property :manifest, as: 'manifest' + property :name, as: 'name' + property :properties, as: 'properties' + property :type, as: 'type' + property :update, as: 'update', class: Google::Apis::DeploymentmanagerV2::ResourceUpdate, decorator: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Representation + + property :update_time, as: 'updateTime' + property :url, as: 'url' + collection :warnings, as: 'warnings', class: Google::Apis::DeploymentmanagerV2::Resource::Warning, decorator: Google::Apis::DeploymentmanagerV2::Resource::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum, decorator: Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ResourceUpdate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error, decorator: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Representation + + property :final_properties, as: 'finalProperties' + property :intent, as: 'intent' + property :manifest, as: 'manifest' + property :properties, as: 'properties' + property :state, as: 'state' + collection :warnings, as: 'warnings', class: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning, decorator: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Representation + + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :errors, as: 'errors', class: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Error, decorator: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Error::Representation + + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :location, as: 'location' + property :message, as: 'message' + end + end + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum, decorator: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ListResourcesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::DeploymentmanagerV2::Resource, decorator: Google::Apis::DeploymentmanagerV2::Resource::Representation + + end + end + + class TargetConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::DeploymentmanagerV2::ConfigFile, decorator: Google::Apis::DeploymentmanagerV2::ConfigFile::Representation + + collection :imports, as: 'imports', class: Google::Apis::DeploymentmanagerV2::ImportFile, decorator: Google::Apis::DeploymentmanagerV2::ImportFile::Representation + + end + end + + class Type + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :insert_time, as: 'insertTime' + property :name, as: 'name' + property :self_link, as: 'selfLink' + end + end + + class ListTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :types, as: 'types', class: Google::Apis::DeploymentmanagerV2::Type, decorator: Google::Apis::DeploymentmanagerV2::Type::Representation + + end + end + end + end +end diff --git a/generated/google/apis/deploymentmanager_v2/service.rb b/generated/google/apis/deploymentmanager_v2/service.rb new file mode 100644 index 000000000..1c73a5f5d --- /dev/null +++ b/generated/google/apis/deploymentmanager_v2/service.rb @@ -0,0 +1,797 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DeploymentmanagerV2 + # Google Cloud Deployment Manager API + # + # The Deployment Manager API allows users to declaratively configure, deploy and + # run complex solutions on the Google Cloud Platform. + # + # @example + # require 'google/apis/deploymentmanager_v2' + # + # Deploymentmanager = Google::Apis::DeploymentmanagerV2 # Alias the module + # service = Deploymentmanager::DeploymentManagerService.new + # + # @see https://cloud.google.com/deployment-manager/ + class DeploymentManagerService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + attr_accessor :quota_user + + # @return [String] + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'deploymentmanager/v2/projects/') + end + + # Cancels and removes the preview currently associated with the deployment. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [Google::Apis::DeploymentmanagerV2::DeploymentsCancelPreviewRequest] deployments_cancel_preview_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_deployment_preview(project, deployment, deployments_cancel_preview_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/deployments/{deployment}/cancelPreview', options) + command.request_representation = Google::Apis::DeploymentmanagerV2::DeploymentsCancelPreviewRequest::Representation + command.request_object = deployments_cancel_preview_request_object + command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Operation + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a deployment and all of the resources in the deployment. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Operation + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about a specific deployment. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Deployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Deployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Deployment + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a deployment and all of the resources described by the deployment + # manifest. + # @param [String] project + # The project ID for this request. + # @param [Google::Apis::DeploymentmanagerV2::Deployment] deployment_object + # @param [Boolean] preview + # If set to true, creates a deployment and creates "shell" resources but does + # not actually instantiate these resources. This allows you to preview what your + # deployment looks like. After previewing a deployment, you can deploy your + # resources by making a request with the update() method or you can use the + # cancelPreview() method to cancel the preview altogether. Note that the + # deployment will still exist after you cancel the preview and you must + # separately delete this deployment if you want to remove it. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_deployment(project, deployment_object = nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/deployments', options) + command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation + command.request_object = deployment_object + command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Operation + command.params['project'] = project unless project.nil? + command.query['preview'] = preview unless preview.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all deployments for a given project. + # @param [String] project + # The project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_deployments(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/deployments', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a deployment and all of the resources described by the deployment + # manifest. This method supports patch semantics. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [Google::Apis::DeploymentmanagerV2::Deployment] deployment_object + # @param [String] create_policy + # Sets the policy to use for creating new resources. + # @param [String] delete_policy + # Sets the policy to use for deleting resources. + # @param [Boolean] preview + # If set to true, updates the deployment and creates and updates the "shell" + # resources but does not actually alter or instantiate these resources. This + # allows you to preview what your deployment looks like. You can use this intent + # to preview how an update would affect your deployment. You must provide a + # target.config with a configuration if this is set to true. After previewing a + # deployment, you can deploy your resources by making a request with the update() + # or you can cancelPreview() to remove the preview altogether. Note that the + # deployment will still exist after you cancel the preview and you must + # separately delete this deployment if you want to remove it. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/deployments/{deployment}', options) + command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation + command.request_object = deployment_object + command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Operation + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['createPolicy'] = create_policy unless create_policy.nil? + command.query['deletePolicy'] = delete_policy unless delete_policy.nil? + command.query['preview'] = preview unless preview.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Stops an ongoing operation. This does not roll back any work that has already + # been completed, but prevents any new work from being started. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [Google::Apis::DeploymentmanagerV2::DeploymentsStopRequest] deployments_stop_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/deployments/{deployment}/stop', options) + command.request_representation = Google::Apis::DeploymentmanagerV2::DeploymentsStopRequest::Representation + command.request_object = deployments_stop_request_object + command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Operation + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a deployment and all of the resources described by the deployment + # manifest. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [Google::Apis::DeploymentmanagerV2::Deployment] deployment_object + # @param [String] create_policy + # Sets the policy to use for creating new resources. + # @param [String] delete_policy + # Sets the policy to use for deleting resources. + # @param [Boolean] preview + # If set to true, updates the deployment and creates and updates the "shell" + # resources but does not actually alter or instantiate these resources. This + # allows you to preview what your deployment looks like. You can use this intent + # to preview how an update would affect your deployment. You must provide a + # target.config with a configuration if this is set to true. After previewing a + # deployment, you can deploy your resources by making a request with the update() + # or you can cancelPreview() to remove the preview altogether. Note that the + # deployment will still exist after you cancel the preview and you must + # separately delete this deployment if you want to remove it. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/global/deployments/{deployment}', options) + command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation + command.request_object = deployment_object + command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Operation + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['createPolicy'] = create_policy unless create_policy.nil? + command.query['deletePolicy'] = delete_policy unless delete_policy.nil? + command.query['preview'] = preview unless preview.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about a specific manifest. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [String] manifest + # The name of the manifest for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Manifest] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Manifest] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests/{manifest}', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::Manifest::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Manifest + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.params['manifest'] = manifest unless manifest.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all manifests for a given deployment. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::ListManifestsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::ListManifestsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_manifests(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::ListManifestsResponse::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::ListManifestsResponse + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about a specific operation. + # @param [String] project + # The project ID for this request. + # @param [String] operation + # The name of the operation for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/operations/{operation}', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Operation + command.params['project'] = project unless project.nil? + command.params['operation'] = operation unless operation.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all operations for a project. + # @param [String] project + # The project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/operations', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::ListOperationsResponse::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::ListOperationsResponse + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets information about a single resource. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [String] resource + # The name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::Resource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::Resource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_resource(project, deployment, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources/{resource}', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::Resource::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::Resource + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all resources in a given deployment. + # @param [String] project + # The project ID for this request. + # @param [String] deployment + # The name of the deployment for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::ListResourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::ListResourcesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_resources(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::ListResourcesResponse::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::ListResourcesResponse + command.params['project'] = project unless project.nil? + command.params['deployment'] = deployment unless deployment.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all resource types for Deployment Manager. + # @param [String] project + # The project ID for this request. + # @param [String] filter + # Sets a filter expression for filtering listed resources, in the form filter=` + # expression`. Your `expression` must be in the format: FIELD_NAME + # COMPARISON_STRING LITERAL_STRING. + # The FIELD_NAME is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The COMPARISON_STRING must be + # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value + # to filter to. The literal value must be valid for the type of field (string, + # number, boolean). For string fields, the literal value is interpreted as a + # regular expression using RE2 syntax. The literal value must match the entire + # field. + # For example, filter=name ne example-instance. + # @param [Fixnum] max_results + # Maximum count of results to be returned. + # @param [String] page_token + # Specifies a page token to use. Use this parameter if you want to list the next + # page of results. Set pageToken to the nextPageToken returned by a previous + # list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DeploymentmanagerV2::ListTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DeploymentmanagerV2::ListTypesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/types', options) + command.response_representation = Google::Apis::DeploymentmanagerV2::ListTypesResponse::Representation + command.response_class = Google::Apis::DeploymentmanagerV2::ListTypesResponse + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/deploymentmanager_v2beta2.rb b/generated/google/apis/deploymentmanager_v2beta2.rb index 400660579..ab7a2bf8a 100644 --- a/generated/google/apis/deploymentmanager_v2beta2.rb +++ b/generated/google/apis/deploymentmanager_v2beta2.rb @@ -18,7 +18,7 @@ require 'google/apis/deploymentmanager_v2beta2/representations.rb' module Google module Apis - # Google Cloud Deployment Manager API V2 + # Google Cloud Deployment Manager API # # The Deployment Manager API allows users to declaratively configure, deploy and # run complex solutions on the Google Cloud Platform. @@ -26,11 +26,14 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta2 VERSION = 'V2beta2' - REVISION = '20150728' + REVISION = '20151110' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # View and manage your Google Cloud Platform management resources and deployment status information AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman' diff --git a/generated/google/apis/deploymentmanager_v2beta2/classes.rb b/generated/google/apis/deploymentmanager_v2beta2/classes.rb index 305ea49c2..7b76c2dbf 100644 --- a/generated/google/apis/deploymentmanager_v2beta2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta2/classes.rb @@ -347,7 +347,7 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#Operation for Operation + # [Output Only] Type of the resource. Always compute#operation for Operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -358,7 +358,8 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Type of the operation, such as insert, update, and delete. + # [Output Only] Type of the operation, such as insert, compute.instanceGroups. + # update, or compute.instanceGroups.delete. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type @@ -377,7 +378,7 @@ module Google # @return [String] attr_accessor :region - # [Output Only] Server defined URL for the resource. + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -780,18 +781,36 @@ module Google class Type include Google::Apis::Core::Hashable + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] Timestamp when the type was created, in RFC3339 text format. + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + # Name of the type. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # [Output Only] Self link for the type. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @id = args[:id] unless args[:id].nil? + @insert_time = args[:insert_time] unless args[:insert_time].nil? @name = args[:name] unless args[:name].nil? + @self_link = args[:self_link] unless args[:self_link].nil? end end diff --git a/generated/google/apis/deploymentmanager_v2beta2/representations.rb b/generated/google/apis/deploymentmanager_v2beta2/representations.rb index 18ba02afb..8009f6711 100644 --- a/generated/google/apis/deploymentmanager_v2beta2/representations.rb +++ b/generated/google/apis/deploymentmanager_v2beta2/representations.rb @@ -286,7 +286,10 @@ module Google class Type # @private class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :insert_time, as: 'insertTime' property :name, as: 'name' + property :self_link, as: 'selfLink' end end diff --git a/generated/google/apis/deploymentmanager_v2beta2/service.rb b/generated/google/apis/deploymentmanager_v2beta2/service.rb index 73fca8c77..3201983aa 100644 --- a/generated/google/apis/deploymentmanager_v2beta2/service.rb +++ b/generated/google/apis/deploymentmanager_v2beta2/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module DeploymentmanagerV2beta2 - # Google Cloud Deployment Manager API V2 + # Google Cloud Deployment Manager API # # The Deployment Manager API allows users to declaratively configure, deploy and # run complex solutions on the Google Cloud Platform. @@ -80,8 +80,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::Operation command.params['project'] = project unless project.nil? @@ -119,8 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::Deployment command.params['project'] = project unless project.nil? @@ -158,8 +156,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_deployment(project, deployment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/global/deployments', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation @@ -214,8 +211,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_deployments(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/deployments', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListDeploymentsResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListDeploymentsResponse command.params['project'] = project unless project.nil? @@ -263,8 +259,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, update_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{project}/global/deployments/{deployment}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation @@ -315,8 +310,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, update_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{project}/global/deployments/{deployment}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation @@ -361,8 +355,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}/manifests/{manifest}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests/{manifest}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Manifest::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::Manifest command.params['project'] = project unless project.nil? @@ -419,8 +412,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_manifests(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}/manifests' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListManifestsResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListManifestsResponse command.params['project'] = project unless project.nil? @@ -461,8 +453,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/operations/{operation}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::Operation command.params['project'] = project unless project.nil? @@ -516,8 +507,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/operations', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListOperationsResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListOperationsResponse command.params['project'] = project unless project.nil? @@ -559,8 +549,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_resource(project, deployment, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}/resources/{resource}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources/{resource}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Resource::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::Resource command.params['project'] = project unless project.nil? @@ -617,8 +606,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_resources(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/deployments/{deployment}/resources' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListResourcesResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListResourcesResponse command.params['project'] = project unless project.nil? @@ -675,8 +663,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/global/types' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/global/types', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListTypesResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListTypesResponse command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/dfareporting_v2_1.rb b/generated/google/apis/dfareporting_v2_1.rb index 5ecc75864..0032d41f5 100644 --- a/generated/google/apis/dfareporting_v2_1.rb +++ b/generated/google/apis/dfareporting_v2_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/reporting/ module DfareportingV2_1 VERSION = 'V2_1' - REVISION = '20150717' + REVISION = '20151109' # View and manage DoubleClick for Advertisers reports AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting' diff --git a/generated/google/apis/dfareporting_v2_1/classes.rb b/generated/google/apis/dfareporting_v2_1/classes.rb index 83214794b..4ab907e92 100644 --- a/generated/google/apis/dfareporting_v2_1/classes.rb +++ b/generated/google/apis/dfareporting_v2_1/classes.rb @@ -109,6 +109,9 @@ module Google # - "34" for VEF # - "35" for COP # - "36" for GTQ + # - "37" for PLN + # - "39" for INR + # - "40" for THB # Corresponds to the JSON property `currencyId` # @return [String] attr_accessor :currency_id @@ -2380,14 +2383,14 @@ module Google attr_accessor :click_tags # Industry standard ID assigned to creative for reach and frequency. Applicable - # to the following creative types: INSTREAM_VIDEO and all VPAID. + # to the following creative types: all INSTREAM_VIDEO and all VPAID. # Corresponds to the JSON property `commercialId` # @return [String] attr_accessor :commercial_id # List of companion creatives assigned to an in-Stream videocreative. Acceptable # values include IDs of existing flash and image creatives. Applicable to the - # following creative types: INSTREAM_VIDEO and all VPAID. + # following creative types: all INSTREAM_VIDEO and all VPAID. # Corresponds to the JSON property `companionCreatives` # @return [Array] attr_accessor :companion_creatives @@ -2417,8 +2420,9 @@ module Google attr_accessor :convert_flash_to_html5 alias_method :convert_flash_to_html5?, :convert_flash_to_html5 - # List of counter events configured for the creative. Applicable to the - # following creative types: all RICH_MEDIA, and all VPAID. + # List of counter events configured for the creative. For ENHANCED_IMAGE + # creatives, these are read-only and auto-generated from clickTags. Applicable + # to the following creative types: ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. # Corresponds to the JSON property `counterCustomEvents` # @return [Array] attr_accessor :counter_custom_events @@ -2444,8 +2448,11 @@ module Google # @return [Array] attr_accessor :custom_key_values - # List of exit events configured for the creative. Applicable to the following - # creative types: all RICH_MEDIA, and all VPAID. + # List of exit events configured for the creative. For ENHANCED_BANNER and + # ENHANCED_IMAGE creatives, these are read-only and auto-generated from + # clickTags, For ENHANCED_BANNER, an event is also created from the + # backupImageReportingLabel. Applicable to the following creative types: + # ENHANCED_BANNER, ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. # Corresponds to the JSON property `exitCustomEvents` # @return [Array] attr_accessor :exit_custom_events @@ -2511,9 +2518,12 @@ module Google # @return [String] attr_accessor :override_css - # URL of hosted image or another ad tag. This is a required field when + # URL of hosted image or hosted video or another ad tag. For + # INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + # The standard for a VAST (Video Ad Serving Template) ad response allows for a + # redirect link to another VAST 2.0 or 3.0 call. This is a required field when # applicable. Applicable to the following creative types: INTERNAL_REDIRECT, - # INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT + # INTERSTITIAL_INTERNAL_REDIRECT, REDIRECT, and INSTREAM_VIDEO_REDIRECT # Corresponds to the JSON property `redirectUrl` # @return [String] attr_accessor :redirect_url @@ -2549,7 +2559,7 @@ module Google attr_accessor :size # Whether the user can choose to skip the creative. Applicable to the following - # creative types: INSTREAM_VIDEO. + # creative types: all INSTREAM_VIDEO and all VPAID. # Corresponds to the JSON property `skippable` # @return [Boolean] attr_accessor :skippable @@ -2603,13 +2613,14 @@ module Google attr_accessor :third_party_rich_media_impressions_url # Third-party URLs for tracking in-stream video creative events. Applicable to - # the following creative types: INSTREAM_VIDEO and all VPAID. + # the following creative types: all INSTREAM_VIDEO and all VPAID. # Corresponds to the JSON property `thirdPartyUrls` # @return [Array] attr_accessor :third_party_urls - # List of timer events configured for the creative. Applicable to the following - # creative types: all RICH_MEDIA, and all VPAID. + # List of timer events configured for the creative. For ENHANCED_IMAGE creatives, + # these are read-only and auto-generated from clickTags. Applicable to the + # following creative types: ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. # Corresponds to the JSON property `timerCustomEvents` # @return [Array] attr_accessor :timer_custom_events @@ -2637,7 +2648,7 @@ module Google # @return [Fixnum] attr_accessor :version - # Description of the video ad. Applicable to the following creative types: + # Description of the video ad. Applicable to the following creative types: all # INSTREAM_VIDEO and all VPAID. # Corresponds to the JSON property `videoDescription` # @return [String] @@ -3330,7 +3341,8 @@ module Google # @return [String] attr_accessor :target_type - # Reporting ID, used to differentiate multiple videos in a single creative. + # Video reporting ID, used to differentiate multiple videos in a single creative. + # This is a read-only field. # Corresponds to the JSON property `videoReportingId` # @return [String] attr_accessor :video_reporting_id @@ -4334,6 +4346,9 @@ module Google # - "34" for VEF # - "35" for COP # - "36" for GTQ + # - "37" for PLN + # - "39" for INR + # - "40" for THB # Corresponds to the JSON property `currencyId` # @return [String] attr_accessor :currency_id diff --git a/generated/google/apis/dfareporting_v2_1/service.rb b/generated/google/apis/dfareporting_v2_1/service.rb index a566b9f5d..f180d11b2 100644 --- a/generated/google/apis/dfareporting_v2_1/service.rb +++ b/generated/google/apis/dfareporting_v2_1/service.rb @@ -79,8 +79,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_active_ad_summary(profile_id, summary_account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', options) command.response_representation = Google::Apis::DfareportingV2_1::AccountActiveAdSummary::Representation command.response_class = Google::Apis::DfareportingV2_1::AccountActiveAdSummary command.params['profileId'] = profile_id unless profile_id.nil? @@ -118,8 +117,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_permission_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountPermissionGroups/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissionGroups/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::AccountPermissionGroup::Representation command.response_class = Google::Apis::DfareportingV2_1::AccountPermissionGroup command.params['profileId'] = profile_id unless profile_id.nil? @@ -155,8 +153,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_permission_groups(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountPermissionGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissionGroups', options) command.response_representation = Google::Apis::DfareportingV2_1::ListAccountPermissionGroupsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListAccountPermissionGroupsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -193,8 +190,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_permission(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountPermissions/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissions/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::AccountPermission::Representation command.response_class = Google::Apis::DfareportingV2_1::AccountPermission command.params['profileId'] = profile_id unless profile_id.nil? @@ -230,8 +226,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_permissions(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountPermissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissions', options) command.response_representation = Google::Apis::DfareportingV2_1::ListAccountPermissionsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListAccountPermissionsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -268,8 +263,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_user_profile(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountUserProfiles/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountUserProfiles/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation command.response_class = Google::Apis::DfareportingV2_1::AccountUserProfile command.params['profileId'] = profile_id unless profile_id.nil? @@ -306,8 +300,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_account_user_profile(profile_id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountUserProfiles' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/accountUserProfiles', options) command.request_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation command.request_object = account_user_profile_object command.response_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation @@ -368,8 +361,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_account_user_profiles(profile_id, active: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, user_role_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountUserProfiles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accountUserProfiles', options) command.response_representation = Google::Apis::DfareportingV2_1::ListAccountUserProfilesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListAccountUserProfilesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -416,8 +408,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_account_user_profile(profile_id, id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountUserProfiles' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/accountUserProfiles', options) command.request_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation command.request_object = account_user_profile_object command.response_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation @@ -456,8 +447,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account_user_profile(profile_id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accountUserProfiles' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/accountUserProfiles', options) command.request_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation command.request_object = account_user_profile_object command.response_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation @@ -496,8 +486,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accounts/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accounts/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Account::Representation command.response_class = Google::Apis::DfareportingV2_1::Account command.params['profileId'] = profile_id unless profile_id.nil? @@ -553,8 +542,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(profile_id, active: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/accounts', options) command.response_representation = Google::Apis::DfareportingV2_1::ListAccountsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListAccountsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -599,8 +587,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_account(profile_id, id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accounts' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/accounts', options) command.request_representation = Google::Apis::DfareportingV2_1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::DfareportingV2_1::Account::Representation @@ -639,8 +626,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account(profile_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/accounts' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/accounts', options) command.request_representation = Google::Apis::DfareportingV2_1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::DfareportingV2_1::Account::Representation @@ -679,8 +665,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ad(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/ads/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/ads/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Ad::Representation command.response_class = Google::Apis::DfareportingV2_1::Ad command.params['profileId'] = profile_id unless profile_id.nil? @@ -717,8 +702,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_ad(profile_id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/ads' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/ads', options) command.request_representation = Google::Apis::DfareportingV2_1::Ad::Representation command.request_object = ad_object command.response_representation = Google::Apis::DfareportingV2_1::Ad::Representation @@ -814,8 +798,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ads(profile_id, active: nil, advertiser_id: nil, archived: nil, audience_segment_ids: nil, campaign_ids: nil, compatibility: nil, creative_ids: nil, creative_optimization_configuration_ids: nil, creative_type: nil, dynamic_click_tracker: nil, ids: nil, landing_page_ids: nil, max_results: nil, overridden_event_tag_id: nil, page_token: nil, placement_ids: nil, remarketing_list_ids: nil, search_string: nil, size_ids: nil, sort_field: nil, sort_order: nil, ssl_compliant: nil, ssl_required: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/ads' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/ads', options) command.response_representation = Google::Apis::DfareportingV2_1::ListAdsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListAdsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -877,8 +860,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_ad(profile_id, id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/ads' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/ads', options) command.request_representation = Google::Apis::DfareportingV2_1::Ad::Representation command.request_object = ad_object command.response_representation = Google::Apis::DfareportingV2_1::Ad::Representation @@ -917,8 +899,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_ad(profile_id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/ads' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/ads', options) command.request_representation = Google::Apis::DfareportingV2_1::Ad::Representation command.request_object = ad_object command.response_representation = Google::Apis::DfareportingV2_1::Ad::Representation @@ -957,8 +938,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertiserGroups/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/advertiserGroups/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -994,8 +974,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertiserGroups/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserGroups/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation command.response_class = Google::Apis::DfareportingV2_1::AdvertiserGroup command.params['profileId'] = profile_id unless profile_id.nil? @@ -1032,8 +1011,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_advertiser_group(profile_id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertiserGroups' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/advertiserGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation command.request_object = advertiser_group_object command.response_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation @@ -1088,8 +1066,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_advertiser_groups(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertiserGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserGroups', options) command.response_representation = Google::Apis::DfareportingV2_1::ListAdvertiserGroupsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListAdvertiserGroupsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -1133,8 +1110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_advertiser_group(profile_id, id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertiserGroups' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/advertiserGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation command.request_object = advertiser_group_object command.response_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation @@ -1173,8 +1149,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_advertiser_group(profile_id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertiserGroups' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/advertiserGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation command.request_object = advertiser_group_object command.response_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation @@ -1213,8 +1188,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_advertiser(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertisers/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertisers/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation command.response_class = Google::Apis::DfareportingV2_1::Advertiser command.params['profileId'] = profile_id unless profile_id.nil? @@ -1251,8 +1225,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_advertiser(profile_id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertisers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/advertisers', options) command.request_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation command.request_object = advertiser_object command.response_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation @@ -1319,8 +1292,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_advertisers(profile_id, advertiser_group_ids: nil, floodlight_configuration_ids: nil, ids: nil, include_advertisers_without_groups_only: nil, max_results: nil, only_parent: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, status: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertisers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/advertisers', options) command.response_representation = Google::Apis::DfareportingV2_1::ListAdvertisersResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListAdvertisersResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -1370,8 +1342,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_advertiser(profile_id, id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertisers' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/advertisers', options) command.request_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation command.request_object = advertiser_object command.response_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation @@ -1410,8 +1381,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_advertiser(profile_id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/advertisers' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/advertisers', options) command.request_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation command.request_object = advertiser_object command.response_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation @@ -1448,8 +1418,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_browsers(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/browsers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/browsers', options) command.response_representation = Google::Apis::DfareportingV2_1::ListBrowsersResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListBrowsersResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -1489,8 +1458,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_campaign_creative_association(profile_id, campaign_id, campaign_creative_association_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', options) command.request_representation = Google::Apis::DfareportingV2_1::CampaignCreativeAssociation::Representation command.request_object = campaign_creative_association_object command.response_representation = Google::Apis::DfareportingV2_1::CampaignCreativeAssociation::Representation @@ -1536,8 +1504,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_campaign_creative_associations(profile_id, campaign_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCampaignCreativeAssociationsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCampaignCreativeAssociationsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -1578,8 +1545,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_campaign(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Campaign::Representation command.response_class = Google::Apis::DfareportingV2_1::Campaign command.params['profileId'] = profile_id unless profile_id.nil? @@ -1621,8 +1587,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_campaign(profile_id, default_landing_page_name, default_landing_page_url, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/campaigns', options) command.request_representation = Google::Apis::DfareportingV2_1::Campaign::Representation command.request_object = campaign_object command.response_representation = Google::Apis::DfareportingV2_1::Campaign::Representation @@ -1693,8 +1658,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_campaigns(profile_id, advertiser_group_ids: nil, advertiser_ids: nil, archived: nil, at_least_one_optimization_activity: nil, excluded_ids: nil, ids: nil, max_results: nil, overridden_event_tag_id: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCampaignsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCampaignsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -1745,8 +1709,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_campaign(profile_id, id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/campaigns', options) command.request_representation = Google::Apis::DfareportingV2_1::Campaign::Representation command.request_object = campaign_object command.response_representation = Google::Apis::DfareportingV2_1::Campaign::Representation @@ -1785,8 +1748,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_campaign(profile_id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/campaigns', options) command.request_representation = Google::Apis::DfareportingV2_1::Campaign::Representation command.request_object = campaign_object command.response_representation = Google::Apis::DfareportingV2_1::Campaign::Representation @@ -1825,8 +1787,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_change_log(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/changeLogs/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/changeLogs/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::ChangeLog::Representation command.response_class = Google::Apis::DfareportingV2_1::ChangeLog command.params['profileId'] = profile_id unless profile_id.nil? @@ -1893,8 +1854,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_change_logs(profile_id, action: nil, ids: nil, max_change_time: nil, max_results: nil, min_change_time: nil, object_ids: nil, object_type: nil, page_token: nil, search_string: nil, user_profile_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/changeLogs' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/changeLogs', options) command.response_representation = Google::Apis::DfareportingV2_1::ListChangeLogsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListChangeLogsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -1947,8 +1907,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_cities(profile_id, country_dart_ids: nil, dart_ids: nil, name_prefix: nil, region_dart_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/cities' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/cities', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCitiesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCitiesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -1989,8 +1948,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_connection_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/connectionTypes/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/connectionTypes/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::ConnectionType::Representation command.response_class = Google::Apis::DfareportingV2_1::ConnectionType command.params['profileId'] = profile_id unless profile_id.nil? @@ -2026,8 +1984,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_connection_types(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/connectionTypes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/connectionTypes', options) command.response_representation = Google::Apis::DfareportingV2_1::ListConnectionTypesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListConnectionTypesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -2064,8 +2021,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_content_category(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/contentCategories/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/contentCategories/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -2101,8 +2057,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_content_category(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/contentCategories/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/contentCategories/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation command.response_class = Google::Apis::DfareportingV2_1::ContentCategory command.params['profileId'] = profile_id unless profile_id.nil? @@ -2139,8 +2094,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_content_category(profile_id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/contentCategories' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/contentCategories', options) command.request_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation command.request_object = content_category_object command.response_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation @@ -2195,8 +2149,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_content_categories(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/contentCategories' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/contentCategories', options) command.response_representation = Google::Apis::DfareportingV2_1::ListContentCategoriesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListContentCategoriesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -2240,8 +2193,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_content_category(profile_id, id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/contentCategories' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/contentCategories', options) command.request_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation command.request_object = content_category_object command.response_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation @@ -2280,8 +2232,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_content_category(profile_id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/contentCategories' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/contentCategories', options) command.request_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation command.request_object = content_category_object command.response_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation @@ -2320,8 +2271,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_country(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/countries/{dartId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/countries/{dartId}', options) command.response_representation = Google::Apis::DfareportingV2_1::Country::Representation command.response_class = Google::Apis::DfareportingV2_1::Country command.params['profileId'] = profile_id unless profile_id.nil? @@ -2357,8 +2307,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_countries(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/countries' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/countries', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCountriesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCountriesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -2400,11 +2349,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_creative_asset(profile_id, advertiser_id, creative_asset_metadata_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -2449,8 +2397,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil? command.params['id'] = id unless id.nil? @@ -2489,8 +2436,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation command.response_class = Google::Apis::DfareportingV2_1::CreativeFieldValue command.params['profileId'] = profile_id unless profile_id.nil? @@ -2530,8 +2476,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation command.request_object = creative_field_value_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation @@ -2584,8 +2529,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_creative_field_values(profile_id, creative_field_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCreativeFieldValuesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCreativeFieldValuesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -2632,8 +2576,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_creative_field_value(profile_id, creative_field_id, id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation command.request_object = creative_field_value_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation @@ -2675,8 +2618,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation command.request_object = creative_field_value_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation @@ -2716,8 +2658,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/creativeFields/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -2753,8 +2694,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation command.response_class = Google::Apis::DfareportingV2_1::CreativeField command.params['profileId'] = profile_id unless profile_id.nil? @@ -2791,8 +2731,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_creative_field(profile_id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeFields', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation command.request_object = creative_field_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation @@ -2849,8 +2788,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_creative_fields(profile_id, advertiser_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCreativeFieldsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCreativeFieldsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -2895,8 +2833,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_creative_field(profile_id, id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeFields', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation command.request_object = creative_field_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation @@ -2935,8 +2872,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_creative_field(profile_id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeFields' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/creativeFields', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation command.request_object = creative_field_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation @@ -2975,8 +2911,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_creative_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeGroups/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeGroups/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation command.response_class = Google::Apis::DfareportingV2_1::CreativeGroup command.params['profileId'] = profile_id unless profile_id.nil? @@ -3013,8 +2948,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_creative_group(profile_id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeGroups' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/creativeGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation command.request_object = creative_group_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation @@ -3073,8 +3007,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_creative_groups(profile_id, advertiser_ids: nil, group_number: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creativeGroups', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCreativeGroupsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCreativeGroupsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -3120,8 +3053,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_creative_group(profile_id, id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeGroups' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creativeGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation command.request_object = creative_group_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation @@ -3160,8 +3092,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_creative_group(profile_id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creativeGroups' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/creativeGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation command.request_object = creative_group_object command.response_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation @@ -3200,8 +3131,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_creative(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creatives/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creatives/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Creative::Representation command.response_class = Google::Apis::DfareportingV2_1::Creative command.params['profileId'] = profile_id unless profile_id.nil? @@ -3238,8 +3168,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_creative(profile_id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creatives' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/creatives', options) command.request_representation = Google::Apis::DfareportingV2_1::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::DfareportingV2_1::Creative::Representation @@ -3315,8 +3244,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_creatives(profile_id, active: nil, advertiser_id: nil, archived: nil, campaign_id: nil, companion_creative_ids: nil, creative_field_ids: nil, ids: nil, max_results: nil, page_token: nil, rendering_ids: nil, search_string: nil, size_ids: nil, sort_field: nil, sort_order: nil, studio_creative_id: nil, types: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creatives' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/creatives', options) command.response_representation = Google::Apis::DfareportingV2_1::ListCreativesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListCreativesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -3370,8 +3298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_creative(profile_id, id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creatives' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/creatives', options) command.request_representation = Google::Apis::DfareportingV2_1::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::DfareportingV2_1::Creative::Representation @@ -3410,8 +3337,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_creative(profile_id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/creatives' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/creatives', options) command.request_representation = Google::Apis::DfareportingV2_1::Creative::Representation command.request_object = creative_object command.response_representation = Google::Apis::DfareportingV2_1::Creative::Representation @@ -3453,8 +3379,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_dimension_value(profile_id, dimension_value_request_object = nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/dimensionvalues/query' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/dimensionvalues/query', options) command.request_representation = Google::Apis::DfareportingV2_1::DimensionValueRequest::Representation command.request_object = dimension_value_request_object command.response_representation = Google::Apis::DfareportingV2_1::DimensionValueList::Representation @@ -3495,8 +3420,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_directory_site_contact(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/directorySiteContacts/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySiteContacts/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::DirectorySiteContact::Representation command.response_class = Google::Apis::DfareportingV2_1::DirectorySiteContact command.params['profileId'] = profile_id unless profile_id.nil? @@ -3554,8 +3478,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_directory_site_contacts(profile_id, directory_site_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/directorySiteContacts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySiteContacts', options) command.response_representation = Google::Apis::DfareportingV2_1::ListDirectorySiteContactsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListDirectorySiteContactsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -3599,8 +3522,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_directory_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/directorySites/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySites/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::DirectorySite::Representation command.response_class = Google::Apis::DfareportingV2_1::DirectorySite command.params['profileId'] = profile_id unless profile_id.nil? @@ -3637,8 +3559,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_directory_site(profile_id, directory_site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/directorySites' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/directorySites', options) command.request_representation = Google::Apis::DfareportingV2_1::DirectorySite::Representation command.request_object = directory_site_object command.response_representation = Google::Apis::DfareportingV2_1::DirectorySite::Representation @@ -3711,8 +3632,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_directory_sites(profile_id, accepts_in_stream_video_placements: nil, accepts_interstitial_placements: nil, accepts_publisher_paid_placements: nil, active: nil, country_id: nil, dfp_network_code: nil, ids: nil, max_results: nil, page_token: nil, parent_id: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/directorySites' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/directorySites', options) command.response_representation = Google::Apis::DfareportingV2_1::ListDirectorySitesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListDirectorySitesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -3762,8 +3682,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/eventTags/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/eventTags/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -3799,8 +3718,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/eventTags/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/eventTags/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::EventTag::Representation command.response_class = Google::Apis::DfareportingV2_1::EventTag command.params['profileId'] = profile_id unless profile_id.nil? @@ -3837,8 +3755,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_event_tag(profile_id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/eventTags' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/eventTags', options) command.request_representation = Google::Apis::DfareportingV2_1::EventTag::Representation command.request_object = event_tag_object command.response_representation = Google::Apis::DfareportingV2_1::EventTag::Representation @@ -3913,8 +3830,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_event_tags(profile_id, ad_id: nil, advertiser_id: nil, campaign_id: nil, definitions_only: nil, enabled: nil, event_tag_types: nil, ids: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/eventTags' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/eventTags', options) command.response_representation = Google::Apis::DfareportingV2_1::ListEventTagsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListEventTagsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -3962,8 +3878,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_event_tag(profile_id, id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/eventTags' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/eventTags', options) command.request_representation = Google::Apis::DfareportingV2_1::EventTag::Representation command.request_object = event_tag_object command.response_representation = Google::Apis::DfareportingV2_1::EventTag::Representation @@ -4002,8 +3917,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_event_tag(profile_id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/eventTags' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/eventTags', options) command.request_representation = Google::Apis::DfareportingV2_1::EventTag::Representation command.request_object = event_tag_object command.response_representation = Google::Apis::DfareportingV2_1::EventTag::Representation @@ -4044,11 +3958,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_file(report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'reports/{reportId}/files/{fileId}' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports/{reportId}/files/{fileId}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'reports/{reportId}/files/{fileId}', options) command.download_dest = download_dest end command.response_representation = Google::Apis::DfareportingV2_1::File::Representation @@ -4096,8 +4009,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_files(profile_id, max_results: nil, page_token: nil, scope: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/files' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/files', options) command.response_representation = Google::Apis::DfareportingV2_1::FileList::Representation command.response_class = Google::Apis::DfareportingV2_1::FileList command.params['profileId'] = profile_id unless profile_id.nil? @@ -4139,8 +4051,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivities/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/floodlightActivities/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -4176,8 +4087,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_floodlight_activity_tag(profile_id, floodlight_activity_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivities/generatetag' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivities/generatetag', options) command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivitiesGenerateTagResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::FloodlightActivitiesGenerateTagResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -4215,8 +4125,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivities/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivities/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation command.response_class = Google::Apis::DfareportingV2_1::FloodlightActivity command.params['profileId'] = profile_id unless profile_id.nil? @@ -4253,8 +4162,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_floodlight_activity(profile_id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivities' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivities', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation command.request_object = floodlight_activity_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation @@ -4332,8 +4240,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_floodlight_activities(profile_id, advertiser_id: nil, floodlight_activity_group_ids: nil, floodlight_activity_group_name: nil, floodlight_activity_group_tag_string: nil, floodlight_activity_group_type: nil, floodlight_configuration_id: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, tag_string: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivities' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivities', options) command.response_representation = Google::Apis::DfareportingV2_1::ListFloodlightActivitiesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListFloodlightActivitiesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -4384,8 +4291,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_floodlight_activity(profile_id, id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivities' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivities', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation command.request_object = floodlight_activity_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation @@ -4424,8 +4330,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_floodlight_activity(profile_id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivities' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/floodlightActivities', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation command.request_object = floodlight_activity_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation @@ -4464,8 +4369,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_floodlight_activity_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivityGroups/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/floodlightActivityGroups/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -4501,8 +4405,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_floodlight_activity_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivityGroups/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivityGroups/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation command.response_class = Google::Apis::DfareportingV2_1::FloodlightActivityGroup command.params['profileId'] = profile_id unless profile_id.nil? @@ -4539,8 +4442,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivityGroups' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivityGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation command.request_object = floodlight_activity_group_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation @@ -4608,8 +4510,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_floodlight_activity_groups(profile_id, advertiser_id: nil, floodlight_configuration_id: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivityGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivityGroups', options) command.response_representation = Google::Apis::DfareportingV2_1::ListFloodlightActivityGroupsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListFloodlightActivityGroupsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -4657,8 +4558,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_floodlight_activity_group(profile_id, id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivityGroups' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightActivityGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation command.request_object = floodlight_activity_group_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation @@ -4697,8 +4597,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightActivityGroups' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/floodlightActivityGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation command.request_object = floodlight_activity_group_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation @@ -4737,8 +4636,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_floodlight_configuration(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightConfigurations/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightConfigurations/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::FloodlightConfiguration::Representation command.response_class = Google::Apis::DfareportingV2_1::FloodlightConfiguration command.params['profileId'] = profile_id unless profile_id.nil? @@ -4777,8 +4675,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_floodlight_configurations(profile_id, ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightConfigurations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightConfigurations', options) command.response_representation = Google::Apis::DfareportingV2_1::ListFloodlightConfigurationsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListFloodlightConfigurationsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -4818,8 +4715,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_floodlight_configuration(profile_id, id, floodlight_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightConfigurations' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/floodlightConfigurations', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightConfiguration::Representation command.request_object = floodlight_configuration_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightConfiguration::Representation @@ -4858,8 +4754,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_floodlight_configuration(profile_id, floodlight_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/floodlightConfigurations' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/floodlightConfigurations', options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightConfiguration::Representation command.request_object = floodlight_configuration_object command.response_representation = Google::Apis::DfareportingV2_1::FloodlightConfiguration::Representation @@ -4900,8 +4795,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_inventory_item(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::InventoryItem::Representation command.response_class = Google::Apis::DfareportingV2_1::InventoryItem command.params['profileId'] = profile_id unless profile_id.nil? @@ -4956,8 +4850,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_inventory_items(profile_id, project_id, ids: nil, in_plan: nil, max_results: nil, order_id: nil, page_token: nil, site_id: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects/{projectId}/inventoryItems' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/inventoryItems', options) command.response_representation = Google::Apis::DfareportingV2_1::ListInventoryItemsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListInventoryItemsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5005,8 +4898,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_landing_page(profile_id, campaign_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['campaignId'] = campaign_id unless campaign_id.nil? command.params['id'] = id unless id.nil? @@ -5045,8 +4937,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_landing_page(profile_id, campaign_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation command.response_class = Google::Apis::DfareportingV2_1::LandingPage command.params['profileId'] = profile_id unless profile_id.nil? @@ -5086,8 +4977,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_landing_page(profile_id, campaign_id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', options) command.request_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation command.request_object = landing_page_object command.response_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation @@ -5127,8 +5017,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_landing_pages(profile_id, campaign_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', options) command.response_representation = Google::Apis::DfareportingV2_1::ListLandingPagesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListLandingPagesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5170,8 +5059,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_landing_page(profile_id, campaign_id, id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', options) command.request_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation command.request_object = landing_page_object command.response_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation @@ -5213,8 +5101,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_landing_page(profile_id, campaign_id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', options) command.request_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation command.request_object = landing_page_object command.response_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation @@ -5252,8 +5139,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_metros(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/metros' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/metros', options) command.response_representation = Google::Apis::DfareportingV2_1::ListMetrosResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListMetrosResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5290,8 +5176,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_mobile_carrier(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/mobileCarriers/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/mobileCarriers/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::MobileCarrier::Representation command.response_class = Google::Apis::DfareportingV2_1::MobileCarrier command.params['profileId'] = profile_id unless profile_id.nil? @@ -5327,8 +5212,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_mobile_carriers(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/mobileCarriers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/mobileCarriers', options) command.response_representation = Google::Apis::DfareportingV2_1::ListMobileCarriersResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListMobileCarriersResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5365,8 +5249,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_operating_system_version(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/operatingSystemVersions/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystemVersions/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::OperatingSystemVersion::Representation command.response_class = Google::Apis::DfareportingV2_1::OperatingSystemVersion command.params['profileId'] = profile_id unless profile_id.nil? @@ -5402,8 +5285,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_operating_system_versions(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/operatingSystemVersions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystemVersions', options) command.response_representation = Google::Apis::DfareportingV2_1::ListOperatingSystemVersionsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListOperatingSystemVersionsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5440,8 +5322,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_operating_system(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/operatingSystems/{dartId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystems/{dartId}', options) command.response_representation = Google::Apis::DfareportingV2_1::OperatingSystem::Representation command.response_class = Google::Apis::DfareportingV2_1::OperatingSystem command.params['profileId'] = profile_id unless profile_id.nil? @@ -5477,8 +5358,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_operating_systems(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/operatingSystems' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystems', options) command.response_representation = Google::Apis::DfareportingV2_1::ListOperatingSystemsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListOperatingSystemsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5517,8 +5397,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_order_document(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::OrderDocument::Representation command.response_class = Google::Apis::DfareportingV2_1::OrderDocument command.params['profileId'] = profile_id unless profile_id.nil? @@ -5581,8 +5460,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_order_documents(profile_id, project_id, approved: nil, ids: nil, max_results: nil, order_id: nil, page_token: nil, search_string: nil, site_id: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects/{projectId}/orderDocuments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orderDocuments', options) command.response_representation = Google::Apis::DfareportingV2_1::ListOrderDocumentsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListOrderDocumentsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5631,8 +5509,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_order(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects/{projectId}/orders/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Order::Representation command.response_class = Google::Apis::DfareportingV2_1::Order command.params['profileId'] = profile_id unless profile_id.nil? @@ -5690,8 +5567,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_orders(profile_id, project_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, site_id: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects/{projectId}/orders' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orders', options) command.response_representation = Google::Apis::DfareportingV2_1::ListOrdersResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListOrdersResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5736,8 +5612,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_placement_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementGroups/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementGroups/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation command.response_class = Google::Apis::DfareportingV2_1::PlacementGroup command.params['profileId'] = profile_id unless profile_id.nil? @@ -5774,8 +5649,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_placement_group(profile_id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementGroups' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/placementGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation command.request_object = placement_group_object command.response_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation @@ -5855,8 +5729,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_placement_groups(profile_id, advertiser_ids: nil, archived: nil, campaign_ids: nil, content_category_ids: nil, directory_site_ids: nil, ids: nil, max_results: nil, page_token: nil, placement_group_type: nil, placement_strategy_ids: nil, pricing_types: nil, search_string: nil, site_ids: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementGroups', options) command.response_representation = Google::Apis::DfareportingV2_1::ListPlacementGroupsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListPlacementGroupsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -5909,8 +5782,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_placement_group(profile_id, id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementGroups' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/placementGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation command.request_object = placement_group_object command.response_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation @@ -5949,8 +5821,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_placement_group(profile_id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementGroups' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/placementGroups', options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation command.request_object = placement_group_object command.response_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation @@ -5989,8 +5860,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementStrategies/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/placementStrategies/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -6026,8 +5896,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementStrategies/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementStrategies/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation command.response_class = Google::Apis::DfareportingV2_1::PlacementStrategy command.params['profileId'] = profile_id unless profile_id.nil? @@ -6064,8 +5933,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_placement_strategy(profile_id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementStrategies' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/placementStrategies', options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation command.request_object = placement_strategy_object command.response_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation @@ -6120,8 +5988,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_placement_strategies(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementStrategies' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/placementStrategies', options) command.response_representation = Google::Apis::DfareportingV2_1::ListPlacementStrategiesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListPlacementStrategiesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -6165,8 +6032,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_placement_strategy(profile_id, id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementStrategies' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/placementStrategies', options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation command.request_object = placement_strategy_object command.response_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation @@ -6205,8 +6071,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_placement_strategy(profile_id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placementStrategies' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/placementStrategies', options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation command.request_object = placement_strategy_object command.response_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation @@ -6249,8 +6114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_placement_tags(profile_id, campaign_id: nil, placement_ids: nil, tag_formats: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placements/generatetags' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/placements/generatetags', options) command.response_representation = Google::Apis::DfareportingV2_1::GeneratePlacementsTagsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::GeneratePlacementsTagsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -6290,8 +6154,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_placement(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placements/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/placements/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Placement::Representation command.response_class = Google::Apis::DfareportingV2_1::Placement command.params['profileId'] = profile_id unless profile_id.nil? @@ -6328,8 +6191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_placement(profile_id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placements' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/placements', options) command.request_representation = Google::Apis::DfareportingV2_1::Placement::Representation command.request_object = placement_object command.response_representation = Google::Apis::DfareportingV2_1::Placement::Representation @@ -6412,8 +6274,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_placements(profile_id, advertiser_ids: nil, archived: nil, campaign_ids: nil, compatibilities: nil, content_category_ids: nil, directory_site_ids: nil, group_ids: nil, ids: nil, max_results: nil, page_token: nil, payment_source: nil, placement_strategy_ids: nil, pricing_types: nil, search_string: nil, site_ids: nil, size_ids: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placements' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/placements', options) command.response_representation = Google::Apis::DfareportingV2_1::ListPlacementsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListPlacementsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -6469,8 +6330,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_placement(profile_id, id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placements' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/placements', options) command.request_representation = Google::Apis::DfareportingV2_1::Placement::Representation command.request_object = placement_object command.response_representation = Google::Apis::DfareportingV2_1::Placement::Representation @@ -6509,8 +6369,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_placement(profile_id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/placements' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/placements', options) command.request_representation = Google::Apis::DfareportingV2_1::Placement::Representation command.request_object = placement_object command.response_representation = Google::Apis::DfareportingV2_1::Placement::Representation @@ -6549,8 +6408,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_platform_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/platformTypes/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/platformTypes/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::PlatformType::Representation command.response_class = Google::Apis::DfareportingV2_1::PlatformType command.params['profileId'] = profile_id unless profile_id.nil? @@ -6586,8 +6444,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_platform_types(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/platformTypes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/platformTypes', options) command.response_representation = Google::Apis::DfareportingV2_1::ListPlatformTypesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListPlatformTypesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -6624,8 +6481,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_postal_code(profile_id, code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/postalCodes/{code}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/postalCodes/{code}', options) command.response_representation = Google::Apis::DfareportingV2_1::PostalCode::Representation command.response_class = Google::Apis::DfareportingV2_1::PostalCode command.params['profileId'] = profile_id unless profile_id.nil? @@ -6661,8 +6517,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_postal_codes(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/postalCodes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/postalCodes', options) command.response_representation = Google::Apis::DfareportingV2_1::ListPostalCodesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListPostalCodesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -6699,8 +6554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Project::Representation command.response_class = Google::Apis::DfareportingV2_1::Project command.params['profileId'] = profile_id unless profile_id.nil? @@ -6755,8 +6609,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_projects(profile_id, advertiser_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/projects' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/projects', options) command.response_representation = Google::Apis::DfareportingV2_1::ListProjectsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListProjectsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -6798,8 +6651,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_regions(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/regions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/regions', options) command.response_representation = Google::Apis::DfareportingV2_1::ListRegionsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListRegionsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -6836,8 +6688,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_remarketing_list_share(profile_id, remarketing_list_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', options) command.response_representation = Google::Apis::DfareportingV2_1::RemarketingListShare::Representation command.response_class = Google::Apis::DfareportingV2_1::RemarketingListShare command.params['profileId'] = profile_id unless profile_id.nil? @@ -6877,8 +6728,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_remarketing_list_share(profile_id, remarketing_list_id, remarketing_list_share_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingListShares' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingListShares', options) command.request_representation = Google::Apis::DfareportingV2_1::RemarketingListShare::Representation command.request_object = remarketing_list_share_object command.response_representation = Google::Apis::DfareportingV2_1::RemarketingListShare::Representation @@ -6917,8 +6767,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_remarketing_list_share(profile_id, remarketing_list_share_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingListShares' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/remarketingListShares', options) command.request_representation = Google::Apis::DfareportingV2_1::RemarketingListShare::Representation command.request_object = remarketing_list_share_object command.response_representation = Google::Apis::DfareportingV2_1::RemarketingListShare::Representation @@ -6957,8 +6806,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingLists/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingLists/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation command.response_class = Google::Apis::DfareportingV2_1::RemarketingList command.params['profileId'] = profile_id unless profile_id.nil? @@ -6995,8 +6843,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_remarketing_list(profile_id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingLists' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/remarketingLists', options) command.request_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation command.request_object = remarketing_list_object command.response_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation @@ -7055,8 +6902,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_remarketing_lists(profile_id, advertiser_id, active: nil, floodlight_activity_id: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingLists' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingLists', options) command.response_representation = Google::Apis::DfareportingV2_1::ListRemarketingListsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListRemarketingListsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -7102,8 +6948,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_remarketing_list(profile_id, id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingLists' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/remarketingLists', options) command.request_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation command.request_object = remarketing_list_object command.response_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation @@ -7142,8 +6987,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_remarketing_list(profile_id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/remarketingLists' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/remarketingLists', options) command.request_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation command.request_object = remarketing_list_object command.response_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation @@ -7182,8 +7026,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/{reportId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/reports/{reportId}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['reportId'] = report_id unless report_id.nil? command.query['fields'] = fields unless fields.nil? @@ -7219,8 +7062,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/{reportId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}', options) command.response_representation = Google::Apis::DfareportingV2_1::Report::Representation command.response_class = Google::Apis::DfareportingV2_1::Report command.params['profileId'] = profile_id unless profile_id.nil? @@ -7257,8 +7099,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_report(profile_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/reports', options) command.request_representation = Google::Apis::DfareportingV2_1::Report::Representation command.request_object = report_object command.response_representation = Google::Apis::DfareportingV2_1::Report::Representation @@ -7305,8 +7146,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_reports(profile_id, max_results: nil, page_token: nil, scope: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/reports', options) command.response_representation = Google::Apis::DfareportingV2_1::ReportList::Representation command.response_class = Google::Apis::DfareportingV2_1::ReportList command.params['profileId'] = profile_id unless profile_id.nil? @@ -7349,8 +7189,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_report(profile_id, report_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/{reportId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/reports/{reportId}', options) command.request_representation = Google::Apis::DfareportingV2_1::Report::Representation command.request_object = report_object command.response_representation = Google::Apis::DfareportingV2_1::Report::Representation @@ -7392,8 +7231,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def run_report(profile_id, report_id, synchronous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/{reportId}/run' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/reports/{reportId}/run', options) command.response_representation = Google::Apis::DfareportingV2_1::File::Representation command.response_class = Google::Apis::DfareportingV2_1::File command.params['profileId'] = profile_id unless profile_id.nil? @@ -7433,8 +7271,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_report(profile_id, report_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/{reportId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/reports/{reportId}', options) command.request_representation = Google::Apis::DfareportingV2_1::Report::Representation command.request_object = report_object command.response_representation = Google::Apis::DfareportingV2_1::Report::Representation @@ -7475,8 +7312,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_report_compatible_field(profile_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/compatiblefields/query' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/reports/compatiblefields/query', options) command.request_representation = Google::Apis::DfareportingV2_1::Report::Representation command.request_object = report_object command.response_representation = Google::Apis::DfareportingV2_1::CompatibleFields::Representation @@ -7519,11 +7355,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_report_file(profile_id, report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', options) command.download_dest = download_dest end command.response_representation = Google::Apis::DfareportingV2_1::File::Representation @@ -7572,8 +7407,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_report_files(profile_id, report_id, max_results: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/reports/{reportId}/files' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files', options) command.response_representation = Google::Apis::DfareportingV2_1::FileList::Representation command.response_class = Google::Apis::DfareportingV2_1::FileList command.params['profileId'] = profile_id unless profile_id.nil? @@ -7615,8 +7449,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sites/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/sites/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Site::Representation command.response_class = Google::Apis::DfareportingV2_1::Site command.params['profileId'] = profile_id unless profile_id.nil? @@ -7653,8 +7486,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_site(profile_id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sites' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/sites', options) command.request_representation = Google::Apis::DfareportingV2_1::Site::Representation command.request_object = site_object command.response_representation = Google::Apis::DfareportingV2_1::Site::Representation @@ -7728,8 +7560,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_sites(profile_id, accepts_in_stream_video_placements: nil, accepts_interstitial_placements: nil, accepts_publisher_paid_placements: nil, ad_words_site: nil, approved: nil, campaign_ids: nil, directory_site_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, unmapped_site: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sites' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/sites', options) command.response_representation = Google::Apis::DfareportingV2_1::ListSitesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListSitesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -7782,8 +7613,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_site(profile_id, id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sites' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/sites', options) command.request_representation = Google::Apis::DfareportingV2_1::Site::Representation command.request_object = site_object command.response_representation = Google::Apis::DfareportingV2_1::Site::Representation @@ -7822,8 +7652,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_site(profile_id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sites' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/sites', options) command.request_representation = Google::Apis::DfareportingV2_1::Site::Representation command.request_object = site_object command.response_representation = Google::Apis::DfareportingV2_1::Site::Representation @@ -7862,8 +7691,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_size(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sizes/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/sizes/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Size::Representation command.response_class = Google::Apis::DfareportingV2_1::Size command.params['profileId'] = profile_id unless profile_id.nil? @@ -7900,8 +7728,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_size(profile_id, size_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sizes' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/sizes', options) command.request_representation = Google::Apis::DfareportingV2_1::Size::Representation command.request_object = size_object command.response_representation = Google::Apis::DfareportingV2_1::Size::Representation @@ -7946,8 +7773,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_sizes(profile_id, height: nil, iab_standard: nil, ids: nil, width: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/sizes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/sizes', options) command.response_representation = Google::Apis::DfareportingV2_1::ListSizesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListSizesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -7988,8 +7814,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_subaccount(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/subaccounts/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/subaccounts/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation command.response_class = Google::Apis::DfareportingV2_1::Subaccount command.params['profileId'] = profile_id unless profile_id.nil? @@ -8026,8 +7851,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_subaccount(profile_id, subaccount_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/subaccounts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/subaccounts', options) command.request_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation command.request_object = subaccount_object command.response_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation @@ -8081,8 +7905,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subaccounts(profile_id, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/subaccounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/subaccounts', options) command.response_representation = Google::Apis::DfareportingV2_1::ListSubaccountsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListSubaccountsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -8126,8 +7949,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_subaccount(profile_id, id, subaccount_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/subaccounts' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/subaccounts', options) command.request_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation command.request_object = subaccount_object command.response_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation @@ -8166,8 +7988,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_subaccount(profile_id, subaccount_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/subaccounts' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/subaccounts', options) command.request_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation command.request_object = subaccount_object command.response_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation @@ -8206,8 +8027,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_targetable_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/targetableRemarketingLists/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/targetableRemarketingLists/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::TargetableRemarketingList::Representation command.response_class = Google::Apis::DfareportingV2_1::TargetableRemarketingList command.params['profileId'] = profile_id unless profile_id.nil? @@ -8263,8 +8083,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_targetable_remarketing_lists(profile_id, advertiser_id, active: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/targetableRemarketingLists' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/targetableRemarketingLists', options) command.response_representation = Google::Apis::DfareportingV2_1::ListTargetableRemarketingListsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListTargetableRemarketingListsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -8306,8 +8125,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_profile(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}', options) command.response_representation = Google::Apis::DfareportingV2_1::UserProfile::Representation command.response_class = Google::Apis::DfareportingV2_1::UserProfile command.params['profileId'] = profile_id unless profile_id.nil? @@ -8340,8 +8158,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_profiles(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles', options) command.response_representation = Google::Apis::DfareportingV2_1::UserProfileList::Representation command.response_class = Google::Apis::DfareportingV2_1::UserProfileList command.query['fields'] = fields unless fields.nil? @@ -8377,8 +8194,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_role_permission_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRolePermissionGroups/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissionGroups/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::UserRolePermissionGroup::Representation command.response_class = Google::Apis::DfareportingV2_1::UserRolePermissionGroup command.params['profileId'] = profile_id unless profile_id.nil? @@ -8414,8 +8230,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_role_permission_groups(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRolePermissionGroups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissionGroups', options) command.response_representation = Google::Apis::DfareportingV2_1::ListUserRolePermissionGroupsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListUserRolePermissionGroupsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -8452,8 +8267,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_role_permission(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRolePermissions/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissions/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::UserRolePermission::Representation command.response_class = Google::Apis::DfareportingV2_1::UserRolePermission command.params['profileId'] = profile_id unless profile_id.nil? @@ -8491,8 +8305,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_role_permissions(profile_id, ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRolePermissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissions', options) command.response_representation = Google::Apis::DfareportingV2_1::ListUserRolePermissionsResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListUserRolePermissionsResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -8530,8 +8343,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRoles/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'userprofiles/{profileId}/userRoles/{id}', options) command.params['profileId'] = profile_id unless profile_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -8567,8 +8379,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRoles/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRoles/{id}', options) command.response_representation = Google::Apis::DfareportingV2_1::UserRole::Representation command.response_class = Google::Apis::DfareportingV2_1::UserRole command.params['profileId'] = profile_id unless profile_id.nil? @@ -8605,8 +8416,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_user_role(profile_id, user_role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRoles' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'userprofiles/{profileId}/userRoles', options) command.request_representation = Google::Apis::DfareportingV2_1::UserRole::Representation command.request_object = user_role_object command.response_representation = Google::Apis::DfareportingV2_1::UserRole::Representation @@ -8665,8 +8475,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_roles(profile_id, account_user_role_only: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRoles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userprofiles/{profileId}/userRoles', options) command.response_representation = Google::Apis::DfareportingV2_1::ListUserRolesResponse::Representation command.response_class = Google::Apis::DfareportingV2_1::ListUserRolesResponse command.params['profileId'] = profile_id unless profile_id.nil? @@ -8712,8 +8521,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_user_role(profile_id, id, user_role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRoles' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'userprofiles/{profileId}/userRoles', options) command.request_representation = Google::Apis::DfareportingV2_1::UserRole::Representation command.request_object = user_role_object command.response_representation = Google::Apis::DfareportingV2_1::UserRole::Representation @@ -8752,8 +8560,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user_role(profile_id, user_role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userprofiles/{profileId}/userRoles' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'userprofiles/{profileId}/userRoles', options) command.request_representation = Google::Apis::DfareportingV2_1::UserRole::Representation command.request_object = user_role_object command.response_representation = Google::Apis::DfareportingV2_1::UserRole::Representation diff --git a/generated/google/apis/discovery_v1/classes.rb b/generated/google/apis/discovery_v1/classes.rb index 8c8d728bc..edd7b65e6 100644 --- a/generated/google/apis/discovery_v1/classes.rb +++ b/generated/google/apis/discovery_v1/classes.rb @@ -537,6 +537,12 @@ module Google # @return [String] attr_accessor :version + # + # Corresponds to the JSON property `version_module` + # @return [Boolean] + attr_accessor :version_module + alias_method :version_module?, :version_module + def initialize(**args) update!(**args) end @@ -572,6 +578,7 @@ module Google @service_path = args[:service_path] unless args[:service_path].nil? @title = args[:title] unless args[:title].nil? @version = args[:version] unless args[:version].nil? + @version_module = args[:version_module] unless args[:version_module].nil? end # Authentication information. diff --git a/generated/google/apis/discovery_v1/representations.rb b/generated/google/apis/discovery_v1/representations.rb index 03558ba10..ff77f5b2f 100644 --- a/generated/google/apis/discovery_v1/representations.rb +++ b/generated/google/apis/discovery_v1/representations.rb @@ -232,6 +232,7 @@ module Google property :service_path, as: 'servicePath' property :title, as: 'title' property :version, as: 'version' + property :version_module, as: 'version_module' end class Auth diff --git a/generated/google/apis/discovery_v1/service.rb b/generated/google/apis/discovery_v1/service.rb index 05a688f23..d737d2bea 100644 --- a/generated/google/apis/discovery_v1/service.rb +++ b/generated/google/apis/discovery_v1/service.rb @@ -80,8 +80,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_rest_api(api, version, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'apis/{api}/{version}/rest' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'apis/{api}/{version}/rest', options) command.response_representation = Google::Apis::DiscoveryV1::RestDescription::Representation command.response_class = Google::Apis::DiscoveryV1::RestDescription command.params['api'] = api unless api.nil? @@ -119,8 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_apis(name: nil, preferred: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'apis' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'apis', options) command.response_representation = Google::Apis::DiscoveryV1::DirectoryList::Representation command.response_class = Google::Apis::DiscoveryV1::DirectoryList command.query['name'] = name unless name.nil? diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index 83389d68e..8945fe690 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -26,11 +26,14 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20150624' + REVISION = '20151028' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # View your DNS records hosted by Google Cloud DNS AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly' diff --git a/generated/google/apis/dns_v1/service.rb b/generated/google/apis/dns_v1/service.rb index bbba49a58..b6d6d3698 100644 --- a/generated/google/apis/dns_v1/service.rb +++ b/generated/google/apis/dns_v1/service.rb @@ -82,8 +82,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_change(project, managed_zone, change_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones/{managedZone}/changes' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options) command.request_representation = Google::Apis::DnsV1::Change::Representation command.request_object = change_object command.response_representation = Google::Apis::DnsV1::Change::Representation @@ -127,8 +126,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_change(project, managed_zone, change_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones/{managedZone}/changes/{changeId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options) command.response_representation = Google::Apis::DnsV1::Change::Representation command.response_class = Google::Apis::DnsV1::Change command.params['project'] = project unless project.nil? @@ -178,8 +176,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones/{managedZone}/changes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options) command.response_representation = Google::Apis::DnsV1::ListChangesResponse::Representation command.response_class = Google::Apis::DnsV1::ListChangesResponse command.params['project'] = project unless project.nil? @@ -220,8 +217,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_managed_zone(project, managed_zone_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/managedZones', options) command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation command.request_object = managed_zone_object command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation @@ -261,8 +257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_managed_zone(project, managed_zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones/{managedZone}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options) command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['fields'] = fields unless fields.nil? @@ -299,8 +294,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_managed_zone(project, managed_zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones/{managedZone}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options) command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation command.response_class = Google::Apis::DnsV1::ManagedZone command.params['project'] = project unless project.nil? @@ -344,8 +338,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/managedZones', options) command.response_representation = Google::Apis::DnsV1::ListManagedZonesResponse::Representation command.response_class = Google::Apis::DnsV1::ListManagedZonesResponse command.params['project'] = project unless project.nil? @@ -383,8 +376,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}', options) command.response_representation = Google::Apis::DnsV1::Project::Representation command.response_class = Google::Apis::DnsV1::Project command.params['project'] = project unless project.nil? @@ -434,8 +426,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/managedZones/{managedZone}/rrsets' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options) command.response_representation = Google::Apis::DnsV1::ListResourceRecordSetsResponse::Representation command.response_class = Google::Apis::DnsV1::ListResourceRecordSetsResponse command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index 605ccc498..8b698a626 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20150326' + REVISION = '20150925' end end end diff --git a/generated/google/apis/doubleclickbidmanager_v1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1/classes.rb index a7ae73c9d..1ae654bf5 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/classes.rb @@ -26,6 +26,12 @@ module Google class DownloadLineItemsRequest include Google::Apis::Core::Hashable + # File specification (column names, types, order) in which the line items will + # be returned. Default to EWF. + # Corresponds to the JSON property `fileSpec` + # @return [String] + attr_accessor :file_spec + # Ids of the specified filter type used to filter line items to fetch. If # omitted, all the line items will be returned. # Corresponds to the JSON property `filterIds` @@ -48,6 +54,7 @@ module Google # Update properties of this object def update!(**args) + @file_spec = args[:file_spec] unless args[:file_spec].nil? @filter_ids = args[:filter_ids] unless args[:filter_ids].nil? @filter_type = args[:filter_type] unless args[:filter_type].nil? @format = args[:format] unless args[:format].nil? @@ -58,8 +65,8 @@ module Google class DownloadLineItemsResponse include Google::Apis::Core::Hashable - # Retrieved line items in CSV format. Refer to Entity Write File Format for - # more information on file format. + # Retrieved line items in CSV format. Refer to Entity Write File Format or + # Structured Data File Format for more information on file formats. # Corresponds to the JSON property `lineItems` # @return [String] attr_accessor :line_items diff --git a/generated/google/apis/doubleclickbidmanager_v1/representations.rb b/generated/google/apis/doubleclickbidmanager_v1/representations.rb index e80febb9b..4cdb3f083 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/representations.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/representations.rb @@ -101,6 +101,7 @@ module Google class DownloadLineItemsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :file_spec, as: 'fileSpec' collection :filter_ids, as: 'filterIds' property :filter_type, as: 'filterType' property :format, as: 'format' diff --git a/generated/google/apis/doubleclickbidmanager_v1/service.rb b/generated/google/apis/doubleclickbidmanager_v1/service.rb index e813e7500..36571982b 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/service.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/service.rb @@ -76,8 +76,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lineitems/downloadlineitems' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'lineitems/downloadlineitems', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsRequest::Representation command.request_object = download_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse::Representation @@ -112,8 +111,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lineitems/uploadlineitems' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'lineitems/uploadlineitems', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsRequest::Representation command.request_object = upload_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse::Representation @@ -148,8 +146,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_query(query_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'query' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'query', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.request_object = query_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation @@ -185,8 +182,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def deletequery(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'query/{queryId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'query/{queryId}', options) command.params['queryId'] = query_id unless query_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -219,8 +215,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'query/{queryId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'query/{queryId}', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::Query command.params['queryId'] = query_id unless query_id.nil? @@ -253,8 +248,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_queries(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'queries' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'queries', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse command.query['fields'] = fields unless fields.nil? @@ -289,8 +283,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'query/{queryId}' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'query/{queryId}', options) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::RunQueryRequest::Representation command.request_object = run_query_request_object command.params['queryId'] = query_id unless query_id.nil? @@ -325,8 +318,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_reports(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'queries/{queryId}/reports' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'queries/{queryId}/reports', options) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse command.params['queryId'] = query_id unless query_id.nil? diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index 3cafa0672..4ee6edfc4 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '20150722' + REVISION = '20151105' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/doubleclicksearch_v2/classes.rb b/generated/google/apis/doubleclicksearch_v2/classes.rb index 3940c704d..3623fd434 100644 --- a/generated/google/apis/doubleclicksearch_v2/classes.rb +++ b/generated/google/apis/doubleclicksearch_v2/classes.rb @@ -532,11 +532,17 @@ module Google attr_accessor :header_text # The platform that is used to provide data for the custom dimension. Acceptable - # values are "Floodlight". + # values are "floodlight". # Corresponds to the JSON property `platformSource` # @return [String] attr_accessor :platform_source + # Provide different source for product items. Acceptable values are "advertised" + # and "sold". + # Corresponds to the JSON property `productReportPerspective` + # @return [String] + attr_accessor :product_report_perspective + # Name of a saved column to include in the report. The report must be scoped at # advertiser or lower, and this saved column must already be created in the # DoubleClick Search UI. @@ -564,6 +570,7 @@ module Google @group_by_column = args[:group_by_column] unless args[:group_by_column].nil? @header_text = args[:header_text] unless args[:header_text].nil? @platform_source = args[:platform_source] unless args[:platform_source].nil? + @product_report_perspective = args[:product_report_perspective] unless args[:product_report_perspective].nil? @saved_column_name = args[:saved_column_name] unless args[:saved_column_name].nil? @start_date = args[:start_date] unless args[:start_date].nil? end diff --git a/generated/google/apis/doubleclicksearch_v2/representations.rb b/generated/google/apis/doubleclicksearch_v2/representations.rb index cba88f220..771252ee4 100644 --- a/generated/google/apis/doubleclicksearch_v2/representations.rb +++ b/generated/google/apis/doubleclicksearch_v2/representations.rb @@ -203,6 +203,7 @@ module Google property :group_by_column, as: 'groupByColumn' property :header_text, as: 'headerText' property :platform_source, as: 'platformSource' + property :product_report_perspective, as: 'productReportPerspective' property :saved_column_name, as: 'savedColumnName' property :start_date, as: 'startDate' end diff --git a/generated/google/apis/doubleclicksearch_v2/service.rb b/generated/google/apis/doubleclicksearch_v2/service.rb index 4552761cb..88ba67283 100644 --- a/generated/google/apis/doubleclicksearch_v2/service.rb +++ b/generated/google/apis/doubleclicksearch_v2/service.rb @@ -98,8 +98,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_conversion(agency_id, advertiser_id, engine_account_id, end_date, row_count, start_date, start_row, ad_group_id: nil, ad_id: nil, campaign_id: nil, criterion_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion', options) command.response_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation command.response_class = Google::Apis::DoubleclicksearchV2::ConversionList command.params['agencyId'] = agency_id unless agency_id.nil? @@ -143,8 +142,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_conversion(conversion_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'conversion' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'conversion', options) command.request_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation command.request_object = conversion_list_object command.response_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation @@ -194,8 +192,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_conversion(advertiser_id, agency_id, end_date, engine_account_id, row_count, start_date, start_row, conversion_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'conversion' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'conversion', options) command.request_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation command.request_object = conversion_list_object command.response_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation @@ -237,8 +234,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_conversion(conversion_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'conversion' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'conversion', options) command.request_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation command.request_object = conversion_list_object command.response_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation @@ -273,9 +269,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_availability(update_availability_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'conversion/updateAvailability' - command = make_simple_command(:post, path, options) + def update_conversion_availability(update_availability_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'conversion/updateAvailability', options) command.request_representation = Google::Apis::DoubleclicksearchV2::UpdateAvailabilityRequest::Representation command.request_object = update_availability_request_object command.response_representation = Google::Apis::DoubleclicksearchV2::UpdateAvailabilityResponse::Representation @@ -310,8 +305,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def generate_report(report_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'reports/generate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'reports/generate', options) command.request_representation = Google::Apis::DoubleclicksearchV2::ReportRequest::Representation command.request_object = report_request_object command.response_representation = Google::Apis::DoubleclicksearchV2::Report::Representation @@ -347,8 +341,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_report(report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'reports/{reportId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports/{reportId}', options) command.response_representation = Google::Apis::DoubleclicksearchV2::Report::Representation command.response_class = Google::Apis::DoubleclicksearchV2::Report command.params['reportId'] = report_id unless report_id.nil? @@ -386,12 +379,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_file_report(report_id, report_fragment, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'reports/{reportId}/files/{reportFragment}' + def get_report_file(report_id, report_fragment, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports/{reportId}/files/{reportFragment}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'reports/{reportId}/files/{reportFragment}', options) command.download_dest = download_dest end command.params['reportId'] = report_id unless report_id.nil? @@ -426,8 +418,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def request_report(report_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'reports' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'reports', options) command.request_representation = Google::Apis::DoubleclicksearchV2::ReportRequest::Representation command.request_object = report_request_object command.response_representation = Google::Apis::DoubleclicksearchV2::Report::Representation @@ -465,8 +456,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_saved_columns(agency_id, advertiser_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns', options) command.response_representation = Google::Apis::DoubleclicksearchV2::SavedColumnList::Representation command.response_class = Google::Apis::DoubleclicksearchV2::SavedColumnList command.params['agencyId'] = agency_id unless agency_id.nil? diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 2f144e4f0..54ab5311d 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20150716' + REVISION = '20151112' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index e99bfc353..d25e25817 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -33,10 +33,10 @@ module Google attr_accessor :additional_role_info # The domain sharing policy for the current user. Possible values are: - # - ALLOWED - # - ALLOWED_WITH_WARNING - # - INCOMING_ONLY - # - DISALLOWED + # - allowed + # - allowedWithWarning + # - incomingOnly + # - disallowed # Corresponds to the JSON property `domainSharingPolicy` # @return [String] attr_accessor :domain_sharing_policy @@ -1268,15 +1268,16 @@ module Google # @return [Hash] attr_accessor :export_links - # The file extension used when downloading this file. This field is read only. - # To set the extension, include it in the title when creating the file. This is - # only populated for files with content stored in Drive. + # The final component of fullFileExtension with trailing text that does not + # appear to be part of the extension removed. This field is only populated for + # files with content stored in Drive; it is not populated for Google Docs or + # shortcut files. # Corresponds to the JSON property `fileExtension` # @return [String] attr_accessor :file_extension - # The size of the file in bytes. This is only populated for files with content - # stored in Drive. + # The size of the file in bytes. This field is only populated for files with + # content stored in Drive; it is not populated for Google Docs or shortcut files. # Corresponds to the JSON property `fileSize` # @return [String] attr_accessor :file_size @@ -1289,8 +1290,18 @@ module Google # @return [String] attr_accessor :folder_color_rgb - # The ID of the file's head revision. This will only be populated for files with - # content stored in Drive. + # The full file extension; extracted from the title. May contain multiple + # concatenated extensions, such as "tar.gz". Removing an extension from the + # title does not clear this field; however, changing the extension on the title + # does update this field. This field is only populated for files with content + # stored in Drive; it is not populated for Google Docs or shortcut files. + # Corresponds to the JSON property `fullFileExtension` + # @return [String] + attr_accessor :full_file_extension + + # The ID of the file's head revision. This field is only populated for files + # with content stored in Drive; it is not populated for Google Docs or shortcut + # files. # Corresponds to the JSON property `headRevisionId` # @return [String] attr_accessor :head_revision_id @@ -1341,14 +1352,14 @@ module Google # @return [DateTime] attr_accessor :last_viewed_by_me_date - # Time this file was explicitly marked viewed by the user (formatted RFC 3339 - # timestamp). + # Deprecated. # Corresponds to the JSON property `markedViewedByMeDate` # @return [DateTime] attr_accessor :marked_viewed_by_me_date - # An MD5 checksum for the content of this file. This is populated only for files - # with content stored in Drive. + # An MD5 checksum for the content of this file. This field is only populated for + # files with content stored in Drive; it is not populated for Google Docs or + # shortcut files. # Corresponds to the JSON property `md5Checksum` # @return [String] attr_accessor :md5_checksum @@ -1381,8 +1392,8 @@ module Google # The original filename if the file was uploaded manually, or the original title # if the file was inserted through the API. Note that renames of the title will - # not change the original filename. This will only be populated on files with - # content stored in Drive. + # not change the original filename. This field is only populated for files with + # content stored in Drive; it is not populated for Google Docs or shortcut files. # Corresponds to the JSON property `originalFilename` # @return [String] attr_accessor :original_filename @@ -1535,6 +1546,7 @@ module Google @file_extension = args[:file_extension] unless args[:file_extension].nil? @file_size = args[:file_size] unless args[:file_size].nil? @folder_color_rgb = args[:folder_color_rgb] unless args[:folder_color_rgb].nil? + @full_file_extension = args[:full_file_extension] unless args[:full_file_extension].nil? @head_revision_id = args[:head_revision_id] unless args[:head_revision_id].nil? @icon_link = args[:icon_link] unless args[:icon_link].nil? @id = args[:id] unless args[:id].nil? @@ -1778,7 +1790,8 @@ module Google attr_accessor :hidden alias_method :hidden?, :hidden - # Whether viewers are prevented from downloading this file. + # Whether viewers and commenters are prevented from downloading, printing, and + # copying this file. # Corresponds to the JSON property `restricted` # @return [Boolean] attr_accessor :restricted @@ -1925,6 +1938,37 @@ module Google end end + # A list of generated IDs which can be provided in insert requests + class GeneratedIds + include Google::Apis::Core::Hashable + + # The IDs generated for the requesting user in the specified space. + # Corresponds to the JSON property `ids` + # @return [Array] + attr_accessor :ids + + # This is always drive#generatedIds + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The type of file that can be created with these IDs. + # Corresponds to the JSON property `space` + # @return [String] + attr_accessor :space + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ids = args[:ids] unless args[:ids].nil? + @kind = args[:kind] unless args[:kind].nil? + @space = args[:space] unless args[:space].nil? + end + end + # A list of a file's parents. class ParentList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/drive_v2/representations.rb b/generated/google/apis/drive_v2/representations.rb index f828cce80..19e830c38 100644 --- a/generated/google/apis/drive_v2/representations.rb +++ b/generated/google/apis/drive_v2/representations.rb @@ -138,6 +138,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class GeneratedIds + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ParentList class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -492,6 +496,7 @@ module Google property :file_extension, as: 'fileExtension' property :file_size, as: 'fileSize' property :folder_color_rgb, as: 'folderColorRgb' + property :full_file_extension, as: 'fullFileExtension' property :head_revision_id, as: 'headRevisionId' property :icon_link, as: 'iconLink' property :id, as: 'id' @@ -636,6 +641,15 @@ module Google end end + class GeneratedIds + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ids, as: 'ids' + property :kind, as: 'kind' + property :space, as: 'space' + end + end + class ParentList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 2561041ae..454ab5162 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -85,8 +85,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_about(include_subscribed: nil, max_change_id_count: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'about' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'about', options) command.response_representation = Google::Apis::DriveV2::About::Representation command.response_class = Google::Apis::DriveV2::About command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil? @@ -123,8 +122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_app(app_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'apps/{appId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'apps/{appId}', options) command.response_representation = Google::Apis::DriveV2::App::Representation command.response_class = Google::Apis::DriveV2::App command.params['appId'] = app_id unless app_id.nil? @@ -170,8 +168,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_apps(app_filter_extensions: nil, app_filter_mime_types: nil, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'apps' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'apps', options) command.response_representation = Google::Apis::DriveV2::AppList::Representation command.response_class = Google::Apis::DriveV2::AppList command.query['appFilterExtensions'] = app_filter_extensions unless app_filter_extensions.nil? @@ -208,8 +205,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_change(change_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'changes/{changeId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'changes/{changeId}', options) command.response_representation = Google::Apis::DriveV2::Change::Representation command.response_class = Google::Apis::DriveV2::Change command.params['changeId'] = change_id unless change_id.nil? @@ -257,8 +253,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_changes(include_deleted: nil, include_subscribed: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'changes' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'changes', options) command.response_representation = Google::Apis::DriveV2::ChangeList::Representation command.response_class = Google::Apis::DriveV2::ChangeList command.query['includeDeleted'] = include_deleted unless include_deleted.nil? @@ -312,8 +307,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_change(channel_object = nil, include_deleted: nil, include_subscribed: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'changes/watch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'changes/watch', options) command.request_representation = Google::Apis::DriveV2::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::DriveV2::Channel::Representation @@ -354,8 +348,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channels/stop' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'channels/stop', options) command.request_representation = Google::Apis::DriveV2::Channel::Representation command.request_object = channel_object command.query['fields'] = fields unless fields.nil? @@ -391,8 +384,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_child(folder_id, child_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{folderId}/children/{childId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{folderId}/children/{childId}', options) command.params['folderId'] = folder_id unless folder_id.nil? command.params['childId'] = child_id unless child_id.nil? command.query['fields'] = fields unless fields.nil? @@ -428,8 +420,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_child(folder_id, child_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{folderId}/children/{childId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{folderId}/children/{childId}', options) command.response_representation = Google::Apis::DriveV2::ChildReference::Representation command.response_class = Google::Apis::DriveV2::ChildReference command.params['folderId'] = folder_id unless folder_id.nil? @@ -466,8 +457,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_child(folder_id, child_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{folderId}/children' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{folderId}/children', options) command.request_representation = Google::Apis::DriveV2::ChildReference::Representation command.request_object = child_reference_object command.response_representation = Google::Apis::DriveV2::ChildReference::Representation @@ -484,6 +474,14 @@ module Google # The ID of the folder. # @param [Fixnum] max_results # Maximum number of children to return. + # @param [String] order_by + # A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', ' + # lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', ' + # recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending + # by default, but may be reversed with the 'desc' modifier. Example usage: ? + # orderBy=folder,modifiedDate desc,title. Please note that there is a current + # limitation for users with approximately one million files in which the + # requested sort order is ignored. # @param [String] page_token # Page token for children. # @param [String] q @@ -509,13 +507,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_children(folder_id, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{folderId}/children' - command = make_simple_command(:get, path, options) + def list_children(folder_id, max_results: nil, order_by: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'files/{folderId}/children', options) command.response_representation = Google::Apis::DriveV2::ChildList::Representation command.response_class = Google::Apis::DriveV2::ChildList command.params['folderId'] = folder_id unless folder_id.nil? command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['q'] = q unless q.nil? command.query['fields'] = fields unless fields.nil? @@ -551,8 +549,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_comment(file_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}', options) command.params['fileId'] = file_id unless file_id.nil? command.params['commentId'] = comment_id unless comment_id.nil? command.query['fields'] = fields unless fields.nil? @@ -591,8 +588,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_comment(file_id, comment_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}', options) command.response_representation = Google::Apis::DriveV2::Comment::Representation command.response_class = Google::Apis::DriveV2::Comment command.params['fileId'] = file_id unless file_id.nil? @@ -630,8 +626,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_comment(file_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/comments', options) command.request_representation = Google::Apis::DriveV2::Comment::Representation command.request_object = comment_object command.response_representation = Google::Apis::DriveV2::Comment::Representation @@ -680,8 +675,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_comments(file_id, include_deleted: nil, max_results: nil, page_token: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/comments', options) command.response_representation = Google::Apis::DriveV2::CommentList::Representation command.response_class = Google::Apis::DriveV2::CommentList command.params['fileId'] = file_id unless file_id.nil? @@ -723,8 +717,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_comment(file_id, comment_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}', options) command.request_representation = Google::Apis::DriveV2::Comment::Representation command.request_object = comment_object command.response_representation = Google::Apis::DriveV2::Comment::Representation @@ -765,8 +758,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_comment(file_id, comment_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}', options) command.request_representation = Google::Apis::DriveV2::Comment::Representation command.request_object = comment_object command.response_representation = Google::Apis::DriveV2::Comment::Representation @@ -821,8 +813,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/copy' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/copy', options) command.request_representation = Google::Apis::DriveV2::File::Representation command.request_object = file_object command.response_representation = Google::Apis::DriveV2::File::Representation @@ -867,8 +858,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{fileId}', options) command.params['fileId'] = file_id unless file_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -899,8 +889,46 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def empty_trash(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/trash' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/trash', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Generates a set of file IDs which can be provided in insert requests. + # @param [Fixnum] max_results + # Maximum number of IDs to return. + # @param [String] space + # The space in which the IDs can be used to create new files. Supported values + # are 'drive' and 'appDataFolder'. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DriveV2::GeneratedIds] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DriveV2::GeneratedIds] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def generate_file_ids(max_results: nil, space: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'files/generateIds', options) + command.response_representation = Google::Apis::DriveV2::GeneratedIds::Representation + command.response_class = Google::Apis::DriveV2::GeneratedIds + command.query['maxResults'] = max_results unless max_results.nil? + command.query['space'] = space unless space.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -919,7 +947,8 @@ module Google # Specifies the Revision ID that should be downloaded. Ignored unless alt=media # is specified. # @param [Boolean] update_viewed_date - # Whether to update the view date after successfully retrieving the file. + # Deprecated: Use files.update with modifiedDateBehavior=noChange, + # updateViewedDate=true and an empty request body. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -944,11 +973,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'files/{fileId}' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'files/{fileId}', options) command.download_dest = download_dest end command.response_representation = Google::Apis::DriveV2::File::Representation @@ -1010,11 +1038,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'files' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'files', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1041,6 +1068,14 @@ module Google # The body of items (files/documents) to which the query applies. # @param [Fixnum] max_results # Maximum number of files to return. + # @param [String] order_by + # A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', ' + # lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', ' + # recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending + # by default, but may be reversed with the 'desc' modifier. Example usage: ? + # orderBy=folder,modifiedDate desc,title. Please note that there is a current + # limitation for users with approximately one million files in which the + # requested sort order is ignored. # @param [String] page_token # Page token for files. # @param [String] projection @@ -1071,13 +1106,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_files(corpus: nil, max_results: nil, page_token: nil, projection: nil, q: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files' - command = make_simple_command(:get, path, options) + def list_files(corpus: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'files', options) command.response_representation = Google::Apis::DriveV2::FileList::Representation command.response_class = Google::Apis::DriveV2::FileList command.query['corpus'] = corpus unless corpus.nil? command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['projection'] = projection unless projection.nil? command.query['q'] = q unless q.nil? @@ -1095,15 +1130,17 @@ module Google # @param [String] add_parents # Comma-separated list of parent IDs to add. # @param [Boolean] convert - # Whether to convert this file to the corresponding Google Docs format. + # This parameter is deprecated and has no function. # @param [String] modified_date_behavior - # How the modifiedDate field should be updated. This overrides setModifiedDate. + # Determines the behavior in which modifiedDate is updated. This overrides + # setModifiedDate. # @param [Boolean] new_revision # Whether a blob upload should create a new revision. If false, the blob data in # the current head revision is replaced. If true or not set, a new blob is # created as head revision, and previous unpinned revisions are preserved for a # short period of time. Pinned revisions are stored indefinitely, using - # additional storage quota, up to a maximum of 200 revisions. + # additional storage quota, up to a maximum of 200 revisions. For details on how + # revisions are retained, see the Drive Help Center. # @param [Boolean] ocr # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. # @param [String] ocr_language @@ -1145,8 +1182,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'files/{fileId}', options) command.request_representation = Google::Apis::DriveV2::File::Representation command.request_object = file_object command.response_representation = Google::Apis::DriveV2::File::Representation @@ -1196,8 +1232,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def touch_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/touch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/touch', options) command.response_representation = Google::Apis::DriveV2::File::Representation command.response_class = Google::Apis::DriveV2::File command.params['fileId'] = file_id unless file_id.nil? @@ -1232,8 +1267,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def trash_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/trash' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/trash', options) command.response_representation = Google::Apis::DriveV2::File::Representation command.response_class = Google::Apis::DriveV2::File command.params['fileId'] = file_id unless file_id.nil? @@ -1268,8 +1302,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def untrash_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/untrash' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/untrash', options) command.response_representation = Google::Apis::DriveV2::File::Representation command.response_class = Google::Apis::DriveV2::File command.params['fileId'] = file_id unless file_id.nil? @@ -1286,15 +1319,17 @@ module Google # @param [String] add_parents # Comma-separated list of parent IDs to add. # @param [Boolean] convert - # Whether to convert this file to the corresponding Google Docs format. + # This parameter is deprecated and has no function. # @param [String] modified_date_behavior - # How the modifiedDate field should be updated. This overrides setModifiedDate. + # Determines the behavior in which modifiedDate is updated. This overrides + # setModifiedDate. # @param [Boolean] new_revision # Whether a blob upload should create a new revision. If false, the blob data in # the current head revision is replaced. If true or not set, a new blob is # created as head revision, and previous unpinned revisions are preserved for a # short period of time. Pinned revisions are stored indefinitely, using - # additional storage quota, up to a maximum of 200 revisions. + # additional storage quota, up to a maximum of 200 revisions. For details on how + # revisions are retained, see the Drive Help Center. # @param [Boolean] ocr # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. # @param [String] ocr_language @@ -1340,11 +1375,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'files/{fileId}' if upload_source.nil? - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'files/{fileId}', options) else - command = make_upload_command(:put, path, options) + command = make_upload_command(:put, 'files/{fileId}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1385,7 +1419,8 @@ module Google # Specifies the Revision ID that should be downloaded. Ignored unless alt=media # is specified. # @param [Boolean] update_viewed_date - # Whether to update the view date after successfully retrieving the file. + # Deprecated: Use files.update with modifiedDateBehavior=noChange, + # updateViewedDate=true and an empty request body. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1410,11 +1445,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'files/{fileId}/watch' if download_dest.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/watch', options) else - command = make_download_command(:post, path, options) + command = make_download_command(:post, 'files/{fileId}/watch', options) command.download_dest = download_dest end command.request_representation = Google::Apis::DriveV2::Channel::Representation @@ -1459,8 +1493,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_parent(file_id, parent_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/parents/{parentId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{fileId}/parents/{parentId}', options) command.params['fileId'] = file_id unless file_id.nil? command.params['parentId'] = parent_id unless parent_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1496,8 +1529,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_parent(file_id, parent_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/parents/{parentId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/parents/{parentId}', options) command.response_representation = Google::Apis::DriveV2::ParentReference::Representation command.response_class = Google::Apis::DriveV2::ParentReference command.params['fileId'] = file_id unless file_id.nil? @@ -1534,8 +1566,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_parent(file_id, parent_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/parents' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/parents', options) command.request_representation = Google::Apis::DriveV2::ParentReference::Representation command.request_object = parent_reference_object command.response_representation = Google::Apis::DriveV2::ParentReference::Representation @@ -1572,8 +1603,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_parents(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/parents' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/parents', options) command.response_representation = Google::Apis::DriveV2::ParentList::Representation command.response_class = Google::Apis::DriveV2::ParentList command.params['fileId'] = file_id unless file_id.nil? @@ -1610,8 +1640,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/permissions/{permissionId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options) command.params['fileId'] = file_id unless file_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1647,8 +1676,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/permissions/{permissionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options) command.response_representation = Google::Apis::DriveV2::Permission::Representation command.response_class = Google::Apis::DriveV2::Permission command.params['fileId'] = file_id unless file_id.nil? @@ -1684,8 +1712,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_permission_id_for_email(email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'permissionIds/{email}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'permissionIds/{email}', options) command.response_representation = Google::Apis::DriveV2::PermissionId::Representation command.response_class = Google::Apis::DriveV2::PermissionId command.params['email'] = email unless email.nil? @@ -1726,8 +1753,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/permissions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/permissions', options) command.request_representation = Google::Apis::DriveV2::Permission::Representation command.request_object = permission_object command.response_representation = Google::Apis::DriveV2::Permission::Representation @@ -1766,8 +1792,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_permissions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/permissions', options) command.response_representation = Google::Apis::DriveV2::PermissionList::Representation command.response_class = Google::Apis::DriveV2::PermissionList command.params['fileId'] = file_id unless file_id.nil? @@ -1777,7 +1802,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates a permission. This method supports patch semantics. + # Updates a permission using patch semantics. # @param [String] file_id # The ID for the file. # @param [String] permission_id @@ -1808,8 +1833,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/permissions/{permissionId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::DriveV2::Permission::Representation command.request_object = permission_object command.response_representation = Google::Apis::DriveV2::Permission::Representation @@ -1854,8 +1878,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/permissions/{permissionId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::DriveV2::Permission::Representation command.request_object = permission_object command.response_representation = Google::Apis::DriveV2::Permission::Representation @@ -1898,8 +1921,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_property(file_id, property_key, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/properties/{propertyKey}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{fileId}/properties/{propertyKey}', options) command.params['fileId'] = file_id unless file_id.nil? command.params['propertyKey'] = property_key unless property_key.nil? command.query['visibility'] = visibility unless visibility.nil? @@ -1938,8 +1960,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_property(file_id, property_key, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/properties/{propertyKey}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/properties/{propertyKey}', options) command.response_representation = Google::Apis::DriveV2::Property::Representation command.response_class = Google::Apis::DriveV2::Property command.params['fileId'] = file_id unless file_id.nil? @@ -1977,8 +1998,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_property(file_id, property_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/properties' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/properties', options) command.request_representation = Google::Apis::DriveV2::Property::Representation command.request_object = property_object command.response_representation = Google::Apis::DriveV2::Property::Representation @@ -2015,8 +2035,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_properties(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/properties' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/properties', options) command.response_representation = Google::Apis::DriveV2::PropertyList::Representation command.response_class = Google::Apis::DriveV2::PropertyList command.params['fileId'] = file_id unless file_id.nil? @@ -2056,8 +2075,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_property(file_id, property_key, property_object = nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/properties/{propertyKey}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'files/{fileId}/properties/{propertyKey}', options) command.request_representation = Google::Apis::DriveV2::Property::Representation command.request_object = property_object command.response_representation = Google::Apis::DriveV2::Property::Representation @@ -2101,8 +2119,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_property(file_id, property_key, property_object = nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/properties/{propertyKey}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'files/{fileId}/properties/{propertyKey}', options) command.request_representation = Google::Apis::DriveV2::Property::Representation command.request_object = property_object command.response_representation = Google::Apis::DriveV2::Property::Representation @@ -2148,11 +2165,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_realtime(file_id, revision: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'files/{fileId}/realtime' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/realtime', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'files/{fileId}/realtime', options) command.download_dest = download_dest end command.params['fileId'] = file_id unless file_id.nil? @@ -2198,11 +2214,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_realtime(file_id, base_revision: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'files/{fileId}/realtime' if upload_source.nil? - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'files/{fileId}/realtime', options) else - command = make_upload_command(:put, path, options) + command = make_upload_command(:put, 'files/{fileId}/realtime', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -2243,8 +2258,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_reply(file_id, comment_id, reply_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}/replies/{replyId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options) command.params['fileId'] = file_id unless file_id.nil? command.params['commentId'] = comment_id unless comment_id.nil? command.params['replyId'] = reply_id unless reply_id.nil? @@ -2285,8 +2299,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_reply(file_id, comment_id, reply_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}/replies/{replyId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options) command.response_representation = Google::Apis::DriveV2::CommentReply::Representation command.response_class = Google::Apis::DriveV2::CommentReply command.params['fileId'] = file_id unless file_id.nil? @@ -2327,8 +2340,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_reply(file_id, comment_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}/replies' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'files/{fileId}/comments/{commentId}/replies', options) command.request_representation = Google::Apis::DriveV2::CommentReply::Representation command.request_object = comment_reply_object command.response_representation = Google::Apis::DriveV2::CommentReply::Representation @@ -2377,8 +2389,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_replies(file_id, comment_id, include_deleted: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}/replies' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies', options) command.response_representation = Google::Apis::DriveV2::CommentReplyList::Representation command.response_class = Google::Apis::DriveV2::CommentReplyList command.params['fileId'] = file_id unless file_id.nil? @@ -2422,8 +2433,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_reply(file_id, comment_id, reply_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}/replies/{replyId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options) command.request_representation = Google::Apis::DriveV2::CommentReply::Representation command.request_object = comment_reply_object command.response_representation = Google::Apis::DriveV2::CommentReply::Representation @@ -2467,8 +2477,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_reply(file_id, comment_id, reply_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/comments/{commentId}/replies/{replyId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options) command.request_representation = Google::Apis::DriveV2::CommentReply::Representation command.request_object = comment_reply_object command.response_representation = Google::Apis::DriveV2::CommentReply::Representation @@ -2509,8 +2518,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_revision(file_id, revision_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/revisions/{revisionId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'files/{fileId}/revisions/{revisionId}', options) command.params['fileId'] = file_id unless file_id.nil? command.params['revisionId'] = revision_id unless revision_id.nil? command.query['fields'] = fields unless fields.nil? @@ -2546,8 +2554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_revision(file_id, revision_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/revisions/{revisionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/revisions/{revisionId}', options) command.response_representation = Google::Apis::DriveV2::Revision::Representation command.response_class = Google::Apis::DriveV2::Revision command.params['fileId'] = file_id unless file_id.nil? @@ -2583,8 +2590,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/revisions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'files/{fileId}/revisions', options) command.response_representation = Google::Apis::DriveV2::RevisionList::Representation command.response_class = Google::Apis::DriveV2::RevisionList command.params['fileId'] = file_id unless file_id.nil? @@ -2622,8 +2628,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_revision(file_id, revision_id, revision_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/revisions/{revisionId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'files/{fileId}/revisions/{revisionId}', options) command.request_representation = Google::Apis::DriveV2::Revision::Representation command.request_object = revision_object command.response_representation = Google::Apis::DriveV2::Revision::Representation @@ -2664,8 +2669,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_revision(file_id, revision_id, revision_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'files/{fileId}/revisions/{revisionId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'files/{fileId}/revisions/{revisionId}', options) command.request_representation = Google::Apis::DriveV2::Revision::Representation command.request_object = revision_object command.response_representation = Google::Apis::DriveV2::Revision::Representation diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index 70bcb75d7..07f3c9881 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/ module FitnessV1 VERSION = 'V1' - REVISION = '20150720' + REVISION = '20151021' # View your activity information in Google Fit AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' diff --git a/generated/google/apis/fitness_v1/service.rb b/generated/google/apis/fitness_v1/service.rb index 2d5d61238..ebfccaf02 100644 --- a/generated/google/apis/fitness_v1/service.rb +++ b/generated/google/apis/fitness_v1/service.rb @@ -86,8 +86,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_user_data_source(user_id, data_source_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/dataSources', options) command.request_representation = Google::Apis::FitnessV1::DataSource::Representation command.request_object = data_source_object command.response_representation = Google::Apis::FitnessV1::DataSource::Representation @@ -127,8 +126,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources/{dataSourceId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{userId}/dataSources/{dataSourceId}', options) command.response_representation = Google::Apis::FitnessV1::DataSource::Representation command.response_class = Google::Apis::FitnessV1::DataSource command.params['userId'] = user_id unless user_id.nil? @@ -167,8 +165,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources/{dataSourceId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}', options) command.response_representation = Google::Apis::FitnessV1::DataSource::Representation command.response_class = Google::Apis::FitnessV1::DataSource command.params['userId'] = user_id unless user_id.nil? @@ -210,8 +207,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_data_sources(user_id, data_type_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/dataSources', options) command.response_representation = Google::Apis::FitnessV1::ListDataSourcesResponse::Representation command.response_class = Google::Apis::FitnessV1::ListDataSourcesResponse command.params['userId'] = user_id unless user_id.nil? @@ -256,8 +252,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_user_data_source(user_id, data_source_id, data_source_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources/{dataSourceId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{userId}/dataSources/{dataSourceId}', options) command.request_representation = Google::Apis::FitnessV1::DataSource::Representation command.request_object = data_source_object command.response_representation = Google::Apis::FitnessV1::DataSource::Representation @@ -303,8 +298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user_data_source(user_id, data_source_id, data_source_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources/{dataSourceId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{userId}/dataSources/{dataSourceId}', options) command.request_representation = Google::Apis::FitnessV1::DataSource::Representation command.request_object = data_source_object command.response_representation = Google::Apis::FitnessV1::DataSource::Representation @@ -359,8 +353,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_data_source_dataset(user_id, data_source_id, dataset_id, current_time_millis: nil, modified_time_millis: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options) command.params['userId'] = user_id unless user_id.nil? command.params['dataSourceId'] = data_source_id unless data_source_id.nil? command.params['datasetId'] = dataset_id unless dataset_id.nil? @@ -419,8 +412,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_data_source_dataset(user_id, data_source_id, dataset_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options) command.response_representation = Google::Apis::FitnessV1::Dataset::Representation command.response_class = Google::Apis::FitnessV1::Dataset command.params['userId'] = user_id unless user_id.nil? @@ -475,8 +467,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_user_data_source_dataset(user_id, data_source_id, dataset_id, dataset_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options) command.request_representation = Google::Apis::FitnessV1::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::FitnessV1::Dataset::Representation @@ -519,9 +510,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def aggregate(user_id, aggregate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/dataset:aggregate' - command = make_simple_command(:post, path, options) + def aggregate_dataset(user_id, aggregate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{userId}/dataset:aggregate', options) command.request_representation = Google::Apis::FitnessV1::AggregateRequest::Representation command.request_object = aggregate_request_object command.response_representation = Google::Apis::FitnessV1::AggregateResponse::Representation @@ -563,8 +553,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_session(user_id, session_id, current_time_millis: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/sessions/{sessionId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{userId}/sessions/{sessionId}', options) command.params['userId'] = user_id unless user_id.nil? command.params['sessionId'] = session_id unless session_id.nil? command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil? @@ -614,8 +603,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_sessions(user_id, end_time: nil, include_deleted: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/sessions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/sessions', options) command.response_representation = Google::Apis::FitnessV1::ListSessionsResponse::Representation command.response_class = Google::Apis::FitnessV1::ListSessionsResponse command.params['userId'] = user_id unless user_id.nil? @@ -660,8 +648,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user_session(user_id, session_id, session_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/sessions/{sessionId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{userId}/sessions/{sessionId}', options) command.request_representation = Google::Apis::FitnessV1::Session::Representation command.request_object = session_object command.response_representation = Google::Apis::FitnessV1::Session::Representation diff --git a/generated/google/apis/fusiontables_v2/service.rb b/generated/google/apis/fusiontables_v2/service.rb index aee6e28a7..f112f6a3c 100644 --- a/generated/google/apis/fusiontables_v2/service.rb +++ b/generated/google/apis/fusiontables_v2/service.rb @@ -79,8 +79,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/columns/{columnId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'tables/{tableId}/columns/{columnId}', options) command.params['tableId'] = table_id unless table_id.nil? command.params['columnId'] = column_id unless column_id.nil? command.query['fields'] = fields unless fields.nil? @@ -116,8 +115,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/columns/{columnId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/columns/{columnId}', options) command.response_representation = Google::Apis::FusiontablesV2::Column::Representation command.response_class = Google::Apis::FusiontablesV2::Column command.params['tableId'] = table_id unless table_id.nil? @@ -154,8 +152,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_column(table_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/columns' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{tableId}/columns', options) command.request_representation = Google::Apis::FusiontablesV2::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV2::Column::Representation @@ -196,8 +193,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_columns(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/columns' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/columns', options) command.response_representation = Google::Apis::FusiontablesV2::ColumnList::Representation command.response_class = Google::Apis::FusiontablesV2::ColumnList command.params['tableId'] = table_id unless table_id.nil? @@ -238,8 +234,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/columns/{columnId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'tables/{tableId}/columns/{columnId}', options) command.request_representation = Google::Apis::FusiontablesV2::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV2::Column::Representation @@ -280,8 +275,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/columns/{columnId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'tables/{tableId}/columns/{columnId}', options) command.request_representation = Google::Apis::FusiontablesV2::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV2::Column::Representation @@ -340,11 +334,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'query' if download_dest.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'query', options) else - command = make_download_command(:post, path, options) + command = make_download_command(:post, 'query', options) command.download_dest = download_dest end command.response_representation = Google::Apis::FusiontablesV2::Sqlresponse::Representation @@ -395,12 +388,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def sql_get_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'query' + def sql_query_get(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'query', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'query', options) command.download_dest = download_dest end command.response_representation = Google::Apis::FusiontablesV2::Sqlresponse::Representation @@ -441,8 +433,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/styles/{styleId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'tables/{tableId}/styles/{styleId}', options) command.params['tableId'] = table_id unless table_id.nil? command.params['styleId'] = style_id unless style_id.nil? command.query['fields'] = fields unless fields.nil? @@ -478,8 +469,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/styles/{styleId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/styles/{styleId}', options) command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV2::StyleSetting command.params['tableId'] = table_id unless table_id.nil? @@ -516,8 +506,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_style(table_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/styles' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{tableId}/styles', options) command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation @@ -558,8 +547,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_styles(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/styles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/styles', options) command.response_representation = Google::Apis::FusiontablesV2::StyleSettingList::Representation command.response_class = Google::Apis::FusiontablesV2::StyleSettingList command.params['tableId'] = table_id unless table_id.nil? @@ -599,8 +587,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/styles/{styleId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'tables/{tableId}/styles/{styleId}', options) command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation @@ -641,8 +628,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/styles/{styleId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'tables/{tableId}/styles/{styleId}', options) command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation @@ -682,8 +668,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def copy_table(table_id, copy_presentation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/copy' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{tableId}/copy', options) command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.params['tableId'] = table_id unless table_id.nil? @@ -719,8 +704,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'tables/{tableId}', options) command.params['tableId'] = table_id unless table_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -753,8 +737,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}', options) command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.params['tableId'] = table_id unless table_id.nil? @@ -810,11 +793,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def import_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'tables/{tableId}/import' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{tableId}/import', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'tables/{tableId}/import', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -867,11 +849,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def import_table(name, delimiter: nil, encoding: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'tables/import' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/import', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'tables/import', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -910,8 +891,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables', options) command.request_representation = Google::Apis::FusiontablesV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV2::Table::Representation @@ -949,8 +929,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tables(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables', options) command.response_representation = Google::Apis::FusiontablesV2::TableList::Representation command.response_class = Google::Apis::FusiontablesV2::TableList command.query['maxResults'] = max_results unless max_results.nil? @@ -992,8 +971,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'tables/{tableId}', options) command.request_representation = Google::Apis::FusiontablesV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV2::Table::Representation @@ -1053,12 +1031,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_rows_table(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'tables/{tableId}/replace' + def replace_table_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{tableId}/replace', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'tables/{tableId}/replace', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1106,8 +1083,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'tables/{tableId}', options) command.request_representation = Google::Apis::FusiontablesV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV2::Table::Representation @@ -1148,8 +1124,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/tasks/{taskId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'tables/{tableId}/tasks/{taskId}', options) command.params['tableId'] = table_id unless table_id.nil? command.params['taskId'] = task_id unless task_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1185,8 +1160,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/tasks/{taskId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/tasks/{taskId}', options) command.response_representation = Google::Apis::FusiontablesV2::Task::Representation command.response_class = Google::Apis::FusiontablesV2::Task command.params['tableId'] = table_id unless table_id.nil? @@ -1228,8 +1202,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tasks(table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/tasks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/tasks', options) command.response_representation = Google::Apis::FusiontablesV2::TaskList::Representation command.response_class = Google::Apis::FusiontablesV2::TaskList command.params['tableId'] = table_id unless table_id.nil? @@ -1269,8 +1242,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/templates/{templateId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'tables/{tableId}/templates/{templateId}', options) command.params['tableId'] = table_id unless table_id.nil? command.params['templateId'] = template_id unless template_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1306,8 +1278,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/templates/{templateId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/templates/{templateId}', options) command.response_representation = Google::Apis::FusiontablesV2::Template::Representation command.response_class = Google::Apis::FusiontablesV2::Template command.params['tableId'] = table_id unless table_id.nil? @@ -1344,8 +1315,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_template(table_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/templates' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{tableId}/templates', options) command.request_representation = Google::Apis::FusiontablesV2::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV2::Template::Representation @@ -1386,8 +1356,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_templates(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/templates' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/templates', options) command.response_representation = Google::Apis::FusiontablesV2::TemplateList::Representation command.response_class = Google::Apis::FusiontablesV2::TemplateList command.params['tableId'] = table_id unless table_id.nil? @@ -1427,8 +1396,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/templates/{templateId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'tables/{tableId}/templates/{templateId}', options) command.request_representation = Google::Apis::FusiontablesV2::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV2::Template::Representation @@ -1469,8 +1437,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/templates/{templateId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'tables/{tableId}/templates/{templateId}', options) command.request_representation = Google::Apis::FusiontablesV2::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV2::Template::Representation diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 5de1ef091..e9b1a51a1 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20150728' + REVISION = '20151125' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_configuration_v1configuration/service.rb b/generated/google/apis/games_configuration_v1configuration/service.rb index 6aed9c0de..07dbf8880 100644 --- a/generated/google/apis/games_configuration_v1configuration/service.rb +++ b/generated/google/apis/games_configuration_v1configuration/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_achievement_configuration(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'achievements/{achievementId}', options) command.params['achievementId'] = achievement_id unless achievement_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -111,8 +110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_achievement_configuration(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'achievements/{achievementId}', options) command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation command.response_class = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration command.params['achievementId'] = achievement_id unless achievement_id.nil? @@ -148,8 +146,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_achievement_configuration(application_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'applications/{applicationId}/achievements' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'applications/{applicationId}/achievements', options) command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation command.request_object = achievement_configuration_object command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation @@ -192,8 +189,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_achievement_configurations(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'applications/{applicationId}/achievements' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'applications/{applicationId}/achievements', options) command.response_representation = Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse::Representation command.response_class = Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse command.params['applicationId'] = application_id unless application_id.nil? @@ -232,8 +228,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_achievement_configuration(achievement_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'achievements/{achievementId}', options) command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation command.request_object = achievement_configuration_object command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation @@ -271,8 +266,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_achievement_configuration(achievement_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'achievements/{achievementId}', options) command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation command.request_object = achievement_configuration_object command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation @@ -315,11 +309,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_image_configuration(resource_id, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'images/{resourceId}/imageType/{imageType}' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'images/{resourceId}/imageType/{imageType}', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'images/{resourceId}/imageType/{imageType}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -358,8 +351,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_leaderboard_configuration(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'leaderboards/{leaderboardId}', options) command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -392,8 +384,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_leaderboard_configuration(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options) command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation command.response_class = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -429,8 +420,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_leaderboard_configuration(application_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'applications/{applicationId}/leaderboards' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'applications/{applicationId}/leaderboards', options) command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation command.request_object = leaderboard_configuration_object command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation @@ -473,8 +463,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_leaderboard_configurations(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'applications/{applicationId}/leaderboards' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'applications/{applicationId}/leaderboards', options) command.response_representation = Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse::Representation command.response_class = Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse command.params['applicationId'] = application_id unless application_id.nil? @@ -513,8 +502,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_leaderboard_configuration(leaderboard_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'leaderboards/{leaderboardId}', options) command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation command.request_object = leaderboard_configuration_object command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation @@ -552,8 +540,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_leaderboard_configuration(leaderboard_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'leaderboards/{leaderboardId}', options) command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation command.request_object = leaderboard_configuration_object command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb new file mode 100644 index 000000000..01378c2c5 --- /dev/null +++ b/generated/google/apis/games_management_v1management.rb @@ -0,0 +1,37 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/games_management_v1management/service.rb' +require 'google/apis/games_management_v1management/classes.rb' +require 'google/apis/games_management_v1management/representations.rb' + +module Google + module Apis + # Google Play Game Services Management API + # + # The Management API for Google Play Game Services. + # + # @see https://developers.google.com/games/services + module GamesManagementV1management + VERSION = 'V1management' + REVISION = '20151125' + + # Share your Google+ profile information and view and manage your game activity + AUTH_GAMES = 'https://www.googleapis.com/auth/games' + + # Know your basic profile info and list of people in your circles. + AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' + end + end +end diff --git a/generated/google/apis/games_management_v1management/classes.rb b/generated/google/apis/games_management_v1management/classes.rb new file mode 100644 index 000000000..060986f69 --- /dev/null +++ b/generated/google/apis/games_management_v1management/classes.rb @@ -0,0 +1,524 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module GamesManagementV1management + + # This is a JSON template for achievement reset all response. + class AchievementResetAllResponse + include Google::Apis::Core::Hashable + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#achievementResetAllResponse. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The achievement reset results. + # Corresponds to the JSON property `results` + # @return [Array] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @results = args[:results] unless args[:results].nil? + end + end + + # This is a JSON template for multiple achievements reset all request. + class AchievementResetMultipleForAllRequest + include Google::Apis::Core::Hashable + + # The IDs of achievements to reset. + # Corresponds to the JSON property `achievement_ids` + # @return [Array] + attr_accessor :achievement_ids + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#achievementResetMultipleForAllRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @achievement_ids = args[:achievement_ids] unless args[:achievement_ids].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # This is a JSON template for an achievement reset response. + class AchievementResetResponse + include Google::Apis::Core::Hashable + + # The current state of the achievement. This is the same as the initial state of + # the achievement. + # Possible values are: + # - "HIDDEN"- Achievement is hidden. + # - "REVEALED" - Achievement is revealed. + # - "UNLOCKED" - Achievement is unlocked. + # Corresponds to the JSON property `currentState` + # @return [String] + attr_accessor :current_state + + # The ID of an achievement for which player state has been updated. + # Corresponds to the JSON property `definitionId` + # @return [String] + attr_accessor :definition_id + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#achievementResetResponse. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Flag to indicate if the requested update actually occurred. + # Corresponds to the JSON property `updateOccurred` + # @return [Boolean] + attr_accessor :update_occurred + alias_method :update_occurred?, :update_occurred + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_state = args[:current_state] unless args[:current_state].nil? + @definition_id = args[:definition_id] unless args[:definition_id].nil? + @kind = args[:kind] unless args[:kind].nil? + @update_occurred = args[:update_occurred] unless args[:update_occurred].nil? + end + end + + # This is a JSON template for multiple events reset all request. + class EventsResetMultipleForAllRequest + include Google::Apis::Core::Hashable + + # The IDs of events to reset. + # Corresponds to the JSON property `event_ids` + # @return [Array] + attr_accessor :event_ids + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#eventsResetMultipleForAllRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event_ids = args[:event_ids] unless args[:event_ids].nil? + @kind = args[:kind] unless args[:kind].nil? + end + end + + # This is a JSON template for metadata about a player playing a game with the + # currently authenticated user. + class GamesPlayedResource + include Google::Apis::Core::Hashable + + # True if the player was auto-matched with the currently authenticated user. + # Corresponds to the JSON property `autoMatched` + # @return [Boolean] + attr_accessor :auto_matched + alias_method :auto_matched?, :auto_matched + + # The last time the player played the game in milliseconds since the epoch in + # UTC. + # Corresponds to the JSON property `timeMillis` + # @return [String] + attr_accessor :time_millis + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_matched = args[:auto_matched] unless args[:auto_matched].nil? + @time_millis = args[:time_millis] unless args[:time_millis].nil? + end + end + + # This is a JSON template for 1P/3P metadata about the player's experience. + class GamesPlayerExperienceInfoResource + include Google::Apis::Core::Hashable + + # The current number of experience points for the player. + # Corresponds to the JSON property `currentExperiencePoints` + # @return [String] + attr_accessor :current_experience_points + + # This is a JSON template for 1P/3P metadata about a user's level. + # Corresponds to the JSON property `currentLevel` + # @return [Google::Apis::GamesManagementV1management::GamesPlayerLevelResource] + attr_accessor :current_level + + # The timestamp when the player was leveled up, in millis since Unix epoch UTC. + # Corresponds to the JSON property `lastLevelUpTimestampMillis` + # @return [String] + attr_accessor :last_level_up_timestamp_millis + + # This is a JSON template for 1P/3P metadata about a user's level. + # Corresponds to the JSON property `nextLevel` + # @return [Google::Apis::GamesManagementV1management::GamesPlayerLevelResource] + attr_accessor :next_level + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_experience_points = args[:current_experience_points] unless args[:current_experience_points].nil? + @current_level = args[:current_level] unless args[:current_level].nil? + @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] unless args[:last_level_up_timestamp_millis].nil? + @next_level = args[:next_level] unless args[:next_level].nil? + end + end + + # This is a JSON template for 1P/3P metadata about a user's level. + class GamesPlayerLevelResource + include Google::Apis::Core::Hashable + + # The level for the user. + # Corresponds to the JSON property `level` + # @return [Fixnum] + attr_accessor :level + + # The maximum experience points for this level. + # Corresponds to the JSON property `maxExperiencePoints` + # @return [String] + attr_accessor :max_experience_points + + # The minimum experience points for this level. + # Corresponds to the JSON property `minExperiencePoints` + # @return [String] + attr_accessor :min_experience_points + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @level = args[:level] unless args[:level].nil? + @max_experience_points = args[:max_experience_points] unless args[:max_experience_points].nil? + @min_experience_points = args[:min_experience_points] unless args[:min_experience_points].nil? + end + end + + # This is a JSON template for the HiddenPlayer resource. + class HiddenPlayer + include Google::Apis::Core::Hashable + + # The time this player was hidden. + # Corresponds to the JSON property `hiddenTimeMillis` + # @return [String] + attr_accessor :hidden_time_millis + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#hiddenPlayer. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # This is a JSON template for a Player resource. + # Corresponds to the JSON property `player` + # @return [Google::Apis::GamesManagementV1management::Player] + attr_accessor :player + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hidden_time_millis = args[:hidden_time_millis] unless args[:hidden_time_millis].nil? + @kind = args[:kind] unless args[:kind].nil? + @player = args[:player] unless args[:player].nil? + end + end + + # This is a JSON template for a list of hidden players. + class HiddenPlayerList + include Google::Apis::Core::Hashable + + # The players. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#hiddenPlayerList. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The pagination token for the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # This is a JSON template for a Player resource. + class Player + include Google::Apis::Core::Hashable + + # The base URL for the image that represents the player. + # Corresponds to the JSON property `avatarImageUrl` + # @return [String] + attr_accessor :avatar_image_url + + # The url to the landscape mode player banner image. + # Corresponds to the JSON property `bannerUrlLandscape` + # @return [String] + attr_accessor :banner_url_landscape + + # The url to the portrait mode player banner image. + # Corresponds to the JSON property `bannerUrlPortrait` + # @return [String] + attr_accessor :banner_url_portrait + + # The name to display for the player. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # This is a JSON template for 1P/3P metadata about the player's experience. + # Corresponds to the JSON property `experienceInfo` + # @return [Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource] + attr_accessor :experience_info + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#player. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # This is a JSON template for metadata about a player playing a game with the + # currently authenticated user. + # Corresponds to the JSON property `lastPlayedWith` + # @return [Google::Apis::GamesManagementV1management::GamesPlayedResource] + attr_accessor :last_played_with + + # An object representation of the individual components of the player's name. + # For some players, these fields may not be present. + # Corresponds to the JSON property `name` + # @return [Google::Apis::GamesManagementV1management::Player::Name] + attr_accessor :name + + # The ID of the player. + # Corresponds to the JSON property `playerId` + # @return [String] + attr_accessor :player_id + + # The player's title rewarded for their game activities. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil? + @banner_url_landscape = args[:banner_url_landscape] unless args[:banner_url_landscape].nil? + @banner_url_portrait = args[:banner_url_portrait] unless args[:banner_url_portrait].nil? + @display_name = args[:display_name] unless args[:display_name].nil? + @experience_info = args[:experience_info] unless args[:experience_info].nil? + @kind = args[:kind] unless args[:kind].nil? + @last_played_with = args[:last_played_with] unless args[:last_played_with].nil? + @name = args[:name] unless args[:name].nil? + @player_id = args[:player_id] unless args[:player_id].nil? + @title = args[:title] unless args[:title].nil? + end + + # An object representation of the individual components of the player's name. + # For some players, these fields may not be present. + class Name + include Google::Apis::Core::Hashable + + # The family name of this player. In some places, this is known as the last name. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # The given name of this player. In some places, this is known as the first name. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @family_name = args[:family_name] unless args[:family_name].nil? + @given_name = args[:given_name] unless args[:given_name].nil? + end + end + end + + # This is a JSON template for a list of leaderboard reset resources. + class PlayerScoreResetAllResponse + include Google::Apis::Core::Hashable + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#playerScoreResetResponse. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The leaderboard reset results. + # Corresponds to the JSON property `results` + # @return [Array] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @results = args[:results] unless args[:results].nil? + end + end + + # This is a JSON template for a list of reset leaderboard entry resources. + class PlayerScoreResetResponse + include Google::Apis::Core::Hashable + + # The ID of an leaderboard for which player state has been updated. + # Corresponds to the JSON property `definitionId` + # @return [String] + attr_accessor :definition_id + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#playerScoreResetResponse. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The time spans of the updated score. + # Possible values are: + # - "ALL_TIME" - The score is an all-time score. + # - "WEEKLY" - The score is a weekly score. + # - "DAILY" - The score is a daily score. + # Corresponds to the JSON property `resetScoreTimeSpans` + # @return [Array] + attr_accessor :reset_score_time_spans + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @definition_id = args[:definition_id] unless args[:definition_id].nil? + @kind = args[:kind] unless args[:kind].nil? + @reset_score_time_spans = args[:reset_score_time_spans] unless args[:reset_score_time_spans].nil? + end + end + + # This is a JSON template for multiple quests reset all request. + class QuestsResetMultipleForAllRequest + include Google::Apis::Core::Hashable + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#questsResetMultipleForAllRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The IDs of quests to reset. + # Corresponds to the JSON property `quest_ids` + # @return [Array] + attr_accessor :quest_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @quest_ids = args[:quest_ids] unless args[:quest_ids].nil? + end + end + + # This is a JSON template for multiple scores reset all request. + class ScoresResetMultipleForAllRequest + include Google::Apis::Core::Hashable + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#scoresResetMultipleForAllRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The IDs of leaderboards to reset. + # Corresponds to the JSON property `leaderboard_ids` + # @return [Array] + attr_accessor :leaderboard_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @leaderboard_ids = args[:leaderboard_ids] unless args[:leaderboard_ids].nil? + end + end + end + end +end diff --git a/generated/google/apis/games_management_v1management/representations.rb b/generated/google/apis/games_management_v1management/representations.rb new file mode 100644 index 000000000..b3adc7560 --- /dev/null +++ b/generated/google/apis/games_management_v1management/representations.rb @@ -0,0 +1,231 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module GamesManagementV1management + + class AchievementResetAllResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AchievementResetMultipleForAllRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AchievementResetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class EventsResetMultipleForAllRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GamesPlayedResource + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GamesPlayerExperienceInfoResource + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GamesPlayerLevelResource + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class HiddenPlayer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class HiddenPlayerList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Player + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Name + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class PlayerScoreResetAllResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PlayerScoreResetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class QuestsResetMultipleForAllRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ScoresResetMultipleForAllRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AchievementResetAllResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :results, as: 'results', class: Google::Apis::GamesManagementV1management::AchievementResetResponse, decorator: Google::Apis::GamesManagementV1management::AchievementResetResponse::Representation + + end + end + + class AchievementResetMultipleForAllRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :achievement_ids, as: 'achievement_ids' + property :kind, as: 'kind' + end + end + + class AchievementResetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_state, as: 'currentState' + property :definition_id, as: 'definitionId' + property :kind, as: 'kind' + property :update_occurred, as: 'updateOccurred' + end + end + + class EventsResetMultipleForAllRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :event_ids, as: 'event_ids' + property :kind, as: 'kind' + end + end + + class GamesPlayedResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_matched, as: 'autoMatched' + property :time_millis, as: 'timeMillis' + end + end + + class GamesPlayerExperienceInfoResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_experience_points, as: 'currentExperiencePoints' + property :current_level, as: 'currentLevel', class: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource, decorator: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource::Representation + + property :last_level_up_timestamp_millis, as: 'lastLevelUpTimestampMillis' + property :next_level, as: 'nextLevel', class: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource, decorator: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource::Representation + + end + end + + class GamesPlayerLevelResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :level, as: 'level' + property :max_experience_points, as: 'maxExperiencePoints' + property :min_experience_points, as: 'minExperiencePoints' + end + end + + class HiddenPlayer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hidden_time_millis, as: 'hiddenTimeMillis' + property :kind, as: 'kind' + property :player, as: 'player', class: Google::Apis::GamesManagementV1management::Player, decorator: Google::Apis::GamesManagementV1management::Player::Representation + + end + end + + class HiddenPlayerList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::GamesManagementV1management::HiddenPlayer, decorator: Google::Apis::GamesManagementV1management::HiddenPlayer::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class Player + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :avatar_image_url, as: 'avatarImageUrl' + property :banner_url_landscape, as: 'bannerUrlLandscape' + property :banner_url_portrait, as: 'bannerUrlPortrait' + property :display_name, as: 'displayName' + property :experience_info, as: 'experienceInfo', class: Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource, decorator: Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource::Representation + + property :kind, as: 'kind' + property :last_played_with, as: 'lastPlayedWith', class: Google::Apis::GamesManagementV1management::GamesPlayedResource, decorator: Google::Apis::GamesManagementV1management::GamesPlayedResource::Representation + + property :name, as: 'name', class: Google::Apis::GamesManagementV1management::Player::Name, decorator: Google::Apis::GamesManagementV1management::Player::Name::Representation + + property :player_id, as: 'playerId' + property :title, as: 'title' + end + + class Name + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :family_name, as: 'familyName' + property :given_name, as: 'givenName' + end + end + end + + class PlayerScoreResetAllResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :results, as: 'results', class: Google::Apis::GamesManagementV1management::PlayerScoreResetResponse, decorator: Google::Apis::GamesManagementV1management::PlayerScoreResetResponse::Representation + + end + end + + class PlayerScoreResetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :definition_id, as: 'definitionId' + property :kind, as: 'kind' + collection :reset_score_time_spans, as: 'resetScoreTimeSpans' + end + end + + class QuestsResetMultipleForAllRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :quest_ids, as: 'quest_ids' + end + end + + class ScoresResetMultipleForAllRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :leaderboard_ids, as: 'leaderboard_ids' + end + end + end + end +end diff --git a/generated/google/apis/games_management_v1management/service.rb b/generated/google/apis/games_management_v1management/service.rb new file mode 100644 index 000000000..5631ffbfb --- /dev/null +++ b/generated/google/apis/games_management_v1management/service.rb @@ -0,0 +1,994 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module GamesManagementV1management + # Google Play Game Services Management API + # + # The Management API for Google Play Game Services. + # + # @example + # require 'google/apis/games_management_v1management' + # + # GamesManagement = Google::Apis::GamesManagementV1management # Alias the module + # service = GamesManagement::GamesManagementService.new + # + # @see https://developers.google.com/games/services + class GamesManagementService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + attr_accessor :quota_user + + # @return [String] + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'games/v1management/') + end + + # Resets the achievement with the given ID for the currently authenticated + # player. This method is only accessible to whitelisted tester accounts for your + # application. + # @param [String] achievement_id + # The ID of the achievement used by this method. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GamesManagementV1management::AchievementResetResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GamesManagementV1management::AchievementResetResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'achievements/{achievementId}/reset', options) + command.response_representation = Google::Apis::GamesManagementV1management::AchievementResetResponse::Representation + command.response_class = Google::Apis::GamesManagementV1management::AchievementResetResponse + command.params['achievementId'] = achievement_id unless achievement_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all achievements for the currently authenticated player for your + # application. This method is only accessible to whitelisted tester accounts for + # your application. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GamesManagementV1management::AchievementResetAllResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GamesManagementV1management::AchievementResetAllResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_achievement_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'achievements/reset', options) + command.response_representation = Google::Apis::GamesManagementV1management::AchievementResetAllResponse::Representation + command.response_class = Google::Apis::GamesManagementV1management::AchievementResetAllResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all draft achievements for all players. This method is only available + # to user accounts for your developer console. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_achievement_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'achievements/resetAllForAllPlayers', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets the achievement with the given ID for all players. This method is only + # available to user accounts for your developer console. Only draft achievements + # can be reset. + # @param [String] achievement_id + # The ID of the achievement used by this method. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_achievement_for_all_players(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'achievements/{achievementId}/resetForAllPlayers', options) + command.params['achievementId'] = achievement_id unless achievement_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets achievements with the given IDs for all players. This method is only + # available to user accounts for your developer console. Only draft achievements + # may be reset. + # @param [Google::Apis::GamesManagementV1management::AchievementResetMultipleForAllRequest] achievement_reset_multiple_for_all_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_achievement_multiple_for_all_players(achievement_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'achievements/resetMultipleForAllPlayers', options) + command.request_representation = Google::Apis::GamesManagementV1management::AchievementResetMultipleForAllRequest::Representation + command.request_object = achievement_reset_multiple_for_all_request_object + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Get the list of players hidden from the given application. This method is only + # available to user accounts for your developer console. + # @param [String] application_id + # The application ID from the Google Play developer console. + # @param [Fixnum] max_results + # The maximum number of player resources to return in the response, used for + # paging. For any response, the actual number of player resources returned may + # be less than the specified maxResults. + # @param [String] page_token + # The token returned by the previous request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GamesManagementV1management::HiddenPlayerList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GamesManagementV1management::HiddenPlayerList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_application_hidden(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'applications/{applicationId}/players/hidden', options) + command.response_representation = Google::Apis::GamesManagementV1management::HiddenPlayerList::Representation + command.response_class = Google::Apis::GamesManagementV1management::HiddenPlayerList + command.params['applicationId'] = application_id unless application_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all player progress on the event with the given ID for the currently + # authenticated player. This method is only accessible to whitelisted tester + # accounts for your application. All quests for this player that use the event + # will also be reset. + # @param [String] event_id + # The ID of the event. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_event(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'events/{eventId}/reset', options) + command.params['eventId'] = event_id unless event_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all player progress on all events for the currently authenticated + # player. This method is only accessible to whitelisted tester accounts for your + # application. All quests for this player will also be reset. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_event_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'events/reset', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all draft events for all players. This method is only available to user + # accounts for your developer console. All quests that use any of these events + # will also be reset. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_event_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'events/resetAllForAllPlayers', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets the event with the given ID for all players. This method is only + # available to user accounts for your developer console. Only draft events can + # be reset. All quests that use the event will also be reset. + # @param [String] event_id + # The ID of the event. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_event_for_all_players(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'events/{eventId}/resetForAllPlayers', options) + command.params['eventId'] = event_id unless event_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets events with the given IDs for all players. This method is only + # available to user accounts for your developer console. Only draft events may + # be reset. All quests that use any of the events will also be reset. + # @param [Google::Apis::GamesManagementV1management::EventsResetMultipleForAllRequest] events_reset_multiple_for_all_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_event_multiple_for_all_players(events_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'events/resetMultipleForAllPlayers', options) + command.request_representation = Google::Apis::GamesManagementV1management::EventsResetMultipleForAllRequest::Representation + command.request_object = events_reset_multiple_for_all_request_object + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Hide the given player's leaderboard scores from the given application. This + # method is only available to user accounts for your developer console. + # @param [String] application_id + # The application ID from the Google Play developer console. + # @param [String] player_id + # A player ID. A value of me may be used in place of the authenticated player's + # ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def hide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'applications/{applicationId}/players/hidden/{playerId}', options) + command.params['applicationId'] = application_id unless application_id.nil? + command.params['playerId'] = player_id unless player_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Unhide the given player's leaderboard scores from the given application. This + # method is only available to user accounts for your developer console. + # @param [String] application_id + # The application ID from the Google Play developer console. + # @param [String] player_id + # A player ID. A value of me may be used in place of the authenticated player's + # ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def unhide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'applications/{applicationId}/players/hidden/{playerId}', options) + command.params['applicationId'] = application_id unless application_id.nil? + command.params['playerId'] = player_id unless player_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all player progress on the quest with the given ID for the currently + # authenticated player. This method is only accessible to whitelisted tester + # accounts for your application. + # @param [String] quest_id + # The ID of the quest. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_quest(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'quests/{questId}/reset', options) + command.params['questId'] = quest_id unless quest_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all player progress on all quests for the currently authenticated + # player. This method is only accessible to whitelisted tester accounts for your + # application. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_quest_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'quests/reset', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all draft quests for all players. This method is only available to user + # accounts for your developer console. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_quest_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'quests/resetAllForAllPlayers', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all player progress on the quest with the given ID for all players. + # This method is only available to user accounts for your developer console. + # Only draft quests can be reset. + # @param [String] quest_id + # The ID of the quest. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_quest_for_all_players(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'quests/{questId}/resetForAllPlayers', options) + command.params['questId'] = quest_id unless quest_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets quests with the given IDs for all players. This method is only + # available to user accounts for your developer console. Only draft quests may + # be reset. + # @param [Google::Apis::GamesManagementV1management::QuestsResetMultipleForAllRequest] quests_reset_multiple_for_all_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_quest_multiple_for_all_players(quests_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'quests/resetMultipleForAllPlayers', options) + command.request_representation = Google::Apis::GamesManagementV1management::QuestsResetMultipleForAllRequest::Representation + command.request_object = quests_reset_multiple_for_all_request_object + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Reset all rooms for the currently authenticated player for your application. + # This method is only accessible to whitelisted tester accounts for your + # application. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_room(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'rooms/reset', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes rooms where the only room participants are from whitelisted tester + # accounts for your application. This method is only available to user accounts + # for your developer console. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_room_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'rooms/resetForAllPlayers', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets scores for the leaderboard with the given ID for the currently + # authenticated player. This method is only accessible to whitelisted tester + # accounts for your application. + # @param [String] leaderboard_id + # The ID of the leaderboard. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GamesManagementV1management::PlayerScoreResetResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GamesManagementV1management::PlayerScoreResetResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_score(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores/reset', options) + command.response_representation = Google::Apis::GamesManagementV1management::PlayerScoreResetResponse::Representation + command.response_class = Google::Apis::GamesManagementV1management::PlayerScoreResetResponse + command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets all scores for all leaderboards for the currently authenticated players. + # This method is only accessible to whitelisted tester accounts for your + # application. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_score_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'scores/reset', options) + command.response_representation = Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse::Representation + command.response_class = Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets scores for all draft leaderboards for all players. This method is only + # available to user accounts for your developer console. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_score_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'scores/resetAllForAllPlayers', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets scores for the leaderboard with the given ID for all players. This + # method is only available to user accounts for your developer console. Only + # draft leaderboards can be reset. + # @param [String] leaderboard_id + # The ID of the leaderboard. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_score_for_all_players(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', options) + command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resets scores for the leaderboards with the given IDs for all players. This + # method is only available to user accounts for your developer console. Only + # draft leaderboards may be reset. + # @param [Google::Apis::GamesManagementV1management::ScoresResetMultipleForAllRequest] scores_reset_multiple_for_all_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_score_multiple_for_all_players(scores_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'scores/resetMultipleForAllPlayers', options) + command.request_representation = Google::Apis::GamesManagementV1management::ScoresResetMultipleForAllRequest::Representation + command.request_object = scores_reset_multiple_for_all_request_object + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Reset all turn-based match data for a user. This method is only accessible to + # whitelisted tester accounts for your application. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_turn_based_match(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'turnbasedmatches/reset', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes turn-based matches where the only match participants are from + # whitelisted tester accounts for your application. This method is only + # available to user accounts for your developer console. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reset_turn_based_match_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'turnbasedmatches/resetForAllPlayers', options) + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 497640350..6160819e7 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20150728' + REVISION = '20151125' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/games_v1/classes.rb b/generated/google/apis/games_v1/classes.rb index e761024bd..7d751fe96 100644 --- a/generated/google/apis/games_v1/classes.rb +++ b/generated/google/apis/games_v1/classes.rb @@ -1953,6 +1953,16 @@ module Google # @return [String] attr_accessor :avatar_image_url + # The url to the landscape mode player banner image. + # Corresponds to the JSON property `bannerUrlLandscape` + # @return [String] + attr_accessor :banner_url_landscape + + # The url to the portrait mode player banner image. + # Corresponds to the JSON property `bannerUrlPortrait` + # @return [String] + attr_accessor :banner_url_portrait + # The name to display for the player. # Corresponds to the JSON property `displayName` # @return [String] @@ -1998,6 +2008,8 @@ module Google # Update properties of this object def update!(**args) @avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil? + @banner_url_landscape = args[:banner_url_landscape] unless args[:banner_url_landscape].nil? + @banner_url_portrait = args[:banner_url_portrait] unless args[:banner_url_portrait].nil? @display_name = args[:display_name] unless args[:display_name].nil? @experience_info = args[:experience_info] unless args[:experience_info].nil? @kind = args[:kind] unless args[:kind].nil? diff --git a/generated/google/apis/games_v1/representations.rb b/generated/google/apis/games_v1/representations.rb index 15739a5e9..6d7643d3c 100644 --- a/generated/google/apis/games_v1/representations.rb +++ b/generated/google/apis/games_v1/representations.rb @@ -912,6 +912,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :avatar_image_url, as: 'avatarImageUrl' + property :banner_url_landscape, as: 'bannerUrlLandscape' + property :banner_url_portrait, as: 'bannerUrlPortrait' property :display_name, as: 'displayName' property :experience_info, as: 'experienceInfo', class: Google::Apis::GamesV1::PlayerExperienceInfo, decorator: Google::Apis::GamesV1::PlayerExperienceInfo::Representation diff --git a/generated/google/apis/games_v1/service.rb b/generated/google/apis/games_v1/service.rb index 35a631235..7afc99db6 100644 --- a/generated/google/apis/games_v1/service.rb +++ b/generated/google/apis/games_v1/service.rb @@ -83,8 +83,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'achievements', options) command.response_representation = Google::Apis::GamesV1::ListAchievementDefinitionsResponse::Representation command.response_class = Google::Apis::GamesV1::ListAchievementDefinitionsResponse command.query['language'] = language unless language.nil? @@ -128,8 +127,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}/increment' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'achievements/{achievementId}/increment', options) command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementIncrementResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? @@ -179,8 +177,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_achievements(player_id, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'players/{playerId}/achievements' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'players/{playerId}/achievements', options) command.response_representation = Google::Apis::GamesV1::ListPlayerAchievementResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerAchievementResponse command.params['playerId'] = player_id unless player_id.nil? @@ -220,8 +217,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reveal_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}/reveal' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'achievements/{achievementId}/reveal', options) command.response_representation = Google::Apis::GamesV1::AchievementRevealResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementRevealResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? @@ -260,9 +256,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_steps_at_least_achievement(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}/setStepsAtLeast' - command = make_simple_command(:post, path, options) + def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'achievements/{achievementId}/setStepsAtLeast', options) command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? @@ -298,8 +293,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def unlock_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/{achievementId}/unlock' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'achievements/{achievementId}/unlock', options) command.response_representation = Google::Apis::GamesV1::AchievementUnlockResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementUnlockResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? @@ -333,8 +327,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'achievements/updateMultiple' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'achievements/updateMultiple', options) command.request_representation = Google::Apis::GamesV1::AchievementUpdateMultipleRequest::Representation command.request_object = achievement_update_multiple_request_object command.response_representation = Google::Apis::GamesV1::AchievementUpdateMultipleResponse::Representation @@ -376,8 +369,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'applications/{applicationId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'applications/{applicationId}', options) command.response_representation = Google::Apis::GamesV1::Application::Representation command.response_class = Google::Apis::GamesV1::Application command.params['applicationId'] = application_id unless application_id.nil? @@ -412,8 +404,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def played_application(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'applications/played' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'applications/played', options) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -451,9 +442,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_by_player_event(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'events' - command = make_simple_command(:get, path, options) + def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'events', options) command.response_representation = Google::Apis::GamesV1::ListPlayerEventResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerEventResponse command.query['language'] = language unless language.nil? @@ -496,8 +486,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'eventDefinitions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'eventDefinitions', options) command.response_representation = Google::Apis::GamesV1::ListEventDefinitionResponse::Representation command.response_class = Google::Apis::GamesV1::ListEventDefinitionResponse command.query['language'] = language unless language.nil? @@ -536,8 +525,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'events' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'events', options) command.request_representation = Google::Apis::GamesV1::EventRecordRequest::Representation command.request_object = event_record_request_object command.response_representation = Google::Apis::GamesV1::UpdateEventResponse::Representation @@ -576,8 +564,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options) command.response_representation = Google::Apis::GamesV1::Leaderboard::Representation command.response_class = Google::Apis::GamesV1::Leaderboard command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -619,8 +606,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'leaderboards', options) command.response_representation = Google::Apis::GamesV1::ListLeaderboardResponse::Representation command.response_class = Google::Apis::GamesV1::ListLeaderboardResponse command.query['language'] = language unless language.nil? @@ -655,8 +641,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_metagame_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'metagameConfig' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'metagameConfig', options) command.response_representation = Google::Apis::GamesV1::MetagameConfig::Representation command.response_class = Google::Apis::GamesV1::MetagameConfig command.query['fields'] = fields unless fields.nil? @@ -701,9 +686,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_categories_by_player_metagame(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'players/{playerId}/categories/{collection}' - command = make_simple_command(:get, path, options) + def list_metagame_categories_by_player(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'players/{playerId}/categories/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListCategoryResponse::Representation command.response_class = Google::Apis::GamesV1::ListCategoryResponse command.params['playerId'] = player_id unless player_id.nil? @@ -746,8 +730,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_player(player_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'players/{playerId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'players/{playerId}', options) command.response_representation = Google::Apis::GamesV1::Player::Representation command.response_class = Google::Apis::GamesV1::Player command.params['playerId'] = player_id unless player_id.nil? @@ -791,8 +774,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'players/me/players/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'players/me/players/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerResponse command.params['collection'] = collection unless collection.nil? @@ -830,8 +812,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_pushtoken(push_token_id_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pushtokens/remove' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'pushtokens/remove', options) command.request_representation = Google::Apis::GamesV1::PushTokenId::Representation command.request_object = push_token_id_object command.query['fields'] = fields unless fields.nil? @@ -864,8 +845,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_pushtoken(push_token_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'pushtokens' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'pushtokens', options) command.request_representation = Google::Apis::GamesV1::PushToken::Representation command.request_object = push_token_object command.query['fields'] = fields unless fields.nil? @@ -906,8 +886,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def claim_quest_milestone(quest_id, milestone_id, request_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'quests/{questId}/milestones/{milestoneId}/claim' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'quests/{questId}/milestones/{milestoneId}/claim', options) command.params['questId'] = quest_id unless quest_id.nil? command.params['milestoneId'] = milestone_id unless milestone_id.nil? command.query['requestId'] = request_id unless request_id.nil? @@ -944,8 +923,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def accept_quest(quest_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'quests/{questId}/accept' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'quests/{questId}/accept', options) command.response_representation = Google::Apis::GamesV1::Quest::Representation command.response_class = Google::Apis::GamesV1::Quest command.params['questId'] = quest_id unless quest_id.nil? @@ -992,8 +970,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_quests(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'players/{playerId}/quests' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'players/{playerId}/quests', options) command.response_representation = Google::Apis::GamesV1::ListQuestResponse::Representation command.response_class = Google::Apis::GamesV1::ListQuestResponse command.params['playerId'] = player_id unless player_id.nil? @@ -1036,8 +1013,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'revisions/check' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'revisions/check', options) command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation command.response_class = Google::Apis::GamesV1::CheckRevisionResponse command.query['clientRevision'] = client_revision unless client_revision.nil? @@ -1074,8 +1050,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_room(create_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms/create' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rooms/create', options) command.request_representation = Google::Apis::GamesV1::CreateRoomRequest::Representation command.request_object = create_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation @@ -1115,8 +1090,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def decline_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms/{roomId}/decline' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rooms/{roomId}/decline', options) command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? @@ -1153,8 +1127,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def dismiss_room(room_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms/{roomId}/dismiss' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rooms/{roomId}/dismiss', options) command.params['roomId'] = room_id unless room_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1189,8 +1162,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms/{roomId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rooms/{roomId}', options) command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? @@ -1230,8 +1202,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def join_room(room_id, join_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms/{roomId}/join' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rooms/{roomId}/join', options) command.request_representation = Google::Apis::GamesV1::JoinRoomRequest::Representation command.request_object = join_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation @@ -1273,8 +1244,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def leave_room(room_id, leave_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms/{roomId}/leave' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rooms/{roomId}/leave', options) command.request_representation = Google::Apis::GamesV1::LeaveRoomRequest::Representation command.request_object = leave_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation @@ -1318,8 +1288,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_rooms(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rooms', options) command.response_representation = Google::Apis::GamesV1::RoomList::Representation command.response_class = Google::Apis::GamesV1::RoomList command.query['language'] = language unless language.nil? @@ -1360,8 +1329,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def report_room_status(room_id, room_p2_p_statuses_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rooms/{roomId}/reportstatus' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rooms/{roomId}/reportstatus', options) command.request_representation = Google::Apis::GamesV1::RoomP2PStatuses::Representation command.request_object = room_p2_p_statuses_object command.response_representation = Google::Apis::GamesV1::RoomStatus::Representation @@ -1420,8 +1388,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_score(player_id, leaderboard_id, time_span, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse command.params['playerId'] = player_id unless player_id.nil? @@ -1474,8 +1441,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}/scores/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'leaderboards/{leaderboardId}/scores/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -1534,9 +1500,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_window_score(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}/window/{collection}' - command = make_simple_command(:get, path, options) + def list_score_window(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'leaderboards/{leaderboardId}/window/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -1590,8 +1555,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/{leaderboardId}/scores' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores', options) command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation command.response_class = Google::Apis::GamesV1::PlayerScoreResponse command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -1629,9 +1593,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def submit_multiple_score(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'leaderboards/scores' - command = make_simple_command(:post, path, options) + def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'leaderboards/scores', options) command.request_representation = Google::Apis::GamesV1::PlayerScoreSubmissionList::Representation command.request_object = player_score_submission_list_object command.response_representation = Google::Apis::GamesV1::ListPlayerScoreResponse::Representation @@ -1670,8 +1633,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'snapshots/{snapshotId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'snapshots/{snapshotId}', options) command.response_representation = Google::Apis::GamesV1::Snapshot::Representation command.response_class = Google::Apis::GamesV1::Snapshot command.params['snapshotId'] = snapshot_id unless snapshot_id.nil? @@ -1717,8 +1679,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'players/{playerId}/snapshots' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'players/{playerId}/snapshots', options) command.response_representation = Google::Apis::GamesV1::ListSnapshotResponse::Representation command.response_class = Google::Apis::GamesV1::ListSnapshotResponse command.params['playerId'] = player_id unless player_id.nil? @@ -1756,8 +1717,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def cancel_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/cancel' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/cancel', options) command.params['matchId'] = match_id unless match_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1791,8 +1751,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_turn_based_match(create_turn_based_match_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/create' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'turnbasedmatches/create', options) command.request_representation = Google::Apis::GamesV1::CreateTurnBasedMatchRequest::Representation command.request_object = create_turn_based_match_request_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation @@ -1831,8 +1790,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def decline_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/decline' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/decline', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? @@ -1869,8 +1827,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def dismiss_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/dismiss' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/dismiss', options) command.params['matchId'] = match_id unless match_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1908,8 +1865,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def finish_turn_based_match(match_id, turn_based_match_results_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/finish' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/finish', options) command.request_representation = Google::Apis::GamesV1::TurnBasedMatchResults::Representation command.request_object = turn_based_match_results_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation @@ -1951,8 +1907,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_turn_based_match(match_id, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'turnbasedmatches/{matchId}', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? @@ -1991,8 +1946,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def join_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/join' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/join', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? @@ -2031,8 +1985,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def leave_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/leave' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leave', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? @@ -2078,8 +2031,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/leaveTurn' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leaveTurn', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? @@ -2132,8 +2084,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_turn_based_matches(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'turnbasedmatches', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchList::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchList command.query['includeMatchData'] = include_match_data unless include_match_data.nil? @@ -2181,8 +2132,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def rematch_turn_based_match(match_id, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/rematch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'turnbasedmatches/{matchId}/rematch', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchRematch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchRematch command.params['matchId'] = match_id unless match_id.nil? @@ -2236,8 +2186,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def sync_turn_based_match(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/sync' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'turnbasedmatches/sync', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchSync::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchSync command.query['includeMatchData'] = include_match_data unless include_match_data.nil? @@ -2279,8 +2228,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def take_turn(match_id, turn_based_match_turn_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'turnbasedmatches/{matchId}/turn' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'turnbasedmatches/{matchId}/turn', options) command.request_representation = Google::Apis::GamesV1::TurnBasedMatchTurn::Representation command.request_object = turn_based_match_turn_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation diff --git a/generated/google/apis/gan_v1beta1/service.rb b/generated/google/apis/gan_v1beta1/service.rb index 68fb3a9a0..f244606fa 100644 --- a/generated/google/apis/gan_v1beta1/service.rb +++ b/generated/google/apis/gan_v1beta1/service.rb @@ -84,8 +84,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_advertiser(role, role_id, advertiser_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/advertiser' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/advertiser', options) command.response_representation = Google::Apis::GanV1beta1::Advertiser::Representation command.response_class = Google::Apis::GanV1beta1::Advertiser command.params['role'] = role unless role.nil? @@ -149,8 +148,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_advertisers(role, role_id, advertiser_category: nil, max_results: nil, min_ninety_day_epc: nil, min_payout_rank: nil, min_seven_day_epc: nil, page_token: nil, relationship_status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/advertisers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/advertisers', options) command.response_representation = Google::Apis::GanV1beta1::Advertisers::Representation command.response_class = Google::Apis::GanV1beta1::Advertisers command.params['role'] = role unless role.nil? @@ -198,8 +196,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_cc_offers(publisher, advertiser: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'publishers/{publisher}/ccOffers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'publishers/{publisher}/ccOffers', options) command.response_representation = Google::Apis::GanV1beta1::CcOffers::Representation command.response_class = Google::Apis::GanV1beta1::CcOffers command.params['publisher'] = publisher unless publisher.nil? @@ -287,8 +284,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_events(role, role_id, advertiser_id: nil, charge_type: nil, event_date_max: nil, event_date_min: nil, link_id: nil, max_results: nil, member_id: nil, modify_date_max: nil, modify_date_min: nil, order_id: nil, page_token: nil, product_category: nil, publisher_id: nil, sku: nil, status: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/events' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/events', options) command.response_representation = Google::Apis::GanV1beta1::Events::Representation command.response_class = Google::Apis::GanV1beta1::Events command.params['role'] = role unless role.nil? @@ -347,8 +343,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_link(role, role_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/link/{linkId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/link/{linkId}', options) command.response_representation = Google::Apis::GanV1beta1::Link::Representation command.response_class = Google::Apis::GanV1beta1::Link command.params['role'] = role unless role.nil? @@ -388,8 +383,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_link(role, role_id, link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/link' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{role}/{roleId}/link', options) command.request_representation = Google::Apis::GanV1beta1::Link::Representation command.request_object = link_object command.response_representation = Google::Apis::GanV1beta1::Link::Representation @@ -456,8 +450,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_links(role, role_id, advertiser_id: nil, asset_size: nil, authorship: nil, create_date_max: nil, create_date_min: nil, link_type: nil, max_results: nil, page_token: nil, promotion_type: nil, relationship_status: nil, search_text: nil, start_date_max: nil, start_date_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/links' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/links', options) command.response_representation = Google::Apis::GanV1beta1::Links::Representation command.response_class = Google::Apis::GanV1beta1::Links command.params['role'] = role unless role.nil? @@ -513,8 +506,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_publisher(role, role_id, publisher_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/publisher' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/publisher', options) command.response_representation = Google::Apis::GanV1beta1::Publisher::Representation command.response_class = Google::Apis::GanV1beta1::Publisher command.params['role'] = role unless role.nil? @@ -578,8 +570,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_publishers(role, role_id, max_results: nil, min_ninety_day_epc: nil, min_payout_rank: nil, min_seven_day_epc: nil, page_token: nil, publisher_category: nil, relationship_status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/publishers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/publishers', options) command.response_representation = Google::Apis::GanV1beta1::Publishers::Representation command.response_class = Google::Apis::GanV1beta1::Publishers command.params['role'] = role unless role.nil? @@ -655,8 +646,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_report(role, role_id, report_type, advertiser_id: nil, calculate_totals: nil, end_date: nil, event_type: nil, link_id: nil, max_results: nil, order_id: nil, publisher_id: nil, start_date: nil, start_index: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{role}/{roleId}/report/{reportType}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{role}/{roleId}/report/{reportType}', options) command.response_representation = Google::Apis::GanV1beta1::Report::Representation command.response_class = Google::Apis::GanV1beta1::Report command.params['role'] = role unless role.nil? diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 84978496f..2b143a7a2 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -26,7 +26,7 @@ module Google # @see module GenomicsV1 VERSION = 'V1' - REVISION = '20150723' + REVISION = '20151130' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index 99236c417..635ad21b1 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -49,7 +49,9 @@ module Google end end - # A Dataset is a collection of genomic data. + # A Dataset is a collection of genomic data. For more genomics resource + # definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) class Dataset include Google::Apis::Core::Hashable @@ -116,6 +118,177 @@ module Google end end + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::GenomicsV1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] unless args[:policy].nil? + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + class Policy + include Google::Apis::Core::Hashable + + # Version of the `Policy`. The default version is 0. 0 = + # resourcemanager_projects only support legacy roles. 1 = supports non-legacy + # roles 2 = supports AuditConfig + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Associates a list of `members` to a `role`. Multiple `bindings` must not be + # specified for the same `role`. `bindings` with no members will result in an + # error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # The etag is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the etag in the read-modify-write cycle to + # perform policy updates in order to avoid race conditions: Etags are returned + # in the response to GetIamPolicy, and systems are expected to put that etag in + # the request to SetIamPolicy to ensure that their change will be applied to the + # same version of the policy. If no etag is provided in the call to SetIamPolicy, + # then the existing policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] unless args[:version].nil? + @bindings = args[:bindings] unless args[:bindings].nil? + @etag = args[:etag] unless args[:etag].nil? + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following formats: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:` + # emailid``: An email address that represents a service account. For example, ` + # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email + # address that represents a Google group. For example, `admins@example.com`. * ` + # domain:`domain``: A Google Apps domain name that represents all the users of + # that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @role = args[:role] unless args[:role].nil? + @members = args[:members] unless args[:members].nil? + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # REQUIRED: The set of permissions to check for the 'resource'. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. Allowed permissions + # are: * `genomics.datasets.create` * `genomics.datasets.delete` * `genomics. + # datasets.get` * `genomics.datasets.list` * `genomics.datasets.update` * ` + # genomics.datasets.getIamPolicy` * `genomics.datasets.setIamPolicy` + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] unless args[:permissions].nil? + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] unless args[:permissions].nil? + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation @@ -128,14 +301,13 @@ module Google # @return [String] attr_accessor :name - # An [OperationMetadata][google.genomics.v1.OperationMetadata] object. This will - # always be returned with the [Operation][google.longrunning.Operation]. + # An OperationMetadata object. This will always be returned with the Operation. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # If the value is `false`, it means the operation is still in progress. If true, - # the operation is completed and the `result` is available. + # the operation is completed, and either `error` or `response` is available. # Corresponds to the JSON property `done` # @return [Boolean] attr_accessor :done @@ -146,42 +318,40 @@ module Google # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to # use and understand for most users - Flexible enough to meet unexpected needs # # Overview The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of [google. - # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. - # The error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` which can be used for common error conditions. # - # Language mapping The `Status` message is the logical representation of the - # error model, but it is not necessarily the actual wire format. When the ` - # Status` message is exposed in different client libraries and different wire - # protocols, it can be mapped differently. For example, it will likely be mapped - # to some exceptions in Java, but more likely mapped to some error codes in C. # - # Other uses The error model and the `Status` message can be used in a variety - # of environments, either with or without APIs, to provide a consistent - # developer experience across different environments. Example uses of this error - # model include: - Partial errors. If a service needs to return partial errors - # to the client, it may embed the `Status` in the normal response to indicate - # the partial errors. - Workflow errors. A typical workflow has multiple steps. - # Each step may have a `Status` message for error reporting purpose. - Batch - # operations. If a client uses batch request and batch response, the `Status` - # message should be used directly inside batch response, one for each error sub- - # response. - Asynchronous operations. If an API call embeds asynchronous - # operation results in its response, the status of those operations should be - # represented directly using the `Status` message. - Logging. If some API errors - # are stored in logs, the message `Status` could be used directly after any - # stripping needed for security/privacy reasons. + # message, and error details. The error code should be an enum value of google. + # rpc.Code, but it may accept additional error codes if needed. The error + # message should be a developer-facing English message that helps developers * + # understand* and *resolve* the error. If a localized user-facing error message + # is needed, put the localized message in the error details or localize it in + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments, + # either with or without APIs, to provide a consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. # Corresponds to the JSON property `error` # @return [Google::Apis::GenomicsV1::Status] attr_accessor :error - # If importing [ReadGroupSets][google.genomics.v1.ReadGroupSet], an [ - # ImportReadGroupSetsResponse][google.genomics.v1.ImportReadGroupSetsResponse] - # is returned. If importing [Variants][google.genomics.v1.Variant], an [ - # ImportVariantsResponse][google.genomics.v1.ImportVariantsResponse] is returned. - # For exports, an empty response is returned. + # If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If + # importing Variants, an ImportVariantsResponse is returned. For exports, an + # empty response is returned. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -205,45 +375,44 @@ module Google # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to # use and understand for most users - Flexible enough to meet unexpected needs # # Overview The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of [google. - # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. - # The error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` which can be used for common error conditions. # - # Language mapping The `Status` message is the logical representation of the - # error model, but it is not necessarily the actual wire format. When the ` - # Status` message is exposed in different client libraries and different wire - # protocols, it can be mapped differently. For example, it will likely be mapped - # to some exceptions in Java, but more likely mapped to some error codes in C. # - # Other uses The error model and the `Status` message can be used in a variety - # of environments, either with or without APIs, to provide a consistent - # developer experience across different environments. Example uses of this error - # model include: - Partial errors. If a service needs to return partial errors - # to the client, it may embed the `Status` in the normal response to indicate - # the partial errors. - Workflow errors. A typical workflow has multiple steps. - # Each step may have a `Status` message for error reporting purpose. - Batch - # operations. If a client uses batch request and batch response, the `Status` - # message should be used directly inside batch response, one for each error sub- - # response. - Asynchronous operations. If an API call embeds asynchronous - # operation results in its response, the status of those operations should be - # represented directly using the `Status` message. - Logging. If some API errors - # are stored in logs, the message `Status` could be used directly after any - # stripping needed for security/privacy reasons. + # message, and error details. The error code should be an enum value of google. + # rpc.Code, but it may accept additional error codes if needed. The error + # message should be a developer-facing English message that helps developers * + # understand* and *resolve* the error. If a localized user-facing error message + # is needed, put the localized message in the error details or localize it in + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments, + # either with or without APIs, to provide a consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. class Status include Google::Apis::Core::Hashable - # The status code, which should be an enum value of [google.rpc.Code][google.rpc. - # Code]. + # The status code, which should be an enum value of google.rpc.Code. # Corresponds to the JSON property `code` # @return [Fixnum] attr_accessor :code # A developer-facing error message, which should be in English. Any user-facing - # error message should be localized and sent in the [google.rpc.Status.details][ - # google.rpc.Status.details] field, or localized by the client. + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message @@ -266,8 +435,7 @@ module Google end end - # The response message for [Operations.ListOperations][google.longrunning. - # Operations.ListOperations]. + # The response message for Operations.ListOperations. class ListOperationsResponse include Google::Apis::Core::Hashable @@ -292,8 +460,7 @@ module Google end end - # The request message for [Operations.CancelOperation][google.longrunning. - # Operations.CancelOperation]. + # The request message for Operations.CancelOperation. class CancelOperationRequest include Google::Apis::Core::Hashable @@ -324,7 +491,8 @@ module Google # @return [String] attr_accessor :reference_set_id - # A list of URIs pointing at BAM files in Google Cloud Storage. + # A list of URIs pointing at [BAM files](https://samtools.github.io/hts-specs/ + # SAMv1.pdf) in Google Cloud Storage. # Corresponds to the JSON property `sourceUris` # @return [Array] attr_accessor :source_uris @@ -456,7 +624,9 @@ module Google # of reads produced by a sequencer. A read group set typically models reads # corresponding to one sample, sequenced one way, and aligned one way. * A read # group set belongs to one dataset. * A read group belongs to one read group set. - # * A read belongs to one read group. + # * A read belongs to one read group. For more genomics resource definitions, + # see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/ + # fundamentals-of-google-genomics) class ReadGroupSet include Google::Apis::Core::Hashable @@ -850,7 +1020,7 @@ module Google # The list of matching alignments sorted by mapped genomic coordinate, if any, # ascending in position within the same reference. Unmapped reads, which have no - # position, are returned last and are further sorted in ascending lexicographic + # position, are returned contiguously and are sorted in ascending lexicographic # order by fragment name. # Corresponds to the JSON property `alignments` # @return [Array] @@ -874,12 +1044,13 @@ module Google end end - # A read alignment describes a linear alignment of a string of DNA to a [ - # reference sequence][google.genomics.v1.Reference], in addition to metadata - # about the fragment (the molecule of DNA sequenced) and the read (the bases - # which were read by the sequencer). A read is equivalent to a line in a SAM - # file. A read belongs to exactly one read group and exactly one [read group set] - # [google.genomics.v1.ReadGroupSet]. ### Generating a reference-aligned sequence + # A read alignment describes a linear alignment of a string of DNA to a + # reference sequence, in addition to metadata about the fragment (the molecule + # of DNA sequenced) and the read (the bases which were read by the sequencer). A + # read is equivalent to a line in a SAM file. A read belongs to exactly one read + # group and exactly one read group set. For more genomics resource definitions, + # see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/ + # fundamentals-of-google-genomics) ### Generating a reference-aligned sequence # string When interacting with mapped reads, it's often useful to produce a # string representing the local alignment of the read to reference. The # following pseudocode demonstrates one way of doing this: out = "" offset = 0 @@ -1237,7 +1408,9 @@ module Google # assembly for a species, such as `GRCh38` which is representative of the human # genome. A reference set defines a common coordinate space for comparing # reference-aligned experimental data. A reference set contains 1 or more - # references. + # references. For more genomics resource definitions, see [Fundamentals of + # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) class ReferenceSet include Google::Apis::Core::Hashable @@ -1388,7 +1561,9 @@ module Google # A reference is a canonical assembled DNA sequence, intended to act as a # reference coordinate space for other genomic annotations. A single reference # might represent the human chromosome 1 or mitochandrial DNA, for instance. A - # reference belongs to one or more reference sets. + # reference belongs to one or more reference sets. For more genomics resource + # definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) class Reference include Google::Apis::Core::Hashable @@ -1530,7 +1705,9 @@ module Google end # A variant set is a collection of call sets and variants. It contains summary - # statistics of those contents. A variant set belongs to a dataset. + # statistics of those contents. A variant set belongs to a dataset. For more + # genomics resource definitions, see [Fundamentals of Google Genomics](https:// + # cloud.google.com/genomics/fundamentals-of-google-genomics) class VariantSet include Google::Apis::Core::Hashable @@ -1544,6 +1721,18 @@ module Google # @return [String] attr_accessor :id + # The reference set to which the variant set is mapped. The reference set + # describes the alignment provenance of the variant set, while the ` + # referenceBounds` describe the shape of the actual variant data. The reference + # set's reference names are a superset of those found in the `referenceBounds`. + # For example, given a variant set that is mapped to the GRCh38 reference set + # and contains a single variant on reference 'X', `referenceBounds` would + # contain only an entry for 'X', while the associated reference set enumerates + # all possible references: '1', '2', 'X', 'Y', 'MT', etc. + # Corresponds to the JSON property `referenceSetId` + # @return [String] + attr_accessor :reference_set_id + # A list of all references used by the variants in a variant set with associated # coordinate upper bounds for each one. # Corresponds to the JSON property `referenceBounds` @@ -1563,6 +1752,7 @@ module Google def update!(**args) @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? @id = args[:id] unless args[:id].nil? + @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? @reference_bounds = args[:reference_bounds] unless args[:reference_bounds].nil? @metadata = args[:metadata] unless args[:metadata].nil? end @@ -1626,7 +1816,7 @@ module Google # The number of values that can be included in a field described by this # metadata. # Corresponds to the JSON property `number` - # @return [Fixnum] + # @return [String] attr_accessor :number # A textual description of this metadata. @@ -1872,11 +2062,12 @@ module Google # A variant represents a change in DNA sequence relative to a reference sequence. # For example, a variant could represent a SNP or an insertion. Variants belong - # to a variant set. Each of the calls on a variant represent a determination of - # genotype with respect to that variant. For example, a call might assign - # probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named - # NA12345. A call belongs to a call set, which contains related calls typically - # from one sample. + # to a variant set. For more genomics resource definitions, see [Fundamentals of + # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) Each of the calls on a variant represent a determination of genotype + # with respect to that variant. For example, a call might assign probability of + # 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call + # belongs to a call set, which contains related calls typically from one sample. class Variant include Google::Apis::Core::Hashable @@ -2043,31 +2234,6 @@ module Google end end - # - class MergeVariantsRequest - include Google::Apis::Core::Hashable - - # The destination variant set. - # Corresponds to the JSON property `variantSetId` - # @return [String] - attr_accessor :variant_set_id - - # The variants to be merged with existing variants. - # Corresponds to the JSON property `variants` - # @return [Array] - attr_accessor :variants - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil? - @variants = args[:variants] unless args[:variants].nil? - end - end - # The call set search request. class SearchCallSetsRequest include Google::Apis::Core::Hashable @@ -2136,7 +2302,9 @@ module Google end # A call set is a collection of variant calls, typically for one sample. It - # belongs to a variant set. + # belongs to a variant set. For more genomics resource definitions, see [ + # Fundamentals of Google Genomics](https://cloud.google.com/genomics/ + # fundamentals-of-google-genomics) class CallSet include Google::Apis::Core::Hashable @@ -2227,7 +2395,7 @@ module Google end end - # Metadata describing an [Operation][google.longrunning.Operation]. + # Metadata describing an Operation. class OperationMetadata include Google::Apis::Core::Hashable @@ -2267,7 +2435,7 @@ module Google end end - # An event that occurred during an [Operation][google.longrunning.Operation]. + # An event that occurred during an Operation. class OperationEvent include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index 9e57e29da..208e0c68b 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -38,6 +38,30 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -194,10 +218,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end - class MergeVariantsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - end - class SearchCallSetsRequest class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -257,6 +277,52 @@ module Google end end + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::GenomicsV1::Policy, decorator: Google::Apis::GenomicsV1::Policy::Representation + + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + collection :bindings, as: 'bindings', class: Google::Apis::GenomicsV1::Binding, decorator: Google::Apis::GenomicsV1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :role, as: 'role' + collection :members, as: 'members' + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -591,6 +657,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :dataset_id, as: 'datasetId' property :id, as: 'id' + property :reference_set_id, as: 'referenceSetId' collection :reference_bounds, as: 'referenceBounds', class: Google::Apis::GenomicsV1::ReferenceBound, decorator: Google::Apis::GenomicsV1::ReferenceBound::Representation collection :metadata, as: 'metadata', class: Google::Apis::GenomicsV1::VariantSetMetadata, decorator: Google::Apis::GenomicsV1::VariantSetMetadata::Representation @@ -716,15 +783,6 @@ module Google end end - class MergeVariantsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :variant_set_id, as: 'variantSetId' - collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation - - end - end - class SearchCallSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 38834b606..765e0c843 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -47,7 +47,9 @@ module Google super('https://genomics.googleapis.com/', '') end - # Lists datasets within a project. + # Lists datasets within a project. For the definitions of datasets and other + # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google. + # com/genomics/fundamentals-of-google-genomics) # @param [String] project_id # Required. The project to list datasets for. # @param [Fixnum] page_size @@ -75,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_datasets(project_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/datasets' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/datasets', options) command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse command.query['projectId'] = project_id unless project_id.nil? @@ -87,7 +88,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new dataset. + # Creates a new dataset. For the definitions of datasets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [Google::Apis::GenomicsV1::Dataset] dataset_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -107,8 +110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/datasets' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/datasets', options) command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation @@ -118,7 +120,9 @@ module Google execute_or_queue_command(command, &block) end - # Gets a dataset by ID. + # Gets a dataset by ID. For the definitions of datasets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [String] dataset_id # The ID of the dataset. # @param [String] fields @@ -139,8 +143,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/datasets/{datasetId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/datasets/{datasetId}', options) command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation command.response_class = Google::Apis::GenomicsV1::Dataset command.params['datasetId'] = dataset_id unless dataset_id.nil? @@ -149,14 +152,16 @@ module Google execute_or_queue_command(command, &block) end - # Updates a dataset. This method supports patch semantics. + # Updates a dataset. For the definitions of datasets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) This method supports patch semantics. # @param [String] dataset_id # The ID of the dataset to be updated. # @param [Google::Apis::GenomicsV1::Dataset] dataset_object # @param [String] update_mask # An optional mask specifying which fields to update. At this time, the only - # mutable field is [name][google.genomics.v1.Dataset.name]. The only acceptable - # value is "name". If unspecified, all mutable fields will be updated. + # mutable field is name. The only acceptable value is "name". If unspecified, + # all mutable fields will be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -175,8 +180,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/datasets/{datasetId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'v1/datasets/{datasetId}', options) command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation @@ -188,7 +192,9 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a dataset. + # Deletes a dataset. For the definitions of datasets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [String] dataset_id # The ID of the dataset to be deleted. # @param [String] fields @@ -209,8 +215,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/datasets/{datasetId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1/datasets/{datasetId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['datasetId'] = dataset_id unless dataset_id.nil? @@ -219,8 +224,11 @@ module Google execute_or_queue_command(command, &block) end - # Undeletes a dataset by restoring a dataset which was deleted via this API. - # This operation is only possible for a week after the deletion occurred. + # Undeletes a dataset by restoring a dataset which was deleted via this API. For + # the definitions of datasets and other genomics resources, see [Fundamentals of + # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) This operation is only possible for a week after the deletion + # occurred. # @param [String] dataset_id # The ID of the dataset to be undeleted. # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object @@ -242,8 +250,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/datasets/{datasetId}:undelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options) command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation command.request_object = undelete_dataset_request_object command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation @@ -254,6 +261,118 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified dataset. Replaces any existing + # policy. For the definitions of datasets and other genomics resources, see [ + # Fundamentals of Google Genomics](https://cloud.google.com/genomics/ + # fundamentals-of-google-genomics) See Setting a Policy for more information. + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. Format is ` + # datasets/`. + # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::GenomicsV1::Policy::Representation + command.response_class = Google::Apis::GenomicsV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for the dataset. This is empty if the policy or + # resource does not exist. See Getting a Policy for more information. For the + # definitions of datasets and other genomics resources, see [Fundamentals of + # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. Format is ` + # datasets/`. + # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::GenomicsV1::Policy::Representation + command.response_class = Google::Apis::GenomicsV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. See Testing + # Permissions for more information. For the definitions of datasets and other + # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google. + # com/genomics/fundamentals-of-google-genomics) + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. Format is ` + # datasets/`. + # @param [Google::Apis::GenomicsV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the latest state of a long-running operation. Clients can use this method # to poll the operation result at intervals as recommended by the API service. # @param [String] name @@ -276,8 +395,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/{+name}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::GenomicsV1::Operation::Representation command.response_class = Google::Apis::GenomicsV1::Operation command.params['name'] = name unless name.nil? @@ -290,13 +408,12 @@ module Google # @param [String] name # The name of the operation collection. # @param [String] filter - # A string for filtering [Operations][google.longrunning.Operation]. The - # following filter fields are supported: * projectId: Required. Corresponds to [ - # OperationMetadata.projectId][google.genomics.v1.OperationMetadata.project_id]. - # * createTime: The time this job was created, in seconds from the [epoch](http:/ - # /en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= 1432140000` * ` - # projectId = my-project AND createTime >= 1432140000 AND createTime <= - # 1432150000 AND status = RUNNING` + # A string for filtering Operations. The following filter fields are supported: * + # projectId: Required. Corresponds to OperationMetadata.projectId. * createTime: + # The time this job was created, in seconds from the [epoch](http://en. + # wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= 1432140000` * `projectId + # = my-project AND createTime >= 1432140000 AND createTime <= 1432150000 AND + # status = RUNNING` # @param [Fixnum] page_size # The maximum number of results to return. If unspecified, defaults to 256. The # maximum value is 2048. @@ -320,8 +437,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/{+name}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse command.params['name'] = name unless name.nil? @@ -335,10 +451,8 @@ module Google # Starts asynchronous cancellation on a long-running operation. The server makes # a best effort to cancel the operation, but success is not guaranteed. Clients - # may use [Operations.GetOperation][google.longrunning.Operations.GetOperation] - # or [Operations.ListOperations][google.longrunning.Operations.ListOperations] - # to check whether the cancellation succeeded or the operation completed despite - # cancellation. + # may use Operations.GetOperation or Operations.ListOperations to check whether + # the cancellation succeeded or the operation completed despite cancellation. # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object @@ -360,8 +474,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/{+name}:cancel' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::GenomicsV1::Empty::Representation @@ -372,8 +485,8 @@ module Google execute_or_queue_command(command, &block) end - # This method is not implemented. To cancel an operation, please use [Operations. - # CancelOperation][google.longrunning.Operations.CancelOperation]. + # This method is not implemented. To cancel an operation, please use Operations. + # CancelOperation. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -394,8 +507,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/{+name}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['name'] = name unless name.nil? @@ -405,9 +517,16 @@ module Google end # Creates read group sets by asynchronously importing the provided information. - # Note that currently comments in the input file header are **not** imported and - # some custom tags will be converted to strings, rather than preserving tag - # types. The caller must have WRITE permissions to the dataset. + # For the definitions of read group sets and other genomics resources, see [ + # Fundamentals of Google Genomics](https://cloud.google.com/genomics/ + # fundamentals-of-google-genomics) The caller must have WRITE permissions to the + # dataset. ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) + # import - Tags will be converted to strings - tag types are not preserved - + # Comments (`@CO`) in the input file header will not be preserved - Original + # header order of references (`@SQ`) will not be preserved - Any reverse + # stranded unmapped reads will be reverse complemented, and their qualities (and + # "BQ" tag, if any) will be reversed - Unmapped reads will be stripped of + # positional information (reference name and position) # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -427,8 +546,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/readgroupsets:import' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/readgroupsets:import', options) command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation command.request_object = import_read_group_sets_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation @@ -438,11 +556,13 @@ module Google execute_or_queue_command(command, &block) end - # Exports a read group set to a BAM file in Google Cloud Storage. Note that - # currently there may be some differences between exported BAM files and the - # original BAM file at the time of import. In particular, comments in the input - # file header will not be preserved, some custom tags will be converted to - # strings, and original reference sequence order is not necessarily preserved. + # Exports a read group set to a BAM file in Google Cloud Storage. For the + # definitions of read group sets and other genomics resources, see [Fundamentals + # of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) Note that currently there may be some differences between exported + # BAM files and the original BAM file at the time of import. See [ + # ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) for + # caveats. # @param [String] read_group_set_id # Required. The ID of the read group set to export. # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object @@ -464,8 +584,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/readgroupsets/{readGroupSetId}:export' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options) command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation command.request_object = export_read_group_set_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation @@ -476,9 +595,11 @@ module Google execute_or_queue_command(command, &block) end - # Searches for read group sets matching the criteria. Implements [ - # GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/ - # v0.5.1/src/main/resources/avro/readmethods.avdl#L135). + # Searches for read group sets matching the criteria. For the definitions of + # read group sets and other genomics resources, see [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Implements [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/ + # schemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L135). # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -498,8 +619,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/readgroupsets/search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/readgroupsets/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation command.request_object = search_read_group_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation @@ -509,16 +629,18 @@ module Google execute_or_queue_command(command, &block) end - # Updates a read group set. This method supports patch semantics. + # Updates a read group set. For the definitions of read group sets and other + # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google. + # com/genomics/fundamentals-of-google-genomics) This method supports patch + # semantics. # @param [String] read_group_set_id # The ID of the read group set to be updated. The caller must have WRITE # permissions to the dataset associated with this read group set. # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object # @param [String] update_mask # An optional mask specifying which fields to update. At this time, mutable - # fields are [referenceSetId][google.genomics.v1.ReadGroupSet.reference_set_id] - # and [name][google.genomics.v1.ReadGroupSet.name]. Acceptable values are " - # referenceSetId" and "name". If unspecified, all mutable fields will be updated. + # fields are referenceSetId and name. Acceptable values are "referenceSetId" and + # "name". If unspecified, all mutable fields will be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -537,8 +659,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/readgroupsets/{readGroupSetId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options) command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation command.request_object = read_group_set_object command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation @@ -550,7 +671,9 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a read group set. + # Deletes a read group set. For the definitions of read group sets and other + # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google. + # com/genomics/fundamentals-of-google-genomics) # @param [String] read_group_set_id # The ID of the read group set to be deleted. The caller must have WRITE # permissions to the dataset associated with this read group set. @@ -572,8 +695,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/readgroupsets/{readGroupSetId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? @@ -582,7 +704,9 @@ module Google execute_or_queue_command(command, &block) end - # Gets a read group set by ID. + # Gets a read group set by ID. For the definitions of read group sets and other + # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google. + # com/genomics/fundamentals-of-google-genomics) # @param [String] read_group_set_id # The ID of the read group set. # @param [String] fields @@ -603,8 +727,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/readgroupsets/{readGroupSetId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options) command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation command.response_class = Google::Apis::GenomicsV1::ReadGroupSet command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? @@ -615,11 +738,13 @@ module Google # Lists fixed width coverage buckets for a read group set, each of which # correspond to a range of a reference sequence. Each bucket summarizes coverage - # information across its corresponding genomic range. Coverage is defined as the - # number of reads which are aligned to a given base in the reference sequence. - # Coverage buckets are available at several precomputed bucket widths, enabling - # retrieval of various coverage 'zoom levels'. The caller must have READ - # permissions for the target read group set. + # information across its corresponding genomic range. For the definitions of + # read group sets and other genomics resources, see [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Coverage is defined as the number of reads which are aligned to a given base + # in the reference sequence. Coverage buckets are available at several + # precomputed bucket widths, enabling retrieval of various coverage 'zoom levels' + # . The caller must have READ permissions for the target read group set. # @param [String] read_group_set_id # Required. The ID of the read group set over which coverage is requested. # @param [String] reference_name @@ -664,8 +789,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_coverage_buckets(read_group_set_id, reference_name: nil, start: nil, end_: nil, target_bucket_width: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/readgroupsets/{readGroupSetId}/coveragebuckets' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options) command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? @@ -680,17 +804,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets a list of reads for one or more read group sets. Reads search operates - # over a genomic coordinate space of reference sequence & position defined over - # the reference sequences to which the requested read group sets are aligned. If - # a target positional range is specified, search returns all reads whose - # alignment to the reference genome overlap the range. A query which specifies - # only read group set IDs yields all reads in those read group sets, including - # unmapped reads. All reads returned (including reads on subsequent pages) are - # ordered by genomic coordinate (reference sequence & position). Reads with - # equivalent genomic coordinates are returned in a deterministic order. - # Implements [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/ - # blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L85). + # Gets a list of reads for one or more read group sets. For the definitions of + # read group sets and other genomics resources, see [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + # Reads search operates over a genomic coordinate space of reference sequence & + # position defined over the reference sequences to which the requested read + # group sets are aligned. If a target positional range is specified, search + # returns all reads whose alignment to the reference genome overlap the range. A + # query which specifies only read group set IDs yields all reads in those read + # group sets, including unmapped reads. All reads returned (including reads on + # subsequent pages) are ordered by genomic coordinate (reference sequence & + # position). Reads with equivalent genomic coordinates are returned in a + # deterministic order. Implements [GlobalAllianceApi.searchReads](https://github. + # com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L85). # @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -710,8 +836,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/reads/search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/reads/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation command.request_object = search_reads_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation @@ -721,9 +846,11 @@ module Google execute_or_queue_command(command, &block) end - # Searches for reference sets which match the given criteria. Implements [ - # GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/documentation/api/v0.5. - # 1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets). + # Searches for reference sets which match the given criteria. For the + # definitions of references and other genomics resources, see [Fundamentals of + # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) Implements [GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/ + # documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets). # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -743,8 +870,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/referencesets/search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/referencesets/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation command.request_object = search_reference_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation @@ -754,9 +880,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets a reference set. Implements [GlobalAllianceApi.getReferenceSet](https:// - # github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods. - # avdl#L83). + # Gets a reference set. For the definitions of references and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) Implements [GlobalAllianceApi. + # getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/ + # resources/avro/referencemethods.avdl#L83). # @param [String] reference_set_id # The ID of the reference set. # @param [String] fields @@ -777,8 +905,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_reference_set(reference_set_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/referencesets/{referenceSetId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', options) command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation command.response_class = Google::Apis::GenomicsV1::ReferenceSet command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil? @@ -787,7 +914,9 @@ module Google execute_or_queue_command(command, &block) end - # Searches for references which match the given criteria. Implements [ + # Searches for references which match the given criteria. For the definitions of + # references and other genomics resources, see [Fundamentals of Google Genomics]( + # https://cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [ # GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.5. # 1/src/main/resources/avro/referencemethods.avdl#L146). # @param [Google::Apis::GenomicsV1::SearchReferencesRequest] search_references_request_object @@ -809,8 +938,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/references/search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/references/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchReferencesRequest::Representation command.request_object = search_references_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReferencesResponse::Representation @@ -820,9 +948,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets a reference. Implements [GlobalAllianceApi.getReference](https://github. - # com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl# - # L158). + # Gets a reference. For the definitions of references and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) Implements [GlobalAllianceApi. + # getReference](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/ + # avro/referencemethods.avdl#L158). # @param [String] reference_id # The ID of the reference. # @param [String] fields @@ -843,8 +973,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_reference(reference_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/references/{referenceId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/references/{referenceId}', options) command.response_representation = Google::Apis::GenomicsV1::Reference::Representation command.response_class = Google::Apis::GenomicsV1::Reference command.params['referenceId'] = reference_id unless reference_id.nil? @@ -853,9 +982,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists the bases in a reference, optionally restricted to a range. Implements [ - # GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v0. - # 5.1/src/main/resources/avro/referencemethods.avdl#L221). + # Lists the bases in a reference, optionally restricted to a range. For the + # definitions of references and other genomics resources, see [Fundamentals of + # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) Implements [GlobalAllianceApi.getReferenceBases](https://github.com/ + # ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221). # @param [String] reference_id # The ID of the reference. # @param [String] start_position @@ -887,8 +1018,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_reference_bases(reference_id, start_position: nil, end_position: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/references/{referenceId}/bases' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/references/{referenceId}/bases', options) command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListBasesResponse command.params['referenceId'] = reference_id unless reference_id.nil? @@ -901,14 +1031,20 @@ module Google execute_or_queue_command(command, &block) end - # Creates variant data by asynchronously importing the provided information. The - # variants for import will be merged with any existing data and each other - # according to the behavior of mergeVariants. In particular, this means for - # merged VCF variants that have conflicting INFO fields, some data will be - # arbitrarily discarded. As a special case, for single-sample VCF files, QUAL - # and FILTER fields will be moved to the call level; these are sometimes - # interpreted in a call-specific context. Imported VCF headers are appended to - # the metadata already in a variant set. + # Creates variant data by asynchronously importing the provided information. For + # the definitions of variant sets and other genomics resources, see [ + # Fundamentals of Google Genomics](https://cloud.google.com/genomics/ + # fundamentals-of-google-genomics) The variants for import will be merged with + # any existing variant that matches its reference sequence, start, end, + # reference bases, and alternative bases. If no such variant exists, a new one + # will be created. When variants are merged, the call information from the new + # variant is added to the existing variant, and other fields (such as key/value + # pairs) are discarded. In particular, this means for merged VCF variants that + # have conflicting INFO fields, some data will be arbitrarily discarded. As a + # special case, for single-sample VCF files, QUAL and FILTER fields will be + # moved to the call level; these are sometimes interpreted in a call-specific + # context. Imported VCF headers are appended to the metadata already in a + # variant set. # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -928,8 +1064,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variants:import' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/variants:import', options) command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation command.request_object = import_variants_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation @@ -939,9 +1074,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets a list of variants matching the criteria. Implements [GlobalAllianceApi. - # searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/ - # resources/avro/variantmethods.avdl#L126). + # Gets a list of variants matching the criteria. For the definitions of variants + # and other genomics resources, see [Fundamentals of Google Genomics](https:// + # cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [ + # GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/ + # src/main/resources/avro/variantmethods.avdl#L126). # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -961,8 +1098,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variants/search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/variants/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation command.request_object = search_variants_request_object command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation @@ -972,7 +1108,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new variant. + # Creates a new variant. For the definitions of variants and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [Google::Apis::GenomicsV1::Variant] variant_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -992,8 +1130,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variants' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/variants', options) command.request_representation = Google::Apis::GenomicsV1::Variant::Representation command.request_object = variant_object command.response_representation = Google::Apis::GenomicsV1::Variant::Representation @@ -1003,15 +1140,16 @@ module Google execute_or_queue_command(command, &block) end - # Updates a variant. This method supports patch semantics. Returns the modified - # variant without its calls. + # Updates a variant. For the definitions of variants and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) This method supports patch semantics. + # Returns the modified variant without its calls. # @param [String] variant_id # The ID of the variant to be updated. # @param [Google::Apis::GenomicsV1::Variant] variant_object # @param [String] update_mask # An optional mask specifying which fields to update. At this time, mutable - # fields are [names][google.genomics.v1.Variant.names] and [info][google. - # genomics.v1.Variant.info]. Acceptable values are "names" and "info". If + # fields are names and info. Acceptable values are "names" and "info". If # unspecified, all mutable fields will be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1031,8 +1169,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variants/{variantId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'v1/variants/{variantId}', options) command.request_representation = Google::Apis::GenomicsV1::Variant::Representation command.request_object = variant_object command.response_representation = Google::Apis::GenomicsV1::Variant::Representation @@ -1044,7 +1181,9 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a variant. + # Deletes a variant. For the definitions of variants and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [String] variant_id # The ID of the variant to be deleted. # @param [String] fields @@ -1065,8 +1204,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variants/{variantId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1/variants/{variantId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['variantId'] = variant_id unless variant_id.nil? @@ -1075,7 +1213,9 @@ module Google execute_or_queue_command(command, &block) end - # Gets a variant by ID. + # Gets a variant by ID. For the definitions of variants and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [String] variant_id # The ID of the variant. # @param [String] fields @@ -1096,8 +1236,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variants/{variantId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/variants/{variantId}', options) command.response_representation = Google::Apis::GenomicsV1::Variant::Representation command.response_class = Google::Apis::GenomicsV1::Variant command.params['variantId'] = variant_id unless variant_id.nil? @@ -1106,43 +1245,11 @@ module Google execute_or_queue_command(command, &block) end - # Merges the given variants with existing variants. Each variant will be merged - # with an existing variant that matches its reference sequence, start, end, - # reference bases, and alternative bases. If no such variant exists, a new one - # will be created. When variants are merged, the call information from the new - # variant is added to the existing variant, and other fields (such as key/value - # pairs) are discarded. - # @param [Google::Apis::GenomicsV1::MergeVariantsRequest] merge_variants_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GenomicsV1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variants:merge' - command = make_simple_command(:post, path, options) - command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation - command.request_object = merge_variants_request_object - command.response_representation = Google::Apis::GenomicsV1::Empty::Representation - command.response_class = Google::Apis::GenomicsV1::Empty - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new variant set. + # Creates a new variant set. For the definitions of variant sets and other + # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google. + # com/genomics/fundamentals-of-google-genomics) The provided variant set must + # have a valid `datasetId` set - all other fields are optional. Note that the ` + # id` field will be ignored, as this is assigned by the server. # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1162,8 +1269,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variantsets' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/variantsets', options) command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.request_object = variant_set_object command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation @@ -1173,7 +1279,9 @@ module Google execute_or_queue_command(command, &block) end - # Exports variant set data to an external destination. + # Exports variant set data to an external destination. For the definitions of + # variant sets and other genomics resources, see [Fundamentals of Google + # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] variant_set_id # Required. The ID of the variant set that contains variant data which should be # exported. The caller must have READ access to this variant set. @@ -1196,8 +1304,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def export_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variantsets/{variantSetId}:export' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/variantsets/{variantSetId}:export', options) command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation command.request_object = export_variant_set_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation @@ -1208,7 +1315,9 @@ module Google execute_or_queue_command(command, &block) end - # Gets a variant set by ID. + # Gets a variant set by ID. For the definitions of variant sets and other + # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google. + # com/genomics/fundamentals-of-google-genomics) # @param [String] variant_set_id # Required. The ID of the variant set. # @param [String] fields @@ -1229,8 +1338,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variantsets/{variantSetId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/variantsets/{variantSetId}', options) command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.response_class = Google::Apis::GenomicsV1::VariantSet command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? @@ -1239,9 +1347,11 @@ module Google execute_or_queue_command(command, &block) end - # Returns a list of all variant sets matching search criteria. Implements [ - # GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0. - # 5.1/src/main/resources/avro/variantmethods.avdl#L49). + # Returns a list of all variant sets matching search criteria. For the + # definitions of variant sets and other genomics resources, see [Fundamentals of + # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google- + # genomics) Implements [GlobalAllianceApi.searchVariantSets](https://github.com/ + # ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L49). # @param [Google::Apis::GenomicsV1::SearchVariantSetsRequest] search_variant_sets_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1261,8 +1371,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variantsets/search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/variantsets/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation command.request_object = search_variant_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation @@ -1273,6 +1382,9 @@ module Google end # Deletes the contents of a variant set. The variant set object is not deleted. + # For the definitions of variant sets and other genomics resources, see [ + # Fundamentals of Google Genomics](https://cloud.google.com/genomics/ + # fundamentals-of-google-genomics) # @param [String] variant_set_id # The ID of the variant set to be deleted. # @param [String] fields @@ -1293,8 +1405,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variantsets/{variantSetId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? @@ -1303,15 +1414,16 @@ module Google execute_or_queue_command(command, &block) end - # Updates a variant set. This method supports patch semantics. + # Updates a variant set using patch semantics. For the definitions of variant + # sets and other genomics resources, see [Fundamentals of Google Genomics](https: + # //cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] variant_set_id # The ID of the variant to be updated (must already exist). # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object # @param [String] update_mask - # An optional mask specifying which fields to update. At this time, the only - # mutable field is [metadata][google.genomics.v1.VariantSet.metadata]. The only - # acceptable value is "metadata". If unspecified, all mutable fields will be - # updated. + # An optional mask specifying which fields to update. Supported fields: * + # metadata. Leaving `updateMask` unset is equivalent to specifying all mutable + # fields. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1330,8 +1442,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/variantsets/{variantSetId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'v1/variantsets/{variantSetId}', options) command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.request_object = variant_set_object command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation @@ -1343,9 +1454,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi. - # searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/ - # resources/avro/variantmethods.avdl#L178). + # Gets a list of call sets matching the criteria. For the definitions of call + # sets and other genomics resources, see [Fundamentals of Google Genomics](https: + # //cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [ + # GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/ + # src/main/resources/avro/variantmethods.avdl#L178). # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1365,8 +1478,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/callsets/search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/callsets/search', options) command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation command.request_object = search_call_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation @@ -1376,7 +1488,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new call set. + # Creates a new call set. For the definitions of call sets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [Google::Apis::GenomicsV1::CallSet] call_set_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1396,8 +1510,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/callsets' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1/callsets', options) command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation command.request_object = call_set_object command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation @@ -1407,14 +1520,16 @@ module Google execute_or_queue_command(command, &block) end - # Updates a call set. This method supports patch semantics. + # Updates a call set. For the definitions of call sets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) This method supports patch semantics. # @param [String] call_set_id # The ID of the call set to be updated. # @param [Google::Apis::GenomicsV1::CallSet] call_set_object # @param [String] update_mask # An optional mask specifying which fields to update. At this time, the only - # mutable field is [name][google.genomics.v1.CallSet.name]. The only acceptable - # value is "name". If unspecified, all mutable fields will be updated. + # mutable field is name. The only acceptable value is "name". If unspecified, + # all mutable fields will be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1433,8 +1548,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/callsets/{callSetId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options) command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation command.request_object = call_set_object command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation @@ -1446,7 +1560,9 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a call set. + # Deletes a call set. For the definitions of call sets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [String] call_set_id # The ID of the call set to be deleted. # @param [String] fields @@ -1467,8 +1583,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/callsets/{callSetId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['callSetId'] = call_set_id unless call_set_id.nil? @@ -1477,7 +1592,9 @@ module Google execute_or_queue_command(command, &block) end - # Gets a call set by ID. + # Gets a call set by ID. For the definitions of call sets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [String] call_set_id # The ID of the call set. # @param [String] fields @@ -1498,8 +1615,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1/callsets/{callSetId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1/callsets/{callSetId}', options) command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation command.response_class = Google::Apis::GenomicsV1::CallSet command.params['callSetId'] = call_set_id unless call_set_id.nil? diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index a8c382507..f089e5b5b 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20150526' + REVISION = '20151001' # View and manage your mail AUTH_SCOPE = 'https://mail.google.com/' @@ -44,6 +44,9 @@ module Google # View your emails messages and settings AUTH_GMAIL_READONLY = 'https://www.googleapis.com/auth/gmail.readonly' + + # Send email on your behalf + AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send' end end end diff --git a/generated/google/apis/gmail_v1/service.rb b/generated/google/apis/gmail_v1/service.rb index 988563526..2b36040aa 100644 --- a/generated/google/apis/gmail_v1/service.rb +++ b/generated/google/apis/gmail_v1/service.rb @@ -78,8 +78,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_profile(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/profile' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/profile', options) command.response_representation = Google::Apis::GmailV1::Profile::Representation command.response_class = Google::Apis::GmailV1::Profile command.params['userId'] = user_id unless user_id.nil? @@ -115,8 +114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/stop' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/stop', options) command.params['userId'] = user_id unless user_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -150,9 +148,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def watch(user_id, watch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/watch' - command = make_simple_command(:post, path, options) + def watch_user(user_id, watch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{userId}/watch', options) command.request_representation = Google::Apis::GmailV1::WatchRequest::Representation command.request_object = watch_request_object command.response_representation = Google::Apis::GmailV1::WatchResponse::Representation @@ -195,11 +192,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{userId}/drafts' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/drafts', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{userId}/drafts', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -243,8 +239,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_draft(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/drafts/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{userId}/drafts/{id}', options) command.params['userId'] = user_id unless user_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -283,8 +278,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_draft(user_id, id, format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/drafts/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/drafts/{id}', options) command.response_representation = Google::Apis::GmailV1::Draft::Representation command.response_class = Google::Apis::GmailV1::Draft command.params['userId'] = user_id unless user_id.nil? @@ -326,8 +320,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_drafts(user_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/drafts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/drafts', options) command.response_representation = Google::Apis::GmailV1::ListDraftsResponse::Representation command.response_class = Google::Apis::GmailV1::ListDraftsResponse command.params['userId'] = user_id unless user_id.nil? @@ -371,11 +364,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def send_user_draft(user_id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{userId}/drafts/send' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/drafts/send', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{userId}/drafts/send', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -423,11 +415,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user_draft(user_id, id, draft_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{userId}/drafts/{id}' if upload_source.nil? - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{userId}/drafts/{id}', options) else - command = make_upload_command(:put, path, options) + command = make_upload_command(:put, '{userId}/drafts/{id}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -487,8 +478,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_histories(user_id, label_id: nil, max_results: nil, page_token: nil, start_history_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/history' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/history', options) command.response_representation = Google::Apis::GmailV1::ListHistoryResponse::Representation command.response_class = Google::Apis::GmailV1::ListHistoryResponse command.params['userId'] = user_id unless user_id.nil? @@ -529,8 +519,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_user_label(user_id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/labels' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/labels', options) command.request_representation = Google::Apis::GmailV1::Label::Representation command.request_object = label_object command.response_representation = Google::Apis::GmailV1::Label::Representation @@ -571,8 +560,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/labels/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{userId}/labels/{id}', options) command.params['userId'] = user_id unless user_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -609,8 +597,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_label(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/labels/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/labels/{id}', options) command.response_representation = Google::Apis::GmailV1::Label::Representation command.response_class = Google::Apis::GmailV1::Label command.params['userId'] = user_id unless user_id.nil? @@ -647,8 +634,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_labels(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/labels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/labels', options) command.response_representation = Google::Apis::GmailV1::ListLabelsResponse::Representation command.response_class = Google::Apis::GmailV1::ListLabelsResponse command.params['userId'] = user_id unless user_id.nil? @@ -687,8 +673,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/labels/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{userId}/labels/{id}', options) command.request_representation = Google::Apis::GmailV1::Label::Representation command.request_object = label_object command.response_representation = Google::Apis::GmailV1::Label::Representation @@ -730,8 +715,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user_label(user_id, id, label_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/labels/{id}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{userId}/labels/{id}', options) command.request_representation = Google::Apis::GmailV1::Label::Representation command.request_object = label_object command.response_representation = Google::Apis::GmailV1::Label::Representation @@ -773,8 +757,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/messages/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{userId}/messages/{id}', options) command.params['userId'] = user_id unless user_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -815,8 +798,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_message(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/messages/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/messages/{id}', options) command.response_representation = Google::Apis::GmailV1::Message::Representation command.response_class = Google::Apis::GmailV1::Message command.params['userId'] = user_id unless user_id.nil? @@ -874,11 +856,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def import_user_message(user_id, message_object = nil, deleted: nil, internal_date_source: nil, never_mark_spam: nil, process_for_calendar: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{userId}/messages/import' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/messages/import', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{userId}/messages/import', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -935,11 +916,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_user_message(user_id, message_object = nil, deleted: nil, internal_date_source: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{userId}/messages' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/messages', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{userId}/messages', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -994,8 +974,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_messages(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/messages' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/messages', options) command.response_representation = Google::Apis::GmailV1::ListMessagesResponse::Representation command.response_class = Google::Apis::GmailV1::ListMessagesResponse command.params['userId'] = user_id unless user_id.nil? @@ -1039,8 +1018,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def modify_message(user_id, id, modify_message_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/messages/{id}/modify' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/messages/{id}/modify', options) command.request_representation = Google::Apis::GmailV1::ModifyMessageRequest::Representation command.request_object = modify_message_request_object command.response_representation = Google::Apis::GmailV1::Message::Representation @@ -1084,11 +1062,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def send_user_message(user_id, message_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{userId}/messages/send' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/messages/send', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{userId}/messages/send', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1131,8 +1108,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def trash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/messages/{id}/trash' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/messages/{id}/trash', options) command.response_representation = Google::Apis::GmailV1::Message::Representation command.response_class = Google::Apis::GmailV1::Message command.params['userId'] = user_id unless user_id.nil? @@ -1171,8 +1147,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def untrash_user_message(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/messages/{id}/untrash' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/messages/{id}/untrash', options) command.response_representation = Google::Apis::GmailV1::Message::Representation command.response_class = Google::Apis::GmailV1::Message command.params['userId'] = user_id unless user_id.nil? @@ -1213,8 +1188,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_message_attachment(user_id, message_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/messages/{messageId}/attachments/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/messages/{messageId}/attachments/{id}', options) command.response_representation = Google::Apis::GmailV1::MessagePartBody::Representation command.response_class = Google::Apis::GmailV1::MessagePartBody command.params['userId'] = user_id unless user_id.nil? @@ -1255,8 +1229,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/threads/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{userId}/threads/{id}', options) command.params['userId'] = user_id unless user_id.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -1297,8 +1270,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_user_thread(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/threads/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/threads/{id}', options) command.response_representation = Google::Apis::GmailV1::Thread::Representation command.response_class = Google::Apis::GmailV1::Thread command.params['userId'] = user_id unless user_id.nil? @@ -1349,8 +1321,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_user_threads(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/threads' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{userId}/threads', options) command.response_representation = Google::Apis::GmailV1::ListThreadsResponse::Representation command.response_class = Google::Apis::GmailV1::ListThreadsResponse command.params['userId'] = user_id unless user_id.nil? @@ -1395,8 +1366,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def modify_thread(user_id, id, modify_thread_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/threads/{id}/modify' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/threads/{id}/modify', options) command.request_representation = Google::Apis::GmailV1::ModifyThreadRequest::Representation command.request_object = modify_thread_request_object command.response_representation = Google::Apis::GmailV1::Thread::Representation @@ -1437,8 +1407,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def trash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/threads/{id}/trash' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/threads/{id}/trash', options) command.response_representation = Google::Apis::GmailV1::Thread::Representation command.response_class = Google::Apis::GmailV1::Thread command.params['userId'] = user_id unless user_id.nil? @@ -1477,8 +1446,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def untrash_user_thread(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{userId}/threads/{id}/untrash' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{userId}/threads/{id}/untrash', options) command.response_representation = Google::Apis::GmailV1::Thread::Representation command.response_class = Google::Apis::GmailV1::Thread command.params['userId'] = user_id unless user_id.nil? diff --git a/generated/google/apis/groupsmigration_v1/service.rb b/generated/google/apis/groupsmigration_v1/service.rb index bd31291bc..cf1b725a4 100644 --- a/generated/google/apis/groupsmigration_v1/service.rb +++ b/generated/google/apis/groupsmigration_v1/service.rb @@ -81,11 +81,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_archive(group_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = '{groupId}/archive' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{groupId}/archive', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, '{groupId}/archive', options) command.upload_source = upload_source command.upload_content_type = content_type end diff --git a/generated/google/apis/groupssettings_v1/service.rb b/generated/google/apis/groupssettings_v1/service.rb index 13e0f2056..943594d70 100644 --- a/generated/google/apis/groupssettings_v1/service.rb +++ b/generated/google/apis/groupssettings_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_group(group_unique_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{groupUniqueId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{groupUniqueId}', options) command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation command.response_class = Google::Apis::GroupssettingsV1::Groups command.params['groupUniqueId'] = group_unique_id unless group_unique_id.nil? @@ -114,8 +113,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_group(group_unique_id, groups_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{groupUniqueId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{groupUniqueId}', options) command.request_representation = Google::Apis::GroupssettingsV1::Groups::Representation command.request_object = groups_object command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation @@ -153,8 +151,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_group(group_unique_id, groups_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{groupUniqueId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{groupUniqueId}', options) command.request_representation = Google::Apis::GroupssettingsV1::Groups::Representation command.request_object = groups_object command.response_representation = Google::Apis::GroupssettingsV1::Groups::Representation diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index 24e6f862a..b8a410304 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20150710' + REVISION = '20151109' end end end diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index f9c1e0860..db6462adf 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -59,6 +59,11 @@ module Google attr_accessor :registered alias_method :registered?, :registered + # Session ID which should be passed in the following verifyAssertion request. + # Corresponds to the JSON property `sessionId` + # @return [String] + attr_accessor :session_id + def initialize(**args) update!(**args) end @@ -71,6 +76,7 @@ module Google @kind = args[:kind] unless args[:kind].nil? @provider_id = args[:provider_id] unless args[:provider_id].nil? @registered = args[:registered] unless args[:registered].nil? + @session_id = args[:session_id] unless args[:session_id].nil? end end @@ -155,6 +161,11 @@ module Google class GetOobConfirmationCodeResponse include Google::Apis::Core::Hashable + # The email address that the email is sent to. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + # The fixed string "identitytoolkit#GetOobConfirmationCodeResponse". # Corresponds to the JSON property `kind` # @return [String] @@ -171,6 +182,7 @@ module Google # Update properties of this object def update!(**args) + @email = args[:email] unless args[:email].nil? @kind = args[:kind] unless args[:kind].nil? @oob_code = args[:oob_code] unless args[:oob_code].nil? end @@ -360,6 +372,44 @@ module Google end end + # Response of getting the project configuration. + class GetProjectConfigResponse + include Google::Apis::Core::Hashable + + # Whether to allow password user sign in or sign up. + # Corresponds to the JSON property `allowPasswordUser` + # @return [Boolean] + attr_accessor :allow_password_user + alias_method :allow_password_user?, :allow_password_user + + # Browser API key, needed when making http request to Apiary. + # Corresponds to the JSON property `apiKey` + # @return [String] + attr_accessor :api_key + + # OAuth2 provider configuration. + # Corresponds to the JSON property `idpConfig` + # @return [Array] + attr_accessor :idp_config + + # Project ID of the relying party. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_password_user = args[:allow_password_user] unless args[:allow_password_user].nil? + @api_key = args[:api_key] unless args[:api_key].nil? + @idp_config = args[:idp_config] unless args[:idp_config].nil? + @project_id = args[:project_id] unless args[:project_id].nil? + end + end + # Request to reset the password. class ResetPasswordRequest include Google::Apis::Core::Hashable @@ -566,6 +616,11 @@ module Google attr_accessor :return_refresh_token alias_method :return_refresh_token?, :return_refresh_token + # Session ID, which should match the one in previous createAuthUri request. + # Corresponds to the JSON property `sessionId` + # @return [String] + attr_accessor :session_id + def initialize(**args) update!(**args) end @@ -576,6 +631,7 @@ module Google @post_body = args[:post_body] unless args[:post_body].nil? @request_uri = args[:request_uri] unless args[:request_uri].nil? @return_refresh_token = args[:return_refresh_token] unless args[:return_refresh_token].nil? + @session_id = args[:session_id] unless args[:session_id].nil? end end @@ -622,6 +678,44 @@ module Google end end + # Template for a single idp configuration. + class IdpConfig + include Google::Apis::Core::Hashable + + # OAuth2 client ID. + # Corresponds to the JSON property `clientId` + # @return [String] + attr_accessor :client_id + + # Whether this IDP is enabled. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Percent of users who will be prompted/redirected federated login for this IDP. + # Corresponds to the JSON property `experimentPercent` + # @return [Fixnum] + attr_accessor :experiment_percent + + # OAuth2 provider. + # Corresponds to the JSON property `provider` + # @return [String] + attr_accessor :provider + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_id = args[:client_id] unless args[:client_id].nil? + @enabled = args[:enabled] unless args[:enabled].nil? + @experiment_percent = args[:experiment_percent] unless args[:experiment_percent].nil? + @provider = args[:provider] unless args[:provider].nil? + end + end + # Request of getting a code for user confirmation (reset password, change email # etc.) class Relyingparty @@ -733,6 +827,11 @@ module Google # @return [String] attr_accessor :kind + # The new email the user attempts to change to. + # Corresponds to the JSON property `newEmail` + # @return [String] + attr_accessor :new_email + # The user's profiles at the associated IdPs. # Corresponds to the JSON property `providerUserInfo` # @return [Array] @@ -748,6 +847,7 @@ module Google @email = args[:email] unless args[:email].nil? @id_token = args[:id_token] unless args[:id_token].nil? @kind = args[:kind] unless args[:kind].nil? + @new_email = args[:new_email] unless args[:new_email].nil? @provider_user_info = args[:provider_user_info] unless args[:provider_user_info].nil? end @@ -1068,6 +1168,12 @@ module Google attr_accessor :need_confirmation alias_method :need_confirmation?, :need_confirmation + # Whether need client to supply email to complete the federated login flow. + # Corresponds to the JSON property `needEmail` + # @return [Boolean] + attr_accessor :need_email + alias_method :need_email?, :need_email + # The nick name of the user. # Corresponds to the JSON property `nickName` # @return [String] @@ -1153,6 +1259,7 @@ module Google @last_name = args[:last_name] unless args[:last_name].nil? @local_id = args[:local_id] unless args[:local_id].nil? @need_confirmation = args[:need_confirmation] unless args[:need_confirmation].nil? + @need_email = args[:need_email] unless args[:need_email].nil? @nick_name = args[:nick_name] unless args[:nick_name].nil? @oauth_access_token = args[:oauth_access_token] unless args[:oauth_access_token].nil? @oauth_authorization_code = args[:oauth_authorization_code] unless args[:oauth_authorization_code].nil? @@ -1198,6 +1305,21 @@ module Google # @return [String] attr_accessor :local_id + # The OAuth2 access token. + # Corresponds to the JSON property `oauthAccessToken` + # @return [String] + attr_accessor :oauth_access_token + + # The OAuth2 authorization code. + # Corresponds to the JSON property `oauthAuthorizationCode` + # @return [String] + attr_accessor :oauth_authorization_code + + # The lifetime in seconds of the OAuth2 access token. + # Corresponds to the JSON property `oauthExpireIn` + # @return [Fixnum] + attr_accessor :oauth_expire_in + # The URI of the user's photo at IdP # Corresponds to the JSON property `photoUrl` # @return [String] @@ -1220,6 +1342,9 @@ module Google @id_token = args[:id_token] unless args[:id_token].nil? @kind = args[:kind] unless args[:kind].nil? @local_id = args[:local_id] unless args[:local_id].nil? + @oauth_access_token = args[:oauth_access_token] unless args[:oauth_access_token].nil? + @oauth_authorization_code = args[:oauth_authorization_code] unless args[:oauth_authorization_code].nil? + @oauth_expire_in = args[:oauth_expire_in] unless args[:oauth_expire_in].nil? @photo_url = args[:photo_url] unless args[:photo_url].nil? @registered = args[:registered] unless args[:registered].nil? end diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index a51417e14..5b143546a 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -62,6 +62,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class GetProjectConfigResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ResetPasswordRequest class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -82,6 +86,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class IdpConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Relyingparty class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -131,6 +139,7 @@ module Google property :kind, as: 'kind' property :provider_id, as: 'providerId' property :registered, as: 'registered' + property :session_id, as: 'sessionId' end end @@ -163,6 +172,7 @@ module Google class GetOobConfirmationCodeResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' property :kind, as: 'kind' property :oob_code, as: 'oobCode' end @@ -217,6 +227,17 @@ module Google end end + class GetProjectConfigResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_password_user, as: 'allowPasswordUser' + property :api_key, as: 'apiKey' + collection :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV3::IdpConfig, decorator: Google::Apis::IdentitytoolkitV3::IdpConfig::Representation + + property :project_id, as: 'projectId' + end + end + class ResetPasswordRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -266,6 +287,7 @@ module Google property :post_body, as: 'postBody' property :request_uri, as: 'requestUri' property :return_refresh_token, as: 'returnRefreshToken' + property :session_id, as: 'sessionId' end end @@ -280,6 +302,16 @@ module Google end end + class IdpConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_id, as: 'clientId' + property :enabled, as: 'enabled' + property :experiment_percent, as: 'experimentPercent' + property :provider, as: 'provider' + end + end + class Relyingparty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -309,6 +341,7 @@ module Google property :email, as: 'email' property :id_token, as: 'idToken' property :kind, as: 'kind' + property :new_email, as: 'newEmail' collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo::Representation end @@ -391,6 +424,7 @@ module Google property :last_name, as: 'lastName' property :local_id, as: 'localId' property :need_confirmation, as: 'needConfirmation' + property :need_email, as: 'needEmail' property :nick_name, as: 'nickName' property :oauth_access_token, as: 'oauthAccessToken' property :oauth_authorization_code, as: 'oauthAuthorizationCode' @@ -413,6 +447,9 @@ module Google property :id_token, as: 'idToken' property :kind, as: 'kind' property :local_id, as: 'localId' + property :oauth_access_token, as: 'oauthAccessToken' + property :oauth_authorization_code, as: 'oauthAuthorizationCode' + property :oauth_expire_in, as: 'oauthExpireIn' property :photo_url, as: 'photoUrl' property :registered, as: 'registered' end diff --git a/generated/google/apis/identitytoolkit_v3/service.rb b/generated/google/apis/identitytoolkit_v3/service.rb index c10b136ee..986be21a4 100644 --- a/generated/google/apis/identitytoolkit_v3/service.rb +++ b/generated/google/apis/identitytoolkit_v3/service.rb @@ -76,8 +76,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_auth_uri(create_auth_uri_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'createAuthUri' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'createAuthUri', options) command.request_representation = Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::Representation command.request_object = create_auth_uri_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::CreateAuthUriResponse::Representation @@ -112,8 +111,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_account(delete_account_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'deleteAccount' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'deleteAccount', options) command.request_representation = Google::Apis::IdentitytoolkitV3::DeleteAccountRequest::Representation command.request_object = delete_account_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::DeleteAccountResponse::Representation @@ -148,8 +146,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def download_account(download_account_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'downloadAccount' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'downloadAccount', options) command.request_representation = Google::Apis::IdentitytoolkitV3::DownloadAccountRequest::Representation command.request_object = download_account_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::DownloadAccountResponse::Representation @@ -184,8 +181,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account_info(get_account_info_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'getAccountInfo' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'getAccountInfo', options) command.request_representation = Google::Apis::IdentitytoolkitV3::GetAccountInfoRequest::Representation command.request_object = get_account_info_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::GetAccountInfoResponse::Representation @@ -220,8 +216,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_oob_confirmation_code(relyingparty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'getOobConfirmationCode' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'getOobConfirmationCode', options) command.request_representation = Google::Apis::IdentitytoolkitV3::Relyingparty::Representation command.request_object = relyingparty_object command.response_representation = Google::Apis::IdentitytoolkitV3::GetOobConfirmationCodeResponse::Representation @@ -232,6 +227,38 @@ module Google execute_or_queue_command(command, &block) end + # Get project configuration. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IdentitytoolkitV3::GetProjectConfigResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IdentitytoolkitV3::GetProjectConfigResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_relyingparty_project_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'getProjectConfig', options) + command.response_representation = Google::Apis::IdentitytoolkitV3::GetProjectConfigResponse::Representation + command.response_class = Google::Apis::IdentitytoolkitV3::GetProjectConfigResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Get token signing public key. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -255,8 +282,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_public_keys(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'publicKeys' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'publicKeys', options) command.response_representation = Hash::Representation command.response_class = Hash command.query['fields'] = fields unless fields.nil? @@ -288,8 +314,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_recaptcha_param(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'getRecaptchaParam' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'getRecaptchaParam', options) command.response_representation = Google::Apis::IdentitytoolkitV3::GetRecaptchaParamResponse::Representation command.response_class = Google::Apis::IdentitytoolkitV3::GetRecaptchaParamResponse command.query['fields'] = fields unless fields.nil? @@ -322,8 +347,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reset_password(reset_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'resetPassword' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'resetPassword', options) command.request_representation = Google::Apis::IdentitytoolkitV3::ResetPasswordRequest::Representation command.request_object = reset_password_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::ResetPasswordResponse::Representation @@ -358,8 +382,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_account_info(set_account_info_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'setAccountInfo' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'setAccountInfo', options) command.request_representation = Google::Apis::IdentitytoolkitV3::SetAccountInfoRequest::Representation command.request_object = set_account_info_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::Representation @@ -394,8 +417,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_account(upload_account_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'uploadAccount' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'uploadAccount', options) command.request_representation = Google::Apis::IdentitytoolkitV3::UploadAccountRequest::Representation command.request_object = upload_account_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::UploadAccountResponse::Representation @@ -430,8 +452,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def verify_assertion(verify_assertion_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'verifyAssertion' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'verifyAssertion', options) command.request_representation = Google::Apis::IdentitytoolkitV3::VerifyAssertionRequest::Representation command.request_object = verify_assertion_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::VerifyAssertionResponse::Representation @@ -466,8 +487,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def verify_password(verify_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'verifyPassword' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'verifyPassword', options) command.request_representation = Google::Apis::IdentitytoolkitV3::VerifyPasswordRequest::Representation command.request_object = verify_password_request_object command.response_representation = Google::Apis::IdentitytoolkitV3::VerifyPasswordResponse::Representation diff --git a/generated/google/apis/licensing_v1/service.rb b/generated/google/apis/licensing_v1/service.rb index 47db2a471..f37f8f8f4 100644 --- a/generated/google/apis/licensing_v1/service.rb +++ b/generated/google/apis/licensing_v1/service.rb @@ -81,8 +81,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_license_assignment(product_id, sku_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{productId}/sku/{skuId}/user/{userId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{productId}/sku/{skuId}/user/{userId}', options) command.params['productId'] = product_id unless product_id.nil? command.params['skuId'] = sku_id unless sku_id.nil? command.params['userId'] = user_id unless user_id.nil? @@ -121,8 +120,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license_assignment(product_id, sku_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{productId}/sku/{skuId}/user/{userId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{productId}/sku/{skuId}/user/{userId}', options) command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation command.response_class = Google::Apis::LicensingV1::LicenseAssignment command.params['productId'] = product_id unless product_id.nil? @@ -162,8 +160,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_license_assignment(product_id, sku_id, license_assignment_insert_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{productId}/sku/{skuId}/user' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{productId}/sku/{skuId}/user', options) command.request_representation = Google::Apis::LicensingV1::LicenseAssignmentInsert::Representation command.request_object = license_assignment_insert_object command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation @@ -209,8 +206,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_license_assignment_for_product(product_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{productId}/users' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{productId}/users', options) command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList command.params['productId'] = product_id unless product_id.nil? @@ -258,8 +254,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_license_assignment_for_product_and_sku(product_id, sku_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{productId}/sku/{skuId}/users' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{productId}/sku/{skuId}/users', options) command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList command.params['productId'] = product_id unless product_id.nil? @@ -303,8 +298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_license_assignment(product_id, sku_id, user_id, license_assignment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{productId}/sku/{skuId}/user/{userId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{productId}/sku/{skuId}/user/{userId}', options) command.request_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation command.request_object = license_assignment_object command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation @@ -348,8 +342,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_license_assignment(product_id, sku_id, user_id, license_assignment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{productId}/sku/{skuId}/user/{userId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{productId}/sku/{skuId}/user/{userId}', options) command.request_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation command.request_object = license_assignment_object command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation diff --git a/generated/google/apis/logging_v1beta3.rb b/generated/google/apis/logging_v1beta3.rb index 2b6d0a8aa..66a36c2c9 100644 --- a/generated/google/apis/logging_v1beta3.rb +++ b/generated/google/apis/logging_v1beta3.rb @@ -20,16 +20,28 @@ module Google module Apis # Google Cloud Logging API # - # Google Cloud Logging API lets you create logs, ingest log entries, and manage - # log sinks. + # The Google Cloud Logging API lets you write log entries and manage your logs, + # log sinks and logs-based metrics. # - # @see + # @see https://cloud.google.com/logging/docs/ module LoggingV1beta3 VERSION = 'V1beta3' - REVISION = '20150326' + REVISION = '20151117' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + + # Administrate log data for your projects + AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin' + + # View log data for your projects + AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read' + + # Submit log data for your projects + AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write' end end end diff --git a/generated/google/apis/logging_v1beta3/classes.rb b/generated/google/apis/logging_v1beta3/classes.rb index fc8943824..846db40e1 100644 --- a/generated/google/apis/logging_v1beta3/classes.rb +++ b/generated/google/apis/logging_v1beta3/classes.rb @@ -26,7 +26,7 @@ module Google class ListLogsResponse include Google::Apis::Core::Hashable - # A list of log resources. + # A list of log descriptions matching the criteria. # Corresponds to the JSON property `logs` # @return [Array] attr_accessor :logs @@ -50,23 +50,26 @@ module Google end end - # A log object. + # _Output only._ Describes a log, which is a named stream of log entries. class Log include Google::Apis::Core::Hashable - # REQUIRED: The log's name name. Example: `"compute.googleapis.com/activity_log"` - # . + # The resource name of the log. Example: `"/projects/my-gcp-project-id/logs/ + # LOG_NAME"`, where `LOG_NAME` is the URL-encoded given name of the log. The log + # includes those log entries whose `LogEntry.log` field contains this given name. + # To avoid name collisions, it is a best practice to prefix the given log name + # with the service name, but this is not required. Examples of log given names: ` + # "appengine.googleapis.com/request_log"`, `"apache-access"`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Name used when displaying the log to the user (for example, in a UI). Example: - # `"activity_log"` + # _Optional._ The common name of the log. Example: `"request_log"`. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Type URL describing the expected payload type for the log. + # _Optional_. A URI representing the expected payload type for log entries. # Corresponds to the JSON property `payloadType` # @return [String] attr_accessor :payload_type @@ -86,7 +89,8 @@ module Google # A generic empty message that you can re-use to avoid defining duplicated empty # messages in your APIs. A typical example is to use it as the request or the # response type of an API method. For instance: service Foo ` rpc Bar(google. - # protobuf.Empty) returns (google.protobuf.Empty); ` + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -103,9 +107,11 @@ module Google class WriteLogEntriesRequest include Google::Apis::Core::Hashable - # Metadata labels that apply to all entries in this request. If one of the log - # entries contains a (key, value) with the same key that is in `commonLabels`, - # then the entry's (key, value) overrides the one in `commonLabels`. + # Metadata labels that apply to all log entries in this request, so that you don' + # t have to repeat them in each log entry's `metadata.labels` field. If any of + # the log entries contains a (key, value) with the same key that is in ` + # commonLabels`, then the entry's (key, value) overrides the one in ` + # commonLabels`. # Corresponds to the JSON property `commonLabels` # @return [Hash] attr_accessor :common_labels @@ -143,7 +149,7 @@ module Google # @return [Hash] attr_accessor :proto_payload - # The log entry payload, represented as a text string. + # The log entry payload, represented as a Unicode string (UTF-8). # Corresponds to the JSON property `textPayload` # @return [String] attr_accessor :text_payload @@ -167,6 +173,11 @@ module Google # @return [String] attr_accessor :log + # A common proto for logging HTTP requests. + # Corresponds to the JSON property `httpRequest` + # @return [Google::Apis::LoggingV1beta3::HttpRequest] + attr_accessor :http_request + def initialize(**args) update!(**args) end @@ -179,6 +190,7 @@ module Google @struct_payload = args[:struct_payload] unless args[:struct_payload].nil? @insert_id = args[:insert_id] unless args[:insert_id].nil? @log = args[:log] unless args[:log].nil? + @http_request = args[:http_request] unless args[:http_request].nil? end end @@ -259,6 +271,88 @@ module Google end end + # A common proto for logging HTTP requests. + class HttpRequest + include Google::Apis::Core::Hashable + + # Request method, such as `GET`, `HEAD`, `PUT` or `POST`. + # Corresponds to the JSON property `requestMethod` + # @return [String] + attr_accessor :request_method + + # Contains the scheme (http|https), the host name, the path and the query + # portion of the URL that was requested. + # Corresponds to the JSON property `requestUrl` + # @return [String] + attr_accessor :request_url + + # Size of the HTTP request message in bytes, including request headers and the + # request body. + # Corresponds to the JSON property `requestSize` + # @return [String] + attr_accessor :request_size + + # A response code indicates the status of response, e.g., 200. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status + + # Size of the HTTP response message in bytes sent back to the client, including + # response headers and response body. + # Corresponds to the JSON property `responseSize` + # @return [String] + attr_accessor :response_size + + # User agent sent by the client, e.g., "Mozilla/4.0 (compatible; MSIE 6.0; + # Windows 98; Q312461; .NET CLR 1.0.3705)". + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # IP address of the client who issues the HTTP request. Could be either IPv4 or + # IPv6. + # Corresponds to the JSON property `remoteIp` + # @return [String] + attr_accessor :remote_ip + + # Referer (a.k.a. referrer) URL of request, as defined in http://www.w3.org/ + # Protocols/rfc2616/rfc2616-sec14.html. + # Corresponds to the JSON property `referer` + # @return [String] + attr_accessor :referer + + # Whether or not an entity was served from cache (with or without validation). + # Corresponds to the JSON property `cacheHit` + # @return [Boolean] + attr_accessor :cache_hit + alias_method :cache_hit?, :cache_hit + + # Whether or not the response was validated with the origin server before being + # served from cache. This field is only meaningful if cache_hit is True. + # Corresponds to the JSON property `validatedWithOriginServer` + # @return [Boolean] + attr_accessor :validated_with_origin_server + alias_method :validated_with_origin_server?, :validated_with_origin_server + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_method = args[:request_method] unless args[:request_method].nil? + @request_url = args[:request_url] unless args[:request_url].nil? + @request_size = args[:request_size] unless args[:request_size].nil? + @status = args[:status] unless args[:status].nil? + @response_size = args[:response_size] unless args[:response_size].nil? + @user_agent = args[:user_agent] unless args[:user_agent].nil? + @remote_ip = args[:remote_ip] unless args[:remote_ip].nil? + @referer = args[:referer] unless args[:referer].nil? + @cache_hit = args[:cache_hit] unless args[:cache_hit].nil? + @validated_with_origin_server = args[:validated_with_origin_server] unless args[:validated_with_origin_server].nil? + end + end + # Result returned from WriteLogEntries. empty class WriteLogEntriesResponse include Google::Apis::Core::Hashable @@ -300,17 +394,24 @@ module Google end end - # A log service object. + # _Output only._ Describes a service that writes log entries. class LogService include Google::Apis::Core::Hashable - # The service's name. + # The service's name. Example: `"appengine.googleapis.com"`. Log names beginning + # with this string are reserved for this service. This value can appear in the ` + # LogEntry.metadata.serviceName` field of log entries associated with this log + # service. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Label keys used when labeling log entries for this service. The order of the - # keys is significant, with higher priority keys coming earlier in the list. + # A list of the names of the keys used to index and label individual log entries + # from this service. The first two keys are used as the primary and secondary + # index, respectively. Additional keys may be used to label the entries. For + # example, App Engine indexes its entries by module and by version, so its ` + # indexKeys` field is the following: [ "appengine.googleapis.com/module_id", " + # appengine.googleapis.com/version_id" ] # Corresponds to the JSON property `indexKeys` # @return [Array] attr_accessor :index_keys @@ -330,14 +431,16 @@ module Google class ListLogServiceIndexesResponse include Google::Apis::Core::Hashable - # A list of log service index prefixes. + # A list of log service index values. Each index value has the form `"/value1/ + # value2/..."`, where `value1` is a value in the primary index, `value2` is a + # value in the secondary index, and so forth. # Corresponds to the JSON property `serviceIndexPrefixes` # @return [Array] attr_accessor :service_index_prefixes # If there are more results, then `nextPageToken` is returned in the response. # To get the next batch of indexes, use the value of `nextPageToken` as ` - # pageToken` in the next call of `ListLogServiceIndexess`. If `nextPageToken` is + # pageToken` in the next call of `ListLogServiceIndexes`. If `nextPageToken` is # empty, then there are no more results. # Corresponds to the JSON property `nextPageToken` # @return [String] @@ -358,9 +461,9 @@ module Google class ListLogSinksResponse include Google::Apis::Core::Hashable - # The requested log sinks. If any of the returned `LogSink` objects have an - # empty `destination` field, then call `logServices.sinks.get` to retrieve the - # complete `LogSink` object. + # The requested log sinks. If a returned `LogSink` object has an empty ` + # destination` field, the client can retrieve the complete `LogSink` object by + # calling `log.sinks.get`. # Corresponds to the JSON property `sinks` # @return [Array] attr_accessor :sinks @@ -375,26 +478,32 @@ module Google end end - # An object that describes where a log may be written. + # Describes where log entries are written outside of Cloud Logging. class LogSink include Google::Apis::Core::Hashable - # The name of this sink. This is a client-assigned identifier for the resource. - # This is ignored by UpdateLogSink and UpdateLogServicesSink. + # The client-assigned name of this sink. For example, `"my-syslog-sink"`. The + # name must be unique among the sinks of a similar kind in the project. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The resource to send log entries to. The supported sink resource types are: + - # Google Cloud Storage: `storage.googleapis.com/BUCKET` or `BUCKET.storage. - # googleapis.com/` + Google BigQuery: `bigquery.googleapis.com/projects/PROJECT/ - # datasets/DATASET` Currently the Cloud Logging API supports at most one sink - # for each resource type per log or log service resource. + # The resource name of the destination. Cloud Logging writes designated log + # entries to this destination. For example, `"storage.googleapis.com/my-output- + # bucket"`. # Corresponds to the JSON property `destination` # @return [String] attr_accessor :destination - # _Output only._ All active errors found for this sink. + # An advanced logs filter. If present, only log entries matching the filter are + # written. Only project sinks use this field; log sinks and log service sinks + # must not include a filter. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # _Output only._ If any errors occur when invoking a sink method, then this + # field contains descriptions of the errors. # Corresponds to the JSON property `errors` # @return [Array] attr_accessor :errors @@ -407,28 +516,59 @@ module Google def update!(**args) @name = args[:name] unless args[:name].nil? @destination = args[:destination] unless args[:destination].nil? + @filter = args[:filter] unless args[:filter].nil? @errors = args[:errors] unless args[:errors].nil? end end - # A problem in a sink or the sink's configuration. + # Describes a problem with a logging resource or operation. class LogError include Google::Apis::Core::Hashable - # The resource associated with the error. It may be different from the sink - # destination. For example, the sink may point to a BigQuery dataset, but the - # error may refer to a table resource inside the dataset. + # A resource name associated with this error. For example, the name of a Cloud + # Storage bucket that has insufficient permissions to be a destination for log + # entries. # Corresponds to the JSON property `resource` # @return [String] attr_accessor :resource - # Represents the RPC error status for Google APIs. See http://go/errormodel for - # details. + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of google. + # rpc.Code, but it may accept additional error codes if needed. The error + # message should be a developer-facing English message that helps developers * + # understand* and *resolve* the error. If a localized user-facing error message + # is needed, put the localized message in the error details or localize it in + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments, + # either with or without APIs, to provide a consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. # Corresponds to the JSON property `status` # @return [Google::Apis::LoggingV1beta3::Status] attr_accessor :status - # The last time the error was observed, in nanoseconds since the Unix epoch. + # The time the error was observed, in nanoseconds since the Unix epoch. # Corresponds to the JSON property `timeNanos` # @return [String] attr_accessor :time_nanos @@ -445,19 +585,49 @@ module Google end end - # Represents the RPC error status for Google APIs. See http://go/errormodel for - # details. + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of google. + # rpc.Code, but it may accept additional error codes if needed. The error + # message should be a developer-facing English message that helps developers * + # understand* and *resolve* the error. If a localized user-facing error message + # is needed, put the localized message in the error details or localize it in + # the client. The optional error details may contain arbitrary information about + # the error. There is a predefined set of error detail types in the package ` + # google.rpc` which can be used for common error conditions. # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. # Other uses The + # error model and the `Status` message can be used in a variety of environments, + # either with or without APIs, to provide a consistent developer experience + # across different environments. Example uses of this error model include: - + # Partial errors. If a service needs to return partial errors to the client, it + # may embed the `Status` in the normal response to indicate the partial errors. - + # Workflow errors. A typical workflow has multiple steps. Each step may have a ` + # Status` message for error reporting purpose. - Batch operations. If a client + # uses batch request and batch response, the `Status` message should be used + # directly inside batch response, one for each error sub-response. - + # Asynchronous operations. If an API call embeds asynchronous operation results + # in its response, the status of those operations should be represented directly + # using the `Status` message. - Logging. If some API errors are stored in logs, + # the message `Status` could be used directly after any stripping needed for + # security/privacy reasons. class Status include Google::Apis::Core::Hashable - # The status code, which should be an enum value of [google.rpc.Code][]. + # The status code, which should be an enum value of google.rpc.Code. # Corresponds to the JSON property `code` # @return [Fixnum] attr_accessor :code - # A developer-facing error message, which should be in English. The user-facing - # error message should be localized and stored in the [google.rpc.Status.details] - # [google.rpc.Status.details] field. + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message @@ -484,9 +654,9 @@ module Google class ListLogServiceSinksResponse include Google::Apis::Core::Hashable - # The requested log service sinks. If any of the returned `LogSink` objects have - # an empty `destination` field, then call `logServices.sinks.get` to retrieve - # the complete `LogSink` object. + # The requested log service sinks. If a returned `LogSink` object has an empty ` + # destination` field, the client can retrieve the complete `LogSink` object by + # calling `logServices.sinks.get`. # Corresponds to the JSON property `sinks` # @return [Array] attr_accessor :sinks @@ -500,6 +670,410 @@ module Google @sinks = args[:sinks] unless args[:sinks].nil? end end + + # Result returned from `ListSinks`. + class ListSinksResponse + include Google::Apis::Core::Hashable + + # The requested sinks. If a returned `LogSink` object has an empty `destination` + # field, the client can retrieve the complete `LogSink` object by calling ` + # projects.sinks.get`. + # Corresponds to the JSON property `sinks` + # @return [Array] + attr_accessor :sinks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sinks = args[:sinks] unless args[:sinks].nil? + end + end + + # Result returned from ListLogMetrics. + class ListLogMetricsResponse + include Google::Apis::Core::Hashable + + # The list of metrics that was requested. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # If there are more results, then `nextPageToken` is returned in the response. + # To get the next batch of entries, use the value of `nextPageToken` as ` + # pageToken` in the next call of `ListLogMetrics`. If `nextPageToken` is empty, + # then there are no more results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metrics = args[:metrics] unless args[:metrics].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Describes a logs-based metric. The value of the metric is the number of log + # entries in your project that match a logs filter. + class LogMetric + include Google::Apis::Core::Hashable + + # The client-assigned name for this metric, such as `"severe_errors"`. Metric + # names are limited to 1000 characters and can include only the following + # characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.,+!*',()%/\`. + # The slash character (`/`) denotes a hierarchy of name pieces, and it cannot be + # the first character of the name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A description of this metric. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # An [advanced logs filter](/logging/docs/view/advanced_filters). Example: `"log: + # syslog AND metadata.severity>=ERROR"`. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @description = args[:description] unless args[:description].nil? + @filter = args[:filter] unless args[:filter].nil? + end + end + + # Complete log information about a single request to an application. + class RequestLog + include Google::Apis::Core::Hashable + + # Identifies the application that handled this request. + # Corresponds to the JSON property `appId` + # @return [String] + attr_accessor :app_id + + # Identifies the module of the application that handled this request. + # Corresponds to the JSON property `moduleId` + # @return [String] + attr_accessor :module_id + + # Version of the application that handled this request. + # Corresponds to the JSON property `versionId` + # @return [String] + attr_accessor :version_id + + # Globally unique identifier for a request, based on request start time. Request + # IDs for requests which started later will compare greater as strings than + # those for requests which started earlier. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Origin IP address. + # Corresponds to the JSON property `ip` + # @return [String] + attr_accessor :ip + + # Time at which request was known to have begun processing. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Time at which request was known to end processing. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Latency of the request. + # Corresponds to the JSON property `latency` + # @return [String] + attr_accessor :latency + + # Number of CPU megacycles used to process request. + # Corresponds to the JSON property `megaCycles` + # @return [String] + attr_accessor :mega_cycles + + # Request method, such as `GET`, `HEAD`, `PUT`, `POST`, or `DELETE`. + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # Contains the path and query portion of the URL that was requested. For example, + # if the URL was "http://example.com/app?name=val", the resource would be "/app? + # name=val". Any trailing fragment (separated by a '#' character) will not be + # included. + # Corresponds to the JSON property `resource` + # @return [String] + attr_accessor :resource + + # HTTP version of request. + # Corresponds to the JSON property `httpVersion` + # @return [String] + attr_accessor :http_version + + # Response status of request. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status + + # Size in bytes sent back to client by request. + # Corresponds to the JSON property `responseSize` + # @return [String] + attr_accessor :response_size + + # Referrer URL of request. + # Corresponds to the JSON property `referrer` + # @return [String] + attr_accessor :referrer + + # User agent used for making request. + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # A string that identifies a logged-in user who made this request, or empty if + # the user is not logged in. Most likely, this is the part of the user's email + # before the '@' sign. The field value is the same for different requests from + # the same user, but different users may have a similar name. This information + # is also available to the application via Users API. This field will be + # populated starting with App Engine 1.9.21. + # Corresponds to the JSON property `nickname` + # @return [String] + attr_accessor :nickname + + # File or class within URL mapping used for request. Useful for tracking down + # the source code which was responsible for managing request. Especially for + # multiply mapped handlers. + # Corresponds to the JSON property `urlMapEntry` + # @return [String] + attr_accessor :url_map_entry + + # The Internet host and port number of the resource being requested. + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + + # An indication of the relative cost of serving this request. + # Corresponds to the JSON property `cost` + # @return [Float] + attr_accessor :cost + + # Queue name of the request (for an offline request). + # Corresponds to the JSON property `taskQueueName` + # @return [String] + attr_accessor :task_queue_name + + # Task name of the request (for an offline request). + # Corresponds to the JSON property `taskName` + # @return [String] + attr_accessor :task_name + + # Was this request a loading request for this instance? + # Corresponds to the JSON property `wasLoadingRequest` + # @return [Boolean] + attr_accessor :was_loading_request + alias_method :was_loading_request?, :was_loading_request + + # Time this request spent in the pending request queue, if it was pending at all. + # Corresponds to the JSON property `pendingTime` + # @return [String] + attr_accessor :pending_time + + # If the instance that processed this request was individually addressable (i.e. + # belongs to a manually scaled module), this is the index of the instance. + # Corresponds to the JSON property `instanceIndex` + # @return [Fixnum] + attr_accessor :instance_index + + # If true, represents a finished request. Otherwise, the request is active. + # Corresponds to the JSON property `finished` + # @return [Boolean] + attr_accessor :finished + alias_method :finished?, :finished + + # An opaque identifier for the instance that handled the request. + # Corresponds to the JSON property `instanceId` + # @return [String] + attr_accessor :instance_id + + # List of log lines emitted by the application while serving this request, if + # requested. + # Corresponds to the JSON property `line` + # @return [Array] + attr_accessor :line + + # App Engine release version string. + # Corresponds to the JSON property `appEngineRelease` + # @return [String] + attr_accessor :app_engine_release + + # Cloud Trace identifier of the trace for this request. + # Corresponds to the JSON property `traceId` + # @return [String] + attr_accessor :trace_id + + # Source code for the application that handled this request. There can be more + # than one source reference per deployed application if source code is + # distributed among multiple repositories. + # Corresponds to the JSON property `sourceReference` + # @return [Array] + attr_accessor :source_reference + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_id = args[:app_id] unless args[:app_id].nil? + @module_id = args[:module_id] unless args[:module_id].nil? + @version_id = args[:version_id] unless args[:version_id].nil? + @request_id = args[:request_id] unless args[:request_id].nil? + @ip = args[:ip] unless args[:ip].nil? + @start_time = args[:start_time] unless args[:start_time].nil? + @end_time = args[:end_time] unless args[:end_time].nil? + @latency = args[:latency] unless args[:latency].nil? + @mega_cycles = args[:mega_cycles] unless args[:mega_cycles].nil? + @method_prop = args[:method_prop] unless args[:method_prop].nil? + @resource = args[:resource] unless args[:resource].nil? + @http_version = args[:http_version] unless args[:http_version].nil? + @status = args[:status] unless args[:status].nil? + @response_size = args[:response_size] unless args[:response_size].nil? + @referrer = args[:referrer] unless args[:referrer].nil? + @user_agent = args[:user_agent] unless args[:user_agent].nil? + @nickname = args[:nickname] unless args[:nickname].nil? + @url_map_entry = args[:url_map_entry] unless args[:url_map_entry].nil? + @host = args[:host] unless args[:host].nil? + @cost = args[:cost] unless args[:cost].nil? + @task_queue_name = args[:task_queue_name] unless args[:task_queue_name].nil? + @task_name = args[:task_name] unless args[:task_name].nil? + @was_loading_request = args[:was_loading_request] unless args[:was_loading_request].nil? + @pending_time = args[:pending_time] unless args[:pending_time].nil? + @instance_index = args[:instance_index] unless args[:instance_index].nil? + @finished = args[:finished] unless args[:finished].nil? + @instance_id = args[:instance_id] unless args[:instance_id].nil? + @line = args[:line] unless args[:line].nil? + @app_engine_release = args[:app_engine_release] unless args[:app_engine_release].nil? + @trace_id = args[:trace_id] unless args[:trace_id].nil? + @source_reference = args[:source_reference] unless args[:source_reference].nil? + end + end + + # Application log line emitted while processing a request. + class LogLine + include Google::Apis::Core::Hashable + + # Time when log entry was made. May be inaccurate. + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + + # Severity of log. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # App provided log message. + # Corresponds to the JSON property `logMessage` + # @return [String] + attr_accessor :log_message + + # Specifies a location in a source file. + # Corresponds to the JSON property `sourceLocation` + # @return [Google::Apis::LoggingV1beta3::SourceLocation] + attr_accessor :source_location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @time = args[:time] unless args[:time].nil? + @severity = args[:severity] unless args[:severity].nil? + @log_message = args[:log_message] unless args[:log_message].nil? + @source_location = args[:source_location] unless args[:source_location].nil? + end + end + + # Specifies a location in a source file. + class SourceLocation + include Google::Apis::Core::Hashable + + # Source file name. May or may not be a fully qualified name, depending on the + # runtime environment. + # Corresponds to the JSON property `file` + # @return [String] + attr_accessor :file + + # Line within the source file. + # Corresponds to the JSON property `line` + # @return [String] + attr_accessor :line + + # Human-readable name of the function or method being invoked, with optional + # context such as the class or package name, for use in contexts such as the + # logs viewer where file:line number is less meaningful. This may vary by + # language, for example: in Java: qual.if.ied.Class.method in Go: dir/package. + # func in Python: function ... + # Corresponds to the JSON property `functionName` + # @return [String] + attr_accessor :function_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file = args[:file] unless args[:file].nil? + @line = args[:line] unless args[:line].nil? + @function_name = args[:function_name] unless args[:function_name].nil? + end + end + + # A reference to a particular snapshot of the source tree used to build and + # deploy an application. + class SourceReference + include Google::Apis::Core::Hashable + + # Optional. A URI string identifying the repository. Example: "https://github. + # com/GoogleCloudPlatform/kubernetes.git" + # Corresponds to the JSON property `repository` + # @return [String] + attr_accessor :repository + + # The canonical (and persistent) identifier of the deployed revision. Example ( + # git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" + # Corresponds to the JSON property `revisionId` + # @return [String] + attr_accessor :revision_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @repository = args[:repository] unless args[:repository].nil? + @revision_id = args[:revision_id] unless args[:revision_id].nil? + end + end end end end diff --git a/generated/google/apis/logging_v1beta3/representations.rb b/generated/google/apis/logging_v1beta3/representations.rb index 91d3a5235..1df36b8d1 100644 --- a/generated/google/apis/logging_v1beta3/representations.rb +++ b/generated/google/apis/logging_v1beta3/representations.rb @@ -46,6 +46,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class HttpRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class WriteLogEntriesResponse class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -82,6 +86,34 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class ListSinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListLogMetricsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogMetric + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RequestLog + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogLine + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SourceLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SourceReference + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ListLogsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -125,6 +157,8 @@ module Google hash :struct_payload, as: 'structPayload' property :insert_id, as: 'insertId' property :log, as: 'log' + property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV1beta3::HttpRequest, decorator: Google::Apis::LoggingV1beta3::HttpRequest::Representation + end end @@ -142,6 +176,22 @@ module Google end end + class HttpRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_method, as: 'requestMethod' + property :request_url, as: 'requestUrl' + property :request_size, as: 'requestSize' + property :status, as: 'status' + property :response_size, as: 'responseSize' + property :user_agent, as: 'userAgent' + property :remote_ip, as: 'remoteIp' + property :referer, as: 'referer' + property :cache_hit, as: 'cacheHit' + property :validated_with_origin_server, as: 'validatedWithOriginServer' + end + end + class WriteLogEntriesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -186,6 +236,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :destination, as: 'destination' + property :filter, as: 'filter' collection :errors, as: 'errors', class: Google::Apis::LoggingV1beta3::LogError, decorator: Google::Apis::LoggingV1beta3::LogError::Representation end @@ -217,6 +268,99 @@ module Google end end + + class ListSinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation + + end + end + + class ListLogMetricsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metrics, as: 'metrics', class: Google::Apis::LoggingV1beta3::LogMetric, decorator: Google::Apis::LoggingV1beta3::LogMetric::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class LogMetric + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :description, as: 'description' + property :filter, as: 'filter' + end + end + + class RequestLog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_id, as: 'appId' + property :module_id, as: 'moduleId' + property :version_id, as: 'versionId' + property :request_id, as: 'requestId' + property :ip, as: 'ip' + property :start_time, as: 'startTime' + property :end_time, as: 'endTime' + property :latency, as: 'latency' + property :mega_cycles, as: 'megaCycles' + property :method_prop, as: 'method' + property :resource, as: 'resource' + property :http_version, as: 'httpVersion' + property :status, as: 'status' + property :response_size, as: 'responseSize' + property :referrer, as: 'referrer' + property :user_agent, as: 'userAgent' + property :nickname, as: 'nickname' + property :url_map_entry, as: 'urlMapEntry' + property :host, as: 'host' + property :cost, as: 'cost' + property :task_queue_name, as: 'taskQueueName' + property :task_name, as: 'taskName' + property :was_loading_request, as: 'wasLoadingRequest' + property :pending_time, as: 'pendingTime' + property :instance_index, as: 'instanceIndex' + property :finished, as: 'finished' + property :instance_id, as: 'instanceId' + collection :line, as: 'line', class: Google::Apis::LoggingV1beta3::LogLine, decorator: Google::Apis::LoggingV1beta3::LogLine::Representation + + property :app_engine_release, as: 'appEngineRelease' + property :trace_id, as: 'traceId' + collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV1beta3::SourceReference, decorator: Google::Apis::LoggingV1beta3::SourceReference::Representation + + end + end + + class LogLine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :time, as: 'time' + property :severity, as: 'severity' + property :log_message, as: 'logMessage' + property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV1beta3::SourceLocation, decorator: Google::Apis::LoggingV1beta3::SourceLocation::Representation + + end + end + + class SourceLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file, as: 'file' + property :line, as: 'line' + property :function_name, as: 'functionName' + end + end + + class SourceReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :repository, as: 'repository' + property :revision_id, as: 'revisionId' + end + end end end end diff --git a/generated/google/apis/logging_v1beta3/service.rb b/generated/google/apis/logging_v1beta3/service.rb index 289c46789..31f158a37 100644 --- a/generated/google/apis/logging_v1beta3/service.rb +++ b/generated/google/apis/logging_v1beta3/service.rb @@ -22,8 +22,8 @@ module Google module LoggingV1beta3 # Google Cloud Logging API # - # Google Cloud Logging API lets you create logs, ingest log entries, and manage - # log sinks. + # The Google Cloud Logging API lets you write log entries and manage your logs, + # log sinks and logs-based metrics. # # @example # require 'google/apis/logging_v1beta3' @@ -31,7 +31,7 @@ module Google # Logging = Google::Apis::LoggingV1beta3 # Alias the module # service = Logging::LoggingService.new # - # @see + # @see https://cloud.google.com/logging/docs/ class LoggingService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -47,23 +47,22 @@ module Google super('https://logging.googleapis.com/', '') end - # Lists log resources belonging to the specified project. + # Lists the logs in the project. Only logs that have entries are listed. # @param [String] projects_id - # Part of `projectName`. The project name for which to list the log resources. + # Part of `projectName`. The resource name of the project whose logs are + # requested. If both `serviceName` and `serviceIndexPrefix` are empty, then all + # logs with entries in this project are listed. # @param [String] service_name - # A service name for which to list logs. Only logs containing entries whose - # metadata includes this service name are returned. If `serviceName` and ` - # serviceIndexPrefix` are both empty, then all log names are returned. To list - # all log names, regardless of service, leave both the `serviceName` and ` - # serviceIndexPrefix` empty. To list log names containing entries with a - # particular service name (or explicitly empty service name) set `serviceName` - # to the desired value and `serviceIndexPrefix` to `"/"`. + # If not empty, this field must be a log service name such as `"compute. + # googleapis.com"`. Only logs associated with that that log service are listed. # @param [String] service_index_prefix - # A log service index prefix for which to list logs. Only logs containing - # entries whose metadata that includes these label values (associated with index - # keys) are returned. The prefix is a slash separated list of values, and need - # not specify all index labels. An empty index (or a single slash) matches all - # log service indexes. + # The purpose of this field is to restrict the listed logs to those with entries + # of a certain kind. If `serviceName` is the name of a log service, then this + # field may contain values for the log service's indexes. Only logs that have + # entries whose indexes include the values are listed. The format for this field + # is `"/val1/val2.../valN"`, where `val1` is a value for the first index, `val2` + # for the second index, etc. An empty value (a single slash) for an index + # matches all values, and you can omit values for later indexes entirely. # @param [Fixnum] page_size # The maximum number of results to return. # @param [String] page_token @@ -88,8 +87,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_logs(projects_id, service_name: nil, service_index_prefix: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs', options) command.response_representation = Google::Apis::LoggingV1beta3::ListLogsResponse::Representation command.response_class = Google::Apis::LoggingV1beta3::ListLogsResponse command.params['projectsId'] = projects_id unless projects_id.nil? @@ -102,9 +100,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified log resource and all log entries contained in it. + # Deletes a log and all its log entries. The log will reappear if it receives + # new entries. # @param [String] projects_id - # Part of `logName`. The log resource to delete. + # Part of `logName`. The resource name of the log to be deleted. # @param [String] logs_id # Part of `logName`. See documentation of `projectsId`. # @param [String] fields @@ -125,8 +124,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_log(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs/{logsId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}', options) command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation command.response_class = Google::Apis::LoggingV1beta3::Empty command.params['projectsId'] = projects_id unless projects_id.nil? @@ -136,15 +134,13 @@ module Google execute_or_queue_command(command, &block) end - # Creates one or more log entries in a log. You must supply a list of `LogEntry` - # objects, named `entries`. Each `LogEntry` object must contain a payload object - # and a `LogEntryMetadata` object that describes the entry. You must fill in all - # the fields of the entry, metadata, and payload. You can also supply a map, ` - # commonLabels`, that supplies default (key, value) data for the `entries[]. - # metadata.labels` maps, saving you the trouble of creating identical copies for - # each entry. + # Writes log entries to Cloud Logging. Each entry consists of a `LogEntry` + # object. You must fill in all the fields of the object, including one of the + # payload fields. You may supply a map, `commonLabels`, that holds default (key, + # value) data for the `entries[].metadata.labels` map in each entry, saving you + # the trouble of creating identical copies for each entry. # @param [String] projects_id - # Part of `logName`. The name of the log resource into which to insert the log + # Part of `logName`. The resource name of the log that will receive the log # entries. # @param [String] logs_id # Part of `logName`. See documentation of `projectsId`. @@ -167,8 +163,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def write_log_entries(projects_id, logs_id, write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write', options) command.request_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesRequest::Representation command.request_object = write_log_entries_request_object command.response_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesResponse::Representation @@ -180,9 +175,10 @@ module Google execute_or_queue_command(command, &block) end - # Lists log sinks associated with the specified log. + # Lists log sinks associated with a log. # @param [String] projects_id - # Part of `logName`. The log for which to list sinks. + # Part of `logName`. The log whose sinks are wanted. For example, `"compute. + # google.com/syslog"`. # @param [String] logs_id # Part of `logName`. See documentation of `projectsId`. # @param [String] fields @@ -203,8 +199,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_log_sinks(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options) command.response_representation = Google::Apis::LoggingV1beta3::ListLogSinksResponse::Representation command.response_class = Google::Apis::LoggingV1beta3::ListLogSinksResponse command.params['projectsId'] = projects_id unless projects_id.nil? @@ -214,9 +209,9 @@ module Google execute_or_queue_command(command, &block) end - # Gets the specified log sink resource. + # Gets a log sink. # @param [String] projects_id - # Part of `sinkName`. The name of the sink resource to return. + # Part of `sinkName`. The resource name of the log sink to return. # @param [String] logs_id # Part of `sinkName`. See documentation of `projectsId`. # @param [String] sinks_id @@ -239,8 +234,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options) command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation command.response_class = Google::Apis::LoggingV1beta3::LogSink command.params['projectsId'] = projects_id unless projects_id.nil? @@ -251,9 +245,10 @@ module Google execute_or_queue_command(command, &block) end - # Creates the specified log sink resource. + # Creates a log sink. All log entries for a specified log are written to the + # destination. # @param [String] projects_id - # Part of `logName`. The log in which to create a sink resource. + # Part of `logName`. The resource name of the log to which to the sink is bound. # @param [String] logs_id # Part of `logName`. See documentation of `projectsId`. # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object @@ -275,8 +270,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_log_sink(projects_id, logs_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options) command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation command.request_object = log_sink_object command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation @@ -288,9 +282,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates or updates the specified log sink resource. + # Updates a log sink. If the sink does not exist, it is created. # @param [String] projects_id - # Part of `sinkName`. The name of the sink to update. + # Part of `sinkName`. The resource name of the sink to update. # @param [String] logs_id # Part of `sinkName`. See documentation of `projectsId`. # @param [String] sinks_id @@ -314,8 +308,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_log_sink(projects_id, logs_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options) command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation command.request_object = log_sink_object command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation @@ -328,9 +321,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified log sink resource. + # Deletes a log sink. After deletion, no new log entries are written to the + # destination. # @param [String] projects_id - # Part of `sinkName`. The name of the sink to delete. + # Part of `sinkName`. The resource name of the log sink to delete. # @param [String] logs_id # Part of `sinkName`. See documentation of `projectsId`. # @param [String] sinks_id @@ -353,8 +347,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options) command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation command.response_class = Google::Apis::LoggingV1beta3::Empty command.params['projectsId'] = projects_id unless projects_id.nil? @@ -365,12 +358,10 @@ module Google execute_or_queue_command(command, &block) end - # Lists log services associated with log entries ingested for a project. + # Lists the log services that have log entries in this project. # @param [String] projects_id - # Part of `projectName`. The project resource whose services are to be listed. - # @param [String] log - # The name of the log resource whose services are to be listed. log for which to - # list services. When empty, all services are listed. + # Part of `projectName`. The resource name of the project whose services are to + # be listed. # @param [Fixnum] page_size # The maximum number of `LogService` objects to return in one operation. # @param [String] page_token @@ -394,13 +385,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_log_services(projects_id, log: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logServices' - command = make_simple_command(:get, path, options) + def list_log_services(projects_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices', options) command.response_representation = Google::Apis::LoggingV1beta3::ListLogServicesResponse::Representation command.response_class = Google::Apis::LoggingV1beta3::ListLogServicesResponse command.params['projectsId'] = projects_id unless projects_id.nil? - command.query['log'] = log unless log.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -408,30 +397,32 @@ module Google execute_or_queue_command(command, &block) end - # Lists log service indexes associated with a log service. + # Lists the current index values for a log service. # @param [String] projects_id - # Part of `serviceName`. A log service resource of the form `/projects/*/ - # logServices/*`. The service indexes of the log service are returned. Example: ` - # "/projects/myProj/logServices/appengine.googleapis.com"`. + # Part of `serviceName`. The resource name of a log service whose service + # indexes are requested. Example: `"projects/my-project-id/logServices/appengine. + # googleapis.com"`. # @param [String] log_services_id # Part of `serviceName`. See documentation of `projectsId`. # @param [String] index_prefix - # Restricts the indexes returned to be those with a specified prefix. The prefix - # has the form `"/label_value/label_value/..."`, in order corresponding to the [` - # LogService indexKeys`][google.logging.v1.LogService.index_keys]. Non-empty - # prefixes must begin with `/` . Example prefixes: + `"/myModule/"` retrieves - # App Engine versions associated with `myModule`. The trailing slash terminates - # the value. + `"/myModule"` retrieves App Engine modules with names beginning - # with `myModule`. + `""` retrieves all indexes. + # Restricts the index values returned to be those with a specified prefix for + # each index key. This field has the form `"/prefix1/prefix2/..."`, in order + # corresponding to the `LogService indexKeys`. Non-empty prefixes must begin + # with `/`. For example, App Engine's two keys are the module ID and the version + # ID. Following is the effect of using various values for `indexPrefix`: + `"/ + # Mod/"` retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod` + # retrieves `/Mod/10`, `/Mod/11` and `/ModA/10` but not `/XXX/33`. + `"/Mod/1"` + # retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod/10/"` retrieves + # `/Mod/10` only. + An empty prefix or `"/"` retrieves all values. # @param [Fixnum] depth - # A limit to the number of levels of the index hierarchy that are expanded. If ` - # depth` is 0, it defaults to the level specified by the prefix field (the - # number of slash separators). The default empty prefix implies a `depth` of 1. - # It is an error for `depth` to be any non-zero value less than the number of + # A non-negative integer that limits the number of levels of the index hierarchy + # that are returned. If `depth` is 1 (default), only the first index key value + # is returned. If `depth` is 2, both primary and secondary key values are + # returned. If `depth` is 0, the depth is the number of slash-separators in the ` + # indexPrefix` field, not counting a slash appearing as the last character of + # the prefix. If the `indexPrefix` field is empty, the default depth is 1. It is + # an error for `depth` to be any positive value less than the number of # components in `indexPrefix`. - # @param [String] log - # A log resource like `/projects/project_id/logs/log_name`, identifying the log - # for which to list service indexes. # @param [Fixnum] page_size # The maximum number of log service index resources to return in one operation. # @param [String] page_token @@ -456,16 +447,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_log_service_indexes(projects_id, log_services_id, index_prefix: nil, depth: nil, log: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes' - command = make_simple_command(:get, path, options) + def list_log_service_indexes(projects_id, log_services_id, index_prefix: nil, depth: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes', options) command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse::Representation command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse command.params['projectsId'] = projects_id unless projects_id.nil? command.params['logServicesId'] = log_services_id unless log_services_id.nil? command.query['indexPrefix'] = index_prefix unless index_prefix.nil? command.query['depth'] = depth unless depth.nil? - command.query['log'] = log unless log.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -473,9 +462,9 @@ module Google execute_or_queue_command(command, &block) end - # Lists log service sinks associated with the specified service. + # Lists log service sinks associated with a log service. # @param [String] projects_id - # Part of `serviceName`. The name of the service for which to list sinks. + # Part of `serviceName`. The log service whose sinks are wanted. # @param [String] log_services_id # Part of `serviceName`. See documentation of `projectsId`. # @param [String] fields @@ -496,8 +485,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_log_service_sinks(projects_id, log_services_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options) command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse::Representation command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse command.params['projectsId'] = projects_id unless projects_id.nil? @@ -507,9 +495,9 @@ module Google execute_or_queue_command(command, &block) end - # Gets the specified log service sink resource. + # Gets a log service sink. # @param [String] projects_id - # Part of `sinkName`. The name of the sink to return. + # Part of `sinkName`. The resource name of the log service sink to return. # @param [String] log_services_id # Part of `sinkName`. See documentation of `projectsId`. # @param [String] sinks_id @@ -532,8 +520,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options) command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation command.response_class = Google::Apis::LoggingV1beta3::LogSink command.params['projectsId'] = projects_id unless projects_id.nil? @@ -544,9 +531,11 @@ module Google execute_or_queue_command(command, &block) end - # Creates the specified log service sink resource. + # Creates a log service sink. All log entries from a specified log service are + # written to the destination. # @param [String] projects_id - # Part of `serviceName`. The name of the service in which to create a sink. + # Part of `serviceName`. The resource name of the log service to which the sink + # is bound. # @param [String] log_services_id # Part of `serviceName`. See documentation of `projectsId`. # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object @@ -568,8 +557,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_log_service_sink(projects_id, log_services_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options) command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation command.request_object = log_sink_object command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation @@ -581,9 +569,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates or update the specified log service sink resource. + # Updates a log service sink. If the sink does not exist, it is created. # @param [String] projects_id - # Part of `sinkName`. The name of the sink to update. + # Part of `sinkName`. The resource name of the log service sink to update. # @param [String] log_services_id # Part of `sinkName`. See documentation of `projectsId`. # @param [String] sinks_id @@ -607,8 +595,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_log_service_sink(projects_id, log_services_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options) command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation command.request_object = log_sink_object command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation @@ -621,9 +608,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified log service sink. + # Deletes a log service sink. After deletion, no new log entries are written to + # the destination. # @param [String] projects_id - # Part of `sinkName`. The name of the sink to delete. + # Part of `sinkName`. The resource name of the log service sink to delete. # @param [String] log_services_id # Part of `sinkName`. See documentation of `projectsId`. # @param [String] sinks_id @@ -646,8 +634,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options) command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation command.response_class = Google::Apis::LoggingV1beta3::Empty command.params['projectsId'] = projects_id unless projects_id.nil? @@ -657,6 +644,350 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Lists project sinks associated with a project. + # @param [String] projects_id + # Part of `projectName`. The project whose sinks are wanted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::ListSinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::ListSinksResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_sinks(projects_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks', options) + command.response_representation = Google::Apis::LoggingV1beta3::ListSinksResponse::Representation + command.response_class = Google::Apis::LoggingV1beta3::ListSinksResponse + command.params['projectsId'] = projects_id unless projects_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a project sink. + # @param [String] projects_id + # Part of `sinkName`. The resource name of the project sink to return. + # @param [String] sinks_id + # Part of `sinkName`. See documentation of `projectsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::LogSink] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options) + command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation + command.response_class = Google::Apis::LoggingV1beta3::LogSink + command.params['projectsId'] = projects_id unless projects_id.nil? + command.params['sinksId'] = sinks_id unless sinks_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a project sink. A logs filter determines which log entries are written + # to the destination. + # @param [String] projects_id + # Part of `projectName`. The resource name of the project to which the sink is + # bound. + # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::LogSink] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_sink(projects_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/sinks', options) + command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation + command.response_class = Google::Apis::LoggingV1beta3::LogSink + command.params['projectsId'] = projects_id unless projects_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a project sink. If the sink does not exist, it is created. The + # destination, filter, or both may be updated. + # @param [String] projects_id + # Part of `sinkName`. The resource name of the project sink to update. + # @param [String] sinks_id + # Part of `sinkName`. See documentation of `projectsId`. + # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::LogSink] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_sink(projects_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options) + command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation + command.response_class = Google::Apis::LoggingV1beta3::LogSink + command.params['projectsId'] = projects_id unless projects_id.nil? + command.params['sinksId'] = sinks_id unless sinks_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a project sink. After deletion, no new log entries are written to the + # destination. + # @param [String] projects_id + # Part of `sinkName`. The resource name of the project sink to delete. + # @param [String] sinks_id + # Part of `sinkName`. See documentation of `projectsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options) + command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation + command.response_class = Google::Apis::LoggingV1beta3::Empty + command.params['projectsId'] = projects_id unless projects_id.nil? + command.params['sinksId'] = sinks_id unless sinks_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the logs-based metrics associated with a project. + # @param [String] projects_id + # Part of `projectName`. The resource name for the project whose metrics are + # wanted. + # @param [String] page_token + # An opaque token, returned as `nextPageToken` by a prior `ListLogMetrics` + # operation. If `pageToken` is supplied, then the other fields of this request + # are ignored, and instead the previous `ListLogMetrics` operation is continued. + # @param [Fixnum] page_size + # The maximum number of `LogMetric` objects to return in one operation. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::ListLogMetricsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::ListLogMetricsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_metrics(projects_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics', options) + command.response_representation = Google::Apis::LoggingV1beta3::ListLogMetricsResponse::Representation + command.response_class = Google::Apis::LoggingV1beta3::ListLogMetricsResponse + command.params['projectsId'] = projects_id unless projects_id.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a logs-based metric. + # @param [String] projects_id + # Part of `metricName`. The resource name of the desired metric. + # @param [String] metrics_id + # Part of `metricName`. See documentation of `projectsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::LogMetric] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options) + command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation + command.response_class = Google::Apis::LoggingV1beta3::LogMetric + command.params['projectsId'] = projects_id unless projects_id.nil? + command.params['metricsId'] = metrics_id unless metrics_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a logs-based metric. + # @param [String] projects_id + # Part of `projectName`. The resource name of the project in which to create the + # metric. + # @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::LogMetric] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_metric(projects_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/metrics', options) + command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation + command.response_class = Google::Apis::LoggingV1beta3::LogMetric + command.params['projectsId'] = projects_id unless projects_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates or updates a logs-based metric. + # @param [String] projects_id + # Part of `metricName`. The resource name of the metric to update. + # @param [String] metrics_id + # Part of `metricName`. See documentation of `projectsId`. + # @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::LogMetric] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_metric(projects_id, metrics_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options) + command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation + command.response_class = Google::Apis::LoggingV1beta3::LogMetric + command.params['projectsId'] = projects_id unless projects_id.nil? + command.params['metricsId'] = metrics_id unless metrics_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a logs-based metric. + # @param [String] projects_id + # Part of `metricName`. The resource name of the metric to delete. + # @param [String] metrics_id + # Part of `metricName`. See documentation of `projectsId`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV1beta3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options) + command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation + command.response_class = Google::Apis::LoggingV1beta3::Empty + command.params['projectsId'] = projects_id unless projects_id.nil? + command.params['metricsId'] = metrics_id unless metrics_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/manager_v1beta2.rb b/generated/google/apis/manager_v1beta2.rb index d6ad78d46..c67283f52 100644 --- a/generated/google/apis/manager_v1beta2.rb +++ b/generated/google/apis/manager_v1beta2.rb @@ -34,6 +34,9 @@ module Google # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # View and manage your Google Compute Engine resources AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' diff --git a/generated/google/apis/manager_v1beta2/service.rb b/generated/google/apis/manager_v1beta2/service.rb index 0e0b220fe..47ae41d0e 100644 --- a/generated/google/apis/manager_v1beta2/service.rb +++ b/generated/google/apis/manager_v1beta2/service.rb @@ -79,8 +79,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_deployment(project_id, region, deployment_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/regions/{region}/deployments/{deploymentName}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{projectId}/regions/{region}/deployments/{deploymentName}', options) command.params['projectId'] = project_id unless project_id.nil? command.params['region'] = region unless region.nil? command.params['deploymentName'] = deployment_name unless deployment_name.nil? @@ -116,8 +115,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_deployment(project_id, region, deployment_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/regions/{region}/deployments/{deploymentName}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{projectId}/regions/{region}/deployments/{deploymentName}', options) command.response_representation = Google::Apis::ManagerV1beta2::Deployment::Representation command.response_class = Google::Apis::ManagerV1beta2::Deployment command.params['projectId'] = project_id unless project_id.nil? @@ -155,8 +153,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_deployment(project_id, region, deployment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/regions/{region}/deployments' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{projectId}/regions/{region}/deployments', options) command.request_representation = Google::Apis::ManagerV1beta2::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::ManagerV1beta2::Deployment::Representation @@ -200,8 +197,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_deployments(project_id, region, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/regions/{region}/deployments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{projectId}/regions/{region}/deployments', options) command.response_representation = Google::Apis::ManagerV1beta2::ListDeploymentsResponse::Representation command.response_class = Google::Apis::ManagerV1beta2::ListDeploymentsResponse command.params['projectId'] = project_id unless project_id.nil? @@ -239,8 +235,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_template(project_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/templates/{templateName}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{projectId}/templates/{templateName}', options) command.params['projectId'] = project_id unless project_id.nil? command.params['templateName'] = template_name unless template_name.nil? command.query['fields'] = fields unless fields.nil? @@ -274,8 +269,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_template(project_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/templates/{templateName}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{projectId}/templates/{templateName}', options) command.response_representation = Google::Apis::ManagerV1beta2::Template::Representation command.response_class = Google::Apis::ManagerV1beta2::Template command.params['projectId'] = project_id unless project_id.nil? @@ -311,8 +305,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_template(project_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/templates' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{projectId}/templates', options) command.request_representation = Google::Apis::ManagerV1beta2::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::ManagerV1beta2::Template::Representation @@ -354,8 +347,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_templates(project_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{projectId}/templates' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{projectId}/templates', options) command.response_representation = Google::Apis::ManagerV1beta2::ListTemplatesResponse::Representation command.response_class = Google::Apis::ManagerV1beta2::ListTemplatesResponse command.params['projectId'] = project_id unless project_id.nil? diff --git a/generated/google/apis/mapsengine_v1/service.rb b/generated/google/apis/mapsengine_v1/service.rb index 72ea04f2c..e8f244ff5 100644 --- a/generated/google/apis/mapsengine_v1/service.rb +++ b/generated/google/apis/mapsengine_v1/service.rb @@ -78,8 +78,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_asset(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'assets/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'assets/{id}', options) command.response_representation = Google::Apis::MapsengineV1::Asset::Representation command.response_class = Google::Apis::MapsengineV1::Asset command.params['id'] = id unless id.nil? @@ -155,8 +154,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_assets(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, project_id: nil, role: nil, search: nil, tags: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'assets' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'assets', options) command.response_representation = Google::Apis::MapsengineV1::ListAssetsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListAssetsResponse command.query['bbox'] = bbox unless bbox.nil? @@ -210,8 +208,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_asset_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'assets/{id}/parents' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'assets/{id}/parents', options) command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListParentsResponse command.params['id'] = id unless id.nil? @@ -248,8 +245,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_asset_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'assets/{id}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'assets/{id}/permissions', options) command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse command.params['id'] = id unless id.nil? @@ -283,9 +279,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_processing_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/cancelProcessing' - command = make_simple_command(:post, path, options) + def cancel_layer_processing(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'layers/{id}/cancelProcessing', options) command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation command.response_class = Google::Apis::MapsengineV1::ProcessResponse command.params['id'] = id unless id.nil? @@ -321,8 +316,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_layer(layer_object = nil, process: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'layers', options) command.request_representation = Google::Apis::MapsengineV1::Layer::Representation command.request_object = layer_object command.response_representation = Google::Apis::MapsengineV1::Layer::Representation @@ -361,8 +355,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'layers/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -399,8 +392,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_layer(id, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'layers/{id}', options) command.response_representation = Google::Apis::MapsengineV1::Layer::Representation command.response_class = Google::Apis::MapsengineV1::Layer command.params['id'] = id unless id.nil? @@ -436,8 +428,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_published_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/published' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'layers/{id}/published', options) command.response_representation = Google::Apis::MapsengineV1::PublishedLayer::Representation command.response_class = Google::Apis::MapsengineV1::PublishedLayer command.params['id'] = id unless id.nil? @@ -510,8 +501,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_layers(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'layers', options) command.response_representation = Google::Apis::MapsengineV1::ListLayersResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListLayersResponse command.query['bbox'] = bbox unless bbox.nil? @@ -567,9 +557,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_published_layer(max_results: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/published' - command = make_simple_command(:get, path, options) + def list_published_layers(max_results: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'layers/published', options) command.response_representation = Google::Apis::MapsengineV1::ListPublishedLayersResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPublishedLayersResponse command.query['maxResults'] = max_results unless max_results.nil? @@ -607,8 +596,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_layer(id, layer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'layers/{id}', options) command.request_representation = Google::Apis::MapsengineV1::Layer::Representation command.request_object = layer_object command.params['id'] = id unless id.nil? @@ -643,8 +631,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def process_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/process' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'layers/{id}/process', options) command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation command.response_class = Google::Apis::MapsengineV1::ProcessResponse command.params['id'] = id unless id.nil? @@ -683,8 +670,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def publish_layer(id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/publish' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'layers/{id}/publish', options) command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation command.response_class = Google::Apis::MapsengineV1::PublishResponse command.params['id'] = id unless id.nil? @@ -720,8 +706,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def unpublish_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/unpublish' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'layers/{id}/unpublish', options) command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation command.response_class = Google::Apis::MapsengineV1::PublishResponse command.params['id'] = id unless id.nil? @@ -763,8 +748,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_layer_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/parents' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'layers/{id}/parents', options) command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListParentsResponse command.params['id'] = id unless id.nil? @@ -802,8 +786,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_delete_layer_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/permissions/batchDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'layers/{id}/permissions/batchDelete', options) command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation command.request_object = batch_delete_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation @@ -843,8 +826,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_update_layer_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/permissions/batchUpdate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'layers/{id}/permissions/batchUpdate', options) command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation command.request_object = batch_update_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation @@ -881,8 +863,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_layer_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'layers/{id}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'layers/{id}/permissions', options) command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse command.params['id'] = id unless id.nil? @@ -916,8 +897,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_map(map_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'maps', options) command.request_representation = Google::Apis::MapsengineV1::Map::Representation command.request_object = map_object command.response_representation = Google::Apis::MapsengineV1::Map::Representation @@ -955,8 +935,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_map(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'maps/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -993,8 +972,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_map(id, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'maps/{id}', options) command.response_representation = Google::Apis::MapsengineV1::Map::Representation command.response_class = Google::Apis::MapsengineV1::Map command.params['id'] = id unless id.nil? @@ -1030,8 +1008,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_published_map(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}/published' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'maps/{id}/published', options) command.response_representation = Google::Apis::MapsengineV1::PublishedMap::Representation command.response_class = Google::Apis::MapsengineV1::PublishedMap command.params['id'] = id unless id.nil? @@ -1104,8 +1081,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_maps(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'maps', options) command.response_representation = Google::Apis::MapsengineV1::ListMapsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListMapsResponse command.query['bbox'] = bbox unless bbox.nil? @@ -1161,9 +1137,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_published_map(max_results: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/published' - command = make_simple_command(:get, path, options) + def list_map_published(max_results: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'maps/published', options) command.response_representation = Google::Apis::MapsengineV1::ListPublishedMapsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPublishedMapsResponse command.query['maxResults'] = max_results unless max_results.nil? @@ -1201,8 +1176,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_map(id, map_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'maps/{id}', options) command.request_representation = Google::Apis::MapsengineV1::Map::Representation command.request_object = map_object command.params['id'] = id unless id.nil? @@ -1241,8 +1215,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def publish_map(id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}/publish' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'maps/{id}/publish', options) command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation command.response_class = Google::Apis::MapsengineV1::PublishResponse command.params['id'] = id unless id.nil? @@ -1278,8 +1251,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def unpublish_map(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}/unpublish' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'maps/{id}/unpublish', options) command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation command.response_class = Google::Apis::MapsengineV1::PublishResponse command.params['id'] = id unless id.nil? @@ -1315,8 +1287,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_delete_map_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}/permissions/batchDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'maps/{id}/permissions/batchDelete', options) command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation command.request_object = batch_delete_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation @@ -1356,8 +1327,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_update_map_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}/permissions/batchUpdate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'maps/{id}/permissions/batchUpdate', options) command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation command.request_object = batch_update_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation @@ -1394,8 +1364,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_map_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'maps/{id}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'maps/{id}/permissions', options) command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse command.params['id'] = id unless id.nil? @@ -1428,8 +1397,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_projects(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects', options) command.response_representation = Google::Apis::MapsengineV1::ListProjectsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListProjectsResponse command.query['fields'] = fields unless fields.nil? @@ -1468,11 +1436,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_icon(project_id, icon_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'projects/{projectId}/icons' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{projectId}/icons', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'projects/{projectId}/icons', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1516,11 +1483,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_icon(project_id, id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'projects/{projectId}/icons/{id}' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/icons/{id}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'projects/{projectId}/icons/{id}', options) command.download_dest = download_dest end command.response_representation = Google::Apis::MapsengineV1::Icon::Representation @@ -1565,8 +1531,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_icons(project_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{projectId}/icons' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{projectId}/icons', options) command.response_representation = Google::Apis::MapsengineV1::ListIconsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListIconsResponse command.params['projectId'] = project_id unless project_id.nil? @@ -1602,9 +1567,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_processing_raster_collection(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/cancelProcessing' - command = make_simple_command(:post, path, options) + def cancel_raster_collection_processing(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'rasterCollections/{id}/cancelProcessing', options) command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation command.response_class = Google::Apis::MapsengineV1::ProcessResponse command.params['id'] = id unless id.nil? @@ -1638,8 +1602,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_raster_collection(raster_collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasterCollections', options) command.request_representation = Google::Apis::MapsengineV1::RasterCollection::Representation command.request_object = raster_collection_object command.response_representation = Google::Apis::MapsengineV1::RasterCollection::Representation @@ -1678,8 +1641,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_raster_collection(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'rasterCollections/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1712,8 +1674,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_raster_collection(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasterCollections/{id}', options) command.response_representation = Google::Apis::MapsengineV1::RasterCollection::Representation command.response_class = Google::Apis::MapsengineV1::RasterCollection command.params['id'] = id unless id.nil? @@ -1786,8 +1747,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_raster_collections(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasterCollections', options) command.response_representation = Google::Apis::MapsengineV1::ListRasterCollectionsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListRasterCollectionsResponse command.query['bbox'] = bbox unless bbox.nil? @@ -1835,8 +1795,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_raster_collection(id, raster_collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'rasterCollections/{id}', options) command.request_representation = Google::Apis::MapsengineV1::RasterCollection::Representation command.request_object = raster_collection_object command.params['id'] = id unless id.nil? @@ -1871,8 +1830,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def process_raster_collection(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/process' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasterCollections/{id}/process', options) command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation command.response_class = Google::Apis::MapsengineV1::ProcessResponse command.params['id'] = id unless id.nil? @@ -1914,8 +1872,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_raster_collection_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/parents' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasterCollections/{id}/parents', options) command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListParentsResponse command.params['id'] = id unless id.nil? @@ -1953,8 +1910,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_delete_raster_collection_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/permissions/batchDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasterCollections/{id}/permissions/batchDelete', options) command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation command.request_object = batch_delete_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation @@ -1994,8 +1950,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_update_raster_collection_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/permissions/batchUpdate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasterCollections/{id}/permissions/batchUpdate', options) command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation command.request_object = batch_update_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation @@ -2032,8 +1987,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_raster_collection_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasterCollections/{id}/permissions', options) command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse command.params['id'] = id unless id.nil? @@ -2071,8 +2025,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_delete_raster_collection_raster(id, batch_delete_raster_collections_raster_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/rasters/batchDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasterCollections/{id}/rasters/batchDelete', options) command.request_representation = Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRasterRequest::Representation command.request_object = batch_delete_raster_collections_raster_request_object command.response_representation = Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRastersResponse::Representation @@ -2113,8 +2066,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_insert_raster_collection_raster(id, batch_insert_raster_collections_rasters_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/rasters/batchInsert' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasterCollections/{id}/rasters/batchInsert', options) command.request_representation = Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersRequest::Representation command.request_object = batch_insert_raster_collections_rasters_request_object command.response_representation = Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersResponse::Representation @@ -2185,8 +2137,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_raster_collection_rasters(id, bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasterCollections/{id}/rasters' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasterCollections/{id}/rasters', options) command.response_representation = Google::Apis::MapsengineV1::ListRasterCollectionsRastersResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListRasterCollectionsRastersResponse command.params['id'] = id unless id.nil? @@ -2234,8 +2185,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_raster(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'rasters/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2268,8 +2218,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_raster(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasters/{id}', options) command.response_representation = Google::Apis::MapsengineV1::Raster::Representation command.response_class = Google::Apis::MapsengineV1::Raster command.params['id'] = id unless id.nil? @@ -2342,8 +2291,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_rasters(project_id, bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasters', options) command.response_representation = Google::Apis::MapsengineV1::ListRastersResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListRastersResponse command.query['bbox'] = bbox unless bbox.nil? @@ -2391,8 +2339,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_raster(id, raster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'rasters/{id}', options) command.request_representation = Google::Apis::MapsengineV1::Raster::Representation command.request_object = raster_object command.params['id'] = id unless id.nil? @@ -2427,8 +2374,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def process_raster(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}/process' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasters/{id}/process', options) command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation command.response_class = Google::Apis::MapsengineV1::ProcessResponse command.params['id'] = id unless id.nil? @@ -2462,8 +2408,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_raster(raster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/upload' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasters/upload', options) command.request_representation = Google::Apis::MapsengineV1::Raster::Representation command.request_object = raster_object command.response_representation = Google::Apis::MapsengineV1::Raster::Representation @@ -2505,11 +2450,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_raster_file(id, filename, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'rasters/{id}/files' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasters/{id}/files', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'rasters/{id}/files', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -2553,8 +2497,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_raster_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}/parents' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasters/{id}/parents', options) command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListParentsResponse command.params['id'] = id unless id.nil? @@ -2592,8 +2535,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_delete_raster_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}/permissions/batchDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasters/{id}/permissions/batchDelete', options) command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation command.request_object = batch_delete_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation @@ -2633,8 +2575,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_update_raster_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}/permissions/batchUpdate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'rasters/{id}/permissions/batchUpdate', options) command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation command.request_object = batch_update_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation @@ -2671,8 +2612,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_raster_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'rasters/{id}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'rasters/{id}/permissions', options) command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse command.params['id'] = id unless id.nil? @@ -2706,8 +2646,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables', options) command.request_representation = Google::Apis::MapsengineV1::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::MapsengineV1::Table::Representation @@ -2745,8 +2684,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_table(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'tables/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2780,8 +2718,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_table(id, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{id}', options) command.response_representation = Google::Apis::MapsengineV1::Table::Representation command.response_class = Google::Apis::MapsengineV1::Table command.params['id'] = id unless id.nil? @@ -2855,8 +2792,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tables(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables', options) command.response_representation = Google::Apis::MapsengineV1::ListTablesResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListTablesResponse command.query['bbox'] = bbox unless bbox.nil? @@ -2904,8 +2840,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_table(id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'tables/{id}', options) command.request_representation = Google::Apis::MapsengineV1::Table::Representation command.request_object = table_object command.params['id'] = id unless id.nil? @@ -2940,8 +2875,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def process_table(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/process' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{id}/process', options) command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation command.response_class = Google::Apis::MapsengineV1::ProcessResponse command.params['id'] = id unless id.nil? @@ -2979,8 +2913,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def upload_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/upload' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/upload', options) command.request_representation = Google::Apis::MapsengineV1::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::MapsengineV1::Table::Representation @@ -3017,8 +2950,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_delete_table_feature(id, batch_delete_features_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/features/batchDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{id}/features/batchDelete', options) command.request_representation = Google::Apis::MapsengineV1::BatchDeleteFeaturesRequest::Representation command.request_object = batch_delete_features_request_object command.params['id'] = id unless id.nil? @@ -3062,8 +2994,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_insert_table_feature(id, batch_insert_features_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/features/batchInsert' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{id}/features/batchInsert', options) command.request_representation = Google::Apis::MapsengineV1::BatchInsertFeaturesRequest::Representation command.request_object = batch_insert_features_request_object command.params['id'] = id unless id.nil? @@ -3114,8 +3045,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_patch_table_feature(id, batch_patch_features_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/features/batchPatch' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{id}/features/batchPatch', options) command.request_representation = Google::Apis::MapsengineV1::BatchPatchFeaturesRequest::Representation command.request_object = batch_patch_features_request_object command.params['id'] = id unless id.nil? @@ -3157,8 +3087,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_table_feature(table_id, id, select: nil, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{tableId}/features/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{tableId}/features/{id}', options) command.response_representation = Google::Apis::MapsengineV1::Feature::Representation command.response_class = Google::Apis::MapsengineV1::Feature command.params['tableId'] = table_id unless table_id.nil? @@ -3221,8 +3150,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_table_features(id, include: nil, intersects: nil, limit: nil, max_results: nil, order_by: nil, page_token: nil, select: nil, version: nil, where: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/features' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{id}/features', options) command.response_representation = Google::Apis::MapsengineV1::ListFeaturesResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListFeaturesResponse command.params['id'] = id unless id.nil? @@ -3275,11 +3203,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_table_file(id, filename, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'tables/{id}/files' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{id}/files', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'tables/{id}/files', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -3323,8 +3250,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_table_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/parents' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{id}/parents', options) command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListParentsResponse command.params['id'] = id unless id.nil? @@ -3362,8 +3288,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_delete_table_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/permissions/batchDelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{id}/permissions/batchDelete', options) command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation command.request_object = batch_delete_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation @@ -3403,8 +3328,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def batch_update_table_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/permissions/batchUpdate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'tables/{id}/permissions/batchUpdate', options) command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation command.request_object = batch_update_permissions_request_object command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation @@ -3441,8 +3365,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_table_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'tables/{id}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'tables/{id}/permissions', options) command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse command.params['id'] = id unless id.nil? diff --git a/generated/google/apis/mirror_v1.rb b/generated/google/apis/mirror_v1.rb index 0172f80f4..03d44770d 100644 --- a/generated/google/apis/mirror_v1.rb +++ b/generated/google/apis/mirror_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/glass module MirrorV1 VERSION = 'V1' - REVISION = '20150720' + REVISION = '20151102' # View your location AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location' diff --git a/generated/google/apis/mirror_v1/service.rb b/generated/google/apis/mirror_v1/service.rb index 8eae31c02..f76ae7346 100644 --- a/generated/google/apis/mirror_v1/service.rb +++ b/generated/google/apis/mirror_v1/service.rb @@ -82,8 +82,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_account(user_token, account_type, account_name, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{userToken}/{accountType}/{accountName}' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{userToken}/{accountType}/{accountName}', options) command.request_representation = Google::Apis::MirrorV1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::MirrorV1::Account::Representation @@ -122,8 +121,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'contacts/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'contacts/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -156,8 +154,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'contacts/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'contacts/{id}', options) command.response_representation = Google::Apis::MirrorV1::Contact::Representation command.response_class = Google::Apis::MirrorV1::Contact command.params['id'] = id unless id.nil? @@ -191,8 +188,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_contact(contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'contacts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'contacts', options) command.request_representation = Google::Apis::MirrorV1::Contact::Representation command.request_object = contact_object command.response_representation = Google::Apis::MirrorV1::Contact::Representation @@ -226,8 +222,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_contacts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'contacts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'contacts', options) command.response_representation = Google::Apis::MirrorV1::ListContactsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListContactsResponse command.query['fields'] = fields unless fields.nil? @@ -262,8 +257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'contacts/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'contacts/{id}', options) command.request_representation = Google::Apis::MirrorV1::Contact::Representation command.request_object = contact_object command.response_representation = Google::Apis::MirrorV1::Contact::Representation @@ -301,8 +295,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'contacts/{id}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'contacts/{id}', options) command.request_representation = Google::Apis::MirrorV1::Contact::Representation command.request_object = contact_object command.response_representation = Google::Apis::MirrorV1::Contact::Representation @@ -339,8 +332,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_location(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'locations/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'locations/{id}', options) command.response_representation = Google::Apis::MirrorV1::Location::Representation command.response_class = Google::Apis::MirrorV1::Location command.params['id'] = id unless id.nil? @@ -373,8 +365,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_locations(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'locations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'locations', options) command.response_representation = Google::Apis::MirrorV1::ListLocationsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListLocationsResponse command.query['fields'] = fields unless fields.nil? @@ -412,8 +403,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_setting(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'settings/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'settings/{id}', options) command.response_representation = Google::Apis::MirrorV1::Setting::Representation command.response_class = Google::Apis::MirrorV1::Setting command.params['id'] = id unless id.nil? @@ -448,8 +438,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'subscriptions/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -481,8 +470,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_subscription(subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'subscriptions', options) command.request_representation = Google::Apis::MirrorV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::MirrorV1::Subscription::Representation @@ -516,8 +504,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subscriptions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'subscriptions', options) command.response_representation = Google::Apis::MirrorV1::ListSubscriptionsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListSubscriptionsResponse command.query['fields'] = fields unless fields.nil? @@ -552,8 +539,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_subscription(id, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions/{id}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'subscriptions/{id}', options) command.request_representation = Google::Apis::MirrorV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::MirrorV1::Subscription::Representation @@ -590,8 +576,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'timeline/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'timeline/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -624,8 +609,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'timeline/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'timeline/{id}', options) command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.response_class = Google::Apis::MirrorV1::TimelineItem command.params['id'] = id unless id.nil? @@ -663,11 +647,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_timeline(timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'timeline' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'timeline', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'timeline', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -718,8 +701,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_timelines(bundle_id: nil, include_deleted: nil, max_results: nil, order_by: nil, page_token: nil, pinned_only: nil, source_item_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'timeline' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'timeline', options) command.response_representation = Google::Apis::MirrorV1::ListTimelineResponse::Representation command.response_class = Google::Apis::MirrorV1::ListTimelineResponse command.query['bundleId'] = bundle_id unless bundle_id.nil? @@ -761,8 +743,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'timeline/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'timeline/{id}', options) command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation command.request_object = timeline_item_object command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation @@ -804,11 +785,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'timeline/{id}' if upload_source.nil? - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'timeline/{id}', options) else - command = make_upload_command(:put, path, options) + command = make_upload_command(:put, 'timeline/{id}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -850,8 +830,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'timeline/{itemId}/attachments/{attachmentId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'timeline/{itemId}/attachments/{attachmentId}', options) command.params['itemId'] = item_id unless item_id.nil? command.params['attachmentId'] = attachment_id unless attachment_id.nil? command.query['fields'] = fields unless fields.nil? @@ -889,11 +868,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'timeline/{itemId}/attachments/{attachmentId}' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', options) command.download_dest = download_dest end command.response_representation = Google::Apis::MirrorV1::Attachment::Representation @@ -935,11 +913,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_timeline_attachment(item_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'timeline/{itemId}/attachments' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'timeline/{itemId}/attachments', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'timeline/{itemId}/attachments', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -977,8 +954,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_timeline_attachments(item_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'timeline/{itemId}/attachments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'timeline/{itemId}/attachments', options) command.response_representation = Google::Apis::MirrorV1::ListAttachmentsResponse::Representation command.response_class = Google::Apis::MirrorV1::ListAttachmentsResponse command.params['itemId'] = item_id unless item_id.nil? diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb index a630fa86f..45eea3f7b 100644 --- a/generated/google/apis/oauth2_v2.rb +++ b/generated/google/apis/oauth2_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/accounts/docs/OAuth2 module Oauth2V2 VERSION = 'V2' - REVISION = '20150714' + REVISION = '20151107' # Know your basic profile info and list of people in your circles. AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/oauth2_v2/service.rb b/generated/google/apis/oauth2_v2/service.rb index fa2141c3f..6645fb507 100644 --- a/generated/google/apis/oauth2_v2/service.rb +++ b/generated/google/apis/oauth2_v2/service.rb @@ -75,8 +75,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_cert_for_open_id_connect(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'oauth2/v2/certs' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'oauth2/v2/certs', options) command.response_representation = Google::Apis::Oauth2V2::Jwk::Representation command.response_class = Google::Apis::Oauth2V2::Jwk command.query['fields'] = fields unless fields.nil? @@ -111,8 +110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def tokeninfo(access_token: nil, id_token: nil, token_handle: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'oauth2/v2/tokeninfo' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'oauth2/v2/tokeninfo', options) command.response_representation = Google::Apis::Oauth2V2::Tokeninfo::Representation command.response_class = Google::Apis::Oauth2V2::Tokeninfo command.query['access_token'] = access_token unless access_token.nil? @@ -147,8 +145,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_userinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'oauth2/v2/userinfo' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'oauth2/v2/userinfo', options) command.response_representation = Google::Apis::Oauth2V2::Userinfoplus::Representation command.response_class = Google::Apis::Oauth2V2::Userinfoplus command.query['fields'] = fields unless fields.nil? @@ -180,8 +177,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_userinfo_v2(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'userinfo/v2/me' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'userinfo/v2/me', options) command.response_representation = Google::Apis::Oauth2V2::Userinfoplus::Representation command.response_class = Google::Apis::Oauth2V2::Userinfoplus command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/pagespeedonline_v2/service.rb b/generated/google/apis/pagespeedonline_v2/service.rb index ccf69c05f..399ebeb7e 100644 --- a/generated/google/apis/pagespeedonline_v2/service.rb +++ b/generated/google/apis/pagespeedonline_v2/service.rb @@ -91,8 +91,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def run_pagespeed(url, filter_third_party_resources: nil, locale: nil, rule: nil, screenshot: nil, strategy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'runPagespeed' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'runPagespeed', options) command.response_representation = Google::Apis::PagespeedonlineV2::Result::Representation command.response_class = Google::Apis::PagespeedonlineV2::Result command.query['filter_third_party_resources'] = filter_third_party_resources unless filter_third_party_resources.nil? diff --git a/generated/google/apis/partners_v2.rb b/generated/google/apis/partners_v2.rb new file mode 100644 index 000000000..fc6911a67 --- /dev/null +++ b/generated/google/apis/partners_v2.rb @@ -0,0 +1,32 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/partners_v2/service.rb' +require 'google/apis/partners_v2/classes.rb' +require 'google/apis/partners_v2/representations.rb' + +module Google + module Apis + # Google Partners API + # + # Lets advertisers search certified companies and create contact leads with them, + # and also audits the usage of clients. + # + # @see https://developers.google.com/partners/ + module PartnersV2 + VERSION = 'V2' + REVISION = '20151009' + end + end +end diff --git a/generated/google/apis/partners_v2/classes.rb b/generated/google/apis/partners_v2/classes.rb new file mode 100644 index 000000000..9556dda5a --- /dev/null +++ b/generated/google/apis/partners_v2/classes.rb @@ -0,0 +1,942 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module PartnersV2 + + # Request message for LogUserEvent. + class LogUserEventRequest + include Google::Apis::Core::Hashable + + # Common data that is in each API request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::PartnersV2::RequestMetadata] + attr_accessor :request_metadata + + # The action that occurred. + # Corresponds to the JSON property `eventAction` + # @return [String] + attr_accessor :event_action + + # The category the action belongs to. + # Corresponds to the JSON property `eventCategory` + # @return [String] + attr_accessor :event_category + + # The scope of the event. + # Corresponds to the JSON property `eventScope` + # @return [String] + attr_accessor :event_scope + + # List of event data for the event. + # Corresponds to the JSON property `eventDatas` + # @return [Array] + attr_accessor :event_datas + + # The URL where the event occurred. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # A lead resource that represents an advertiser contact for a `Company`. These + # are usually generated via Google Partner Search (the advertiser portal). + # Corresponds to the JSON property `lead` + # @return [Google::Apis::PartnersV2::Lead] + attr_accessor :lead + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_metadata = args[:request_metadata] unless args[:request_metadata].nil? + @event_action = args[:event_action] unless args[:event_action].nil? + @event_category = args[:event_category] unless args[:event_category].nil? + @event_scope = args[:event_scope] unless args[:event_scope].nil? + @event_datas = args[:event_datas] unless args[:event_datas].nil? + @url = args[:url] unless args[:url].nil? + @lead = args[:lead] unless args[:lead].nil? + end + end + + # Common data that is in each API request. + class RequestMetadata + include Google::Apis::Core::Hashable + + # Values to use instead of the user's respective defaults. These are only + # honored by whitelisted products. + # Corresponds to the JSON property `userOverrides` + # @return [Google::Apis::PartnersV2::UserOverrides] + attr_accessor :user_overrides + + # Locale to use for the current request. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # Google Partners session ID. + # Corresponds to the JSON property `partnersSessionId` + # @return [String] + attr_accessor :partners_session_id + + # Experiment IDs the current request belongs to. + # Corresponds to the JSON property `experimentIds` + # @return [Array] + attr_accessor :experiment_ids + + # Source of traffic for the current request. + # Corresponds to the JSON property `trafficSource` + # @return [Google::Apis::PartnersV2::TrafficSource] + attr_accessor :traffic_source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_overrides = args[:user_overrides] unless args[:user_overrides].nil? + @locale = args[:locale] unless args[:locale].nil? + @partners_session_id = args[:partners_session_id] unless args[:partners_session_id].nil? + @experiment_ids = args[:experiment_ids] unless args[:experiment_ids].nil? + @traffic_source = args[:traffic_source] unless args[:traffic_source].nil? + end + end + + # Values to use instead of the user's respective defaults. These are only + # honored by whitelisted products. + class UserOverrides + include Google::Apis::Core::Hashable + + # IP address to use instead of the user's geo-located IP address. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # Logged-in user ID to impersonate instead of the user's ID. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_address = args[:ip_address] unless args[:ip_address].nil? + @user_id = args[:user_id] unless args[:user_id].nil? + end + end + + # Source of traffic for the current request. + class TrafficSource + include Google::Apis::Core::Hashable + + # Identifier to indicate where the traffic comes from. An identifier has + # multiple letters created by a team which redirected the traffic to us. + # Corresponds to the JSON property `trafficSourceId` + # @return [String] + attr_accessor :traffic_source_id + + # Second level identifier to indicate where the traffic comes from. An + # identifier has multiple letters created by a team which redirected the traffic + # to us. + # Corresponds to the JSON property `trafficSubId` + # @return [String] + attr_accessor :traffic_sub_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @traffic_source_id = args[:traffic_source_id] unless args[:traffic_source_id].nil? + @traffic_sub_id = args[:traffic_sub_id] unless args[:traffic_sub_id].nil? + end + end + + # Key value data pair for an event. + class EventData + include Google::Apis::Core::Hashable + + # Data type. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Data values. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] unless args[:key].nil? + @values = args[:values] unless args[:values].nil? + end + end + + # A lead resource that represents an advertiser contact for a `Company`. These + # are usually generated via Google Partner Search (the advertiser portal). + class Lead + include Google::Apis::Core::Hashable + + # ID of the lead. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Type of lead. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Email address of lead source. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # First name of lead source. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # Last name of lead source. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # Website URL of lead source. + # Corresponds to the JSON property `websiteUrl` + # @return [String] + attr_accessor :website_url + + # Phone number of lead source. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # Comments lead source gave. + # Corresponds to the JSON property `comments` + # @return [String] + attr_accessor :comments + + # List of reasons for using Google Partner Search and creating a lead. + # Corresponds to the JSON property `gpsMotivations` + # @return [Array] + attr_accessor :gps_motivations + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `minMonthlyBudget` + # @return [Google::Apis::PartnersV2::Money] + attr_accessor :min_monthly_budget + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @type = args[:type] unless args[:type].nil? + @email = args[:email] unless args[:email].nil? + @given_name = args[:given_name] unless args[:given_name].nil? + @family_name = args[:family_name] unless args[:family_name].nil? + @website_url = args[:website_url] unless args[:website_url].nil? + @phone_number = args[:phone_number] unless args[:phone_number].nil? + @comments = args[:comments] unless args[:comments].nil? + @gps_motivations = args[:gps_motivations] unless args[:gps_motivations].nil? + @min_monthly_budget = args[:min_monthly_budget] unless args[:min_monthly_budget].nil? + end + end + + # Represents an amount of money with its currency type. + class Money + include Google::Apis::Core::Hashable + + # The 3-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [String] + attr_accessor :units + + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] unless args[:currency_code].nil? + @units = args[:units] unless args[:units].nil? + @nanos = args[:nanos] unless args[:nanos].nil? + end + end + + # Response message for LogUserEvent. + class LogUserEventResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + end + end + + # Common data that is in each API response. + class ResponseMetadata + include Google::Apis::Core::Hashable + + # Debug information about this request. + # Corresponds to the JSON property `debugInfo` + # @return [Google::Apis::PartnersV2::DebugInfo] + attr_accessor :debug_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @debug_info = args[:debug_info] unless args[:debug_info].nil? + end + end + + # Debug information about this request. + class DebugInfo + include Google::Apis::Core::Hashable + + # Info about the server that serviced this request. + # Corresponds to the JSON property `serverInfo` + # @return [String] + attr_accessor :server_info + + # URL of the service that handled this request. + # Corresponds to the JSON property `serviceUrl` + # @return [String] + attr_accessor :service_url + + # Server-side debug stack trace. + # Corresponds to the JSON property `serverTraceInfo` + # @return [String] + attr_accessor :server_trace_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @server_info = args[:server_info] unless args[:server_info].nil? + @service_url = args[:service_url] unless args[:service_url].nil? + @server_trace_info = args[:server_trace_info] unless args[:server_trace_info].nil? + end + end + + # Request message for LogClientMessage. + class LogMessageRequest + include Google::Apis::Core::Hashable + + # Common data that is in each API request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::PartnersV2::RequestMetadata] + attr_accessor :request_metadata + + # Message level of client message. + # Corresponds to the JSON property `level` + # @return [String] + attr_accessor :level + + # Details about the client message. + # Corresponds to the JSON property `details` + # @return [String] + attr_accessor :details + + # Map of client info, such as URL, browser navigator, browser platform, etc. + # Corresponds to the JSON property `clientInfo` + # @return [Hash] + attr_accessor :client_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_metadata = args[:request_metadata] unless args[:request_metadata].nil? + @level = args[:level] unless args[:level].nil? + @details = args[:details] unless args[:details].nil? + @client_info = args[:client_info] unless args[:client_info].nil? + end + end + + # Response message for LogClientMessage. + class LogMessageResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + end + end + + # Response message for ListUserStates. + class ListUserStatesResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # User's states. + # Corresponds to the JSON property `userStates` + # @return [Array] + attr_accessor :user_states + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + @user_states = args[:user_states] unless args[:user_states].nil? + end + end + + # Response message for GetCompany. + class GetCompanyResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # A company resource in the Google Partners API. Once certified, it qualifies + # for being searched by advertisers. + # Corresponds to the JSON property `company` + # @return [Google::Apis::PartnersV2::Company] + attr_accessor :company + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + @company = args[:company] unless args[:company].nil? + end + end + + # A company resource in the Google Partners API. Once certified, it qualifies + # for being searched by advertisers. + class Company + include Google::Apis::Core::Hashable + + # The ID of the company. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The name of the company. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The list of localized info for the company. + # Corresponds to the JSON property `localizedInfos` + # @return [Array] + attr_accessor :localized_infos + + # The list of company locations. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `convertedMinMonthlyBudget` + # @return [Google::Apis::PartnersV2::Money] + attr_accessor :converted_min_monthly_budget + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `originalMinMonthlyBudget` + # @return [Google::Apis::PartnersV2::Money] + attr_accessor :original_min_monthly_budget + + # Basic information from a public profile. + # Corresponds to the JSON property `publicProfile` + # @return [Google::Apis::PartnersV2::PublicProfile] + attr_accessor :public_profile + + # The list of Google Partners certification statuses for the company. + # Corresponds to the JSON property `certificationStatuses` + # @return [Array] + attr_accessor :certification_statuses + + # Information related to the ranking of the company within the list of companies. + # Corresponds to the JSON property `ranks` + # @return [Array] + attr_accessor :ranks + + # URL of the company's website. + # Corresponds to the JSON property `websiteUrl` + # @return [String] + attr_accessor :website_url + + # Industries the company can help with. + # Corresponds to the JSON property `industries` + # @return [Array] + attr_accessor :industries + + # Services the company can help with. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + @localized_infos = args[:localized_infos] unless args[:localized_infos].nil? + @locations = args[:locations] unless args[:locations].nil? + @converted_min_monthly_budget = args[:converted_min_monthly_budget] unless args[:converted_min_monthly_budget].nil? + @original_min_monthly_budget = args[:original_min_monthly_budget] unless args[:original_min_monthly_budget].nil? + @public_profile = args[:public_profile] unless args[:public_profile].nil? + @certification_statuses = args[:certification_statuses] unless args[:certification_statuses].nil? + @ranks = args[:ranks] unless args[:ranks].nil? + @website_url = args[:website_url] unless args[:website_url].nil? + @industries = args[:industries] unless args[:industries].nil? + @services = args[:services] unless args[:services].nil? + end + end + + # The localized company information. + class LocalizedCompanyInfo + include Google::Apis::Core::Hashable + + # Language code of the localized company info, as defined by BCP 47 (IETF BCP 47, + # "Tags for Identifying Languages"). + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Localized display name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Localized brief description that the company uses to advertise themselves. + # Corresponds to the JSON property `overview` + # @return [String] + attr_accessor :overview + + # List of country codes for the localized company info. + # Corresponds to the JSON property `countryCodes` + # @return [Array] + attr_accessor :country_codes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] unless args[:language_code].nil? + @display_name = args[:display_name] unless args[:display_name].nil? + @overview = args[:overview] unless args[:overview].nil? + @country_codes = args[:country_codes] unless args[:country_codes].nil? + end + end + + # A location with address and geographic coordinates. + class Location + include Google::Apis::Core::Hashable + + # The complete address of the location. + # Corresponds to the JSON property `address` + # @return [String] + attr_accessor :address + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the WGS84 standard. Values must be + # within normalized ranges. Example of normalization code in Python: def + # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0, + # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <= + # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """ + # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90. + # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360, + # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude( + # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 == + # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert ( + # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(- + # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, - + # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng( + # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0, + # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) == + # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10. + # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::PartnersV2::LatLng] + attr_accessor :lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] unless args[:address].nil? + @lat_lng = args[:lat_lng] unless args[:lat_lng].nil? + end + end + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the WGS84 standard. Values must be + # within normalized ranges. Example of normalization code in Python: def + # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0, + # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <= + # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """ + # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90. + # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360, + # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude( + # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 == + # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert ( + # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(- + # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, - + # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng( + # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0, + # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) == + # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10. + # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + class LatLng + include Google::Apis::Core::Hashable + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latitude = args[:latitude] unless args[:latitude].nil? + @longitude = args[:longitude] unless args[:longitude].nil? + end + end + + # Basic information from a public profile. + class PublicProfile + include Google::Apis::Core::Hashable + + # The ID which can be used to retrieve more details about the public profile. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The display name of the public profile. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The URL of the public profile. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # The URL to the main display image of the public profile. + # Corresponds to the JSON property `displayImageUrl` + # @return [String] + attr_accessor :display_image_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @display_name = args[:display_name] unless args[:display_name].nil? + @url = args[:url] unless args[:url].nil? + @display_image_url = args[:display_image_url] unless args[:display_image_url].nil? + end + end + + # Google Partners certification status. + class CertificationStatus + include Google::Apis::Core::Hashable + + # The type of the certification. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # List of certification exam statuses. + # Corresponds to the JSON property `examStatuses` + # @return [Array] + attr_accessor :exam_statuses + + # Whether certification is passing. + # Corresponds to the JSON property `isCertified` + # @return [Boolean] + attr_accessor :is_certified + alias_method :is_certified?, :is_certified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] unless args[:type].nil? + @exam_statuses = args[:exam_statuses] unless args[:exam_statuses].nil? + @is_certified = args[:is_certified] unless args[:is_certified].nil? + end + end + + # Status for a Google Partners certification exam. + class CertificationExamStatus + include Google::Apis::Core::Hashable + + # The type of certification exam. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The number of people who have passed the certification exam. + # Corresponds to the JSON property `numberUsersPass` + # @return [Fixnum] + attr_accessor :number_users_pass + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] unless args[:type].nil? + @number_users_pass = args[:number_users_pass] unless args[:number_users_pass].nil? + end + end + + # Information related to ranking of results. + class Rank + include Google::Apis::Core::Hashable + + # The type of rank. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The numerical value of the rank. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] unless args[:type].nil? + @value = args[:value] unless args[:value].nil? + end + end + + # Response message for ListCompanies. + class ListCompaniesResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # The list of companies. + # Corresponds to the JSON property `companies` + # @return [Array] + attr_accessor :companies + + # A token to retrieve next page of results. Pass this value in the ` + # ListCompaniesRequest.page_token` field in the subsequent call to ListCompanies + # to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + @companies = args[:companies] unless args[:companies].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Request message for CreateLead. + class CreateLeadRequest + include Google::Apis::Core::Hashable + + # Common data that is in each API request. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::PartnersV2::RequestMetadata] + attr_accessor :request_metadata + + # A lead resource that represents an advertiser contact for a `Company`. These + # are usually generated via Google Partner Search (the advertiser portal). + # Corresponds to the JSON property `lead` + # @return [Google::Apis::PartnersV2::Lead] + attr_accessor :lead + + # reCaptcha challenge info. + # Corresponds to the JSON property `recaptchaChallenge` + # @return [Google::Apis::PartnersV2::RecaptchaChallenge] + attr_accessor :recaptcha_challenge + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_metadata = args[:request_metadata] unless args[:request_metadata].nil? + @lead = args[:lead] unless args[:lead].nil? + @recaptcha_challenge = args[:recaptcha_challenge] unless args[:recaptcha_challenge].nil? + end + end + + # reCaptcha challenge info. + class RecaptchaChallenge + include Google::Apis::Core::Hashable + + # The ID of the reCaptcha challenge. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The response to the reCaptcha challenge. + # Corresponds to the JSON property `response` + # @return [String] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @response = args[:response] unless args[:response].nil? + end + end + + # Response message for CreateLead. Debug information about this request. + class CreateLeadResponse + include Google::Apis::Core::Hashable + + # Common data that is in each API response. + # Corresponds to the JSON property `responseMetadata` + # @return [Google::Apis::PartnersV2::ResponseMetadata] + attr_accessor :response_metadata + + # A lead resource that represents an advertiser contact for a `Company`. These + # are usually generated via Google Partner Search (the advertiser portal). + # Corresponds to the JSON property `lead` + # @return [Google::Apis::PartnersV2::Lead] + attr_accessor :lead + + # The outcome of reCaptcha validation. + # Corresponds to the JSON property `recaptchaStatus` + # @return [String] + attr_accessor :recaptcha_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + @lead = args[:lead] unless args[:lead].nil? + @recaptcha_status = args[:recaptcha_status] unless args[:recaptcha_status].nil? + end + end + end + end +end diff --git a/generated/google/apis/partners_v2/representations.rb b/generated/google/apis/partners_v2/representations.rb new file mode 100644 index 000000000..4e7454095 --- /dev/null +++ b/generated/google/apis/partners_v2/representations.rb @@ -0,0 +1,402 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module PartnersV2 + + class LogUserEventRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RequestMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UserOverrides + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TrafficSource + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class EventData + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Lead + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Money + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogUserEventResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ResponseMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DebugInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogMessageRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogMessageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListUserStatesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetCompanyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Company + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LocalizedCompanyInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Location + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LatLng + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PublicProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CertificationStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CertificationExamStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Rank + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListCompaniesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CreateLeadRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class RecaptchaChallenge + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CreateLeadResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogUserEventRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation + + property :event_action, as: 'eventAction' + property :event_category, as: 'eventCategory' + property :event_scope, as: 'eventScope' + collection :event_datas, as: 'eventDatas', class: Google::Apis::PartnersV2::EventData, decorator: Google::Apis::PartnersV2::EventData::Representation + + property :url, as: 'url' + property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation + + end + end + + class RequestMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :user_overrides, as: 'userOverrides', class: Google::Apis::PartnersV2::UserOverrides, decorator: Google::Apis::PartnersV2::UserOverrides::Representation + + property :locale, as: 'locale' + property :partners_session_id, as: 'partnersSessionId' + collection :experiment_ids, as: 'experimentIds' + property :traffic_source, as: 'trafficSource', class: Google::Apis::PartnersV2::TrafficSource, decorator: Google::Apis::PartnersV2::TrafficSource::Representation + + end + end + + class UserOverrides + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_address, as: 'ipAddress' + property :user_id, as: 'userId' + end + end + + class TrafficSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :traffic_source_id, as: 'trafficSourceId' + property :traffic_sub_id, as: 'trafficSubId' + end + end + + class EventData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + collection :values, as: 'values' + end + end + + class Lead + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :type, as: 'type' + property :email, as: 'email' + property :given_name, as: 'givenName' + property :family_name, as: 'familyName' + property :website_url, as: 'websiteUrl' + property :phone_number, as: 'phoneNumber' + property :comments, as: 'comments' + collection :gps_motivations, as: 'gpsMotivations' + property :min_monthly_budget, as: 'minMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation + + end + end + + class Money + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' + property :units, as: 'units' + property :nanos, as: 'nanos' + end + end + + class LogUserEventResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + + end + end + + class ResponseMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :debug_info, as: 'debugInfo', class: Google::Apis::PartnersV2::DebugInfo, decorator: Google::Apis::PartnersV2::DebugInfo::Representation + + end + end + + class DebugInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :server_info, as: 'serverInfo' + property :service_url, as: 'serviceUrl' + property :server_trace_info, as: 'serverTraceInfo' + end + end + + class LogMessageRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation + + property :level, as: 'level' + property :details, as: 'details' + hash :client_info, as: 'clientInfo' + end + end + + class LogMessageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + + end + end + + class ListUserStatesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + + collection :user_states, as: 'userStates' + end + end + + class GetCompanyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + + property :company, as: 'company', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation + + end + end + + class Company + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + collection :localized_infos, as: 'localizedInfos', class: Google::Apis::PartnersV2::LocalizedCompanyInfo, decorator: Google::Apis::PartnersV2::LocalizedCompanyInfo::Representation + + collection :locations, as: 'locations', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation + + property :converted_min_monthly_budget, as: 'convertedMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation + + property :original_min_monthly_budget, as: 'originalMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation + + property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation + + collection :certification_statuses, as: 'certificationStatuses', class: Google::Apis::PartnersV2::CertificationStatus, decorator: Google::Apis::PartnersV2::CertificationStatus::Representation + + collection :ranks, as: 'ranks', class: Google::Apis::PartnersV2::Rank, decorator: Google::Apis::PartnersV2::Rank::Representation + + property :website_url, as: 'websiteUrl' + collection :industries, as: 'industries' + collection :services, as: 'services' + end + end + + class LocalizedCompanyInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :display_name, as: 'displayName' + property :overview, as: 'overview' + collection :country_codes, as: 'countryCodes' + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address' + property :lat_lng, as: 'latLng', class: Google::Apis::PartnersV2::LatLng, decorator: Google::Apis::PartnersV2::LatLng::Representation + + end + end + + class LatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end + end + + class PublicProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :display_name, as: 'displayName' + property :url, as: 'url' + property :display_image_url, as: 'displayImageUrl' + end + end + + class CertificationStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + collection :exam_statuses, as: 'examStatuses', class: Google::Apis::PartnersV2::CertificationExamStatus, decorator: Google::Apis::PartnersV2::CertificationExamStatus::Representation + + property :is_certified, as: 'isCertified' + end + end + + class CertificationExamStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :number_users_pass, as: 'numberUsersPass' + end + end + + class Rank + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :value, as: 'value' + end + end + + class ListCompaniesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + + collection :companies, as: 'companies', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class CreateLeadRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation + + property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation + + property :recaptcha_challenge, as: 'recaptchaChallenge', class: Google::Apis::PartnersV2::RecaptchaChallenge, decorator: Google::Apis::PartnersV2::RecaptchaChallenge::Representation + + end + end + + class RecaptchaChallenge + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :response, as: 'response' + end + end + + class CreateLeadResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation + + property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation + + property :recaptcha_status, as: 'recaptchaStatus' + end + end + end + end +end diff --git a/generated/google/apis/partners_v2/service.rb b/generated/google/apis/partners_v2/service.rb new file mode 100644 index 000000000..766d513ea --- /dev/null +++ b/generated/google/apis/partners_v2/service.rb @@ -0,0 +1,400 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module PartnersV2 + # Google Partners API + # + # Lets advertisers search certified companies and create contact leads with them, + # and also audits the usage of clients. + # + # @example + # require 'google/apis/partners_v2' + # + # Partners = Google::Apis::PartnersV2 # Alias the module + # service = Partners::PartnersService.new + # + # @see https://developers.google.com/partners/ + class PartnersService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://partners.googleapis.com/', '') + end + + # Logs a user event. + # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::LogUserEventResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/userEvents:log', options) + command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation + command.request_object = log_user_event_request_object + command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation + command.response_class = Google::Apis::PartnersV2::LogUserEventResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Logs a generic message from the client, such as `Failed to render component`, ` + # Profile page is running slow`, `More than 500 users have accessed this result.` + # , etc. + # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::LogMessageResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/clientMessages:log', options) + command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation + command.request_object = log_message_request_object + command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation + command.response_class = Google::Apis::PartnersV2::LogMessageResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists states for current user. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. An identifier has + # multiple letters created by a team which redirected the traffic to us. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. An + # identifier has multiple letters created by a team which redirected the traffic + # to us. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ListUserStatesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_user_states(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/userStates', options) + command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation + command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a company. + # @param [String] company_id + # The ID of the company to retrieve. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. An identifier has + # multiple letters created by a team which redirected the traffic to us. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. An + # identifier has multiple letters created by a team which redirected the traffic + # to us. + # @param [String] view + # The view of `Company` resource to be returned. This must not be ` + # COMPANY_VIEW_UNSPECIFIED`. + # @param [String] order_by + # How to order addresses within the returned company. Currently, only `address` + # and `address desc` is supported which will sorted by closest to farthest in + # distance from given address and farthest to closest distance from given + # address respectively. + # @param [String] currency_code + # If the company's budget is in a different currency code than this one, then + # the converted budget is converted to this currency code. + # @param [String] address + # The address to use for sorting the company's addresses by proximity. If not + # given, the geo-located address of the request is used. Used when order_by is + # set. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::GetCompanyResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_company(company_id, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, view: nil, order_by: nil, currency_code: nil, address: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/companies/{companyId}', options) + command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation + command.response_class = Google::Apis::PartnersV2::GetCompanyResponse + command.params['companyId'] = company_id unless company_id.nil? + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['view'] = view unless view.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['currencyCode'] = currency_code unless currency_code.nil? + command.query['address'] = address unless address.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists companies. + # @param [String] request_metadata_user_overrides_ip_address + # IP address to use instead of the user's geo-located IP address. + # @param [String] request_metadata_user_overrides_user_id + # Logged-in user ID to impersonate instead of the user's ID. + # @param [String] request_metadata_locale + # Locale to use for the current request. + # @param [String] request_metadata_partners_session_id + # Google Partners session ID. + # @param [Array, String] request_metadata_experiment_ids + # Experiment IDs the current request belongs to. + # @param [String] request_metadata_traffic_source_traffic_source_id + # Identifier to indicate where the traffic comes from. An identifier has + # multiple letters created by a team which redirected the traffic to us. + # @param [String] request_metadata_traffic_source_traffic_sub_id + # Second level identifier to indicate where the traffic comes from. An + # identifier has multiple letters created by a team which redirected the traffic + # to us. + # @param [Fixnum] page_size + # Requested page size. Server may return fewer companies than requested. If + # unspecified, server picks an appropriate default. + # @param [String] page_token + # A token identifying a page of results that the server returns. Typically, this + # is the value of `ListCompaniesResponse.next_page_token` returned from the + # previous call to ListCompanies. + # @param [String] company_name + # Company name to search for. + # @param [String] view + # The view of the `Company` resource to be returned. This must not be ` + # COMPANY_VIEW_UNSPECIFIED`. + # @param [String] min_monthly_budget_currency_code + # The 3-letter currency code defined in ISO 4217. + # @param [String] min_monthly_budget_units + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # @param [Fixnum] min_monthly_budget_nanos + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # @param [String] max_monthly_budget_currency_code + # The 3-letter currency code defined in ISO 4217. + # @param [String] max_monthly_budget_units + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # @param [Fixnum] max_monthly_budget_nanos + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # @param [Array, String] industries + # List of industries the company can help with. + # @param [Array, String] services + # List of services the company can help with. + # @param [Array, String] language_codes + # List of language codes that company can support. Only primary language subtags + # are accepted as defined by BCP 47 (IETF BCP 47, "Tags for Identifying + # Languages"). + # @param [String] address + # The address to use when searching for companies. If not given, the geo-located + # address of the request is used. + # @param [String] order_by + # How to order addresses within the returned companies. Currently, only `address` + # and `address desc` is supported which will sorted by closest to farthest in + # distance from given address and farthest to closest distance from given + # address respectively. + # @param [Array, String] gps_motivations + # List of reasons for using Google Partner Search to get companies. + # @param [String] website_url + # Website URL that will help to find a better matched company. . + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PartnersV2::ListCompaniesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::ListCompaniesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_companies(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, page_size: nil, page_token: nil, company_name: nil, view: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_units: nil, min_monthly_budget_nanos: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_units: nil, max_monthly_budget_nanos: nil, industries: nil, services: nil, language_codes: nil, address: nil, order_by: nil, gps_motivations: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/companies', options) + command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation + command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse + command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? + command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? + command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? + command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? + command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? + command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? + command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['companyName'] = company_name unless company_name.nil? + command.query['view'] = view unless view.nil? + command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil? + command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil? + command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil? + command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil? + command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil? + command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil? + command.query['industries'] = industries unless industries.nil? + command.query['services'] = services unless services.nil? + command.query['languageCodes'] = language_codes unless language_codes.nil? + command.query['address'] = address unless address.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil? + command.query['websiteUrl'] = website_url unless website_url.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an advertiser lead for the given company ID. + # @param [String] company_id + # The ID of the company to contact. + # @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PartnersV2::CreateLeadResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options) + command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation + command.request_object = create_lead_request_object + command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation + command.response_class = Google::Apis::PartnersV2::CreateLeadResponse + command.params['companyId'] = company_id unless company_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index efd333a13..58a9ca5b1 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '20150729' + REVISION = '20151130' # View your circles and the people and pages in them AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' diff --git a/generated/google/apis/plus_domains_v1/classes.rb b/generated/google/apis/plus_domains_v1/classes.rb index 1f9b6a19a..92fe46940 100644 --- a/generated/google/apis/plus_domains_v1/classes.rb +++ b/generated/google/apis/plus_domains_v1/classes.rb @@ -205,6 +205,11 @@ module Google class Actor include Google::Apis::Core::Hashable + # Actor info specific to particular clients. + # Corresponds to the JSON property `clientSpecificActorInfo` + # @return [Google::Apis::PlusDomainsV1::Activity::Actor::ClientSpecificActorInfo] + attr_accessor :client_specific_actor_info + # The name of the actor, suitable for display. # Corresponds to the JSON property `displayName` # @return [String] @@ -230,17 +235,62 @@ module Google # @return [String] attr_accessor :url + # Verification status of actor. + # Corresponds to the JSON property `verification` + # @return [Google::Apis::PlusDomainsV1::Activity::Actor::Verification] + attr_accessor :verification + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @client_specific_actor_info = args[:client_specific_actor_info] unless args[:client_specific_actor_info].nil? @display_name = args[:display_name] unless args[:display_name].nil? @id = args[:id] unless args[:id].nil? @image = args[:image] unless args[:image].nil? @name = args[:name] unless args[:name].nil? @url = args[:url] unless args[:url].nil? + @verification = args[:verification] unless args[:verification].nil? + end + + # Actor info specific to particular clients. + class ClientSpecificActorInfo + include Google::Apis::Core::Hashable + + # Actor info specific to YouTube clients. + # Corresponds to the JSON property `youtubeActorInfo` + # @return [Google::Apis::PlusDomainsV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo] + attr_accessor :youtube_actor_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + end + + # Actor info specific to YouTube clients. + class YoutubeActorInfo + include Google::Apis::Core::Hashable + + # ID of the YouTube channel owned by the Actor. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] unless args[:channel_id].nil? + end + end end # The image representation of the actor. @@ -288,6 +338,25 @@ module Google @given_name = args[:given_name] unless args[:given_name].nil? end end + + # Verification status of actor. + class Verification + include Google::Apis::Core::Hashable + + # Verification for one-time or manual processes. + # Corresponds to the JSON property `adHocVerified` + # @return [String] + attr_accessor :ad_hoc_verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + end + end end # The object of this activity. @@ -380,6 +449,11 @@ module Google class Actor include Google::Apis::Core::Hashable + # Actor info specific to particular clients. + # Corresponds to the JSON property `clientSpecificActorInfo` + # @return [Google::Apis::PlusDomainsV1::Activity::Object::Actor::ClientSpecificActorInfo] + attr_accessor :client_specific_actor_info + # The original actor's name, which is suitable for display. # Corresponds to the JSON property `displayName` # @return [String] @@ -400,16 +474,61 @@ module Google # @return [String] attr_accessor :url + # Verification status of actor. + # Corresponds to the JSON property `verification` + # @return [Google::Apis::PlusDomainsV1::Activity::Object::Actor::Verification] + attr_accessor :verification + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @client_specific_actor_info = args[:client_specific_actor_info] unless args[:client_specific_actor_info].nil? @display_name = args[:display_name] unless args[:display_name].nil? @id = args[:id] unless args[:id].nil? @image = args[:image] unless args[:image].nil? @url = args[:url] unless args[:url].nil? + @verification = args[:verification] unless args[:verification].nil? + end + + # Actor info specific to particular clients. + class ClientSpecificActorInfo + include Google::Apis::Core::Hashable + + # Actor info specific to YouTube clients. + # Corresponds to the JSON property `youtubeActorInfo` + # @return [Google::Apis::PlusDomainsV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo] + attr_accessor :youtube_actor_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + end + + # Actor info specific to YouTube clients. + class YoutubeActorInfo + include Google::Apis::Core::Hashable + + # ID of the YouTube channel owned by the Actor. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] unless args[:channel_id].nil? + end + end end # The image representation of the original actor. @@ -430,6 +549,25 @@ module Google @url = args[:url] unless args[:url].nil? end end + + # Verification status of actor. + class Verification + include Google::Apis::Core::Hashable + + # Verification for one-time or manual processes. + # Corresponds to the JSON property `adHocVerified` + # @return [String] + attr_accessor :ad_hoc_verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + end + end end # @@ -1232,6 +1370,11 @@ module Google class Actor include Google::Apis::Core::Hashable + # Actor info specific to particular clients. + # Corresponds to the JSON property `clientSpecificActorInfo` + # @return [Google::Apis::PlusDomainsV1::Comment::Actor::ClientSpecificActorInfo] + attr_accessor :client_specific_actor_info + # The name of this actor, suitable for display. # Corresponds to the JSON property `displayName` # @return [String] @@ -1252,16 +1395,61 @@ module Google # @return [String] attr_accessor :url + # Verification status of actor. + # Corresponds to the JSON property `verification` + # @return [Google::Apis::PlusDomainsV1::Comment::Actor::Verification] + attr_accessor :verification + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @client_specific_actor_info = args[:client_specific_actor_info] unless args[:client_specific_actor_info].nil? @display_name = args[:display_name] unless args[:display_name].nil? @id = args[:id] unless args[:id].nil? @image = args[:image] unless args[:image].nil? @url = args[:url] unless args[:url].nil? + @verification = args[:verification] unless args[:verification].nil? + end + + # Actor info specific to particular clients. + class ClientSpecificActorInfo + include Google::Apis::Core::Hashable + + # Actor info specific to YouTube clients. + # Corresponds to the JSON property `youtubeActorInfo` + # @return [Google::Apis::PlusDomainsV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo] + attr_accessor :youtube_actor_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + end + + # Actor info specific to YouTube clients. + class YoutubeActorInfo + include Google::Apis::Core::Hashable + + # ID of the YouTube channel owned by the Actor. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] unless args[:channel_id].nil? + end + end end # The image representation of this actor. @@ -1284,6 +1472,25 @@ module Google @url = args[:url] unless args[:url].nil? end end + + # Verification status of actor. + class Verification + include Google::Apis::Core::Hashable + + # Verification for one-time or manual processes. + # Corresponds to the JSON property `adHocVerified` + # @return [String] + attr_accessor :ad_hoc_verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + end + end end # diff --git a/generated/google/apis/plus_domains_v1/representations.rb b/generated/google/apis/plus_domains_v1/representations.rb index d14dafdb0..6bbc3bcf3 100644 --- a/generated/google/apis/plus_domains_v1/representations.rb +++ b/generated/google/apis/plus_domains_v1/representations.rb @@ -32,6 +32,14 @@ module Google class Actor class Representation < Google::Apis::Core::JsonRepresentation; end + class ClientSpecificActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + class YoutubeActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -39,6 +47,10 @@ module Google class Name class Representation < Google::Apis::Core::JsonRepresentation; end end + + class Verification + class Representation < Google::Apis::Core::JsonRepresentation; end + end end class Object @@ -47,9 +59,21 @@ module Google class Actor class Representation < Google::Apis::Core::JsonRepresentation; end + class ClientSpecificActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + class YoutubeActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end end + + class Verification + class Representation < Google::Apis::Core::JsonRepresentation; end + end end class Attachment @@ -132,9 +156,21 @@ module Google class Actor class Representation < Google::Apis::Core::JsonRepresentation; end + class ClientSpecificActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + class YoutubeActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end end + + class Verification + class Representation < Google::Apis::Core::JsonRepresentation; end + end end class InReplyTo @@ -280,6 +316,8 @@ module Google class Actor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusDomainsV1::Activity::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::ClientSpecificActorInfo::Representation + property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Activity::Actor::Image, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::Image::Representation @@ -287,6 +325,23 @@ module Google property :name, as: 'name', class: Google::Apis::PlusDomainsV1::Activity::Actor::Name, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::Name::Representation property :url, as: 'url' + property :verification, as: 'verification', class: Google::Apis::PlusDomainsV1::Activity::Actor::Verification, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::Verification::Representation + + end + + class ClientSpecificActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusDomainsV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusDomainsV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation + + end + + class YoutubeActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + end + end end class Image @@ -303,6 +358,13 @@ module Google property :given_name, as: 'givenName' end end + + class Verification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_hoc_verified, as: 'adHocVerified' + end + end end class Object @@ -330,11 +392,30 @@ module Google class Actor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusDomainsV1::Activity::Object::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Actor::ClientSpecificActorInfo::Representation + property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Activity::Object::Actor::Image, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Actor::Image::Representation property :url, as: 'url' + property :verification, as: 'verification', class: Google::Apis::PlusDomainsV1::Activity::Object::Actor::Verification, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Actor::Verification::Representation + + end + + class ClientSpecificActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusDomainsV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusDomainsV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation + + end + + class YoutubeActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + end + end end class Image @@ -343,6 +424,13 @@ module Google property :url, as: 'url' end end + + class Verification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_hoc_verified, as: 'adHocVerified' + end + end end class Attachment @@ -567,11 +655,30 @@ module Google class Actor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusDomainsV1::Comment::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusDomainsV1::Comment::Actor::ClientSpecificActorInfo::Representation + property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusDomainsV1::Comment::Actor::Image, decorator: Google::Apis::PlusDomainsV1::Comment::Actor::Image::Representation property :url, as: 'url' + property :verification, as: 'verification', class: Google::Apis::PlusDomainsV1::Comment::Actor::Verification, decorator: Google::Apis::PlusDomainsV1::Comment::Actor::Verification::Representation + + end + + class ClientSpecificActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusDomainsV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusDomainsV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation + + end + + class YoutubeActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + end + end end class Image @@ -580,6 +687,13 @@ module Google property :url, as: 'url' end end + + class Verification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_hoc_verified, as: 'adHocVerified' + end + end end class InReplyTo diff --git a/generated/google/apis/plus_domains_v1/service.rb b/generated/google/apis/plus_domains_v1/service.rb index e2c98b461..77de142f4 100644 --- a/generated/google/apis/plus_domains_v1/service.rb +++ b/generated/google/apis/plus_domains_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_activity(activity_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities/{activityId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities/{activityId}', options) command.response_representation = Google::Apis::PlusDomainsV1::Activity::Representation command.response_class = Google::Apis::PlusDomainsV1::Activity command.params['activityId'] = activity_id unless activity_id.nil? @@ -119,8 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_activity(user_id, activity_object = nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/activities' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'people/{userId}/activities', options) command.request_representation = Google::Apis::PlusDomainsV1::Activity::Representation command.request_object = activity_object command.response_representation = Google::Apis::PlusDomainsV1::Activity::Representation @@ -169,8 +167,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_activities(user_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/activities/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}/activities/{collection}', options) command.response_representation = Google::Apis::PlusDomainsV1::ActivityFeed::Representation command.response_class = Google::Apis::PlusDomainsV1::ActivityFeed command.params['userId'] = user_id unless user_id.nil? @@ -217,8 +214,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_audiences(user_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/audiences' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}/audiences', options) command.response_representation = Google::Apis::PlusDomainsV1::AudiencesFeed::Representation command.response_class = Google::Apis::PlusDomainsV1::AudiencesFeed command.params['userId'] = user_id unless user_id.nil? @@ -260,8 +256,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_people(circle_id, email: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'circles/{circleId}/people' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'circles/{circleId}/people', options) command.response_representation = Google::Apis::PlusDomainsV1::Circle::Representation command.response_class = Google::Apis::PlusDomainsV1::Circle command.params['circleId'] = circle_id unless circle_id.nil? @@ -298,8 +293,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_circle(circle_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'circles/{circleId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'circles/{circleId}', options) command.response_representation = Google::Apis::PlusDomainsV1::Circle::Representation command.response_class = Google::Apis::PlusDomainsV1::Circle command.params['circleId'] = circle_id unless circle_id.nil? @@ -336,8 +330,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_circle(user_id, circle_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/circles' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'people/{userId}/circles', options) command.request_representation = Google::Apis::PlusDomainsV1::Circle::Representation command.request_object = circle_object command.response_representation = Google::Apis::PlusDomainsV1::Circle::Representation @@ -383,8 +376,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_circles(user_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/circles' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}/circles', options) command.response_representation = Google::Apis::PlusDomainsV1::CircleFeed::Representation command.response_class = Google::Apis::PlusDomainsV1::CircleFeed command.params['userId'] = user_id unless user_id.nil? @@ -422,8 +414,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_circle(circle_id, circle_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'circles/{circleId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'circles/{circleId}', options) command.request_representation = Google::Apis::PlusDomainsV1::Circle::Representation command.request_object = circle_object command.response_representation = Google::Apis::PlusDomainsV1::Circle::Representation @@ -460,8 +451,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_circle(circle_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'circles/{circleId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'circles/{circleId}', options) command.params['circleId'] = circle_id unless circle_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -498,8 +488,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_people(circle_id, email: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'circles/{circleId}/people' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'circles/{circleId}/people', options) command.params['circleId'] = circle_id unless circle_id.nil? command.query['email'] = email unless email.nil? command.query['userId'] = user_id unless user_id.nil? @@ -535,8 +524,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_circle(circle_id, circle_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'circles/{circleId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'circles/{circleId}', options) command.request_representation = Google::Apis::PlusDomainsV1::Circle::Representation command.request_object = circle_object command.response_representation = Google::Apis::PlusDomainsV1::Circle::Representation @@ -573,8 +561,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_comment(comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments/{commentId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'comments/{commentId}', options) command.response_representation = Google::Apis::PlusDomainsV1::Comment::Representation command.response_class = Google::Apis::PlusDomainsV1::Comment command.params['commentId'] = comment_id unless comment_id.nil? @@ -610,8 +597,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_comment(activity_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities/{activityId}/comments' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'activities/{activityId}/comments', options) command.request_representation = Google::Apis::PlusDomainsV1::Comment::Representation command.request_object = comment_object command.response_representation = Google::Apis::PlusDomainsV1::Comment::Representation @@ -658,8 +644,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_comments(activity_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities/{activityId}/comments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities/{activityId}/comments', options) command.response_representation = Google::Apis::PlusDomainsV1::CommentFeed::Representation command.response_class = Google::Apis::PlusDomainsV1::CommentFeed command.params['activityId'] = activity_id unless activity_id.nil? @@ -706,11 +691,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_medium(user_id, collection, media_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'people/{userId}/media/{collection}' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'people/{userId}/media/{collection}', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'people/{userId}/media/{collection}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -752,8 +736,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_person(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}', options) command.response_representation = Google::Apis::PlusDomainsV1::Person::Representation command.response_class = Google::Apis::PlusDomainsV1::Person command.params['userId'] = user_id unless user_id.nil? @@ -801,8 +784,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_people(user_id, collection, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/people/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}/people/{collection}', options) command.response_representation = Google::Apis::PlusDomainsV1::PeopleFeed::Representation command.response_class = Google::Apis::PlusDomainsV1::PeopleFeed command.params['userId'] = user_id unless user_id.nil? @@ -851,8 +833,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities/{activityId}/people/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options) command.response_representation = Google::Apis::PlusDomainsV1::PeopleFeed::Representation command.response_class = Google::Apis::PlusDomainsV1::PeopleFeed command.params['activityId'] = activity_id unless activity_id.nil? @@ -898,8 +879,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_people_by_circle(circle_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'circles/{circleId}/people' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'circles/{circleId}/people', options) command.response_representation = Google::Apis::PlusDomainsV1::PeopleFeed::Representation command.response_class = Google::Apis::PlusDomainsV1::PeopleFeed command.params['circleId'] = circle_id unless circle_id.nil? diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index 0e4a674e3..9b13df1f0 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '20150729' + REVISION = '20151130' # Know your basic profile info and list of people in your circles. AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/plus_v1/classes.rb b/generated/google/apis/plus_v1/classes.rb index 7f93bdb5f..5a356fd99 100644 --- a/generated/google/apis/plus_v1/classes.rb +++ b/generated/google/apis/plus_v1/classes.rb @@ -198,6 +198,11 @@ module Google class Actor include Google::Apis::Core::Hashable + # Actor info specific to particular clients. + # Corresponds to the JSON property `clientSpecificActorInfo` + # @return [Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo] + attr_accessor :client_specific_actor_info + # The name of the actor, suitable for display. # Corresponds to the JSON property `displayName` # @return [String] @@ -223,17 +228,62 @@ module Google # @return [String] attr_accessor :url + # Verification status of actor. + # Corresponds to the JSON property `verification` + # @return [Google::Apis::PlusV1::Activity::Actor::Verification] + attr_accessor :verification + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @client_specific_actor_info = args[:client_specific_actor_info] unless args[:client_specific_actor_info].nil? @display_name = args[:display_name] unless args[:display_name].nil? @id = args[:id] unless args[:id].nil? @image = args[:image] unless args[:image].nil? @name = args[:name] unless args[:name].nil? @url = args[:url] unless args[:url].nil? + @verification = args[:verification] unless args[:verification].nil? + end + + # Actor info specific to particular clients. + class ClientSpecificActorInfo + include Google::Apis::Core::Hashable + + # Actor info specific to YouTube clients. + # Corresponds to the JSON property `youtubeActorInfo` + # @return [Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo] + attr_accessor :youtube_actor_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + end + + # Actor info specific to YouTube clients. + class YoutubeActorInfo + include Google::Apis::Core::Hashable + + # ID of the YouTube channel owned by the Actor. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] unless args[:channel_id].nil? + end + end end # The image representation of the actor. @@ -281,6 +331,25 @@ module Google @given_name = args[:given_name] unless args[:given_name].nil? end end + + # Verification status of actor. + class Verification + include Google::Apis::Core::Hashable + + # Verification for one-time or manual processes. + # Corresponds to the JSON property `adHocVerified` + # @return [String] + attr_accessor :ad_hoc_verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + end + end end # The object of this activity. @@ -367,6 +436,11 @@ module Google class Actor include Google::Apis::Core::Hashable + # Actor info specific to particular clients. + # Corresponds to the JSON property `clientSpecificActorInfo` + # @return [Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo] + attr_accessor :client_specific_actor_info + # The original actor's name, which is suitable for display. # Corresponds to the JSON property `displayName` # @return [String] @@ -387,16 +461,61 @@ module Google # @return [String] attr_accessor :url + # Verification status of actor. + # Corresponds to the JSON property `verification` + # @return [Google::Apis::PlusV1::Activity::Object::Actor::Verification] + attr_accessor :verification + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @client_specific_actor_info = args[:client_specific_actor_info] unless args[:client_specific_actor_info].nil? @display_name = args[:display_name] unless args[:display_name].nil? @id = args[:id] unless args[:id].nil? @image = args[:image] unless args[:image].nil? @url = args[:url] unless args[:url].nil? + @verification = args[:verification] unless args[:verification].nil? + end + + # Actor info specific to particular clients. + class ClientSpecificActorInfo + include Google::Apis::Core::Hashable + + # Actor info specific to YouTube clients. + # Corresponds to the JSON property `youtubeActorInfo` + # @return [Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo] + attr_accessor :youtube_actor_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + end + + # Actor info specific to YouTube clients. + class YoutubeActorInfo + include Google::Apis::Core::Hashable + + # ID of the YouTube channel owned by the Actor. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] unless args[:channel_id].nil? + end + end end # The image representation of the original actor. @@ -417,6 +536,25 @@ module Google @url = args[:url] unless args[:url].nil? end end + + # Verification status of actor. + class Verification + include Google::Apis::Core::Hashable + + # Verification for one-time or manual processes. + # Corresponds to the JSON property `adHocVerified` + # @return [String] + attr_accessor :ad_hoc_verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + end + end end # @@ -913,6 +1051,11 @@ module Google class Actor include Google::Apis::Core::Hashable + # Actor info specific to particular clients. + # Corresponds to the JSON property `clientSpecificActorInfo` + # @return [Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo] + attr_accessor :client_specific_actor_info + # The name of this actor, suitable for display. # Corresponds to the JSON property `displayName` # @return [String] @@ -933,16 +1076,61 @@ module Google # @return [String] attr_accessor :url + # Verification status of actor. + # Corresponds to the JSON property `verification` + # @return [Google::Apis::PlusV1::Comment::Actor::Verification] + attr_accessor :verification + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @client_specific_actor_info = args[:client_specific_actor_info] unless args[:client_specific_actor_info].nil? @display_name = args[:display_name] unless args[:display_name].nil? @id = args[:id] unless args[:id].nil? @image = args[:image] unless args[:image].nil? @url = args[:url] unless args[:url].nil? + @verification = args[:verification] unless args[:verification].nil? + end + + # Actor info specific to particular clients. + class ClientSpecificActorInfo + include Google::Apis::Core::Hashable + + # Actor info specific to YouTube clients. + # Corresponds to the JSON property `youtubeActorInfo` + # @return [Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo] + attr_accessor :youtube_actor_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + end + + # Actor info specific to YouTube clients. + class YoutubeActorInfo + include Google::Apis::Core::Hashable + + # ID of the YouTube channel owned by the Actor. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] unless args[:channel_id].nil? + end + end end # The image representation of this actor. @@ -965,6 +1153,25 @@ module Google @url = args[:url] unless args[:url].nil? end end + + # Verification status of actor. + class Verification + include Google::Apis::Core::Hashable + + # Verification for one-time or manual processes. + # Corresponds to the JSON property `adHocVerified` + # @return [String] + attr_accessor :ad_hoc_verified + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + end + end end # diff --git a/generated/google/apis/plus_v1/representations.rb b/generated/google/apis/plus_v1/representations.rb index 1357ff185..5772dce8d 100644 --- a/generated/google/apis/plus_v1/representations.rb +++ b/generated/google/apis/plus_v1/representations.rb @@ -32,6 +32,14 @@ module Google class Actor class Representation < Google::Apis::Core::JsonRepresentation; end + class ClientSpecificActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + class YoutubeActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -39,6 +47,10 @@ module Google class Name class Representation < Google::Apis::Core::JsonRepresentation; end end + + class Verification + class Representation < Google::Apis::Core::JsonRepresentation; end + end end class Object @@ -47,9 +59,21 @@ module Google class Actor class Representation < Google::Apis::Core::JsonRepresentation; end + class ClientSpecificActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + class YoutubeActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end end + + class Verification + class Representation < Google::Apis::Core::JsonRepresentation; end + end end class Attachment @@ -104,9 +128,21 @@ module Google class Actor class Representation < Google::Apis::Core::JsonRepresentation; end + class ClientSpecificActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + class YoutubeActorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end end + + class Verification + class Representation < Google::Apis::Core::JsonRepresentation; end + end end class InReplyTo @@ -247,6 +283,8 @@ module Google class Actor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::Representation + property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Actor::Image, decorator: Google::Apis::PlusV1::Activity::Actor::Image::Representation @@ -254,6 +292,23 @@ module Google property :name, as: 'name', class: Google::Apis::PlusV1::Activity::Actor::Name, decorator: Google::Apis::PlusV1::Activity::Actor::Name::Representation property :url, as: 'url' + property :verification, as: 'verification', class: Google::Apis::PlusV1::Activity::Actor::Verification, decorator: Google::Apis::PlusV1::Activity::Actor::Verification::Representation + + end + + class ClientSpecificActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusV1::Activity::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation + + end + + class YoutubeActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + end + end end class Image @@ -270,6 +325,13 @@ module Google property :given_name, as: 'givenName' end end + + class Verification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_hoc_verified, as: 'adHocVerified' + end + end end class Object @@ -295,11 +357,30 @@ module Google class Actor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::Representation + property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Object::Actor::Image, decorator: Google::Apis::PlusV1::Activity::Object::Actor::Image::Representation property :url, as: 'url' + property :verification, as: 'verification', class: Google::Apis::PlusV1::Activity::Object::Actor::Verification, decorator: Google::Apis::PlusV1::Activity::Object::Actor::Verification::Representation + + end + + class ClientSpecificActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation + + end + + class YoutubeActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + end + end end class Image @@ -308,6 +389,13 @@ module Google property :url, as: 'url' end end + + class Verification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_hoc_verified, as: 'adHocVerified' + end + end end class Attachment @@ -452,11 +540,30 @@ module Google class Actor # @private class Representation < Google::Apis::Core::JsonRepresentation + property :client_specific_actor_info, as: 'clientSpecificActorInfo', class: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo, decorator: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::Representation + property :display_name, as: 'displayName' property :id, as: 'id' property :image, as: 'image', class: Google::Apis::PlusV1::Comment::Actor::Image, decorator: Google::Apis::PlusV1::Comment::Actor::Image::Representation property :url, as: 'url' + property :verification, as: 'verification', class: Google::Apis::PlusV1::Comment::Actor::Verification, decorator: Google::Apis::PlusV1::Comment::Actor::Verification::Representation + + end + + class ClientSpecificActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :youtube_actor_info, as: 'youtubeActorInfo', class: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo, decorator: Google::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo::YoutubeActorInfo::Representation + + end + + class YoutubeActorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + end + end end class Image @@ -465,6 +572,13 @@ module Google property :url, as: 'url' end end + + class Verification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_hoc_verified, as: 'adHocVerified' + end + end end class InReplyTo diff --git a/generated/google/apis/plus_v1/service.rb b/generated/google/apis/plus_v1/service.rb index 8d15c2670..81c80e2ea 100644 --- a/generated/google/apis/plus_v1/service.rb +++ b/generated/google/apis/plus_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_activity(activity_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities/{activityId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities/{activityId}', options) command.response_representation = Google::Apis::PlusV1::Activity::Representation command.response_class = Google::Apis::PlusV1::Activity command.params['activityId'] = activity_id unless activity_id.nil? @@ -124,8 +123,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_activities(user_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/activities/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}/activities/{collection}', options) command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation command.response_class = Google::Apis::PlusV1::ActivityFeed command.params['userId'] = user_id unless user_id.nil? @@ -176,8 +174,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_activities(query, language: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities', options) command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation command.response_class = Google::Apis::PlusV1::ActivityFeed command.query['language'] = language unless language.nil? @@ -216,8 +213,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_comment(comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments/{commentId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'comments/{commentId}', options) command.response_representation = Google::Apis::PlusV1::Comment::Representation command.response_class = Google::Apis::PlusV1::Comment command.params['commentId'] = comment_id unless comment_id.nil? @@ -262,8 +258,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_comments(activity_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities/{activityId}/comments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities/{activityId}/comments', options) command.response_representation = Google::Apis::PlusV1::CommentFeed::Representation command.response_class = Google::Apis::PlusV1::CommentFeed command.params['activityId'] = activity_id unless activity_id.nil? @@ -308,8 +303,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_moment(user_id, collection, moment_object = nil, debug: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/moments/{collection}' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'people/{userId}/moments/{collection}', options) command.request_representation = Google::Apis::PlusV1::Moment::Representation command.request_object = moment_object command.response_representation = Google::Apis::PlusV1::Moment::Representation @@ -363,8 +357,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_moments(user_id, collection, max_results: nil, page_token: nil, target_url: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/moments/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}/moments/{collection}', options) command.response_representation = Google::Apis::PlusV1::MomentsFeed::Representation command.response_class = Google::Apis::PlusV1::MomentsFeed command.params['userId'] = user_id unless user_id.nil? @@ -379,40 +372,6 @@ module Google execute_or_queue_command(command, &block) end - # Delete a moment. - # @param [String] id - # The ID of the moment to delete. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # Overrides userIp if both are provided. - # @param [String] user_ip - # IP address of the site where the request originates. Use this if you want to - # enforce per-user limits. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def remove_moment(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'moments/{id}' - command = make_simple_command(:delete, path, options) - command.params['id'] = id unless id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Get a person's profile. If your app uses scope https://www.googleapis.com/auth/ # plus.login, this method is guaranteed to return ageRange and language. # @param [String] user_id @@ -440,8 +399,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_person(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}', options) command.response_representation = Google::Apis::PlusV1::Person::Representation command.response_class = Google::Apis::PlusV1::Person command.params['userId'] = user_id unless user_id.nil? @@ -489,8 +447,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_people(user_id, collection, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people/{userId}/people/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people/{userId}/people/{collection}', options) command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation command.response_class = Google::Apis::PlusV1::PeopleFeed command.params['userId'] = user_id unless user_id.nil? @@ -539,8 +496,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities/{activityId}/people/{collection}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options) command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation command.response_class = Google::Apis::PlusV1::PeopleFeed command.params['activityId'] = activity_id unless activity_id.nil? @@ -589,8 +545,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_people(query, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'people' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'people', options) command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation command.response_class = Google::Apis::PlusV1::PeopleFeed command.query['language'] = language unless language.nil? diff --git a/generated/google/apis/prediction_v1_6.rb b/generated/google/apis/prediction_v1_6.rb index ab482bc4f..0915c8e16 100644 --- a/generated/google/apis/prediction_v1_6.rb +++ b/generated/google/apis/prediction_v1_6.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/prediction/docs/developer-guide module PredictionV1_6 VERSION = 'V1_6' - REVISION = '20140522' + REVISION = '20151102' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/prediction_v1_6/classes.rb b/generated/google/apis/prediction_v1_6/classes.rb index 6f8167918..74e8ca954 100644 --- a/generated/google/apis/prediction_v1_6/classes.rb +++ b/generated/google/apis/prediction_v1_6/classes.rb @@ -674,7 +674,7 @@ module Google # The estimated regression value (Regression models only). # Corresponds to the JSON property `outputValue` - # @return [Float] + # @return [String] attr_accessor :output_value # A URL to re-request this resource. diff --git a/generated/google/apis/prediction_v1_6/service.rb b/generated/google/apis/prediction_v1_6/service.rb index 0069d5b76..ad571d5a9 100644 --- a/generated/google/apis/prediction_v1_6/service.rb +++ b/generated/google/apis/prediction_v1_6/service.rb @@ -81,8 +81,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def predict_hosted_model(project, hosted_model_name, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/hostedmodels/{hostedModelName}/predict' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/hostedmodels/{hostedModelName}/predict', options) command.request_representation = Google::Apis::PredictionV1_6::Input::Representation command.request_object = input_object command.response_representation = Google::Apis::PredictionV1_6::Output::Representation @@ -122,8 +121,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def analyze_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/trainedmodels/{id}/analyze' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/trainedmodels/{id}/analyze', options) command.response_representation = Google::Apis::PredictionV1_6::Analyze::Representation command.response_class = Google::Apis::PredictionV1_6::Analyze command.params['project'] = project unless project.nil? @@ -161,8 +159,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/trainedmodels/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/trainedmodels/{id}', options) command.params['project'] = project unless project.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? @@ -198,8 +195,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/trainedmodels/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/trainedmodels/{id}', options) command.response_representation = Google::Apis::PredictionV1_6::Insert2::Representation command.response_class = Google::Apis::PredictionV1_6::Insert2 command.params['project'] = project unless project.nil? @@ -236,8 +232,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_trained_model(project, insert_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/trainedmodels' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/trainedmodels', options) command.request_representation = Google::Apis::PredictionV1_6::Insert::Representation command.request_object = insert_object command.response_representation = Google::Apis::PredictionV1_6::Insert2::Representation @@ -278,8 +273,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_trained_models(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/trainedmodels/list' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/trainedmodels/list', options) command.response_representation = Google::Apis::PredictionV1_6::List::Representation command.response_class = Google::Apis::PredictionV1_6::List command.params['project'] = project unless project.nil? @@ -319,8 +313,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def predict_trained_model(project, id, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/trainedmodels/{id}/predict' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/trainedmodels/{id}/predict', options) command.request_representation = Google::Apis::PredictionV1_6::Input::Representation command.request_object = input_object command.response_representation = Google::Apis::PredictionV1_6::Output::Representation @@ -361,8 +354,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_trained_model(project, id, update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/trainedmodels/{id}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, '{project}/trainedmodels/{id}', options) command.request_representation = Google::Apis::PredictionV1_6::Update::Representation command.request_object = update_object command.response_representation = Google::Apis::PredictionV1_6::Insert2::Representation diff --git a/generated/google/apis/proximitybeacon_v1beta1.rb b/generated/google/apis/proximitybeacon_v1beta1.rb new file mode 100644 index 000000000..82f16a6dc --- /dev/null +++ b/generated/google/apis/proximitybeacon_v1beta1.rb @@ -0,0 +1,31 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/proximitybeacon_v1beta1/service.rb' +require 'google/apis/proximitybeacon_v1beta1/classes.rb' +require 'google/apis/proximitybeacon_v1beta1/representations.rb' + +module Google + module Apis + # Google Proximity Beacon API + # + # This API provides services to register, manage, index, and search beacons. + # + # @see https://developers.google.com/beacons/proximity/ + module ProximitybeaconV1beta1 + VERSION = 'V1beta1' + REVISION = '20150729' + end + end +end diff --git a/generated/google/apis/proximitybeacon_v1beta1/classes.rb b/generated/google/apis/proximitybeacon_v1beta1/classes.rb new file mode 100644 index 000000000..71ba77224 --- /dev/null +++ b/generated/google/apis/proximitybeacon_v1beta1/classes.rb @@ -0,0 +1,639 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ProximitybeaconV1beta1 + + # Details of a beacon device. + class Beacon + include Google::Apis::Core::Hashable + + # Resource name of this beacon. A beacon name has the format "beacons/N!beaconId" + # where the beaconId is the base16 ID broadcast by the beacon and N is a code + # for the beacon's type. Possible values are `3` for Eddystone, `1` for iBeacon, + # or `5` for AltBeacon. This field must be left empty when registering. After + # reading a beacon, clients can use the name for future operations. + # Corresponds to the JSON property `beaconName` + # @return [String] + attr_accessor :beacon_name + + # Defines a unique identifier of a beacon as broadcast by the device. + # Corresponds to the JSON property `advertisedId` + # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] + attr_accessor :advertised_id + + # Current status of the beacon. Required. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The [Google Places API](/places/place-id) Place ID of the place where the + # beacon is deployed. This is given when the beacon is registered or updated, + # not automatically detected in any way. Optional. + # Corresponds to the JSON property `placeId` + # @return [String] + attr_accessor :place_id + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the WGS84 standard. Values must be + # within normalized ranges. Example of normalization code in Python: def + # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0, + # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <= + # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """ + # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90. + # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360, + # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude( + # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 == + # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert ( + # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(- + # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, - + # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng( + # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0, + # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) == + # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10. + # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::ProximitybeaconV1beta1::LatLng] + attr_accessor :lat_lng + + # Indoor level, a human-readable string as returned by Google Maps APIs, useful + # to indicate which floor of a building a beacon is located on. + # Corresponds to the JSON property `indoorLevel` + # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel] + attr_accessor :indoor_level + + # Expected location stability. This is set when the beacon is registered or + # updated, not automatically detected in any way. Optional. + # Corresponds to the JSON property `expectedStability` + # @return [String] + attr_accessor :expected_stability + + # Free text used to identify and describe the beacon. Maximum length 140 + # characters. Optional. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Properties of the beacon device, for example battery type or firmware version. + # Optional. + # Corresponds to the JSON property `properties` + # @return [Hash] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @beacon_name = args[:beacon_name] unless args[:beacon_name].nil? + @advertised_id = args[:advertised_id] unless args[:advertised_id].nil? + @status = args[:status] unless args[:status].nil? + @place_id = args[:place_id] unless args[:place_id].nil? + @lat_lng = args[:lat_lng] unless args[:lat_lng].nil? + @indoor_level = args[:indoor_level] unless args[:indoor_level].nil? + @expected_stability = args[:expected_stability] unless args[:expected_stability].nil? + @description = args[:description] unless args[:description].nil? + @properties = args[:properties] unless args[:properties].nil? + end + end + + # Defines a unique identifier of a beacon as broadcast by the device. + class AdvertisedId + include Google::Apis::Core::Hashable + + # Specifies the identifier type. Required. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The actual beacon identifier, as broadcast by the beacon hardware. Must be [ + # base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP requests, + # and will be so encoded (with padding) in responses. The base64 encoding + # should be of the binary byte-stream and not any textual (such as hex) + # representation thereof. Required. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] unless args[:type].nil? + @id = args[:id] unless args[:id].nil? + end + end + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the WGS84 standard. Values must be + # within normalized ranges. Example of normalization code in Python: def + # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0, + # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <= + # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """ + # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90. + # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360, + # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude( + # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 == + # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert ( + # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(- + # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, - + # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng( + # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0, + # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) == + # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10. + # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + class LatLng + include Google::Apis::Core::Hashable + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latitude = args[:latitude] unless args[:latitude].nil? + @longitude = args[:longitude] unless args[:longitude].nil? + end + end + + # Indoor level, a human-readable string as returned by Google Maps APIs, useful + # to indicate which floor of a building a beacon is located on. + class IndoorLevel + include Google::Apis::Core::Hashable + + # The name of this level. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response that contains list beacon results and pagination help. + class ListBeaconsResponse + include Google::Apis::Core::Hashable + + # The beacons that matched the search criteria. + # Corresponds to the JSON property `beacons` + # @return [Array] + attr_accessor :beacons + + # An opaque pagination token that the client may provide in their next request + # to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Estimate of the total number of beacons matched by the query. Higher values + # may be less accurate. + # Corresponds to the JSON property `totalCount` + # @return [String] + attr_accessor :total_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @beacons = args[:beacons] unless args[:beacons].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @total_count = args[:total_count] unless args[:total_count].nil? + end + end + + # Project-specific data associated with a beacon. + class BeaconAttachment + include Google::Apis::Core::Hashable + + # Resource name of this attachment. Attachment names have the format: beacons/ + # beacon_id/attachments/attachment_id. Leave this empty on creation. + # Corresponds to the JSON property `attachmentName` + # @return [String] + attr_accessor :attachment_name + + # Specifies what kind of attachment this is. Tells a client how to interpret the + # `data` field. Format is namespace/type. Namespace provides type separation + # between clients. Type describes the type of `data`, for use by the client when + # parsing the `data` field. Required. + # Corresponds to the JSON property `namespacedType` + # @return [String] + attr_accessor :namespaced_type + + # An opaque data container for client-provided data. Must be [base64](http:// + # tools.ietf.org/html/rfc4648#section-4) encoded in HTTP requests, and will be + # so encoded (with padding) in responses. Required. + # Corresponds to the JSON property `data` + # @return [String] + attr_accessor :data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attachment_name = args[:attachment_name] unless args[:attachment_name].nil? + @namespaced_type = args[:namespaced_type] unless args[:namespaced_type].nil? + @data = args[:data] unless args[:data].nil? + end + end + + # Response to ListBeaconAttachments that contains the requested attachments. + class ListBeaconAttachmentsResponse + include Google::Apis::Core::Hashable + + # The attachments that corresponded to the request params. + # Corresponds to the JSON property `attachments` + # @return [Array] + attr_accessor :attachments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attachments = args[:attachments] unless args[:attachments].nil? + end + end + + # Response for a request to delete attachments. + class DeleteAttachmentsResponse + include Google::Apis::Core::Hashable + + # The number of attachments that were deleted. + # Corresponds to the JSON property `numDeleted` + # @return [Fixnum] + attr_accessor :num_deleted + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_deleted = args[:num_deleted] unless args[:num_deleted].nil? + end + end + + # Response to ListNamespacesRequest that contains all the project's namespaces. + class ListNamespacesResponse + include Google::Apis::Core::Hashable + + # The attachments that corresponded to the request params. + # Corresponds to the JSON property `namespaces` + # @return [Array] + attr_accessor :namespaces + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @namespaces = args[:namespaces] unless args[:namespaces].nil? + end + end + + # An attachment namespace defines read and write access for all the attachments + # created under it. Each namespace is globally unique, and owned by one project + # which is the only project that can create attachments under it. + class Namespace + include Google::Apis::Core::Hashable + + # Resource name of this namespace. Namespaces names have the format: namespaces/ + # namespace. + # Corresponds to the JSON property `namespaceName` + # @return [String] + attr_accessor :namespace_name + + # Specifies what clients may receive attachments under this namespace via ` + # beaconinfo.getforobserved`. + # Corresponds to the JSON property `servingVisibility` + # @return [String] + attr_accessor :serving_visibility + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @namespace_name = args[:namespace_name] unless args[:namespace_name].nil? + @serving_visibility = args[:serving_visibility] unless args[:serving_visibility].nil? + end + end + + # Response that contains the requested diagnostics. + class ListDiagnosticsResponse + include Google::Apis::Core::Hashable + + # The diagnostics matching the given request. + # Corresponds to the JSON property `diagnostics` + # @return [Array] + attr_accessor :diagnostics + + # Token that can be used for pagination. Returned only if the request matches + # more beacons than can be returned in this response. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @diagnostics = args[:diagnostics] unless args[:diagnostics].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Diagnostics for a single beacon. + class Diagnostics + include Google::Apis::Core::Hashable + + # Resource name of the beacon. + # Corresponds to the JSON property `beaconName` + # @return [String] + attr_accessor :beacon_name + + # Represents a whole calendar date, e.g. date of birth. The time of day and time + # zone are either specified elsewhere or are not significant. The date is + # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a + # year and month where the day is not significant, e.g. credit card expiration + # date. The year may be 0 to represent a month and day independent of year, e.g. + # anniversary date. Related types are [google.type.TimeOfDay][] and `google. + # protobuf.Timestamp`. + # Corresponds to the JSON property `estimatedLowBatteryDate` + # @return [Google::Apis::ProximitybeaconV1beta1::Date] + attr_accessor :estimated_low_battery_date + + # An unordered list of Alerts that the beacon has. + # Corresponds to the JSON property `alerts` + # @return [Array] + attr_accessor :alerts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @beacon_name = args[:beacon_name] unless args[:beacon_name].nil? + @estimated_low_battery_date = args[:estimated_low_battery_date] unless args[:estimated_low_battery_date].nil? + @alerts = args[:alerts] unless args[:alerts].nil? + end + end + + # Represents a whole calendar date, e.g. date of birth. The time of day and time + # zone are either specified elsewhere or are not significant. The date is + # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a + # year and month where the day is not significant, e.g. credit card expiration + # date. The year may be 0 to represent a month and day independent of year, e.g. + # anniversary date. Related types are [google.type.TimeOfDay][] and `google. + # protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Year of date. Must be from 1 to 9,999, or 0 if specifying a date without a + # year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + # Month of year of date. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + # specifying a year/month where the day is not sigificant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @year = args[:year] unless args[:year].nil? + @month = args[:month] unless args[:month].nil? + @day = args[:day] unless args[:day].nil? + end + end + + # Request for beacon and attachment information about beacons that a mobile + # client has encountered "in the wild". + class GetInfoForObservedBeaconsRequest + include Google::Apis::Core::Hashable + + # The beacons that the client has encountered. At least one must be given. + # Corresponds to the JSON property `observations` + # @return [Array] + attr_accessor :observations + + # Specifies what kind of attachments to include in the response. When given, the + # response will include only attachments of the given types. When empty, no + # attachments will be returned. Must be in the format namespace/type. Accepts `*` + # to specify all types in all namespaces. Optional. + # Corresponds to the JSON property `namespacedTypes` + # @return [Array] + attr_accessor :namespaced_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @observations = args[:observations] unless args[:observations].nil? + @namespaced_types = args[:namespaced_types] unless args[:namespaced_types].nil? + end + end + + # Represents one beacon observed once. + class Observation + include Google::Apis::Core::Hashable + + # Defines a unique identifier of a beacon as broadcast by the device. + # Corresponds to the JSON property `advertisedId` + # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] + attr_accessor :advertised_id + + # The array of telemetry bytes received from the beacon. The server is + # responsible for parsing it. This field may frequently be empty, as with a + # beacon that transmits telemetry only occasionally. + # Corresponds to the JSON property `telemetry` + # @return [String] + attr_accessor :telemetry + + # Time when the beacon was observed. Being sourced from a mobile device, this + # time may be suspect. + # Corresponds to the JSON property `timestampMs` + # @return [String] + attr_accessor :timestamp_ms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertised_id = args[:advertised_id] unless args[:advertised_id].nil? + @telemetry = args[:telemetry] unless args[:telemetry].nil? + @timestamp_ms = args[:timestamp_ms] unless args[:timestamp_ms].nil? + end + end + + # Information about the requested beacons, optionally including attachment data. + class GetInfoForObservedBeaconsResponse + include Google::Apis::Core::Hashable + + # Public information about beacons. May be empty if the request matched no + # beacons. + # Corresponds to the JSON property `beacons` + # @return [Array] + attr_accessor :beacons + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @beacons = args[:beacons] unless args[:beacons].nil? + end + end + + # A subset of beacon information served via the `beaconinfo.getforobserved` + # method, which you call when users of your app encounter your beacons. + class BeaconInfo + include Google::Apis::Core::Hashable + + # Defines a unique identifier of a beacon as broadcast by the device. + # Corresponds to the JSON property `advertisedId` + # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId] + attr_accessor :advertised_id + + # The name under which the beacon is registered. + # Corresponds to the JSON property `beaconName` + # @return [String] + attr_accessor :beacon_name + + # Free text used to identify or describe the beacon in a registered + # establishment. For example: "entrance", "room 101", etc. May be empty. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Attachments matching the type(s) requested. May be empty if no attachment + # types were requested, or if none matched. + # Corresponds to the JSON property `attachments` + # @return [Array] + attr_accessor :attachments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertised_id = args[:advertised_id] unless args[:advertised_id].nil? + @beacon_name = args[:beacon_name] unless args[:beacon_name].nil? + @description = args[:description] unless args[:description].nil? + @attachments = args[:attachments] unless args[:attachments].nil? + end + end + + # A subset of attachment information served via the `beaconinfo.getforobserved` + # method, used when your users encounter your beacons. + class AttachmentInfo + include Google::Apis::Core::Hashable + + # Specifies what kind of attachment this is. Tells a client how to interpret the + # `data` field. Format is namespace/type, for example scrupulous-wombat-12345/ + # welcome-message + # Corresponds to the JSON property `namespacedType` + # @return [String] + attr_accessor :namespaced_type + + # An opaque data container for client-provided data. + # Corresponds to the JSON property `data` + # @return [String] + attr_accessor :data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @namespaced_type = args[:namespaced_type] unless args[:namespaced_type].nil? + @data = args[:data] unless args[:data].nil? + end + end + end + end +end diff --git a/generated/google/apis/proximitybeacon_v1beta1/representations.rb b/generated/google/apis/proximitybeacon_v1beta1/representations.rb new file mode 100644 index 000000000..ec0347a89 --- /dev/null +++ b/generated/google/apis/proximitybeacon_v1beta1/representations.rb @@ -0,0 +1,274 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ProximitybeaconV1beta1 + + class Beacon + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AdvertisedId + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LatLng + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class IndoorLevel + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListBeaconsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BeaconAttachment + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListBeaconAttachmentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeleteAttachmentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListNamespacesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Namespace + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListDiagnosticsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Diagnostics + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetInfoForObservedBeaconsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Observation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetInfoForObservedBeaconsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BeaconInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AttachmentInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Beacon + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :beacon_name, as: 'beaconName' + property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation + + property :status, as: 'status' + property :place_id, as: 'placeId' + property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation + + property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation + + property :expected_stability, as: 'expectedStability' + property :description, as: 'description' + hash :properties, as: 'properties' + end + end + + class AdvertisedId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :id, :base64 => true, as: 'id' + end + end + + class LatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end + end + + class IndoorLevel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListBeaconsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + + property :next_page_token, as: 'nextPageToken' + property :total_count, as: 'totalCount' + end + end + + class BeaconAttachment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attachment_name, as: 'attachmentName' + property :namespaced_type, as: 'namespacedType' + property :data, :base64 => true, as: 'data' + end + end + + class ListBeaconAttachmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation + + end + end + + class DeleteAttachmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_deleted, as: 'numDeleted' + end + end + + class ListNamespacesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation + + end + end + + class Namespace + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :namespace_name, as: 'namespaceName' + property :serving_visibility, as: 'servingVisibility' + end + end + + class ListDiagnosticsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Diagnostics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :beacon_name, as: 'beaconName' + property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation + + collection :alerts, as: 'alerts' + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :year, as: 'year' + property :month, as: 'month' + property :day, as: 'day' + end + end + + class GetInfoForObservedBeaconsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation + + collection :namespaced_types, as: 'namespacedTypes' + end + end + + class Observation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation + + property :telemetry, :base64 => true, as: 'telemetry' + property :timestamp_ms, as: 'timestampMs' + end + end + + class GetInfoForObservedBeaconsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation + + end + end + + class BeaconInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation + + property :beacon_name, as: 'beaconName' + property :description, as: 'description' + collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation + + end + end + + class AttachmentInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :namespaced_type, as: 'namespacedType' + property :data, :base64 => true, as: 'data' + end + end + end + end +end diff --git a/generated/google/apis/proximitybeacon_v1beta1/service.rb b/generated/google/apis/proximitybeacon_v1beta1/service.rb new file mode 100644 index 000000000..e9c1edf86 --- /dev/null +++ b/generated/google/apis/proximitybeacon_v1beta1/service.rb @@ -0,0 +1,591 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ProximitybeaconV1beta1 + # Google Proximity Beacon API + # + # This API provides services to register, manage, index, and search beacons. + # + # @example + # require 'google/apis/proximitybeacon_v1beta1' + # + # Proximitybeacon = Google::Apis::ProximitybeaconV1beta1 # Alias the module + # service = Proximitybeacon::ProximitybeaconService.new + # + # @see https://developers.google.com/beacons/proximity/ + class ProximitybeaconService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://proximitybeacon.googleapis.com/', '') + end + + # Registers a previously unregistered beacon given its `advertisedId`. These IDs + # are unique within the system. An ID can be registered only once. + # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def register_beacon(beacon_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/beacons:register', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.request_object = beacon_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Decommissions the specified beacon in the service. This beacon will no longer + # be returned from `beaconinfo.getforobserved`. This operation is permanent -- + # you will not be able to re-register a beacon with this ID again. + # @param [String] beacon_name + # Beacon that should be decommissioned. Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def decommission_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns detailed information about the specified beacon. + # @param [String] beacon_name + # Beacon that is requested. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+beaconName}', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches the beacon registry for beacons that match the given search criteria. + # Only those beacons that the client has permission to list will be returned. + # @param [String] q + # Filter query string that supports the following field filters: * `description:" + # "` For example: `description:"Room 3"` Returns beacons whose description + # matches tokens in the string "Room 3" (not necessarily that exact string). The + # string must be double-quoted. * `status:` For example: `status:active` Returns + # beacons whose status matches the given value. Values must be one of the Beacon. + # Status enum values (case insensitive). Accepts multiple filters which will be + # combined with OR logic. * `stability:` For example: `stability:mobile` Returns + # beacons whose expected stability matches the given value. Values must be one + # of the Beacon.Stability enum values (case insensitive). Accepts multiple + # filters which will be combined with OR logic. * `place_id:""` For example: ` + # place_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="` Returns beacons explicitly registered + # at the given place, expressed as a Place ID obtained from [Google Places API](/ + # places/place-id). Does not match places inside the given place. Does not + # consider the beacon's actual location (which may be different from its + # registered place). Accepts multiple filters that will be combined with OR + # logic. The place ID must be double-quoted. * `registration_time[|=]` For + # example: `registration_time>=1433116800` Returns beacons whose registration + # time matches the given filter. Supports the operators: , =. Timestamp must be + # expressed as an integer number of seconds since midnight January 1, 1970 UTC. + # Accepts at most two filters that will be combined with AND logic, to support " + # between" semantics. If more than two are supplied, the latter ones are ignored. + # * `lat: lng: radius:` For example: `lat:51.1232343 lng:-1.093852 radius:1000` + # Returns beacons whose registered location is within the given circle. When any + # of these fields are given, all are required. Latitude and longitude must be + # decimal degrees between -90.0 and 90.0 and between -180.0 and 180.0 + # respectively. Radius must be an integer number of meters less than 1,000,000 ( + # 1000 km). * `property:"="` For example: `property:"battery-type=CR2032"` + # Returns beacons which have a property of the given name and value. Supports + # multiple filters which will be combined with OR logic. The entire name=value + # string must be double-quoted as one string. * `attachment_type:""` For example: + # `attachment_type:"my-namespace/my-type"` Returns beacons having at least one + # attachment of the given namespaced type. Supports "any within this namespace" + # via the partial wildcard syntax: "my-namespace/*". Supports multiple filters + # which will be combined with OR logic. The string must be double-quoted. + # Multiple filters on the same field are combined with OR logic (except + # registration_time which is combined with AND logic). Multiple filters on + # different fields are combined with AND logic. Filters should be separated by + # spaces. As with any HTTP query string parameter, the whole filter expression + # must be URL-encoded. Example REST request: `GET /v1beta1/beacons?q=status: + # active%20lat:51.123%20lng:-1.095%20radius:1000` + # @param [String] page_token + # A pagination token obtained from a previous request to list beacons. + # @param [Fixnum] page_size + # The maximum number of records to return for this request, up to a server- + # defined upper limit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_beacons(q: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/beacons', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse + command.query['q'] = q unless q.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the information about the specified beacon. **Any field that you do + # not populate in the submitted beacon will be permanently erased**, so you + # should follow the "read, modify, write" pattern to avoid inadvertently + # destroying data. Changes to the beacon status via this method will be silently + # ignored. To update beacon status, use the separate methods on this API for (de) + # activation and decommissioning. + # @param [String] beacon_name + # Resource name of this beacon. A beacon name has the format "beacons/N!beaconId" + # where the beaconId is the base16 ID broadcast by the beacon and N is a code + # for the beacon's type. Possible values are `3` for Eddystone, `1` for iBeacon, + # or `5` for AltBeacon. This field must be left empty when registering. After + # reading a beacon, clients can use the name for future operations. + # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Beacon] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_beacon(beacon_name, beacon_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/{+beaconName}', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.request_object = beacon_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # (Re)activates a beacon. A beacon that is active will return information and + # attachment data when queried via `beaconinfo.getforobserved`. Calling this + # method on an already active beacon will do nothing (but will return a + # successful response code). + # @param [String] beacon_name + # The beacon to activate. Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def activate_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deactivates a beacon. Once deactivated, the API will not return information + # nor attachment data for the beacon when queried via `beaconinfo.getforobserved` + # . Calling this method on an already inactive beacon will do nothing (but will + # return a successful response code). + # @param [String] beacon_name + # The beacon name of this beacon. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def deactivate_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Associates the given data with the specified beacon. Attachment data must + # contain two parts: + # - A namespaced type. + # - The actual attachment data itself. The namespaced type consists of two + # parts, the namespace and the type. The namespace must be one of the values + # returned by the `namespaces` endpoint, while the type can be a string of any + # characters except for the forward slash (`/`) up to 100 characters in length. + # Attachment data can be up to 1024 bytes long. + # @param [String] beacon_name + # The beacon on which the attachment should be created. Required. + # @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation + command.request_object = beacon_attachment_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the attachments for the specified beacon that match the specified + # namespaced-type pattern. To control which namespaced types are returned, you + # add the `namespacedType` query parameter to the request. You must either use `* + # /*`, to return all attachments, or the namespace must be one of the ones + # returned from the `namespaces` endpoint. + # @param [String] beacon_name + # The beacon whose attachments are to be fetched. Required. + # @param [String] namespaced_type + # Specifies the namespace and type of attachment to include in response in + # namespace/type format. Accepts `*/*` to specify "all types in all namespaces". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_beacon_attachments(beacon_name, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['namespacedType'] = namespaced_type unless namespaced_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified attachment for the given beacon. Each attachment has a + # unique attachment name (`attachmentName`) which is returned when you fetch the + # attachment data via this API. You specify this with the delete request to + # control which attachment is removed. This operation cannot be undone. + # @param [String] attachment_name + # The attachment name (`attachmentName`) of the attachment to remove. For + # example: `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738` + # Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_beacon_attachment(attachment_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty + command.params['attachmentName'] = attachment_name unless attachment_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes multiple attachments on a given beacon. This operation is permanent + # and cannot be undone. You can optionally specify `namespacedType` to choose + # which attachments should be deleted. If you do not specify `namespacedType`, + # all your attachments on the given beacon will be deleted. You also may + # explicitly specify `*/*` to delete all. + # @param [String] beacon_name + # The beacon whose attachments are to be deleted. Required. + # @param [String] namespaced_type + # Specifies the namespace and type of attachments to delete in `namespace/type` + # format. Accepts `*/*` to specify "all types in all namespaces". Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['namespacedType'] = namespaced_type unless namespaced_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # List the diagnostics for a single beacon. You can also list diagnostics for + # all the beacons owned by your Google Developers Console project by using the + # beacon name `beacons/-`. + # @param [String] beacon_name + # Beacon that the diagnostics are for. + # @param [Fixnum] page_size + # Specifies the maximum number of results to return. Defaults to 10. Maximum + # 1000. Optional. + # @param [String] page_token + # Requests results that occur after the `page_token`, obtained from the response + # to a previous request. Optional. + # @param [String] alert_filter + # Requests only beacons that have the given alert. For example, to find beacons + # that have low batteries use `alert_filter=LOW_BATTERY`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_beacon_diagnostics(beacon_name, page_size: nil, page_token: nil, alert_filter: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse + command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['alertFilter'] = alert_filter unless alert_filter.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all attachment namespaces owned by your Google Developers Console + # project. Attachment data associated with a beacon must include a namespaced + # type, and the namespace must be owned by your project. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_namespaces(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/namespaces', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Given one or more beacon observations, returns any beacon information and + # attachments accessible to your application. + # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation + command.request_object = get_info_for_observed_beacons_request_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb new file mode 100644 index 000000000..7e2450f18 --- /dev/null +++ b/generated/google/apis/pubsub_v1.rb @@ -0,0 +1,37 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/pubsub_v1/service.rb' +require 'google/apis/pubsub_v1/classes.rb' +require 'google/apis/pubsub_v1/representations.rb' + +module Google + module Apis + # Google Cloud Pub/Sub API + # + # Provides reliable, many-to-many, asynchronous messaging between applications. + # + # @see https://cloud.google.com/pubsub/docs + module PubsubV1 + VERSION = 'V1' + REVISION = '20151103' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View and manage Pub/Sub topics and subscriptions + AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub' + end + end +end diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb new file mode 100644 index 000000000..fc6f016bc --- /dev/null +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -0,0 +1,614 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module PubsubV1 + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::PubsubV1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] unless args[:policy].nil? + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + class Policy + include Google::Apis::Core::Hashable + + # Version of the `Policy`. The default version is 0. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Associates a list of `members` to a `role`. Multiple `bindings` must not be + # specified for the same `role`. `bindings` with no members will result in an + # error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # Can be used to perform a read-modify-write. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] unless args[:version].nil? + @bindings = args[:bindings] unless args[:bindings].nil? + @etag = args[:etag] unless args[:etag].nil? + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following formats: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:` + # emailid``: An email address that represents a service account. For example, ` + # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email + # address that represents a Google group. For example, `admins@example.com`. * ` + # domain:`domain``: A Google Apps domain name that represents all the users of + # that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @role = args[:role] unless args[:role].nil? + @members = args[:members] unless args[:members].nil? + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] unless args[:permissions].nil? + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] unless args[:permissions].nil? + end + end + + # A topic resource. + class Topic + include Google::Apis::Core::Hashable + + # The name of the topic. It must have the format `"projects/`project`/topics/` + # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za- + # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), + # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 + # characters in length, and it must not start with `"goog"`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + end + end + + # Request for the Publish method. + class PublishRequest + include Google::Apis::Core::Hashable + + # The messages to publish. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @messages = args[:messages] unless args[:messages].nil? + end + end + + # A message data and its attributes. The message payload must not be empty; it + # must contain either a non-empty data field, or at least one attribute. + class Message + include Google::Apis::Core::Hashable + + # The message payload. For JSON requests, the value of this field must be base64- + # encoded. + # Corresponds to the JSON property `data` + # @return [String] + attr_accessor :data + + # Optional attributes for this message. + # Corresponds to the JSON property `attributes` + # @return [Hash] + attr_accessor :attributes + + # ID of this message, assigned by the server when the message is published. + # Guaranteed to be unique within the topic. This value may be read by a + # subscriber that receives a `PubsubMessage` via a `Pull` call or a push + # delivery. It must not be populated by the publisher in a `Publish` call. + # Corresponds to the JSON property `messageId` + # @return [String] + attr_accessor :message_id + + # The time at which the message was published, populated by the server when it + # receives the `Publish` call. It must not be populated by the publisher in a ` + # Publish` call. + # Corresponds to the JSON property `publishTime` + # @return [String] + attr_accessor :publish_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] unless args[:data].nil? + @attributes = args[:attributes] unless args[:attributes].nil? + @message_id = args[:message_id] unless args[:message_id].nil? + @publish_time = args[:publish_time] unless args[:publish_time].nil? + end + end + + # Response for the `Publish` method. + class PublishResponse + include Google::Apis::Core::Hashable + + # The server-assigned ID of each published message, in the same order as the + # messages in the request. IDs are guaranteed to be unique within the topic. + # Corresponds to the JSON property `messageIds` + # @return [Array] + attr_accessor :message_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message_ids = args[:message_ids] unless args[:message_ids].nil? + end + end + + # Response for the `ListTopics` method. + class ListTopicsResponse + include Google::Apis::Core::Hashable + + # The resulting topics. + # Corresponds to the JSON property `topics` + # @return [Array] + attr_accessor :topics + + # If not empty, indicates that there may be more topics that match the request; + # this value should be passed in a new `ListTopicsRequest`. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @topics = args[:topics] unless args[:topics].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Response for the `ListTopicSubscriptions` method. + class ListTopicSubscriptionsResponse + include Google::Apis::Core::Hashable + + # The names of the subscriptions that match the request. + # Corresponds to the JSON property `subscriptions` + # @return [Array] + attr_accessor :subscriptions + + # If not empty, indicates that there may be more subscriptions that match the + # request; this value should be passed in a new `ListTopicSubscriptionsRequest` + # to get more subscriptions. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @subscriptions = args[:subscriptions] unless args[:subscriptions].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A subscription resource. + class Subscription + include Google::Apis::Core::Hashable + + # The name of the subscription. It must have the format `"projects/`project`/ + # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and + # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`% + # `). It must be between 3 and 255 characters in length, and it must not start + # with `"goog"`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The name of the topic from which this subscription is receiving messages. The + # value of this field will be `_deleted-topic_` if the topic has been deleted. + # Corresponds to the JSON property `topic` + # @return [String] + attr_accessor :topic + + # Configuration for a push delivery endpoint. + # Corresponds to the JSON property `pushConfig` + # @return [Google::Apis::PubsubV1::PushConfig] + attr_accessor :push_config + + # This value is the maximum time after a subscriber receives a message before + # the subscriber should acknowledge the message. After message delivery but + # before the ack deadline expires and before the message is acknowledged, it is + # an outstanding message and will not be delivered again during that time (on a + # best-effort basis). For pull delivery this value is used as the initial value + # for the ack deadline. To override this value for a given message, call ` + # ModifyAckDeadline` with the corresponding `ack_id`. For push delivery, this + # value is also used to set the request timeout for the call to the push + # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system + # will eventually redeliver the message. If this parameter is not set, the + # default value of 10 seconds is used. + # Corresponds to the JSON property `ackDeadlineSeconds` + # @return [Fixnum] + attr_accessor :ack_deadline_seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @topic = args[:topic] unless args[:topic].nil? + @push_config = args[:push_config] unless args[:push_config].nil? + @ack_deadline_seconds = args[:ack_deadline_seconds] unless args[:ack_deadline_seconds].nil? + end + end + + # Configuration for a push delivery endpoint. + class PushConfig + include Google::Apis::Core::Hashable + + # A URL locating the endpoint to which messages should be pushed. For example, a + # Webhook endpoint might use "https://example.com/push". + # Corresponds to the JSON property `pushEndpoint` + # @return [String] + attr_accessor :push_endpoint + + # Endpoint configuration attributes. Every endpoint has a set of API supported + # attributes that can be used to control different aspects of the message + # delivery. The currently supported attribute is `x-goog-version`, which you can + # use to change the format of the push message. This attribute indicates the + # version of the data expected by the endpoint. This controls the shape of the + # envelope (i.e. its fields and metadata). The endpoint version is based on the + # version of the Pub/Sub API. If not present during the `CreateSubscription` + # call, it will default to the version of the API used to make such call. If not + # present during a `ModifyPushConfig` call, its value will not be changed. ` + # GetSubscription` calls will always return a valid version, even if the + # subscription was created without this attribute. The possible values for this + # attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/ + # Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub + # API. + # Corresponds to the JSON property `attributes` + # @return [Hash] + attr_accessor :attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @push_endpoint = args[:push_endpoint] unless args[:push_endpoint].nil? + @attributes = args[:attributes] unless args[:attributes].nil? + end + end + + # Response for the `ListSubscriptions` method. + class ListSubscriptionsResponse + include Google::Apis::Core::Hashable + + # The subscriptions that match the request. + # Corresponds to the JSON property `subscriptions` + # @return [Array] + attr_accessor :subscriptions + + # If not empty, indicates that there may be more subscriptions that match the + # request; this value should be passed in a new `ListSubscriptionsRequest` to + # get more subscriptions. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @subscriptions = args[:subscriptions] unless args[:subscriptions].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Request for the ModifyAckDeadline method. + class ModifyAckDeadlineRequest + include Google::Apis::Core::Hashable + + # List of acknowledgment IDs. + # Corresponds to the JSON property `ackIds` + # @return [Array] + attr_accessor :ack_ids + + # The new ack deadline with respect to the time this request was sent to the Pub/ + # Sub system. Must be >= 0. For example, if the value is 10, the new ack + # deadline will expire 10 seconds after the `ModifyAckDeadline` call was made. + # Specifying zero may immediately make the message available for another pull + # request. + # Corresponds to the JSON property `ackDeadlineSeconds` + # @return [Fixnum] + attr_accessor :ack_deadline_seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ack_ids = args[:ack_ids] unless args[:ack_ids].nil? + @ack_deadline_seconds = args[:ack_deadline_seconds] unless args[:ack_deadline_seconds].nil? + end + end + + # Request for the Acknowledge method. + class AcknowledgeRequest + include Google::Apis::Core::Hashable + + # The acknowledgment ID for the messages being acknowledged that was returned by + # the Pub/Sub system in the `Pull` response. Must not be empty. + # Corresponds to the JSON property `ackIds` + # @return [Array] + attr_accessor :ack_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ack_ids = args[:ack_ids] unless args[:ack_ids].nil? + end + end + + # Request for the `Pull` method. + class PullRequest + include Google::Apis::Core::Hashable + + # If this is specified as true the system will respond immediately even if it is + # not able to return a message in the `Pull` response. Otherwise the system is + # allowed to wait until at least one message is available rather than returning + # no messages. The client may cancel the request if it does not wish to wait any + # longer for the response. + # Corresponds to the JSON property `returnImmediately` + # @return [Boolean] + attr_accessor :return_immediately + alias_method :return_immediately?, :return_immediately + + # The maximum number of messages returned for this request. The Pub/Sub system + # may return fewer than the number specified. + # Corresponds to the JSON property `maxMessages` + # @return [Fixnum] + attr_accessor :max_messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @return_immediately = args[:return_immediately] unless args[:return_immediately].nil? + @max_messages = args[:max_messages] unless args[:max_messages].nil? + end + end + + # Response for the `Pull` method. + class PullResponse + include Google::Apis::Core::Hashable + + # Received Pub/Sub messages. The Pub/Sub system will return zero messages if + # there are no more available in the backlog. The Pub/Sub system may return + # fewer than the `maxMessages` requested even if there are more messages + # available in the backlog. + # Corresponds to the JSON property `receivedMessages` + # @return [Array] + attr_accessor :received_messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @received_messages = args[:received_messages] unless args[:received_messages].nil? + end + end + + # A message and its corresponding acknowledgment ID. + class ReceivedMessage + include Google::Apis::Core::Hashable + + # This ID can be used to acknowledge the received message. + # Corresponds to the JSON property `ackId` + # @return [String] + attr_accessor :ack_id + + # A message data and its attributes. The message payload must not be empty; it + # must contain either a non-empty data field, or at least one attribute. + # Corresponds to the JSON property `message` + # @return [Google::Apis::PubsubV1::Message] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ack_id = args[:ack_id] unless args[:ack_id].nil? + @message = args[:message] unless args[:message].nil? + end + end + + # Request for the ModifyPushConfig method. + class ModifyPushConfigRequest + include Google::Apis::Core::Hashable + + # Configuration for a push delivery endpoint. + # Corresponds to the JSON property `pushConfig` + # @return [Google::Apis::PubsubV1::PushConfig] + attr_accessor :push_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @push_config = args[:push_config] unless args[:push_config].nil? + end + end + end + end +end diff --git a/generated/google/apis/pubsub_v1/representations.rb b/generated/google/apis/pubsub_v1/representations.rb new file mode 100644 index 000000000..1a88b279c --- /dev/null +++ b/generated/google/apis/pubsub_v1/representations.rb @@ -0,0 +1,281 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module PubsubV1 + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Topic + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PublishRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Message + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PublishResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListTopicsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListTopicSubscriptionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Subscription + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PushConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListSubscriptionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ModifyAckDeadlineRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AcknowledgeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PullRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PullResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ReceivedMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ModifyPushConfigRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation + + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :role, as: 'role' + collection :members, as: 'members' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class Topic + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + + class PublishRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation + + end + end + + class Message + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, :base64 => true, as: 'data' + hash :attributes, as: 'attributes' + property :message_id, as: 'messageId' + property :publish_time, as: 'publishTime' + end + end + + class PublishResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :message_ids, as: 'messageIds' + end + end + + class ListTopicsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListTopicSubscriptionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :subscriptions, as: 'subscriptions' + property :next_page_token, as: 'nextPageToken' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Subscription + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :topic, as: 'topic' + property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation + + property :ack_deadline_seconds, as: 'ackDeadlineSeconds' + end + end + + class PushConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :push_endpoint, as: 'pushEndpoint' + hash :attributes, as: 'attributes' + end + end + + class ListSubscriptionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ModifyAckDeadlineRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ack_ids, as: 'ackIds' + property :ack_deadline_seconds, as: 'ackDeadlineSeconds' + end + end + + class AcknowledgeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ack_ids, as: 'ackIds' + end + end + + class PullRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :return_immediately, as: 'returnImmediately' + property :max_messages, as: 'maxMessages' + end + end + + class PullResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation + + end + end + + class ReceivedMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ack_id, as: 'ackId' + property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation + + end + end + + class ModifyPushConfigRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation + + end + end + end + end +end diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb new file mode 100644 index 000000000..96bca2709 --- /dev/null +++ b/generated/google/apis/pubsub_v1/service.rb @@ -0,0 +1,774 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module PubsubV1 + # Google Cloud Pub/Sub API + # + # Provides reliable, many-to-many, asynchronous messaging between applications. + # + # @example + # require 'google/apis/pubsub_v1' + # + # Pubsub = Google::Apis::PubsubV1 # Alias the module + # service = Pubsub::PubsubService.new + # + # @see https://cloud.google.com/pubsub/docs + class PubsubService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://pubsub.googleapis.com/', '') + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective SetIamPolicy rpc. + # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a `resource`. Is empty if the policy or the + # resource does not exist. + # @param [String] resource + # REQUIRED: The resource for which policy is being requested. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective GetIamPolicy rpc. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] resource + # REQUIRED: The resource for which policy detail is being requested. `resource` + # is usually specified as a path, such as, `projects/`project`/zones/`zone`/ + # disks/`disk``. The format for the path specified in this value is resource + # specific and is specified in the documentation for the respective + # TestIamPermissions rpc. + # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates the given topic with the given name. + # @param [String] name + # The name of the topic. It must have the format `"projects/`project`/topics/` + # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za- + # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), + # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 + # characters in length, and it must not start with `"goog"`. + # @param [Google::Apis::PubsubV1::Topic] topic_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Topic] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::PubsubV1::Topic::Representation + command.request_object = topic_object + command.response_representation = Google::Apis::PubsubV1::Topic::Representation + command.response_class = Google::Apis::PubsubV1::Topic + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does + # not exist. The message payload must not be empty; it must contain either a non- + # empty data field, or at least one attribute. + # @param [String] topic + # The messages in the request will be published on this topic. + # @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::PublishResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+topic}:publish', options) + command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation + command.request_object = publish_request_object + command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation + command.response_class = Google::Apis::PubsubV1::PublishResponse + command.params['topic'] = topic unless topic.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the configuration of a topic. + # @param [String] topic + # The name of the topic to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Topic] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+topic}', options) + command.response_representation = Google::Apis::PubsubV1::Topic::Representation + command.response_class = Google::Apis::PubsubV1::Topic + command.params['topic'] = topic unless topic.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists matching topics. + # @param [String] project + # The name of the cloud project that topics belong to. + # @param [Fixnum] page_size + # Maximum number of topics to return. + # @param [String] page_token + # The value returned by the last `ListTopicsResponse`; indicates that this is a + # continuation of a prior `ListTopics` call, and that the system should return + # the next page of data. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::ListTopicsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::ListTopicsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_topics(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+project}/topics', options) + command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation + command.response_class = Google::Apis::PubsubV1::ListTopicsResponse + command.params['project'] = project unless project.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does + # not exist. After a topic is deleted, a new topic may be created with the same + # name; this is an entirely new topic with none of the old configuration or + # subscriptions. Existing subscriptions to this topic are not deleted, but their + # `topic` field is set to `_deleted-topic_`. + # @param [String] topic + # Name of the topic to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+topic}', options) + command.response_representation = Google::Apis::PubsubV1::Empty::Representation + command.response_class = Google::Apis::PubsubV1::Empty + command.params['topic'] = topic unless topic.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the name of the subscriptions for this topic. + # @param [String] topic + # The name of the topic that subscriptions are attached to. + # @param [Fixnum] page_size + # Maximum number of subscription names to return. + # @param [String] page_token + # The value returned by the last `ListTopicSubscriptionsResponse`; indicates + # that this is a continuation of a prior `ListTopicSubscriptions` call, and that + # the system should return the next page of data. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_topic_subscriptions(topic, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options) + command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation + command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse + command.params['topic'] = topic unless topic.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which policy is being specified. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective SetIamPolicy rpc. + # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a `resource`. Is empty if the policy or the + # resource does not exist. + # @param [String] resource + # REQUIRED: The resource for which policy is being requested. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective GetIamPolicy rpc. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::PubsubV1::Policy::Representation + command.response_class = Google::Apis::PubsubV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] resource + # REQUIRED: The resource for which policy detail is being requested. `resource` + # is usually specified as a path, such as, `projects/`project`/zones/`zone`/ + # disks/`disk``. The format for the path specified in this value is resource + # specific and is specified in the documentation for the respective + # TestIamPermissions rpc. + # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a subscription to a given topic for a given subscriber. If the + # subscription already exists, returns `ALREADY_EXISTS`. If the corresponding + # topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the + # request, the server will assign a random name for this subscription on the + # same project as the topic. + # @param [String] name + # The name of the subscription. It must have the format `"projects/`project`/ + # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and + # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`% + # `). It must be between 3 and 255 characters in length, and it must not start + # with `"goog"`. + # @param [Google::Apis::PubsubV1::Subscription] subscription_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Subscription] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::PubsubV1::Subscription::Representation + command.request_object = subscription_object + command.response_representation = Google::Apis::PubsubV1::Subscription::Representation + command.response_class = Google::Apis::PubsubV1::Subscription + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the configuration details of a subscription. + # @param [String] subscription + # The name of the subscription to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Subscription] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+subscription}', options) + command.response_representation = Google::Apis::PubsubV1::Subscription::Representation + command.response_class = Google::Apis::PubsubV1::Subscription + command.params['subscription'] = subscription unless subscription.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists matching subscriptions. + # @param [String] project + # The name of the cloud project that subscriptions belong to. + # @param [Fixnum] page_size + # Maximum number of subscriptions to return. + # @param [String] page_token + # The value returned by the last `ListSubscriptionsResponse`; indicates that + # this is a continuation of a prior `ListSubscriptions` call, and that the + # system should return the next page of data. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::ListSubscriptionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+project}/subscriptions', options) + command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation + command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse + command.params['project'] = project unless project.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an existing subscription. All pending messages in the subscription are + # immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. + # After a subscription is deleted, a new one may be created with the same name, + # but the new one has no association with the old subscription, or its topic + # unless the same topic is specified. + # @param [String] subscription + # The subscription to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+subscription}', options) + command.response_representation = Google::Apis::PubsubV1::Empty::Representation + command.response_class = Google::Apis::PubsubV1::Empty + command.params['subscription'] = subscription unless subscription.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Modifies the ack deadline for a specific message. This method is useful to + # indicate that more time is needed to process a message by the subscriber, or + # to make the message available for redelivery if the processing was interrupted. + # @param [String] subscription + # The name of the subscription. + # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options) + command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation + command.request_object = modify_ack_deadline_request_object + command.response_representation = Google::Apis::PubsubV1::Empty::Representation + command.response_class = Google::Apis::PubsubV1::Empty + command.params['subscription'] = subscription unless subscription.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Acknowledges the messages associated with the `ack_ids` in the ` + # AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from + # the subscription. Acknowledging a message whose ack deadline has expired may + # succeed, but such a message may be redelivered later. Acknowledging a message + # more than once will not result in an error. + # @param [String] subscription + # The subscription whose message is being acknowledged. + # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options) + command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation + command.request_object = acknowledge_request_object + command.response_representation = Google::Apis::PubsubV1::Empty::Representation + command.response_class = Google::Apis::PubsubV1::Empty + command.params['subscription'] = subscription unless subscription.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Pulls messages from the server. Returns an empty list if there are no messages + # available in the backlog. The server may return `UNAVAILABLE` if there are too + # many concurrent pull requests pending for the given subscription. + # @param [String] subscription + # The subscription from which messages should be pulled. + # @param [Google::Apis::PubsubV1::PullRequest] pull_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::PullResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::PullResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+subscription}:pull', options) + command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation + command.request_object = pull_request_object + command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation + command.response_class = Google::Apis::PubsubV1::PullResponse + command.params['subscription'] = subscription unless subscription.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Modifies the `PushConfig` for a specified subscription. This may be used to + # change a push subscription to a pull one (signified by an empty `PushConfig`) + # or vice versa, or change the endpoint URL and other attributes of a push + # subscription. Messages will accumulate for delivery continuously through the + # call regardless of changes to the `PushConfig`. + # @param [String] subscription + # The name of the subscription. + # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options) + command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation + command.request_object = modify_push_config_request_object + command.response_representation = Google::Apis::PubsubV1::Empty::Representation + command.response_class = Google::Apis::PubsubV1::Empty + command.params['subscription'] = subscription unless subscription.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index b3174ec49..d0f382551 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20150427' + REVISION = '20151103' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index 0b3d28cde..bdef3bade 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -26,20 +26,16 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # # Overview The `Policy` defines an access control policy language. It is used - # to define policies that are attached to resources like files, folders, VMs, - # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` - # binds a set of members to a role, where the members include user accounts, - # user groups, user domains, and service accounts. A 'role' is a named set of - # permissions, defined by IAM. The definition of a role is outside the policy. A - # permission check first determines the roles that include the specified - # permission, and then determines if the principal specified is a member of a - # binding to at least one of these roles. The membership check is recursive when - # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " - # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", - # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. - # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` - # `` + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). # Corresponds to the JSON property `policy` # @return [Google::Apis::PubsubV1beta2::Policy] attr_accessor :policy @@ -54,40 +50,31 @@ module Google end end - # # Overview The `Policy` defines an access control policy language. It is used - # to define policies that are attached to resources like files, folders, VMs, - # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` - # binds a set of members to a role, where the members include user accounts, - # user groups, user domains, and service accounts. A 'role' is a named set of - # permissions, defined by IAM. The definition of a role is outside the policy. A - # permission check first determines the roles that include the specified - # permission, and then determines if the principal specified is a member of a - # binding to at least one of these roles. The membership check is recursive when - # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " - # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", - # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. - # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` - # `` + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). class Policy include Google::Apis::Core::Hashable - # The policy language version. The version of the policy is represented by the - # etag. The default version is 0. + # Version of the `Policy`. The default version is 0. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version - # It is an error to specify multiple bindings for the same role. It is an error - # to specify a binding with no members. + # Associates a list of `members` to a `role`. Multiple `bindings` must not be + # specified for the same `role`. `bindings` with no members will result in an + # error. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - # Can be used to perform a read-modify-write. # Corresponds to the JSON property `etag` # @return [String] @@ -101,29 +88,32 @@ module Google def update!(**args) @version = args[:version] unless args[:version].nil? @bindings = args[:bindings] unless args[:bindings].nil? - @rules = args[:rules] unless args[:rules].nil? @etag = args[:etag] unless args[:etag].nil? end end - # Associates members with roles. See below for allowed formats of members. + # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable - # The name of the role to which the members should be bound. Examples: "roles/ - # viewer", "roles/editor", "roles/owner". Required + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role - # Format of member entries: 1. allUsers Matches any requesting principal (users, - # service accounts or anonymous). 2. allAuthenticatedUsers Matches any - # requesting authenticated principal (users or service accounts). 3. user:` - # emailid` A google user account using an email address. For example alice@gmail. - # com, joe@example.com 4. serviceAccount:`emailid` An service account email. 5. - # group:`emailid` A google group with an email address. For example auth-ti- - # cloud@google.com 6. domain:`domain` A Google Apps domain name. For example - # google.com, example.com + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following formats: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:` + # emailid``: An email address that represents a service account. For example, ` + # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email + # address that represents a Google group. For example, `admins@example.com`. * ` + # domain:`domain``: A Google Apps domain name that represents all the users of + # that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -139,214 +129,11 @@ module Google end end - # A rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value - # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. - # *') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries. - # Corresponds to the JSON property `in` - # @return [Array] - attr_accessor :in - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of - # entries. The formation for in and not_in entries is the same as members in a - # Binding above. - # Corresponds to the JSON property `notIn` - # @return [Array] - attr_accessor :not_in - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfig` - # @return [Array] - attr_accessor :log_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] unless args[:description].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @action = args[:action] unless args[:action].nil? - @in = args[:in] unless args[:in].nil? - @not_in = args[:not_in] unless args[:not_in].nil? - @conditions = args[:conditions] unless args[:conditions].nil? - @log_config = args[:log_config] unless args[:log_config].nil? - end - end - - # A condition to be met. - class Condition - include Google::Apis::Core::Hashable - - # Trusted attributes supplied by the IAM system. - # Corresponds to the JSON property `iam` - # @return [String] - attr_accessor :iam - - # Trusted attributes supplied by any service that owns resources and uses the - # IAM system for access control. - # Corresponds to the JSON property `sys` - # @return [String] - attr_accessor :sys - - # Trusted attributes discharged by the service. - # Corresponds to the JSON property `svc` - # @return [String] - attr_accessor :svc - - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - - # The object of the condition. Exactly one of these must be set. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @iam = args[:iam] unless args[:iam].nil? - @sys = args[:sys] unless args[:sys].nil? - @svc = args[:svc] unless args[:svc].nil? - @op = args[:op] unless args[:op].nil? - @value = args[:value] unless args[:value].nil? - @values = args[:values] unless args[:values].nil? - end - end - - # Specifies what kind of log the caller must write Increment a streamz counter - # with the specified metric and field names. Metric names should start with a '/' - # , generally be lowercase-only, and end in "_count". Field names should not - # contain an initial slash. The actual exported metric names will have "/iam/ - # policy" prepended. Field names correspond to IAM request parameters and field - # values are their respective values. At present only "iam_principal", - # corresponding to IAMContext.principal, is supported. Examples: counter ` - # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter / - # iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext. - # principal]` At this time we do not support: * multiple field names (though - # this may be supported in the future) * decrementing the counter * incrementing - # it by anything other than 1 - class LogConfig - include Google::Apis::Core::Hashable - - # Options for counters - # Corresponds to the JSON property `counter` - # @return [Google::Apis::PubsubV1beta2::CounterOptions] - attr_accessor :counter - - # Write a Data Access (Gin) log - # Corresponds to the JSON property `dataAccess` - # @return [Google::Apis::PubsubV1beta2::DataAccessOptions] - attr_accessor :data_access - - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::PubsubV1beta2::CloudAuditOptions] - attr_accessor :cloud_audit - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @counter = args[:counter] unless args[:counter].nil? - @data_access = args[:data_access] unless args[:data_access].nil? - @cloud_audit = args[:cloud_audit] unless args[:cloud_audit].nil? - end - end - - # Options for counters - class CounterOptions - include Google::Apis::Core::Hashable - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @metric = args[:metric] unless args[:metric].nil? - @field = args[:field] unless args[:field].nil? - end - end - - # Write a Data Access (Gin) log - class DataAccessOptions - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Write a Cloud Audit log - class CloudAuditOptions - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # Request message for `TestIamPermissions` method. class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the 'resource'. Permissions with wildcards + # The set of permissions to check for the `resource`. Permissions with wildcards # (such as '*' or 'storage.*') are not allowed. # Corresponds to the JSON property `permissions` # @return [Array] @@ -439,14 +226,21 @@ module Google # @return [Hash] attr_accessor :attributes - # ID of this message assigned by the server at publication time. Guaranteed to - # be unique within the topic. This value may be read by a subscriber that - # receives a PubsubMessage via a Pull call or a push delivery. It must not be - # populated by a publisher in a Publish call. + # ID of this message, assigned by the server when the message is published. + # Guaranteed to be unique within the topic. This value may be read by a + # subscriber that receives a `PubsubMessage` via a `Pull` call or a push + # delivery. It must not be populated by the publisher in a `Publish` call. # Corresponds to the JSON property `messageId` # @return [String] attr_accessor :message_id + # The time at which the message was published, populated by the server when it + # receives the `Publish` call. It must not be populated by the publisher in a ` + # Publish` call. + # Corresponds to the JSON property `publishTime` + # @return [String] + attr_accessor :publish_time + def initialize(**args) update!(**args) end @@ -456,10 +250,11 @@ module Google @data = args[:data] unless args[:data].nil? @attributes = args[:attributes] unless args[:attributes].nil? @message_id = args[:message_id] unless args[:message_id].nil? + @publish_time = args[:publish_time] unless args[:publish_time].nil? end end - # Response for the Publish method. + # Response for the `Publish` method. class PublishResponse include Google::Apis::Core::Hashable @@ -479,7 +274,7 @@ module Google end end - # Response for the ListTopics method. + # Response for the `ListTopics` method. class ListTopicsResponse include Google::Apis::Core::Hashable @@ -489,7 +284,7 @@ module Google attr_accessor :topics # If not empty, indicates that there may be more topics that match the request; - # this value should be passed in a new ListTopicsRequest. + # this value should be passed in a new `ListTopicsRequest`. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -505,7 +300,7 @@ module Google end end - # Response for the ListTopicSubscriptions method. + # Response for the `ListTopicSubscriptions` method. class ListTopicSubscriptionsResponse include Google::Apis::Core::Hashable @@ -515,8 +310,8 @@ module Google attr_accessor :subscriptions # If not empty, indicates that there may be more subscriptions that match the - # request; this value should be passed in a new ListTopicSubscriptionsRequest to - # get more subscriptions. + # request; this value should be passed in a new `ListTopicSubscriptionsRequest` + # to get more subscriptions. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -579,12 +374,12 @@ module Google # before the ack deadline expires and before the message is acknowledged, it is # an outstanding message and will not be delivered again during that time (on a # best-effort basis). For pull delivery this value is used as the initial value - # for the ack deadline. To override this value for a given message, call - # ModifyAckDeadline with the corresponding ack_id. For push delivery, this value - # is also used to set the request timeout for the call to the push endpoint. If - # the subscriber never acknowledges the message, the Pub/Sub system will - # eventually redeliver the message. If this parameter is not set, the default - # value of 10 seconds is used. + # for the ack deadline. To override this value for a given message, call ` + # ModifyAckDeadline` with the corresponding `ack_id`. For push delivery, this + # value is also used to set the request timeout for the call to the push + # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system + # will eventually redeliver the message. If this parameter is not set, the + # default value of 10 seconds is used. # Corresponds to the JSON property `ackDeadlineSeconds` # @return [Fixnum] attr_accessor :ack_deadline_seconds @@ -618,10 +413,10 @@ module Google # use to change the format of the push message. This attribute indicates the # version of the data expected by the endpoint. This controls the shape of the # envelope (i.e. its fields and metadata). The endpoint version is based on the - # version of the Pub/Sub API. If not present during the CreateSubscription call, - # it will default to the version of the API used to make such call. If not - # present during a ModifyPushConfig call, its value will not be changed. - # GetSubscription calls will always return a valid version, even if the + # version of the Pub/Sub API. If not present during the `CreateSubscription` + # call, it will default to the version of the API used to make such call. If not + # present during a `ModifyPushConfig` call, its value will not be changed. ` + # GetSubscription` calls will always return a valid version, even if the # subscription was created without this attribute. The possible values for this # attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/ # Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub @@ -641,7 +436,7 @@ module Google end end - # Response for the ListSubscriptions method. + # Response for the `ListSubscriptions` method. class ListSubscriptionsResponse include Google::Apis::Core::Hashable @@ -651,8 +446,8 @@ module Google attr_accessor :subscriptions # If not empty, indicates that there may be more subscriptions that match the - # request; this value should be passed in a new ListSubscriptionsRequest to get - # more subscriptions. + # request; this value should be passed in a new `ListSubscriptionsRequest` to + # get more subscriptions. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -684,7 +479,7 @@ module Google # The new ack deadline with respect to the time this request was sent to the Pub/ # Sub system. Must be >= 0. For example, if the value is 10, the new ack - # deadline will expire 10 seconds after the ModifyAckDeadline call was made. + # deadline will expire 10 seconds after the `ModifyAckDeadline` call was made. # Specifying zero may immediately make the message available for another pull # request. # Corresponds to the JSON property `ackDeadlineSeconds` @@ -708,7 +503,7 @@ module Google include Google::Apis::Core::Hashable # The acknowledgment ID for the messages being acknowledged that was returned by - # the Pub/Sub system in the Pull response. Must not be empty. + # the Pub/Sub system in the `Pull` response. Must not be empty. # Corresponds to the JSON property `ackIds` # @return [Array] attr_accessor :ack_ids @@ -723,12 +518,12 @@ module Google end end - # Request for the Pull method. + # Request for the `Pull` method. class PullRequest include Google::Apis::Core::Hashable # If this is specified as true the system will respond immediately even if it is - # not able to return a message in the Pull response. Otherwise the system is + # not able to return a message in the `Pull` response. Otherwise the system is # allowed to wait until at least one message is available rather than returning # no messages. The client may cancel the request if it does not wish to wait any # longer for the response. @@ -754,14 +549,14 @@ module Google end end - # Response for the Pull method. + # Response for the `Pull` method. class PullResponse include Google::Apis::Core::Hashable # Received Pub/Sub messages. The Pub/Sub system will return zero messages if # there are no more available in the backlog. The Pub/Sub system may return - # fewer than the maxMessages requested even if there are more messages available - # in the backlog. + # fewer than the `maxMessages` requested even if there are more messages + # available in the backlog. # Corresponds to the JSON property `receivedMessages` # @return [Array] attr_accessor :received_messages diff --git a/generated/google/apis/pubsub_v1beta2/representations.rb b/generated/google/apis/pubsub_v1beta2/representations.rb index 4e3a26e85..5a21b698e 100644 --- a/generated/google/apis/pubsub_v1beta2/representations.rb +++ b/generated/google/apis/pubsub_v1beta2/representations.rb @@ -34,30 +34,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end - class Rule - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class Condition - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class LogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class CounterOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class DataAccessOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class CloudAuditOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - end - class TestIamPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -144,8 +120,6 @@ module Google property :version, as: 'version' collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1beta2::Binding, decorator: Google::Apis::PubsubV1beta2::Binding::Representation - collection :rules, as: 'rules', class: Google::Apis::PubsubV1beta2::Rule, decorator: Google::Apis::PubsubV1beta2::Rule::Representation - property :etag, :base64 => true, as: 'etag' end end @@ -158,65 +132,6 @@ module Google end end - class Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - collection :permissions, as: 'permissions' - property :action, as: 'action' - collection :in, as: 'in' - collection :not_in, as: 'notIn' - collection :conditions, as: 'conditions', class: Google::Apis::PubsubV1beta2::Condition, decorator: Google::Apis::PubsubV1beta2::Condition::Representation - - collection :log_config, as: 'logConfig', class: Google::Apis::PubsubV1beta2::LogConfig, decorator: Google::Apis::PubsubV1beta2::LogConfig::Representation - - end - end - - class Condition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :iam, as: 'iam' - property :sys, as: 'sys' - property :svc, as: 'svc' - property :op, as: 'op' - property :value, as: 'value' - collection :values, as: 'values' - end - end - - class LogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :counter, as: 'counter', class: Google::Apis::PubsubV1beta2::CounterOptions, decorator: Google::Apis::PubsubV1beta2::CounterOptions::Representation - - property :data_access, as: 'dataAccess', class: Google::Apis::PubsubV1beta2::DataAccessOptions, decorator: Google::Apis::PubsubV1beta2::DataAccessOptions::Representation - - property :cloud_audit, as: 'cloudAudit', class: Google::Apis::PubsubV1beta2::CloudAuditOptions, decorator: Google::Apis::PubsubV1beta2::CloudAuditOptions::Representation - - end - end - - class CounterOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :metric, as: 'metric' - property :field, as: 'field' - end - end - - class DataAccessOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class CloudAuditOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class TestIamPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -252,6 +167,7 @@ module Google property :data, :base64 => true, as: 'data' hash :attributes, as: 'attributes' property :message_id, as: 'messageId' + property :publish_time, as: 'publishTime' end end diff --git a/generated/google/apis/pubsub_v1beta2/service.rb b/generated/google/apis/pubsub_v1beta2/service.rb index a5f81eef9..b55e30c3a 100644 --- a/generated/google/apis/pubsub_v1beta2/service.rb +++ b/generated/google/apis/pubsub_v1beta2/service.rb @@ -49,9 +49,10 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource - # REQUIRED: The resource for which policy is being specified. Resource is - # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/` - # disk`. + # REQUIRED: The resource for which policy is being specified. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective SetIamPolicy rpc. # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -71,8 +72,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_topic_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+resource}:setIamPolicy' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options) command.request_representation = Google::Apis::PubsubV1beta2::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation @@ -83,11 +83,13 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. Is empty if the policy or the + # Gets the access control policy for a `resource`. Is empty if the policy or the # resource does not exist. # @param [String] resource - # REQUIRED: The resource for which policy is being requested. Resource is - # usually specified as a path, such as, projects/`project`. + # REQUIRED: The resource for which policy is being requested. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective GetIamPolicy rpc. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -106,8 +108,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_iam_policy_project_topic(resource, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+resource}:getIamPolicy' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation command.response_class = Google::Apis::PubsubV1beta2::Policy command.params['resource'] = resource unless resource.nil? @@ -118,8 +119,11 @@ module Google # Returns permissions that a caller has on the specified resource. # @param [String] resource - # REQUIRED: The resource for which policy detail is being requested. Resource is - # usually specified as a path, such as, projects/`project`. + # REQUIRED: The resource for which policy detail is being requested. `resource` + # is usually specified as a path, such as, `projects/`project`/zones/`zone`/ + # disks/`disk``. The format for the path specified in this value is resource + # specific and is specified in the documentation for the respective + # TestIamPermissions rpc. # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -139,8 +143,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_topic_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+resource}:testIamPermissions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse::Representation @@ -177,8 +180,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+name}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'v1beta2/{+name}', options) command.request_representation = Google::Apis::PubsubV1beta2::Topic::Representation command.request_object = topic_object command.response_representation = Google::Apis::PubsubV1beta2::Topic::Representation @@ -189,7 +191,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds one or more messages to the topic. Returns NOT_FOUND if the topic does + # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does # not exist. The message payload must not be empty; it must contain either a non- # empty data field, or at least one attribute. # @param [String] topic @@ -212,9 +214,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def publish(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+topic}:publish' - command = make_simple_command(:post, path, options) + def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+topic}:publish', options) command.request_representation = Google::Apis::PubsubV1beta2::PublishRequest::Representation command.request_object = publish_request_object command.response_representation = Google::Apis::PubsubV1beta2::PublishResponse::Representation @@ -246,8 +247,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+topic}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta2/{+topic}', options) command.response_representation = Google::Apis::PubsubV1beta2::Topic::Representation command.response_class = Google::Apis::PubsubV1beta2::Topic command.params['topic'] = topic unless topic.nil? @@ -262,9 +262,9 @@ module Google # @param [Fixnum] page_size # Maximum number of topics to return. # @param [String] page_token - # The value returned by the last ListTopicsResponse; indicates that this is a - # continuation of a prior ListTopics call, and that the system should return the - # next page of data. + # The value returned by the last `ListTopicsResponse`; indicates that this is a + # continuation of a prior `ListTopics` call, and that the system should return + # the next page of data. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -283,8 +283,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_topics(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+project}/topics' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta2/{+project}/topics', options) command.response_representation = Google::Apis::PubsubV1beta2::ListTopicsResponse::Representation command.response_class = Google::Apis::PubsubV1beta2::ListTopicsResponse command.params['project'] = project unless project.nil? @@ -295,9 +294,9 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the topic with the given name. Returns NOT_FOUND if the topic does not - # exist. After a topic is deleted, a new topic may be created with the same name; - # this is an entirely new topic with none of the old configuration or + # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does + # not exist. After a topic is deleted, a new topic may be created with the same + # name; this is an entirely new topic with none of the old configuration or # subscriptions. Existing subscriptions to this topic are not deleted, but their # `topic` field is set to `_deleted-topic_`. # @param [String] topic @@ -320,8 +319,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+topic}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1beta2/{+topic}', options) command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation command.response_class = Google::Apis::PubsubV1beta2::Empty command.params['topic'] = topic unless topic.nil? @@ -336,9 +334,9 @@ module Google # @param [Fixnum] page_size # Maximum number of subscription names to return. # @param [String] page_token - # The value returned by the last ListTopicSubscriptionsResponse; indicates that - # this is a continuation of a prior ListTopicSubscriptions call, and that the - # system should return the next page of data. + # The value returned by the last `ListTopicSubscriptionsResponse`; indicates + # that this is a continuation of a prior `ListTopicSubscriptions` call, and that + # the system should return the next page of data. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -357,8 +355,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_topic_subscriptions(topic, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+topic}/subscriptions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta2/{+topic}/subscriptions', options) command.response_representation = Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse::Representation command.response_class = Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse command.params['topic'] = topic unless topic.nil? @@ -372,9 +369,10 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource - # REQUIRED: The resource for which policy is being specified. Resource is - # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/` - # disk`. + # REQUIRED: The resource for which policy is being specified. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective SetIamPolicy rpc. # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -394,8 +392,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_subscription_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+resource}:setIamPolicy' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options) command.request_representation = Google::Apis::PubsubV1beta2::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation @@ -406,11 +403,13 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. Is empty if the policy or the + # Gets the access control policy for a `resource`. Is empty if the policy or the # resource does not exist. # @param [String] resource - # REQUIRED: The resource for which policy is being requested. Resource is - # usually specified as a path, such as, projects/`project`. + # REQUIRED: The resource for which policy is being requested. `resource` is + # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/` + # disk``. The format for the path specified in this value is resource specific + # and is specified in the documentation for the respective GetIamPolicy rpc. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -429,8 +428,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_iam_policy_project_subscription(resource, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+resource}:getIamPolicy' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation command.response_class = Google::Apis::PubsubV1beta2::Policy command.params['resource'] = resource unless resource.nil? @@ -441,8 +439,11 @@ module Google # Returns permissions that a caller has on the specified resource. # @param [String] resource - # REQUIRED: The resource for which policy detail is being requested. Resource is - # usually specified as a path, such as, projects/`project`. + # REQUIRED: The resource for which policy detail is being requested. `resource` + # is usually specified as a path, such as, `projects/`project`/zones/`zone`/ + # disks/`disk``. The format for the path specified in this value is resource + # specific and is specified in the documentation for the respective + # TestIamPermissions rpc. # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -462,8 +463,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_subscription_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+resource}:testIamPermissions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options) command.request_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsRequest::Representation command.request_object = test_iam_permissions_request_object command.response_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse::Representation @@ -475,8 +475,8 @@ module Google end # Creates a subscription to a given topic for a given subscriber. If the - # subscription already exists, returns ALREADY_EXISTS. If the corresponding - # topic doesn't exist, returns NOT_FOUND. If the name is not provided in the + # subscription already exists, returns `ALREADY_EXISTS`. If the corresponding + # topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the # request, the server will assign a random name for this subscription on the # same project as the topic. # @param [String] name @@ -505,8 +505,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+name}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'v1beta2/{+name}', options) command.request_representation = Google::Apis::PubsubV1beta2::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::PubsubV1beta2::Subscription::Representation @@ -538,8 +537,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+subscription}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta2/{+subscription}', options) command.response_representation = Google::Apis::PubsubV1beta2::Subscription::Representation command.response_class = Google::Apis::PubsubV1beta2::Subscription command.params['subscription'] = subscription unless subscription.nil? @@ -554,9 +552,9 @@ module Google # @param [Fixnum] page_size # Maximum number of subscriptions to return. # @param [String] page_token - # The value returned by the last ListSubscriptionsResponse; indicates that this - # is a continuation of a prior ListSubscriptions call, and that the system - # should return the next page of data. + # The value returned by the last `ListSubscriptionsResponse`; indicates that + # this is a continuation of a prior `ListSubscriptions` call, and that the + # system should return the next page of data. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -575,8 +573,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+project}/subscriptions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v1beta2/{+project}/subscriptions', options) command.response_representation = Google::Apis::PubsubV1beta2::ListSubscriptionsResponse::Representation command.response_class = Google::Apis::PubsubV1beta2::ListSubscriptionsResponse command.params['project'] = project unless project.nil? @@ -588,10 +585,10 @@ module Google end # Deletes an existing subscription. All pending messages in the subscription are - # immediately dropped. Calls to Pull after deletion will return NOT_FOUND. After - # a subscription is deleted, a new one may be created with the same name, but - # the new one has no association with the old subscription, or its topic unless - # the same topic is specified. + # immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. + # After a subscription is deleted, a new one may be created with the same name, + # but the new one has no association with the old subscription, or its topic + # unless the same topic is specified. # @param [String] subscription # The subscription to delete. # @param [String] fields @@ -612,8 +609,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+subscription}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'v1beta2/{+subscription}', options) command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation command.response_class = Google::Apis::PubsubV1beta2::Empty command.params['subscription'] = subscription unless subscription.nil? @@ -645,9 +641,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def modify_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+subscription}:modifyAckDeadline' - command = make_simple_command(:post, path, options) + def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+subscription}:modifyAckDeadline', options) command.request_representation = Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest::Representation command.request_object = modify_ack_deadline_request_object command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation @@ -658,8 +653,8 @@ module Google execute_or_queue_command(command, &block) end - # Acknowledges the messages associated with the ack tokens in the - # AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from + # Acknowledges the messages associated with the `ack_ids` in the ` + # AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from # the subscription. Acknowledging a message whose ack deadline has expired may # succeed, but such a message may be redelivered later. Acknowledging a message # more than once will not result in an error. @@ -683,9 +678,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def acknowledge(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+subscription}:acknowledge' - command = make_simple_command(:post, path, options) + def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+subscription}:acknowledge', options) command.request_representation = Google::Apis::PubsubV1beta2::AcknowledgeRequest::Representation command.request_object = acknowledge_request_object command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation @@ -697,7 +691,7 @@ module Google end # Pulls messages from the server. Returns an empty list if there are no messages - # available in the backlog. The server may return UNAVAILABLE if there are too + # available in the backlog. The server may return `UNAVAILABLE` if there are too # many concurrent pull requests pending for the given subscription. # @param [String] subscription # The subscription from which messages should be pulled. @@ -719,9 +713,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def pull(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+subscription}:pull' - command = make_simple_command(:post, path, options) + def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+subscription}:pull', options) command.request_representation = Google::Apis::PubsubV1beta2::PullRequest::Representation command.request_object = pull_request_object command.response_representation = Google::Apis::PubsubV1beta2::PullResponse::Representation @@ -732,11 +725,11 @@ module Google execute_or_queue_command(command, &block) end - # Modifies the PushConfig for a specified subscription. This may be used to - # change a push subscription to a pull one (signified by an empty PushConfig) or - # vice versa, or change the endpoint URL and other attributes of a push + # Modifies the `PushConfig` for a specified subscription. This may be used to + # change a push subscription to a pull one (signified by an empty `PushConfig`) + # or vice versa, or change the endpoint URL and other attributes of a push # subscription. Messages will accumulate for delivery continuously through the - # call regardless of changes to the PushConfig. + # call regardless of changes to the `PushConfig`. # @param [String] subscription # The name of the subscription. # @param [Google::Apis::PubsubV1beta2::ModifyPushConfigRequest] modify_push_config_request_object @@ -757,9 +750,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def modify_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - path = 'v1beta2/{+subscription}:modifyPushConfig' - command = make_simple_command(:post, path, options) + def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+subscription}:modifyPushConfig', options) command.request_representation = Google::Apis::PubsubV1beta2::ModifyPushConfigRequest::Representation command.request_object = modify_push_config_request_object command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation diff --git a/generated/google/apis/qpx_express_v1/service.rb b/generated/google/apis/qpx_express_v1/service.rb index 6da04902d..c0885533a 100644 --- a/generated/google/apis/qpx_express_v1/service.rb +++ b/generated/google/apis/qpx_express_v1/service.rb @@ -76,8 +76,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def search_trips(search_trips_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'search' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'search', options) command.request_representation = Google::Apis::QpxExpressV1::SearchTripsRequest::Representation command.request_object = search_trips_request_object command.response_representation = Google::Apis::QpxExpressV1::SearchTripsResponse::Representation diff --git a/generated/google/apis/replicapool_v1beta2.rb b/generated/google/apis/replicapool_v1beta2.rb index 3c5cf2be4..c03fc407d 100644 --- a/generated/google/apis/replicapool_v1beta2.rb +++ b/generated/google/apis/replicapool_v1beta2.rb @@ -31,6 +31,9 @@ module Google # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # View and manage your Google Compute Engine resources AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' diff --git a/generated/google/apis/replicapool_v1beta2/service.rb b/generated/google/apis/replicapool_v1beta2/service.rb index 05073018b..9457ffb0c 100644 --- a/generated/google/apis/replicapool_v1beta2/service.rb +++ b/generated/google/apis/replicapool_v1beta2/service.rb @@ -84,8 +84,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def abandon_instances(project, zone, instance_group_manager, abandon_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) command.request_representation = Google::Apis::ReplicapoolV1beta2::AbandonInstancesRequest::Representation command.request_object = abandon_instances_request_object command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation @@ -130,8 +129,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation command.response_class = Google::Apis::ReplicapoolV1beta2::Operation command.params['project'] = project unless project.nil? @@ -176,8 +174,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instances(project, zone, instance_group_manager, delete_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) command.request_representation = Google::Apis::ReplicapoolV1beta2::DeleteInstancesRequest::Representation command.request_object = delete_instances_request_object command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation @@ -220,8 +217,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation command.response_class = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager command.params['project'] = project unless project.nil? @@ -264,8 +260,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_group_manager(project, zone, size, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers', options) command.request_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation @@ -315,8 +310,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_managers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers', options) command.response_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList::Representation command.response_class = Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList command.params['project'] = project unless project.nil? @@ -361,8 +355,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def recreate_instances(project, zone, instance_group_manager, recreate_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) command.request_representation = Google::Apis::ReplicapoolV1beta2::RecreateInstancesRequest::Representation command.request_object = recreate_instances_request_object command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation @@ -409,8 +402,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_instance(project, zone, instance_group_manager, size, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options) command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation command.response_class = Google::Apis::ReplicapoolV1beta2::Operation command.params['project'] = project unless project.nil? @@ -454,8 +446,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_instance_template(project, zone, instance_group_manager, set_instance_template_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) command.request_representation = Google::Apis::ReplicapoolV1beta2::SetInstanceTemplateRequest::Representation command.request_object = set_instance_template_request_object command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation @@ -500,8 +491,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_pools(project, zone, instance_group_manager, set_target_pools_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) command.request_representation = Google::Apis::ReplicapoolV1beta2::SetTargetPoolsRequest::Representation command.request_object = set_target_pools_request_object command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation @@ -544,8 +534,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options) command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation command.response_class = Google::Apis::ReplicapoolV1beta2::Operation command.params['project'] = project unless project.nil? @@ -592,8 +581,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations', options) command.response_representation = Google::Apis::ReplicapoolV1beta2::OperationList::Representation command.response_class = Google::Apis::ReplicapoolV1beta2::OperationList command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/replicapoolupdater_v1beta1.rb b/generated/google/apis/replicapoolupdater_v1beta1.rb index ecb83eb05..ecb520fec 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1.rb @@ -26,11 +26,14 @@ module Google # @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service module ReplicapoolupdaterV1beta1 VERSION = 'V1beta1' - REVISION = '20150722' + REVISION = '20150904' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # View and manage replica pools AUTH_REPLICAPOOL = 'https://www.googleapis.com/auth/replicapool' diff --git a/generated/google/apis/replicapoolupdater_v1beta1/classes.rb b/generated/google/apis/replicapoolupdater_v1beta1/classes.rb index 64c50520a..c232e8cd8 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/classes.rb @@ -197,8 +197,8 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always kind#operation for Operation - # resources. + # [Output Only] Type of the resource. Always replicapoolupdater#operation for + # Operation resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -411,6 +411,50 @@ module Google end end + # Contains a list of Operation resources. + class OperationList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] The Operation resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always replicapoolupdater#operations for + # Operations resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] A token used to continue a truncate. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @items = args[:items] unless args[:items].nil? + @kind = args[:kind] unless args[:kind].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @self_link = args[:self_link] unless args[:self_link].nil? + end + end + # The following represents a resource describing a single update (rollout) of a # group of instances to the given template. class RollingUpdate diff --git a/generated/google/apis/replicapoolupdater_v1beta1/representations.rb b/generated/google/apis/replicapoolupdater_v1beta1/representations.rb index 642e0cb5c..d6adb2a43 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/representations.rb @@ -58,6 +58,10 @@ module Google end end + class OperationList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class RollingUpdate class Representation < Google::Apis::Core::JsonRepresentation; end @@ -181,6 +185,18 @@ module Google end end + class OperationList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + class RollingUpdate # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/replicapoolupdater_v1beta1/service.rb b/generated/google/apis/replicapoolupdater_v1beta1/service.rb index 140aad72d..fb79cd1c4 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/service.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/service.rb @@ -83,8 +83,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def cancel_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation command.params['project'] = project unless project.nil? @@ -125,8 +124,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate command.params['project'] = project unless project.nil? @@ -166,8 +164,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_rolling_update(project, zone, rolling_update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates', options) command.request_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation command.request_object = rolling_update_object command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation @@ -216,8 +213,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_rolling_updates(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList command.params['project'] = project unless project.nil? @@ -268,8 +264,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_updates(project, zone, rolling_update, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList command.params['project'] = project unless project.nil? @@ -314,8 +309,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def pause_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation command.params['project'] = project unless project.nil? @@ -357,8 +351,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resume_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation command.params['project'] = project unless project.nil? @@ -400,8 +393,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def rollback_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation command.params['project'] = project unless project.nil? @@ -442,8 +434,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation command.params['project'] = project unless project.nil? @@ -454,6 +445,55 @@ module Google command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end + + # Retrieves the list of Operation resources contained within the specified zone. + # @param [String] project + # Name of the project scoping this request. + # @param [String] zone + # Name of the zone scoping this request. + # @param [String] filter + # Optional. Filter expression for filtering listed resources. + # @param [Fixnum] max_results + # Optional. Maximum count of results to be returned. Maximum value is 500 and + # default value is 500. + # @param [String] page_token + # Optional. Tag returned by a previous list request truncated by maxResults. + # Used to continue a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::OperationList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ReplicapoolupdaterV1beta1::OperationList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/operations', options) + command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::OperationList::Representation + command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::OperationList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/reseller_v1.rb b/generated/google/apis/reseller_v1.rb index 4be02d8f2..7de905bd2 100644 --- a/generated/google/apis/reseller_v1.rb +++ b/generated/google/apis/reseller_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/reseller/ module ResellerV1 VERSION = 'V1' - REVISION = '20150603' + REVISION = '20151110' # Manage users on your domain AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order' diff --git a/generated/google/apis/reseller_v1/classes.rb b/generated/google/apis/reseller_v1/classes.rb index cb00b61cb..dea3fccac 100644 --- a/generated/google/apis/reseller_v1/classes.rb +++ b/generated/google/apis/reseller_v1/classes.rb @@ -149,6 +149,12 @@ module Google # @return [String] attr_accessor :customer_domain + # Whether the customer's primary domain has been verified. + # Corresponds to the JSON property `customerDomainVerified` + # @return [Boolean] + attr_accessor :customer_domain_verified + alias_method :customer_domain_verified?, :customer_domain_verified + # The id of the customer. # Corresponds to the JSON property `customerId` # @return [String] @@ -182,6 +188,7 @@ module Google def update!(**args) @alternate_email = args[:alternate_email] unless args[:alternate_email].nil? @customer_domain = args[:customer_domain] unless args[:customer_domain].nil? + @customer_domain_verified = args[:customer_domain_verified] unless args[:customer_domain_verified].nil? @customer_id = args[:customer_id] unless args[:customer_id].nil? @kind = args[:kind] unless args[:kind].nil? @phone_number = args[:phone_number] unless args[:phone_number].nil? @@ -319,7 +326,18 @@ module Google # @return [String] attr_accessor :subscription_id - # Suspension Reasons + # field listing all current reasons the subscription is suspended. It is + # possible for a subscription to have multiple suspension reasons. A + # subscription's status is SUSPENDED until all pending suspensions are removed. + # Possible options include: + # - PENDING_TOS_ACCEPTANCE — The customer has not logged in and accepted the + # Google Apps Resold Terms of Services. + # - RENEWAL_WITH_TYPE_CANCEL — The customer's commitment ended and their service + # was cancelled at the end of their term. + # - RESELLER_INITIATED — A manual suspension invoked by a Reseller. + # - TRIAL_ENDED — The customer's trial expired without a plan selected. + # - OTHER — The customer is suspended for an internal Google reason (e.g. abuse + # or otherwise). # Corresponds to the JSON property `suspensionReasons` # @return [Array] attr_accessor :suspension_reasons diff --git a/generated/google/apis/reseller_v1/representations.rb b/generated/google/apis/reseller_v1/representations.rb index bcbab686a..c93d62527 100644 --- a/generated/google/apis/reseller_v1/representations.rb +++ b/generated/google/apis/reseller_v1/representations.rb @@ -98,6 +98,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :alternate_email, as: 'alternateEmail' property :customer_domain, as: 'customerDomain' + property :customer_domain_verified, as: 'customerDomainVerified' property :customer_id, as: 'customerId' property :kind, as: 'kind' property :phone_number, as: 'phoneNumber' diff --git a/generated/google/apis/reseller_v1/service.rb b/generated/google/apis/reseller_v1/service.rb index 7666901c1..25d4d025a 100644 --- a/generated/google/apis/reseller_v1/service.rb +++ b/generated/google/apis/reseller_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_customer(customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customers/{customerId}', options) command.response_representation = Google::Apis::ResellerV1::Customer::Representation command.response_class = Google::Apis::ResellerV1::Customer command.params['customerId'] = customer_id unless customer_id.nil? @@ -115,8 +114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_customer(customer_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customers', options) command.request_representation = Google::Apis::ResellerV1::Customer::Representation command.request_object = customer_object command.response_representation = Google::Apis::ResellerV1::Customer::Representation @@ -155,8 +153,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'customers/{customerId}', options) command.request_representation = Google::Apis::ResellerV1::Customer::Representation command.request_object = customer_object command.response_representation = Google::Apis::ResellerV1::Customer::Representation @@ -194,8 +191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_customer(customer_id, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'customers/{customerId}', options) command.request_representation = Google::Apis::ResellerV1::Customer::Representation command.request_object = customer_object command.response_representation = Google::Apis::ResellerV1::Customer::Representation @@ -234,8 +230,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def activate_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}/activate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/activate', options) command.response_representation = Google::Apis::ResellerV1::Subscription::Representation command.response_class = Google::Apis::ResellerV1::Subscription command.params['customerId'] = customer_id unless customer_id.nil? @@ -273,9 +268,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def change_plan(customer_id, subscription_id, change_plan_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan' - command = make_simple_command(:post, path, options) + def change_subscription_plan(customer_id, subscription_id, change_plan_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan', options) command.request_representation = Google::Apis::ResellerV1::ChangePlanRequest::Representation command.request_object = change_plan_request_object command.response_representation = Google::Apis::ResellerV1::Subscription::Representation @@ -316,8 +310,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def change_subscription_renewal_settings(customer_id, subscription_id, renewal_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings', options) command.request_representation = Google::Apis::ResellerV1::RenewalSettings::Representation command.request_object = renewal_settings_object command.response_representation = Google::Apis::ResellerV1::Subscription::Representation @@ -358,8 +351,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def change_subscription_seats(customer_id, subscription_id, seats_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats', options) command.request_representation = Google::Apis::ResellerV1::Seats::Representation command.request_object = seats_object command.response_representation = Google::Apis::ResellerV1::Subscription::Representation @@ -401,8 +393,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_subscription(customer_id, subscription_id, deletion_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'customers/{customerId}/subscriptions/{subscriptionId}', options) command.params['customerId'] = customer_id unless customer_id.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.query['deletionType'] = deletion_type unless deletion_type.nil? @@ -439,8 +430,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'customers/{customerId}/subscriptions/{subscriptionId}', options) command.response_representation = Google::Apis::ResellerV1::Subscription::Representation command.response_class = Google::Apis::ResellerV1::Subscription command.params['customerId'] = customer_id unless customer_id.nil? @@ -480,8 +470,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_subscription(customer_id, subscription_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customers/{customerId}/subscriptions', options) command.request_representation = Google::Apis::ResellerV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::ResellerV1::Subscription::Representation @@ -531,8 +520,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subscriptions(customer_auth_token: nil, customer_id: nil, customer_name_prefix: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'subscriptions', options) command.response_representation = Google::Apis::ResellerV1::Subscriptions::Representation command.response_class = Google::Apis::ResellerV1::Subscriptions command.query['customerAuthToken'] = customer_auth_token unless customer_auth_token.nil? @@ -572,9 +560,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def start_paid_service_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService' - command = make_simple_command(:post, path, options) + def start_subscription_paid_service(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService', options) command.response_representation = Google::Apis::ResellerV1::Subscription::Representation command.response_class = Google::Apis::ResellerV1::Subscription command.params['customerId'] = customer_id unless customer_id.nil? @@ -612,8 +599,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def suspend_subscription(customer_id, subscription_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'customers/{customerId}/subscriptions/{subscriptionId}/suspend' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'customers/{customerId}/subscriptions/{subscriptionId}/suspend', options) command.response_representation = Google::Apis::ResellerV1::Subscription::Representation command.response_class = Google::Apis::ResellerV1::Subscription command.params['customerId'] = customer_id unless customer_id.nil? diff --git a/generated/google/apis/resourceviews_v1beta2.rb b/generated/google/apis/resourceviews_v1beta2.rb index 1183f389d..1ab0a0dd1 100644 --- a/generated/google/apis/resourceviews_v1beta2.rb +++ b/generated/google/apis/resourceviews_v1beta2.rb @@ -31,6 +31,9 @@ module Google # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # View and manage your Google Compute Engine resources AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' diff --git a/generated/google/apis/resourceviews_v1beta2/service.rb b/generated/google/apis/resourceviews_v1beta2/service.rb index 6ce4b5c95..354f1fcd5 100644 --- a/generated/google/apis/resourceviews_v1beta2/service.rb +++ b/generated/google/apis/resourceviews_v1beta2/service.rb @@ -82,8 +82,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options) command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation command.response_class = Google::Apis::ResourceviewsV1beta2::Operation command.params['project'] = project unless project.nil? @@ -130,8 +129,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/operations', options) command.response_representation = Google::Apis::ResourceviewsV1beta2::OperationList::Representation command.response_class = Google::Apis::ResourceviewsV1beta2::OperationList command.params['project'] = project unless project.nil? @@ -174,9 +172,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def add_resources_zone_view(project, zone, resource_view, add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews/{resourceView}/addResources' - command = make_simple_command(:post, path, options) + def add_zone_view_resources(project, zone, resource_view, add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/addResources', options) command.request_representation = Google::Apis::ResourceviewsV1beta2::AddResourcesRequest::Representation command.request_object = add_resources_request_object command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation @@ -219,8 +216,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews/{resourceView}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/zones/{zone}/resourceViews/{resourceView}', options) command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation command.response_class = Google::Apis::ResourceviewsV1beta2::Operation command.params['project'] = project unless project.nil? @@ -261,8 +257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews/{resourceView}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}', options) command.response_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation command.response_class = Google::Apis::ResourceviewsV1beta2::ResourceView command.params['project'] = project unless project.nil? @@ -305,9 +300,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_service_zone_view(project, zone, resource_view, resource_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews/{resourceView}/getService' - command = make_simple_command(:post, path, options) + def get_zone_view_service(project, zone, resource_view, resource_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/getService', options) command.response_representation = Google::Apis::ResourceviewsV1beta2::GetServiceResponse::Representation command.response_class = Google::Apis::ResourceviewsV1beta2::GetServiceResponse command.params['project'] = project unless project.nil? @@ -348,8 +342,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_zone_view(project, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews', options) command.request_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation command.request_object = resource_view_object command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation @@ -395,8 +388,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_views(project, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews', options) command.response_representation = Google::Apis::ResourceviewsV1beta2::ZoneViewsList::Representation command.response_class = Google::Apis::ResourceviewsV1beta2::ZoneViewsList command.params['project'] = project unless project.nil? @@ -452,9 +444,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_resources_zone_view(project, zone, resource_view, format: nil, list_state: nil, max_results: nil, page_token: nil, service_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews/{resourceView}/resources' - command = make_simple_command(:get, path, options) + def list_zone_view_resources(project, zone, resource_view, format: nil, list_state: nil, max_results: nil, page_token: nil, service_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}/resources', options) command.response_representation = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse::Representation command.response_class = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse command.params['project'] = project unless project.nil? @@ -500,9 +491,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def remove_resources_zone_view(project, zone, resource_view, remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources' - command = make_simple_command(:post, path, options) + def remove_zone_view_resources(project, zone, resource_view, remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources', options) command.request_representation = Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest::Representation command.request_object = remove_resources_request_object command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation @@ -545,9 +535,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_service_zone_view(project, zone, resource_view, set_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/zones/{zone}/resourceViews/{resourceView}/setService' - command = make_simple_command(:post, path, options) + def set_zone_view_service(project, zone, resource_view, set_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/setService', options) command.request_representation = Google::Apis::ResourceviewsV1beta2::SetServiceRequest::Representation command.request_object = set_service_request_object command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb new file mode 100644 index 000000000..7670b6b2b --- /dev/null +++ b/generated/google/apis/script_v1.rb @@ -0,0 +1,61 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/script_v1/service.rb' +require 'google/apis/script_v1/classes.rb' +require 'google/apis/script_v1/representations.rb' + +module Google + module Apis + # Google Apps Script Execution API + # + # An API for executing Google Apps Script projects. + # + # @see https://developers.google.com/apps-script/execution/rest/v1/run + module ScriptV1 + VERSION = 'V1' + REVISION = '20150922' + + # View and manage your mail + AUTH_SCOPE = 'https://mail.google.com/' + + # Manage your calendars + CALENDAR_FEEDS = 'https://www.google.com/calendar/feeds' + + # Manage your contacts + M8_FEEDS = 'https://www.google.com/m8/feeds' + + # View and manage the provisioning of groups on your domain + AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group' + + # View and manage the provisioning of users on your domain + AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user' + + # View and manage the files in your Google Drive + AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' + + # View and manage your forms in Google Drive + AUTH_FORMS = 'https://www.googleapis.com/auth/forms' + + # View and manage forms that this application has been installed in + AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly' + + # View and manage your Google Groups + AUTH_GROUPS = 'https://www.googleapis.com/auth/groups' + + # View your email address + AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' + end + end +end diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb new file mode 100644 index 000000000..7e0c199e1 --- /dev/null +++ b/generated/google/apis/script_v1/classes.rb @@ -0,0 +1,259 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ScriptV1 + + # A request to run the function in a script. The script is identified by the + # specified `script_id`. Executing a function on a script will return results + # based on the implementation of the script. + class ExecutionRequest + include Google::Apis::Core::Hashable + + # The name of the function to execute in the given script. The name does not + # include parentheses or parameters. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # The parameters to be passed to the function being executed. The type for each + # parameter should match the expected type in Apps Script. Parameters cannot be + # Apps Script-specific objects (such as a `Document` or `Calendar`); they can + # only be primitive types such as a `string`, `number`, `array`, `object`, or ` + # boolean`. Optional. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # This field is not used. + # Corresponds to the JSON property `sessionState` + # @return [String] + attr_accessor :session_state + + # If `true` and the user is an owner of the script, the script runs at the most + # recently saved version rather than the version deployed for use with the + # Execution API. Optional; default is `false`. + # Corresponds to the JSON property `devMode` + # @return [Boolean] + attr_accessor :dev_mode + alias_method :dev_mode?, :dev_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @function = args[:function] unless args[:function].nil? + @parameters = args[:parameters] unless args[:parameters].nil? + @session_state = args[:session_state] unless args[:session_state].nil? + @dev_mode = args[:dev_mode] unless args[:dev_mode].nil? + end + end + + # The response will not arrive until the function finishes executing. The + # maximum runtime is listed in the guide to [limitations in Apps Script](https:// + # developers.google.com/apps-script/guides/services/quotas#current_limitations). + # If the script function returns successfully, the `response` field will contain + # an `ExecutionResponse` object with the function's return value in the object's + # `result` field. + # If the script function (or Apps Script itself) throws an exception, the `error` + # field will contain a `Status` object. The `Status` object's `details` field + # will contain an array with a single `ExecutionError` object that provides + # information about the nature of the error. + # If the `run` call itself fails (for example, because of a malformed request or + # an authorization error), the method will return an HTTP response code in the + # 4XX range with a different format for the response body. Client libraries will + # automatically convert a 4XX response into an exception class. + class Operation + include Google::Apis::Core::Hashable + + # This field is not used. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # This field is not used. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # This field is not used. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # If a `run` call succeeds but the script function (or Apps Script itself) + # throws an exception, the response body's `error` field will contain this ` + # Status` object. + # Corresponds to the JSON property `error` + # @return [Google::Apis::ScriptV1::Status] + attr_accessor :error + + # If the script function returns successfully, this field will contain an ` + # ExecutionResponse` object with the function's return value as the object's ` + # result` field. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @metadata = args[:metadata] unless args[:metadata].nil? + @done = args[:done] unless args[:done].nil? + @error = args[:error] unless args[:error].nil? + @response = args[:response] unless args[:response].nil? + end + end + + # If a `run` call succeeds but the script function (or Apps Script itself) + # throws an exception, the response body's `error` field will contain this ` + # Status` object. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # An array that contains a single `ExecutionError` object that provides + # information about the nature of the error. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @message = args[:message] unless args[:message].nil? + @details = args[:details] unless args[:details].nil? + end + end + + # An object that provides information about the nature of an error in the Apps + # Script Execution API. If an `run` call succeeds but the script function (or + # Apps Script itself) throws an exception, the response body's `error` field + # will contain a `Status` object. The `Status` object's `details` field will + # contain an array with a single one of these `ExecutionError` objects. + class ExecutionError + include Google::Apis::Core::Hashable + + # An array of objects that provide a stack trace through the script to show + # where the execution failed, with the deepest call first. + # Corresponds to the JSON property `scriptStackTraceElements` + # @return [Array] + attr_accessor :script_stack_trace_elements + + # The error message thrown by Apps Script, usually localized into the user's + # language. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # The error type, for example `TypeError` or `ReferenceError`. If the error type + # is unavailable, this field is not included. + # Corresponds to the JSON property `errorType` + # @return [String] + attr_accessor :error_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @script_stack_trace_elements = args[:script_stack_trace_elements] unless args[:script_stack_trace_elements].nil? + @error_message = args[:error_message] unless args[:error_message].nil? + @error_type = args[:error_type] unless args[:error_type].nil? + end + end + + # A stack trace through the script that shows where the execution failed. + class ScriptStackTraceElement + include Google::Apis::Core::Hashable + + # The name of the function that failed. + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # The line number where the script failed. + # Corresponds to the JSON property `lineNumber` + # @return [Fixnum] + attr_accessor :line_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @function = args[:function] unless args[:function].nil? + @line_number = args[:line_number] unless args[:line_number].nil? + end + end + + # An object that provides the return value of a function executed through the + # Apps Script Execution API. If an `run` call succeeds and the script function + # returns successfully, the response body's `response` field will contain this ` + # ExecutionResponse` object. + class ExecutionResponse + include Google::Apis::Core::Hashable + + # The return value of the script function. The type will match the type returned + # in Apps Script. Functions called through the Execution API cannot return Apps + # Script-specific objects (such as a `Document` or `Calendar`); they can only + # return primitive types such as a `string`, `number`, `array`, `object`, or ` + # boolean`. + # Corresponds to the JSON property `result` + # @return [Object] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result = args[:result] unless args[:result].nil? + end + end + end + end +end diff --git a/generated/google/apis/script_v1/representations.rb b/generated/google/apis/script_v1/representations.rb new file mode 100644 index 000000000..72245729f --- /dev/null +++ b/generated/google/apis/script_v1/representations.rb @@ -0,0 +1,106 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ScriptV1 + + class ExecutionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExecutionError + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ScriptStackTraceElement + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExecutionResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExecutionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :function, as: 'function' + collection :parameters, as: 'parameters' + property :session_state, as: 'sessionState' + property :dev_mode, as: 'devMode' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + hash :metadata, as: 'metadata' + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation + + hash :response, as: 'response' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :message, as: 'message' + collection :details, as: 'details' + end + end + + class ExecutionError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation + + property :error_message, as: 'errorMessage' + property :error_type, as: 'errorType' + end + end + + class ScriptStackTraceElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :function, as: 'function' + property :line_number, as: 'lineNumber' + end + end + + class ExecutionResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :result, as: 'result' + end + end + end + end +end diff --git a/generated/google/apis/script_v1/service.rb b/generated/google/apis/script_v1/service.rb new file mode 100644 index 000000000..d705f9bf3 --- /dev/null +++ b/generated/google/apis/script_v1/service.rb @@ -0,0 +1,98 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ScriptV1 + # Google Apps Script Execution API + # + # An API for executing Google Apps Script projects. + # + # @example + # require 'google/apis/script_v1' + # + # Script = Google::Apis::ScriptV1 # Alias the module + # service = Script::ScriptService.new + # + # @see https://developers.google.com/apps-script/execution/rest/v1/run + class ScriptService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://script.googleapis.com/', '') + end + + # Runs a function in an Apps Script project that has been deployed for use with + # the Apps Script Execution API. This method requires authorization with an + # OAuth 2.0 token that includes at least one of the scopes listed in the [ + # Authentication](#authentication) section; script projects that do not require + # authorization cannot be executed through this API. To find the correct scopes + # to include in the authentication token, open the project in the script editor, + # then select **File > Project properties** and click the **Scopes** tab. + # @param [String] script_id + # The project key of the script to be executed. To find the project key, open + # the project in the script editor, then select **File > Project properties**. + # @param [Google::Apis::ScriptV1::ExecutionRequest] execution_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ScriptV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ScriptV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def run_script(script_id, execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/scripts/{scriptId}:run', options) + command.request_representation = Google::Apis::ScriptV1::ExecutionRequest::Representation + command.request_object = execution_request_object + command.response_representation = Google::Apis::ScriptV1::Operation::Representation + command.response_class = Google::Apis::ScriptV1::Operation + command.params['scriptId'] = script_id unless script_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/site_verification_v1.rb b/generated/google/apis/site_verification_v1.rb index fc51e22c3..bf86e4c57 100644 --- a/generated/google/apis/site_verification_v1.rb +++ b/generated/google/apis/site_verification_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/site-verification/ module SiteVerificationV1 VERSION = 'V1' - REVISION = '20131007' + REVISION = '20151007' # Manage the list of sites and domains you control AUTH_SITEVERIFICATION = 'https://www.googleapis.com/auth/siteverification' diff --git a/generated/google/apis/site_verification_v1/service.rb b/generated/google/apis/site_verification_v1/service.rb index ef2011711..a4f5ed97f 100644 --- a/generated/google/apis/site_verification_v1/service.rb +++ b/generated/google/apis/site_verification_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_web_resource(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'webResource/{id}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'webResource/{id}', options) command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -111,8 +110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_web_resource(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'webResource/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'webResource/{id}', options) command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation command.response_class = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource command.params['id'] = id unless id.nil? @@ -145,9 +143,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_token_web_resource(get_web_resource_token_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'token' - command = make_simple_command(:post, path, options) + def get_web_resource_token(get_web_resource_token_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'token', options) command.request_representation = Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Representation command.request_object = get_web_resource_token_request_object command.response_representation = Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse::Representation @@ -184,8 +181,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_web_resource(verification_method, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'webResource' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'webResource', options) command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation command.request_object = site_verification_web_resource_resource_object command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation @@ -220,8 +216,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_web_resources(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'webResource' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'webResource', options) command.response_representation = Google::Apis::SiteVerificationV1::ListWebResourceResponse::Representation command.response_class = Google::Apis::SiteVerificationV1::ListWebResourceResponse command.query['fields'] = fields unless fields.nil? @@ -257,8 +252,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_web_resource(id, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'webResource/{id}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'webResource/{id}', options) command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation command.request_object = site_verification_web_resource_resource_object command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation @@ -296,8 +290,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_web_resource(id, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'webResource/{id}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'webResource/{id}', options) command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation command.request_object = site_verification_web_resource_resource_object command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index 3a44d3714..b6dfc6c35 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20150305' + REVISION = '20151117' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index 27acaaa6d..fcc525163 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -386,6 +386,12 @@ module Google # @return [String] attr_accessor :etag + # The name and status of the failover replica. Only applies to Second Generation + # instances. + # Corresponds to the JSON property `failoverReplica` + # @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica] + attr_accessor :failover_replica + # The instance type. This can be one of the following. # CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a master. # ON_PREMISES_INSTANCE: An instance running on the customer's premises. @@ -493,6 +499,7 @@ module Google @current_disk_size = args[:current_disk_size] unless args[:current_disk_size].nil? @database_version = args[:database_version] unless args[:database_version].nil? @etag = args[:etag] unless args[:etag].nil? + @failover_replica = args[:failover_replica] unless args[:failover_replica].nil? @instance_type = args[:instance_type] unless args[:instance_type].nil? @ip_addresses = args[:ip_addresses] unless args[:ip_addresses].nil? @ipv6_address = args[:ipv6_address] unless args[:ipv6_address].nil? @@ -511,6 +518,33 @@ module Google @settings = args[:settings] unless args[:settings].nil? @state = args[:state] unless args[:state].nil? end + + # The name and status of the failover replica. Only applies to Second Generation + # instances. + class FailoverReplica + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `available` + # @return [Boolean] + attr_accessor :available + alias_method :available?, :available + + # + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @available = args[:available] unless args[:available].nil? + @name = args[:name] unless args[:name].nil? + end + end end # Database list response. @@ -618,6 +652,12 @@ module Google class SqlExportOptions include Google::Apis::Core::Hashable + # Export only schemas. + # Corresponds to the JSON property `schemaOnly` + # @return [Boolean] + attr_accessor :schema_only + alias_method :schema_only?, :schema_only + # Tables to export, or that were exported, from the specified database. If you # specify tables, specify one and only one database. # Corresponds to the JSON property `tables` @@ -630,11 +670,38 @@ module Google # Update properties of this object def update!(**args) + @schema_only = args[:schema_only] unless args[:schema_only].nil? @tables = args[:tables] unless args[:tables].nil? end end end + # Database instance failover context. + class FailoverContext + include Google::Apis::Core::Hashable + + # This is always sql#failoverContext. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The current settings version of this instance. Request will be rejected if + # this version doesn't match the current settings version. + # Corresponds to the JSON property `settingsVersion` + # @return [String] + attr_accessor :settings_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] unless args[:kind].nil? + @settings_version = args[:settings_version] unless args[:settings_version].nil? + end + end + # A Google Cloud SQL service flag resource. class Flag include Google::Apis::Core::Hashable @@ -644,8 +711,8 @@ module Google # @return [Array] attr_accessor :allowed_string_values - # The database version this flag applies to. Currently this can only be [ - # MYSQL_5_5]. + # The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or + # both. # Corresponds to the JSON property `appliesTo` # @return [Array] attr_accessor :applies_to @@ -671,6 +738,13 @@ module Google # @return [String] attr_accessor :name + # Indicates whether changing this flag will trigger a database restart. Only + # applicable to Second Generation instances. + # Corresponds to the JSON property `requiresRestart` + # @return [Boolean] + attr_accessor :requires_restart + alias_method :requires_restart?, :requires_restart + # The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or # NONE. NONE is used for flags which do not take a value, such as # skip_grant_tables. @@ -690,6 +764,7 @@ module Google @max_value = args[:max_value] unless args[:max_value].nil? @min_value = args[:min_value] unless args[:min_value].nil? @name = args[:name] unless args[:name].nil? + @requires_restart = args[:requires_restart] unless args[:requires_restart].nil? @type = args[:type] unless args[:type].nil? end end @@ -832,6 +907,25 @@ module Google end end + # Instance failover request. + class InstancesFailoverRequest + include Google::Apis::Core::Hashable + + # Database instance failover context. + # Corresponds to the JSON property `failoverContext` + # @return [Google::Apis::SqladminV1beta4::FailoverContext] + attr_accessor :failover_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @failover_context = args[:failover_context] unless args[:failover_context].nil? + end + end + # Database instance import request. class ImportInstancesRequest include Google::Apis::Core::Hashable @@ -1001,6 +1095,44 @@ module Google end end + # Maintenance window. This specifies when a v2 Cloud SQL instance should + # preferably be restarted for system maintenance puruposes. + class MaintenanceWindow + include Google::Apis::Core::Hashable + + # day of week (1-7), starting on Monday. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # hour of day - 0 to 23. + # Corresponds to the JSON property `hour` + # @return [Fixnum] + attr_accessor :hour + + # This is always sql#maintenanceWindow. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `updateTrack` + # @return [String] + attr_accessor :update_track + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] unless args[:day].nil? + @hour = args[:hour] unless args[:hour].nil? + @kind = args[:kind] unless args[:kind].nil? + @update_track = args[:update_track] unless args[:update_track].nil? + end + end + # Read-replica configuration specific to MySQL databases. class MySqlReplicaConfiguration include Google::Apis::Core::Hashable @@ -1316,6 +1448,17 @@ module Google class ReplicaConfiguration include Google::Apis::Core::Hashable + # Specifies if the replica is the failover target. If the field is set to true + # the replica will be designated as a failover replica. In case the master + # instance fails, the replica instance will be promoted as the new master + # instance. + # Only one replica can be specified as failover target, and the replica has to + # be in different zone with the master instance. + # Corresponds to the JSON property `failoverTarget` + # @return [Boolean] + attr_accessor :failover_target + alias_method :failover_target?, :failover_target + # This is always sql#replicaConfiguration. # Corresponds to the JSON property `kind` # @return [String] @@ -1332,6 +1475,7 @@ module Google # Update properties of this object def update!(**args) + @failover_target = args[:failover_target] unless args[:failover_target].nil? @kind = args[:kind] unless args[:kind].nil? @mysql_replica_configuration = args[:mysql_replica_configuration] unless args[:mysql_replica_configuration].nil? end @@ -1399,6 +1543,18 @@ module Google attr_accessor :crash_safe_replication_enabled alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled + # The size of data disk, in GB. Only supported for 2nd Generation instances. The + # data disk size minimum is 10GB. + # Corresponds to the JSON property `dataDiskSizeGb` + # @return [String] + attr_accessor :data_disk_size_gb + + # The type of data disk. Only supported for 2nd Generation instances. The + # default type is SSD. + # Corresponds to the JSON property `dataDiskType` + # @return [String] + attr_accessor :data_disk_type + # The database flags passed to the instance at startup. # Corresponds to the JSON property `databaseFlags` # @return [Array] @@ -1430,6 +1586,12 @@ module Google # @return [Google::Apis::SqladminV1beta4::LocationPreference] attr_accessor :location_preference + # Maintenance window. This specifies when a v2 Cloud SQL instance should + # preferably be restarted for system maintenance puruposes. + # Corresponds to the JSON property `maintenanceWindow` + # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow] + attr_accessor :maintenance_window + # The pricing plan for this instance. This can be either PER_USE or PACKAGE. # Corresponds to the JSON property `pricingPlan` # @return [String] @@ -1465,11 +1627,14 @@ module Google @authorized_gae_applications = args[:authorized_gae_applications] unless args[:authorized_gae_applications].nil? @backup_configuration = args[:backup_configuration] unless args[:backup_configuration].nil? @crash_safe_replication_enabled = args[:crash_safe_replication_enabled] unless args[:crash_safe_replication_enabled].nil? + @data_disk_size_gb = args[:data_disk_size_gb] unless args[:data_disk_size_gb].nil? + @data_disk_type = args[:data_disk_type] unless args[:data_disk_type].nil? @database_flags = args[:database_flags] unless args[:database_flags].nil? @database_replication_enabled = args[:database_replication_enabled] unless args[:database_replication_enabled].nil? @ip_configuration = args[:ip_configuration] unless args[:ip_configuration].nil? @kind = args[:kind] unless args[:kind].nil? @location_preference = args[:location_preference] unless args[:location_preference].nil? + @maintenance_window = args[:maintenance_window] unless args[:maintenance_window].nil? @pricing_plan = args[:pricing_plan] unless args[:pricing_plan].nil? @replication_type = args[:replication_type] unless args[:replication_type].nil? @settings_version = args[:settings_version] unless args[:settings_version].nil? @@ -1572,6 +1737,25 @@ module Google end end + # SslCerts create ephemeral certificate request. + class SslCertsCreateEphemeralRequest + include Google::Apis::Core::Hashable + + # PEM encoded public key to include in the signed certificate. + # Corresponds to the JSON property `public_key` + # @return [String] + attr_accessor :public_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @public_key = args[:public_key] unless args[:public_key].nil? + end + end + # SslCerts insert request. class InsertSslCertsRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sqladmin_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb index ac6950c8e..479e2719e 100644 --- a/generated/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -56,6 +56,10 @@ module Google class DatabaseInstance class Representation < Google::Apis::Core::JsonRepresentation; end + + class FailoverReplica + class Representation < Google::Apis::Core::JsonRepresentation; end + end end class ListDatabasesResponse @@ -74,6 +78,10 @@ module Google end end + class FailoverContext + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Flag class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -98,6 +106,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class InstancesFailoverRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ImportInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -122,6 +134,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class MaintenanceWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class MySqlReplicaConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -166,6 +182,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class SslCertsCreateEphemeralRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class InsertSslCertsRequest class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -293,6 +313,8 @@ module Google property :current_disk_size, as: 'currentDiskSize' property :database_version, as: 'databaseVersion' property :etag, as: 'etag' + property :failover_replica, as: 'failoverReplica', class: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica::Representation + property :instance_type, as: 'instanceType' collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation @@ -316,6 +338,14 @@ module Google property :state, as: 'state' end + + class FailoverReplica + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :available, as: 'available' + property :name, as: 'name' + end + end end class ListDatabasesResponse @@ -350,11 +380,20 @@ module Google class SqlExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation + property :schema_only, as: 'schemaOnly' collection :tables, as: 'tables' end end end + class FailoverContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :settings_version, as: 'settingsVersion' + end + end + class Flag # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -364,6 +403,7 @@ module Google property :max_value, as: 'maxValue' property :min_value, as: 'minValue' property :name, as: 'name' + property :requires_restart, as: 'requiresRestart' property :type, as: 'type' end end @@ -413,6 +453,14 @@ module Google end end + class InstancesFailoverRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :failover_context, as: 'failoverContext', class: Google::Apis::SqladminV1beta4::FailoverContext, decorator: Google::Apis::SqladminV1beta4::FailoverContext::Representation + + end + end + class ImportInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -467,6 +515,16 @@ module Google end end + class MaintenanceWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :hour, as: 'hour' + property :kind, as: 'kind' + property :update_track, as: 'updateTrack' + end + end + class MySqlReplicaConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -550,6 +608,7 @@ module Google class ReplicaConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation + property :failover_target, as: 'failoverTarget' property :kind, as: 'kind' property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration::Representation @@ -573,6 +632,8 @@ module Google property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1beta4::BackupConfiguration, decorator: Google::Apis::SqladminV1beta4::BackupConfiguration::Representation property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled' + property :data_disk_size_gb, as: 'dataDiskSizeGb' + property :data_disk_type, as: 'dataDiskType' collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta4::DatabaseFlags, decorator: Google::Apis::SqladminV1beta4::DatabaseFlags::Representation property :database_replication_enabled, as: 'databaseReplicationEnabled' @@ -581,6 +642,8 @@ module Google property :kind, as: 'kind' property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta4::LocationPreference, decorator: Google::Apis::SqladminV1beta4::LocationPreference::Representation + property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation + property :pricing_plan, as: 'pricingPlan' property :replication_type, as: 'replicationType' property :settings_version, as: 'settingsVersion' @@ -614,6 +677,13 @@ module Google end end + class SslCertsCreateEphemeralRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :public_key, as: 'public_key' + end + end + class InsertSslCertsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index 32296ba3e..62390213c 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -52,6 +52,48 @@ module Google super('https://www.googleapis.com/', 'sql/v1beta4/') end + # Deletes the backup taken by a backup run. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] id + # The ID of the Backup Run to delete. To find a Backup Run ID, use the list + # method. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta4::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/backupRuns/{id}', options) + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves a resource containing information about a backup run. # @param [String] project # Project ID of the project that contains the instance. @@ -81,8 +123,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/backupRuns/{id}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{id}', options) command.response_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation command.response_class = Google::Apis::SqladminV1beta4::BackupRun command.params['project'] = project unless project.nil? @@ -127,8 +168,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/backupRuns' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options) command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse command.params['project'] = project unless project.nil? @@ -171,8 +211,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/databases/{database}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/databases/{database}', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -214,8 +253,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/databases/{database}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases/{database}', options) command.response_representation = Google::Apis::SqladminV1beta4::Database::Representation command.response_class = Google::Apis::SqladminV1beta4::Database command.params['project'] = project unless project.nil? @@ -256,8 +294,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/databases' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/databases', options) command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -297,8 +334,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_databases(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/databases' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases', options) command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse command.params['project'] = project unless project.nil? @@ -340,8 +376,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/databases/{database}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'projects/{project}/instances/{instance}/databases/{database}', options) command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -386,8 +421,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/databases/{database}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'projects/{project}/instances/{instance}/databases/{database}', options) command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -424,8 +458,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'flags' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'flags', options) command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse command.query['fields'] = fields unless fields.nil? @@ -463,8 +496,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/clone' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/clone', options) command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation command.request_object = clone_instances_request_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -504,8 +536,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -545,8 +576,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/export' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options) command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation command.request_object = export_instances_request_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -559,6 +589,47 @@ module Google execute_or_queue_command(command, &block) end + # Failover the instance to its failover replica instance. + # @param [String] project + # ID of the project that contains the read replica. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta4::InstancesFailoverRequest] instances_failover_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta4::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/failover', options) + command.request_representation = Google::Apis::SqladminV1beta4::InstancesFailoverRequest::Representation + command.request_object = instances_failover_request_object + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves a resource containing information about a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. @@ -586,8 +657,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options) command.response_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.response_class = Google::Apis::SqladminV1beta4::DatabaseInstance command.params['project'] = project unless project.nil? @@ -627,8 +697,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/import' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options) command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation command.request_object = import_instances_request_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -668,8 +737,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances', options) command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -712,8 +780,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances', options) command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse command.params['project'] = project unless project.nil? @@ -755,8 +822,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options) command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -795,9 +861,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def promote_replica_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/promoteReplica' - command = make_simple_command(:post, path, options) + def promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -837,9 +902,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def reset_ssl_config_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/resetSslConfig' - command = make_simple_command(:post, path, options) + def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -877,8 +941,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/restart' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -916,9 +979,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def restore_backup_instance(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/restoreBackup' - command = make_simple_command(:post, path, options) + def restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options) command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation command.request_object = restore_instances_backup_request_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -957,9 +1019,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def start_replica_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/startReplica' - command = make_simple_command(:post, path, options) + def start_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/startReplica', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -996,9 +1057,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def stop_replica_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/stopReplica' - command = make_simple_command(:post, path, options) + def stop_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/stopReplica', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -1039,8 +1099,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options) command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -1080,8 +1139,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/operations/{operation}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/operations/{operation}', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -1125,8 +1183,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/operations' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/operations', options) command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse command.params['project'] = project unless project.nil? @@ -1139,6 +1196,49 @@ module Google execute_or_queue_command(command, &block) end + # Generates a short-lived X509 certificate containing the provided public key + # and signed by a private key specific to the target instance. Users may use the + # certificate to authenticate as themselves when connecting to the database. + # @param [String] project + # Project ID of the Cloud SQL project. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta4::SslCert] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/createEphemeral', options) + command.request_representation = Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest::Representation + command.request_object = ssl_certs_create_ephemeral_request_object + command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation + command.response_class = Google::Apis::SqladminV1beta4::SslCert + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the SSL certificate. The change will not take effect until the # instance is restarted. # @param [String] project @@ -1169,8 +1269,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -1213,8 +1312,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation command.response_class = Google::Apis::SqladminV1beta4::SslCert command.params['project'] = project unless project.nil? @@ -1257,8 +1355,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/sslCerts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options) command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation command.request_object = insert_ssl_certs_request_object command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation @@ -1298,8 +1395,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/sslCerts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options) command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse command.params['project'] = project unless project.nil? @@ -1336,8 +1432,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/tiers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/tiers', options) command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse command.params['project'] = project unless project.nil? @@ -1378,8 +1473,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_user(project, instance, host, name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/users' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/users', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? @@ -1420,8 +1514,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/users' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/users', options) command.request_representation = Google::Apis::SqladminV1beta4::User::Representation command.request_object = user_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -1461,8 +1554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_users(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/users' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/users', options) command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse command.params['project'] = project unless project.nil? @@ -1505,8 +1597,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_user(project, instance, host, name, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'projects/{project}/instances/{instance}/users' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'projects/{project}/instances/{instance}/users', options) command.request_representation = Google::Apis::SqladminV1beta4::User::Representation command.request_object = user_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index cef912241..eeaa57b91 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -18,18 +18,21 @@ require 'google/apis/storage_v1/representations.rb' module Google module Apis - # Cloud Storage API + # Cloud Storage JSON API # # Lets you store and retrieve potentially-large, immutable data objects. # # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20150710' + REVISION = '20151113' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 3bb7397ad..daa13ffca 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -108,11 +108,16 @@ module Google # @return [String] attr_accessor :storage_class - # Creation time of the bucket in RFC 3339 format. + # The creation time of the bucket in RFC 3339 format. # Corresponds to the JSON property `timeCreated` # @return [DateTime] attr_accessor :time_created + # The modification time of the bucket in RFC 3339 format. + # Corresponds to the JSON property `updated` + # @return [DateTime] + attr_accessor :updated + # The bucket's versioning configuration. # Corresponds to the JSON property `versioning` # @return [Google::Apis::StorageV1::Bucket::Versioning] @@ -145,6 +150,7 @@ module Google @self_link = args[:self_link] unless args[:self_link].nil? @storage_class = args[:storage_class] unless args[:storage_class].nil? @time_created = args[:time_created] unless args[:time_created].nil? + @updated = args[:updated] unless args[:updated].nil? @versioning = args[:versioning] unless args[:versioning].nil? @website = args[:website] unless args[:website].nil? end @@ -787,6 +793,12 @@ module Google # @return [String] attr_accessor :crc32c + # Metadata of customer-supplied encryption key, if the object is encrypted by + # such a key. + # Corresponds to the JSON property `customerEncryption` + # @return [Google::Apis::StorageV1::Object::CustomerEncryption] + attr_accessor :customer_encryption + # HTTP 1.1 Entity tag for the object. # Corresponds to the JSON property `etag` # @return [String] @@ -856,15 +868,18 @@ module Google # @return [String] attr_accessor :storage_class + # The creation time of the object in RFC 3339 format. + # Corresponds to the JSON property `timeCreated` + # @return [DateTime] + attr_accessor :time_created + # The deletion time of the object in RFC 3339 format. Will be returned if and # only if this version of the object has been deleted. # Corresponds to the JSON property `timeDeleted` # @return [DateTime] attr_accessor :time_deleted - # The creation or modification time of the object in RFC 3339 format. For - # buckets with versioning enabled, changing an object's metadata does not change - # this property. + # The modification time of the object metadata in RFC 3339 format. # Corresponds to the JSON property `updated` # @return [DateTime] attr_accessor :updated @@ -884,6 +899,7 @@ module Google @content_language = args[:content_language] unless args[:content_language].nil? @content_type = args[:content_type] unless args[:content_type].nil? @crc32c = args[:crc32c] unless args[:crc32c].nil? + @customer_encryption = args[:customer_encryption] unless args[:customer_encryption].nil? @etag = args[:etag] unless args[:etag].nil? @generation = args[:generation] unless args[:generation].nil? @id = args[:id] unless args[:id].nil? @@ -897,10 +913,37 @@ module Google @self_link = args[:self_link] unless args[:self_link].nil? @size = args[:size] unless args[:size].nil? @storage_class = args[:storage_class] unless args[:storage_class].nil? + @time_created = args[:time_created] unless args[:time_created].nil? @time_deleted = args[:time_deleted] unless args[:time_deleted].nil? @updated = args[:updated] unless args[:updated].nil? end + # Metadata of customer-supplied encryption key, if the object is encrypted by + # such a key. + class CustomerEncryption + include Google::Apis::Core::Hashable + + # The encryption algorithm. + # Corresponds to the JSON property `encryptionAlgorithm` + # @return [String] + attr_accessor :encryption_algorithm + + # SHA256 hash value of the encryption key. + # Corresponds to the JSON property `keySha256` + # @return [String] + attr_accessor :key_sha256 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encryption_algorithm = args[:encryption_algorithm] unless args[:encryption_algorithm].nil? + @key_sha256 = args[:key_sha256] unless args[:key_sha256].nil? + end + end + # The owner of the object. This will always be the uploader of the object. class Owner include Google::Apis::Core::Hashable diff --git a/generated/google/apis/storage_v1/representations.rb b/generated/google/apis/storage_v1/representations.rb index 7ca27d6b3..beab1a773 100644 --- a/generated/google/apis/storage_v1/representations.rb +++ b/generated/google/apis/storage_v1/representations.rb @@ -97,6 +97,10 @@ module Google class Object class Representation < Google::Apis::Core::JsonRepresentation; end + class CustomerEncryption + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Owner class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -148,6 +152,8 @@ module Google property :storage_class, as: 'storageClass' property :time_created, as: 'timeCreated', type: DateTime + property :updated, as: 'updated', type: DateTime + property :versioning, as: 'versioning', class: Google::Apis::StorageV1::Bucket::Versioning, decorator: Google::Apis::StorageV1::Bucket::Versioning::Representation property :website, as: 'website', class: Google::Apis::StorageV1::Bucket::Website, decorator: Google::Apis::StorageV1::Bucket::Website::Representation @@ -334,6 +340,8 @@ module Google property :content_language, as: 'contentLanguage' property :content_type, as: 'contentType' property :crc32c, as: 'crc32c' + property :customer_encryption, as: 'customerEncryption', class: Google::Apis::StorageV1::Object::CustomerEncryption, decorator: Google::Apis::StorageV1::Object::CustomerEncryption::Representation + property :etag, as: 'etag' property :generation, as: 'generation' property :id, as: 'id' @@ -348,12 +356,22 @@ module Google property :self_link, as: 'selfLink' property :size, as: 'size' property :storage_class, as: 'storageClass' + property :time_created, as: 'timeCreated', type: DateTime + property :time_deleted, as: 'timeDeleted', type: DateTime property :updated, as: 'updated', type: DateTime end + class CustomerEncryption + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encryption_algorithm, as: 'encryptionAlgorithm' + property :key_sha256, as: 'keySha256' + end + end + class Owner # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb index a8cc9656b..8db8dbf74 100644 --- a/generated/google/apis/storage_v1/service.rb +++ b/generated/google/apis/storage_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module StorageV1 - # Cloud Storage API + # Cloud Storage JSON API # # Lets you store and retrieve potentially-large, immutable data objects. # @@ -81,8 +81,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/acl/{entity}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options) command.params['bucket'] = bucket unless bucket.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? @@ -119,8 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/acl/{entity}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options) command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation command.response_class = Google::Apis::StorageV1::BucketAccessControl command.params['bucket'] = bucket unless bucket.nil? @@ -157,8 +155,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/acl' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b/{bucket}/acl', options) command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation command.request_object = bucket_access_control_object command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation @@ -195,8 +192,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/acl' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/acl', options) command.response_representation = Google::Apis::StorageV1::BucketAccessControls::Representation command.response_class = Google::Apis::StorageV1::BucketAccessControls command.params['bucket'] = bucket unless bucket.nil? @@ -236,8 +232,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/acl/{entity}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options) command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation command.request_object = bucket_access_control_object command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation @@ -279,8 +274,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/acl/{entity}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options) command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation command.request_object = bucket_access_control_object command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation @@ -323,8 +317,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'b/{bucket}', options) command.params['bucket'] = bucket unless bucket.nil? command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? @@ -367,8 +360,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}', options) command.response_representation = Google::Apis::StorageV1::Bucket::Representation command.response_class = Google::Apis::StorageV1::Bucket command.params['bucket'] = bucket unless bucket.nil? @@ -414,8 +406,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b', options) command.request_representation = Google::Apis::StorageV1::Bucket::Representation command.request_object = bucket_object command.response_representation = Google::Apis::StorageV1::Bucket::Representation @@ -464,8 +455,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b', options) command.response_representation = Google::Apis::StorageV1::Buckets::Representation command.response_class = Google::Apis::StorageV1::Buckets command.query['maxResults'] = max_results unless max_results.nil? @@ -517,8 +507,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'b/{bucket}', options) command.request_representation = Google::Apis::StorageV1::Bucket::Representation command.request_object = bucket_object command.response_representation = Google::Apis::StorageV1::Bucket::Representation @@ -573,8 +562,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'b/{bucket}', options) command.request_representation = Google::Apis::StorageV1::Bucket::Representation command.request_object = bucket_object command.response_representation = Google::Apis::StorageV1::Bucket::Representation @@ -615,8 +603,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channels/stop' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'channels/stop', options) command.request_representation = Google::Apis::StorageV1::Channel::Representation command.request_object = channel_object command.query['fields'] = fields unless fields.nil? @@ -654,8 +641,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/defaultObjectAcl/{entity}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options) command.params['bucket'] = bucket unless bucket.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? @@ -693,8 +679,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/defaultObjectAcl/{entity}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options) command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.response_class = Google::Apis::StorageV1::ObjectAccessControl command.params['bucket'] = bucket unless bucket.nil? @@ -731,8 +716,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_default_object_access_control(bucket, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/defaultObjectAcl' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options) command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation @@ -775,8 +759,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_default_object_access_controls(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/defaultObjectAcl' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options) command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation command.response_class = Google::Apis::StorageV1::ObjectAccessControls command.params['bucket'] = bucket unless bucket.nil? @@ -818,8 +801,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/defaultObjectAcl/{entity}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options) command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation @@ -861,8 +843,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/defaultObjectAcl/{entity}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options) command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation @@ -880,7 +861,8 @@ module Google # @param [String] bucket # Name of a bucket. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [String] entity # The entity holding the permission. Can be user-userId, user-emailAddress, # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. @@ -909,8 +891,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}/acl/{entity}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options) command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.params['entity'] = entity unless entity.nil? @@ -925,7 +906,8 @@ module Google # @param [String] bucket # Name of a bucket. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [String] entity # The entity holding the permission. Can be user-userId, user-emailAddress, # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. @@ -954,8 +936,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}/acl/{entity}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options) command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.response_class = Google::Apis::StorageV1::ObjectAccessControl command.params['bucket'] = bucket unless bucket.nil? @@ -972,7 +953,8 @@ module Google # @param [String] bucket # Name of a bucket. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object # @param [String] generation # If present, selects a specific revision of this object (as opposed to the @@ -999,8 +981,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_object_access_control(bucket, object, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}/acl' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options) command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation @@ -1018,7 +999,8 @@ module Google # @param [String] bucket # Name of a bucket. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [String] generation # If present, selects a specific revision of this object (as opposed to the # latest version, the default). @@ -1044,8 +1026,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_object_access_controls(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}/acl' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options) command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation command.response_class = Google::Apis::StorageV1::ObjectAccessControls command.params['bucket'] = bucket unless bucket.nil? @@ -1062,7 +1043,8 @@ module Google # @param [String] bucket # Name of a bucket. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [String] entity # The entity holding the permission. Can be user-userId, user-emailAddress, # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. @@ -1092,8 +1074,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}/acl/{entity}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options) command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation @@ -1112,7 +1093,8 @@ module Google # @param [String] bucket # Name of a bucket. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [String] entity # The entity holding the permission. Can be user-userId, user-emailAddress, # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. @@ -1142,8 +1124,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}/acl/{entity}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options) command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation @@ -1162,7 +1143,8 @@ module Google # @param [String] destination_bucket # Name of the bucket in which to store the new object. # @param [String] destination_object - # Name of the new object. + # Name of the new object. For information about how to URL encode object names + # to be path safe, see Encoding URI Path Parts. # @param [Google::Apis::StorageV1::ComposeRequest] compose_request_object # @param [String] destination_predefined_acl # Apply a predefined set of access controls to the destination object. @@ -1195,12 +1177,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def compose(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'b/{destinationBucket}/o/{destinationObject}/compose' + def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options) else - command = make_download_command(:post, path, options) + command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options) command.download_dest = download_dest end command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation @@ -1222,10 +1203,12 @@ module Google # @param [String] source_bucket # Name of the bucket in which to find the source object. # @param [String] source_object - # Name of the source object. + # Name of the source object. For information about how to URL encode object + # names to be path safe, see Encoding URI Path Parts. # @param [String] destination_bucket # Name of the bucket in which to store the new object. Overrides the provided - # object metadata's bucket value, if any. + # object metadata's bucket value, if any.For information about how to URL encode + # object names to be path safe, see Encoding URI Path Parts. # @param [String] destination_object # Name of the new object. Required when the object metadata is not otherwise # provided. Overrides the object metadata's name value, if any. @@ -1286,11 +1269,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}' if download_dest.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options) else - command = make_download_command(:post, path, options) + command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options) command.download_dest = download_dest end command.request_representation = Google::Apis::StorageV1::Object::Representation @@ -1323,7 +1305,8 @@ module Google # @param [String] bucket # Name of the bucket in which the object resides. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [String] generation # If present, permanently deletes a specific revision of this object (as opposed # to the latest version, the default). @@ -1361,8 +1344,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options) command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.query['generation'] = generation unless generation.nil? @@ -1380,7 +1362,8 @@ module Google # @param [String] bucket # Name of the bucket in which the object resides. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [String] generation # If present, selects a specific revision of this object (as opposed to the # latest version, the default). @@ -1422,11 +1405,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}' if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/o/{object}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'b/{bucket}/o/{object}', options) command.download_dest = download_dest end command.response_representation = Google::Apis::StorageV1::Object::Representation @@ -1469,7 +1451,9 @@ module Google # does not match the given value. # @param [String] name # Name of the object. Required when the object metadata is not otherwise - # provided. Overrides the object metadata's name value, if any. + # provided. Overrides the object metadata's name value, if any. For information + # about how to URL encode object names to be path safe, see Encoding URI Path + # Parts. # @param [String] predefined_acl # Apply a predefined set of access controls to this object. # @param [String] projection @@ -1501,11 +1485,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'b/{bucket}/o' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b/{bucket}/o', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'b/{bucket}/o', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1573,8 +1556,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'b/{bucket}/o', options) command.response_representation = Google::Apis::StorageV1::Objects::Representation command.response_class = Google::Apis::StorageV1::Objects command.params['bucket'] = bucket unless bucket.nil? @@ -1594,7 +1576,8 @@ module Google # @param [String] bucket # Name of the bucket in which the object resides. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [Google::Apis::StorageV1::Object] object_object # @param [String] generation # If present, selects a specific revision of this object (as opposed to the @@ -1637,8 +1620,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options) command.request_representation = Google::Apis::StorageV1::Object::Representation command.request_object = object_object command.response_representation = Google::Apis::StorageV1::Object::Representation @@ -1663,13 +1645,16 @@ module Google # @param [String] source_bucket # Name of the bucket in which to find the source object. # @param [String] source_object - # Name of the source object. + # Name of the source object. For information about how to URL encode object + # names to be path safe, see Encoding URI Path Parts. # @param [String] destination_bucket # Name of the bucket in which to store the new object. Overrides the provided # object metadata's bucket value, if any. # @param [String] destination_object # Name of the new object. Required when the object metadata is not otherwise - # provided. Overrides the object metadata's name value, if any. + # provided. Overrides the object metadata's name value, if any. For information + # about how to URL encode object names to be path safe, see Encoding URI Path + # Parts. # @param [Google::Apis::StorageV1::Object] object_object # @param [String] destination_predefined_acl # Apply a predefined set of access controls to the destination object. @@ -1738,8 +1723,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options) command.request_representation = Google::Apis::StorageV1::Object::Representation command.request_object = object_object command.response_representation = Google::Apis::StorageV1::RewriteResponse::Representation @@ -1771,7 +1755,8 @@ module Google # @param [String] bucket # Name of the bucket in which the object resides. # @param [String] object - # Name of the object. + # Name of the object. For information about how to URL encode object names to be + # path safe, see Encoding URI Path Parts. # @param [Google::Apis::StorageV1::Object] object_object # @param [String] generation # If present, selects a specific revision of this object (as opposed to the @@ -1816,11 +1801,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'b/{bucket}/o/{object}' if download_dest.nil? - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'b/{bucket}/o/{object}', options) else - command = make_download_command(:put, path, options) + command = make_download_command(:put, 'b/{bucket}/o/{object}', options) command.download_dest = download_dest end command.request_representation = Google::Apis::StorageV1::Object::Representation @@ -1887,9 +1871,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def watch_all_object(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'b/{bucket}/o/watch' - command = make_simple_command(:post, path, options) + def watch_all_objects(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'b/{bucket}/o/watch', options) command.request_representation = Google::Apis::StorageV1::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::StorageV1::Channel::Representation diff --git a/generated/google/apis/storagetransfer_v1.rb b/generated/google/apis/storagetransfer_v1.rb new file mode 100644 index 000000000..95d67ec5b --- /dev/null +++ b/generated/google/apis/storagetransfer_v1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/storagetransfer_v1/service.rb' +require 'google/apis/storagetransfer_v1/classes.rb' +require 'google/apis/storagetransfer_v1/representations.rb' + +module Google + module Apis + # Google Storage Transfer API + # + # Transfers data from external data sources to a Google Cloud Storage bucket or + # between Google Cloud Storage buckets. + # + # @see https://cloud.google.com/storage/transfer + module StoragetransferV1 + VERSION = 'V1' + REVISION = '20150811' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/storagetransfer_v1/classes.rb b/generated/google/apis/storagetransfer_v1/classes.rb new file mode 100644 index 000000000..6b1a109a2 --- /dev/null +++ b/generated/google/apis/storagetransfer_v1/classes.rb @@ -0,0 +1,1046 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module StoragetransferV1 + + # Google service account + class GoogleServiceAccount + include Google::Apis::Core::Hashable + + # Required. + # Corresponds to the JSON property `accountEmail` + # @return [String] + attr_accessor :account_email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_email = args[:account_email] unless args[:account_email].nil? + end + end + + # This resource represents the configuration of a transfer job that runs + # periodically. + class TransferJob + include Google::Apis::Core::Hashable + + # A globally unique name assigned by Storage Transfer Service when the job is + # created. This field should be left empty in requests to create a new transfer + # job; otherwise, the requests result in an `INVALID_ARGUMENT` error. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A description provided by the user for the job. Its max length is 1024 bytes + # when Unicode-encoded. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The ID of the Google Developers Console project that owns the job. Required. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Configuration for running a transfer. + # Corresponds to the JSON property `transferSpec` + # @return [Google::Apis::StoragetransferV1::TransferSpec] + attr_accessor :transfer_spec + + # Transfers can be scheduled to recur or to run just once. + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::StoragetransferV1::Schedule] + attr_accessor :schedule + + # Status of the job. This value MUST be specified for `CreateTransferJobRequests` + # . NOTE: The effect of the new job status takes place during a subsequent job + # run. For example, if you change the job status from `ENABLED` to `DISABLED`, + # and an operation spawned by the transfer is running, the status change would + # not affect the current operation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # This field cannot be changed by user requests. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # This field cannot be changed by user requests. + # Corresponds to the JSON property `lastModificationTime` + # @return [String] + attr_accessor :last_modification_time + + # This field cannot be changed by user requests. + # Corresponds to the JSON property `deletionTime` + # @return [String] + attr_accessor :deletion_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @description = args[:description] unless args[:description].nil? + @project_id = args[:project_id] unless args[:project_id].nil? + @transfer_spec = args[:transfer_spec] unless args[:transfer_spec].nil? + @schedule = args[:schedule] unless args[:schedule].nil? + @status = args[:status] unless args[:status].nil? + @creation_time = args[:creation_time] unless args[:creation_time].nil? + @last_modification_time = args[:last_modification_time] unless args[:last_modification_time].nil? + @deletion_time = args[:deletion_time] unless args[:deletion_time].nil? + end + end + + # Configuration for running a transfer. + class TransferSpec + include Google::Apis::Core::Hashable + + # In a GcsData, an object's name is the Google Cloud Storage object's name and + # its `lastModificationTime` refers to the object's updated time, which changes + # when the content or the metadata of the object is updated. + # Corresponds to the JSON property `gcsDataSource` + # @return [Google::Apis::StoragetransferV1::GcsData] + attr_accessor :gcs_data_source + + # An AwsS3Data can be a data source, but not a data sink. In an AwsS3Data, an + # object's name is the S3 object's key name. + # Corresponds to the JSON property `awsS3DataSource` + # @return [Google::Apis::StoragetransferV1::AwsS3Data] + attr_accessor :aws_s3_data_source + + # An HttpData specifies a list of objects on the web to be transferred over HTTP. + # The information of the objects to be transferred is contained in a file + # referenced by a URL. The first line in the file must be "TsvHttpData-1.0", + # which specifies the format of the file. Subsequent lines specify the + # information of the list of objects, one object per list entry. Each entry has + # the following tab-delimited fields: * HTTP URL * Length * MD5 - This field is + # a base64-encoded MD5 hash of the object An HTTP URL that points to the object + # to be transferred. It must be a valid URL with URL scheme HTTP or HTTPS. When + # an object with URL `http(s)://hostname:port/` is transferred to the data sink, + # the name of the object at the data sink is `/`. Length and MD5 provide the + # size and the base64-encoded MD5 hash of the object. If Length does not match + # the actual length of the object fetched, the object will not be transferred. + # If MD5 does not match the MD5 computed from the transferred bytes, the object + # transfer will fail. `lastModificationTime` is not available in HttpData + # objects. The objects that the URL list points to must allow public access. + # Storage Transfer Service obeys `robots.txt` rules and requires the HTTP server + # to support Range requests and to return a Content-Length header in each + # response. + # Corresponds to the JSON property `httpDataSource` + # @return [Google::Apis::StoragetransferV1::HttpData] + attr_accessor :http_data_source + + # In a GcsData, an object's name is the Google Cloud Storage object's name and + # its `lastModificationTime` refers to the object's updated time, which changes + # when the content or the metadata of the object is updated. + # Corresponds to the JSON property `gcsDataSink` + # @return [Google::Apis::StoragetransferV1::GcsData] + attr_accessor :gcs_data_sink + + # Conditions that determine which objects will be transferred. + # Corresponds to the JSON property `objectConditions` + # @return [Google::Apis::StoragetransferV1::ObjectConditions] + attr_accessor :object_conditions + + # TransferOptions uses three boolean parameters to define the actions to be + # performed on objects in a transfer. + # Corresponds to the JSON property `transferOptions` + # @return [Google::Apis::StoragetransferV1::TransferOptions] + attr_accessor :transfer_options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_data_source = args[:gcs_data_source] unless args[:gcs_data_source].nil? + @aws_s3_data_source = args[:aws_s3_data_source] unless args[:aws_s3_data_source].nil? + @http_data_source = args[:http_data_source] unless args[:http_data_source].nil? + @gcs_data_sink = args[:gcs_data_sink] unless args[:gcs_data_sink].nil? + @object_conditions = args[:object_conditions] unless args[:object_conditions].nil? + @transfer_options = args[:transfer_options] unless args[:transfer_options].nil? + end + end + + # In a GcsData, an object's name is the Google Cloud Storage object's name and + # its `lastModificationTime` refers to the object's updated time, which changes + # when the content or the metadata of the object is updated. + class GcsData + include Google::Apis::Core::Hashable + + # Google Cloud Storage bucket name (see [Bucket Name Requirements](https://cloud. + # google.com/storage/docs/bucket-naming#requirements)). Required. + # Corresponds to the JSON property `bucketName` + # @return [String] + attr_accessor :bucket_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket_name = args[:bucket_name] unless args[:bucket_name].nil? + end + end + + # An AwsS3Data can be a data source, but not a data sink. In an AwsS3Data, an + # object's name is the S3 object's key name. + class AwsS3Data + include Google::Apis::Core::Hashable + + # S3 Bucket name (see [Creating a bucket](http://docs.aws.amazon.com/AmazonS3/ + # latest/dev/create-bucket-get-location-example.html)). Required. + # Corresponds to the JSON property `bucketName` + # @return [String] + attr_accessor :bucket_name + + # AWS access key (see [AWS Security Credentials](http://docs.aws.amazon.com/ + # general/latest/gr/aws-security-credentials.html)). + # Corresponds to the JSON property `awsAccessKey` + # @return [Google::Apis::StoragetransferV1::AwsAccessKey] + attr_accessor :aws_access_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket_name = args[:bucket_name] unless args[:bucket_name].nil? + @aws_access_key = args[:aws_access_key] unless args[:aws_access_key].nil? + end + end + + # AWS access key (see [AWS Security Credentials](http://docs.aws.amazon.com/ + # general/latest/gr/aws-security-credentials.html)). + class AwsAccessKey + include Google::Apis::Core::Hashable + + # AWS access key ID. Required. + # Corresponds to the JSON property `accessKeyId` + # @return [String] + attr_accessor :access_key_id + + # AWS secret access key. This field is not returned in RPC responses. Required. + # Corresponds to the JSON property `secretAccessKey` + # @return [String] + attr_accessor :secret_access_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access_key_id = args[:access_key_id] unless args[:access_key_id].nil? + @secret_access_key = args[:secret_access_key] unless args[:secret_access_key].nil? + end + end + + # An HttpData specifies a list of objects on the web to be transferred over HTTP. + # The information of the objects to be transferred is contained in a file + # referenced by a URL. The first line in the file must be "TsvHttpData-1.0", + # which specifies the format of the file. Subsequent lines specify the + # information of the list of objects, one object per list entry. Each entry has + # the following tab-delimited fields: * HTTP URL * Length * MD5 - This field is + # a base64-encoded MD5 hash of the object An HTTP URL that points to the object + # to be transferred. It must be a valid URL with URL scheme HTTP or HTTPS. When + # an object with URL `http(s)://hostname:port/` is transferred to the data sink, + # the name of the object at the data sink is `/`. Length and MD5 provide the + # size and the base64-encoded MD5 hash of the object. If Length does not match + # the actual length of the object fetched, the object will not be transferred. + # If MD5 does not match the MD5 computed from the transferred bytes, the object + # transfer will fail. `lastModificationTime` is not available in HttpData + # objects. The objects that the URL list points to must allow public access. + # Storage Transfer Service obeys `robots.txt` rules and requires the HTTP server + # to support Range requests and to return a Content-Length header in each + # response. + class HttpData + include Google::Apis::Core::Hashable + + # The URL that points to the file that stores the object list entries. This file + # must allow public access. Currently, only URLs with HTTP and HTTPS schemes are + # supported. Required. + # Corresponds to the JSON property `listUrl` + # @return [String] + attr_accessor :list_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @list_url = args[:list_url] unless args[:list_url].nil? + end + end + + # Conditions that determine which objects will be transferred. + class ObjectConditions + include Google::Apis::Core::Hashable + + # If unspecified, `minTimeElapsedSinceLastModification` takes a zero value and ` + # maxTimeElapsedSinceLastModification` takes the maximum possible value of + # Duration. Objects that satisfy the object conditions must either have a ` + # lastModificationTime` greater or equal to `NOW` - ` + # maxTimeElapsedSinceLastModification` and less than `NOW` - ` + # minTimeElapsedSinceLastModification`, or not have a `lastModificationTime`. + # Corresponds to the JSON property `minTimeElapsedSinceLastModification` + # @return [String] + attr_accessor :min_time_elapsed_since_last_modification + + # `maxTimeElapsedSinceLastModification` is the complement to ` + # minTimeElapsedSinceLastModification`. + # Corresponds to the JSON property `maxTimeElapsedSinceLastModification` + # @return [String] + attr_accessor :max_time_elapsed_since_last_modification + + # If `includePrefixes` is specified, objects that satisfy the object conditions + # must have names that start with one of the `includePrefixes` and that do not + # start with any of the `excludePrefixes`. If `includePrefixes` is not specified, + # all objects except those that have names starting with one of the ` + # excludePrefixes` must satisfy the object conditions. Requirements: * Each + # include-prefix and exclude-prefix can contain any sequence of Unicode + # characters, of max length 1024 bytes when UTF8-encoded, and must not contain + # Carriage Return or Line Feed characters. Wildcard matching and regular + # expression matching are not supported. * None of the include-prefix or the + # exclude-prefix values can be empty, if specified. * Each include-prefix must + # include a distinct portion of the object namespace, i.e., no include-prefix + # may be a prefix of another include-prefix. * Each exclude-prefix must exclude + # a distinct portion of the object namespace, i.e., no exclude-prefix may be a + # prefix of another exclude-prefix. * If `includePrefixes` is specified, then + # each exclude-prefix must start with the value of a path explicitly included by + # `includePrefixes`. The max size of `includePrefixes` is 20. + # Corresponds to the JSON property `includePrefixes` + # @return [Array] + attr_accessor :include_prefixes + + # `excludePrefixes` must follow the requirements described for `includePrefixes`. + # The max size of `excludePrefixes` is 20. + # Corresponds to the JSON property `excludePrefixes` + # @return [Array] + attr_accessor :exclude_prefixes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @min_time_elapsed_since_last_modification = args[:min_time_elapsed_since_last_modification] unless args[:min_time_elapsed_since_last_modification].nil? + @max_time_elapsed_since_last_modification = args[:max_time_elapsed_since_last_modification] unless args[:max_time_elapsed_since_last_modification].nil? + @include_prefixes = args[:include_prefixes] unless args[:include_prefixes].nil? + @exclude_prefixes = args[:exclude_prefixes] unless args[:exclude_prefixes].nil? + end + end + + # TransferOptions uses three boolean parameters to define the actions to be + # performed on objects in a transfer. + class TransferOptions + include Google::Apis::Core::Hashable + + # Whether overwriting objects that already exist in the sink is allowed. + # Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink` + # @return [Boolean] + attr_accessor :overwrite_objects_already_existing_in_sink + alias_method :overwrite_objects_already_existing_in_sink?, :overwrite_objects_already_existing_in_sink + + # Whether objects that exist only in the sink should be deleted. + # Corresponds to the JSON property `deleteObjectsUniqueInSink` + # @return [Boolean] + attr_accessor :delete_objects_unique_in_sink + alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink + + # Whether objects should be deleted from the source after they are transferred + # to the sink. + # Corresponds to the JSON property `deleteObjectsFromSourceAfterTransfer` + # @return [Boolean] + attr_accessor :delete_objects_from_source_after_transfer + alias_method :delete_objects_from_source_after_transfer?, :delete_objects_from_source_after_transfer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] unless args[:overwrite_objects_already_existing_in_sink].nil? + @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] unless args[:delete_objects_unique_in_sink].nil? + @delete_objects_from_source_after_transfer = args[:delete_objects_from_source_after_transfer] unless args[:delete_objects_from_source_after_transfer].nil? + end + end + + # Transfers can be scheduled to recur or to run just once. + class Schedule + include Google::Apis::Core::Hashable + + # Represents a whole calendar date, e.g. date of birth. The time of day and time + # zone are either specified elsewhere or are not significant. The date is + # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a + # year and month where the day is not significant, e.g. credit card expiration + # date. The year may be 0 to represent a month and day independent of year, e.g. + # anniversary date. Related types are [google.type.TimeOfDay][google.type. + # TimeOfDay] and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `scheduleStartDate` + # @return [Google::Apis::StoragetransferV1::Date] + attr_accessor :schedule_start_date + + # Represents a whole calendar date, e.g. date of birth. The time of day and time + # zone are either specified elsewhere or are not significant. The date is + # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a + # year and month where the day is not significant, e.g. credit card expiration + # date. The year may be 0 to represent a month and day independent of year, e.g. + # anniversary date. Related types are [google.type.TimeOfDay][google.type. + # TimeOfDay] and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `scheduleEndDate` + # @return [Google::Apis::StoragetransferV1::Date] + attr_accessor :schedule_end_date + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may chose to allow leap seconds. Related types + # are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `startTimeOfDay` + # @return [Google::Apis::StoragetransferV1::TimeOfDay] + attr_accessor :start_time_of_day + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @schedule_start_date = args[:schedule_start_date] unless args[:schedule_start_date].nil? + @schedule_end_date = args[:schedule_end_date] unless args[:schedule_end_date].nil? + @start_time_of_day = args[:start_time_of_day] unless args[:start_time_of_day].nil? + end + end + + # Represents a whole calendar date, e.g. date of birth. The time of day and time + # zone are either specified elsewhere or are not significant. The date is + # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a + # year and month where the day is not significant, e.g. credit card expiration + # date. The year may be 0 to represent a month and day independent of year, e.g. + # anniversary date. Related types are [google.type.TimeOfDay][google.type. + # TimeOfDay] and `google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Year of date. Must be from 1 to 9,999, or 0 if specifying a date without a + # year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + # Month of year of date. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + # specifying a year/month where the day is not sigificant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @year = args[:year] unless args[:year].nil? + @month = args[:month] unless args[:month].nil? + @day = args[:day] unless args[:day].nil? + end + end + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may chose to allow leap seconds. Related types + # are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`. + class TimeOfDay + include Google::Apis::Core::Hashable + + # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to + # allow the value "24:00:00" for scenarios like business closing time. + # Corresponds to the JSON property `hours` + # @return [Fixnum] + attr_accessor :hours + + # Minutes of hour of day. Must be from 0 to 59. + # Corresponds to the JSON property `minutes` + # @return [Fixnum] + attr_accessor :minutes + + # Seconds of minutes of the time. Must normally be from 0 to 59. An API may + # allow the value 60 if it allows leap-seconds. + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hours = args[:hours] unless args[:hours].nil? + @minutes = args[:minutes] unless args[:minutes].nil? + @seconds = args[:seconds] unless args[:seconds].nil? + @nanos = args[:nanos] unless args[:nanos].nil? + end + end + + # Request passed to UpdateTransferJob. + class UpdateTransferJobRequest + include Google::Apis::Core::Hashable + + # The ID of the Google Developers Console project that owns the job. Required. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # This resource represents the configuration of a transfer job that runs + # periodically. + # Corresponds to the JSON property `transferJob` + # @return [Google::Apis::StoragetransferV1::TransferJob] + attr_accessor :transfer_job + + # The field mask of the fields in `transferJob` that are to be updated in this + # request. Fields in `transferJob` that can be updated are: `description`, ` + # transferSpec`, and `status`. To update the `transferSpec` of the job, a + # complete transfer specification has to be provided. An incomplete + # specification which misses any required fields will be rejected with the error + # `INVALID_ARGUMENT`. + # Corresponds to the JSON property `updateTransferJobFieldMask` + # @return [String] + attr_accessor :update_transfer_job_field_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_id = args[:project_id] unless args[:project_id].nil? + @transfer_job = args[:transfer_job] unless args[:transfer_job].nil? + @update_transfer_job_field_mask = args[:update_transfer_job_field_mask] unless args[:update_transfer_job_field_mask].nil? + end + end + + # Response from ListTransferJobs. + class ListTransferJobsResponse + include Google::Apis::Core::Hashable + + # A list of transfer jobs. + # Corresponds to the JSON property `transferJobs` + # @return [Array] + attr_accessor :transfer_jobs + + # The list next page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @transfer_jobs = args[:transfer_jobs] unless args[:transfer_jobs].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # Request passed to PauseTransferOperation. + class PauseTransferOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request passed to ResumeTransferOperation. + class ResumeTransferOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping above, the `name` + # should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Represents the transfer operation object. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # If the value is `false`, it means the operation is still in progress. If true, + # the operation is completed and the `result` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of [google. + # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. + # The error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. # + # Language mapping The `Status` message is the logical representation of the + # error model, but it is not necessarily the actual wire format. When the ` + # Status` message is exposed in different client libraries and different wire + # protocols, it can be mapped differently. For example, it will likely be mapped + # to some exceptions in Java, but more likely mapped to some error codes in C. # + # Other uses The error model and the `Status` message can be used in a variety + # of environments, either with or without APIs, to provide a consistent + # developer experience across different environments. Example uses of this error + # model include: - Partial errors. If a service needs to return partial errors + # to the client, it may embed the `Status` in the normal response to indicate + # the partial errors. - Workflow errors. A typical workflow has multiple steps. + # Each step may have a `Status` message for error reporting purpose. - Batch + # operations. If a client uses batch request and batch response, the `Status` + # message should be used directly inside batch response, one for each error sub- + # response. - Asynchronous operations. If an API call embeds asynchronous + # operation results in its response, the status of those operations should be + # represented directly using the `Status` message. - Logging. If some API errors + # are stored in logs, the message `Status` could be used directly after any + # stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::StoragetransferV1::Status] + attr_accessor :error + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @metadata = args[:metadata] unless args[:metadata].nil? + @done = args[:done] unless args[:done].nil? + @error = args[:error] unless args[:error].nil? + @response = args[:response] unless args[:response].nil? + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of [google. + # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. + # The error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. # + # Language mapping The `Status` message is the logical representation of the + # error model, but it is not necessarily the actual wire format. When the ` + # Status` message is exposed in different client libraries and different wire + # protocols, it can be mapped differently. For example, it will likely be mapped + # to some exceptions in Java, but more likely mapped to some error codes in C. # + # Other uses The error model and the `Status` message can be used in a variety + # of environments, either with or without APIs, to provide a consistent + # developer experience across different environments. Example uses of this error + # model include: - Partial errors. If a service needs to return partial errors + # to the client, it may embed the `Status` in the normal response to indicate + # the partial errors. - Workflow errors. A typical workflow has multiple steps. + # Each step may have a `Status` message for error reporting purpose. - Batch + # operations. If a client uses batch request and batch response, the `Status` + # message should be used directly inside batch response, one for each error sub- + # response. - Asynchronous operations. If an API call embeds asynchronous + # operation results in its response, the status of those operations should be + # represented directly using the `Status` message. - Logging. If some API errors + # are stored in logs, the message `Status` could be used directly after any + # stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of [google.rpc.Code][google.rpc. + # Code]. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the [google.rpc.Status.details][ + # google.rpc.Status.details] field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # A list of messages that carry the error details. There will be a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] unless args[:code].nil? + @message = args[:message] unless args[:message].nil? + @details = args[:details] unless args[:details].nil? + end + end + + # The response message for [Operations.ListOperations][google.longrunning. + # Operations.ListOperations]. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operations = args[:operations] unless args[:operations].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A description of the execution of a transfer. + class TransferOperation + include Google::Apis::Core::Hashable + + # A globally unique ID assigned by the system. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The ID of the Google Developers Console project that owns the operation. + # Required. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Configuration for running a transfer. + # Corresponds to the JSON property `transferSpec` + # @return [Google::Apis::StoragetransferV1::TransferSpec] + attr_accessor :transfer_spec + + # Start time of this transfer execution. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # End time of this transfer execution. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Status of the transfer operation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # A collection of counters that report the progress of a transfer operation. + # Corresponds to the JSON property `counters` + # @return [Google::Apis::StoragetransferV1::TransferCounters] + attr_accessor :counters + + # Summarizes errors encountered with sample error log entries. + # Corresponds to the JSON property `errorBreakdowns` + # @return [Array] + attr_accessor :error_breakdowns + + # The name of the transfer job that triggers this transfer operation. + # Corresponds to the JSON property `transferJobName` + # @return [String] + attr_accessor :transfer_job_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] unless args[:name].nil? + @project_id = args[:project_id] unless args[:project_id].nil? + @transfer_spec = args[:transfer_spec] unless args[:transfer_spec].nil? + @start_time = args[:start_time] unless args[:start_time].nil? + @end_time = args[:end_time] unless args[:end_time].nil? + @status = args[:status] unless args[:status].nil? + @counters = args[:counters] unless args[:counters].nil? + @error_breakdowns = args[:error_breakdowns] unless args[:error_breakdowns].nil? + @transfer_job_name = args[:transfer_job_name] unless args[:transfer_job_name].nil? + end + end + + # A collection of counters that report the progress of a transfer operation. + class TransferCounters + include Google::Apis::Core::Hashable + + # Objects found in the data source that are scheduled to be transferred, which + # will be copied, excluded based on conditions, or skipped due to failures. + # Corresponds to the JSON property `objectsFoundFromSource` + # @return [String] + attr_accessor :objects_found_from_source + + # Bytes found in the data source that are scheduled to be transferred, which + # will be copied, excluded based on conditions, or skipped due to failures. + # Corresponds to the JSON property `bytesFoundFromSource` + # @return [String] + attr_accessor :bytes_found_from_source + + # Objects found only in the data sink that are scheduled to be deleted. + # Corresponds to the JSON property `objectsFoundOnlyFromSink` + # @return [String] + attr_accessor :objects_found_only_from_sink + + # Bytes found only in the data sink that are scheduled to be deleted. + # Corresponds to the JSON property `bytesFoundOnlyFromSink` + # @return [String] + attr_accessor :bytes_found_only_from_sink + + # Objects in the data source that are not transferred because they already exist + # in the data sink. + # Corresponds to the JSON property `objectsFromSourceSkippedBySync` + # @return [String] + attr_accessor :objects_from_source_skipped_by_sync + + # Bytes in the data source that are not transferred because they already exist + # in the data sink. + # Corresponds to the JSON property `bytesFromSourceSkippedBySync` + # @return [String] + attr_accessor :bytes_from_source_skipped_by_sync + + # Objects that are copied to the data sink. + # Corresponds to the JSON property `objectsCopiedToSink` + # @return [String] + attr_accessor :objects_copied_to_sink + + # Bytes that are copied to the data sink. + # Corresponds to the JSON property `bytesCopiedToSink` + # @return [String] + attr_accessor :bytes_copied_to_sink + + # Objects that are deleted from the data source. + # Corresponds to the JSON property `objectsDeletedFromSource` + # @return [String] + attr_accessor :objects_deleted_from_source + + # Bytes that are deleted from the data source. + # Corresponds to the JSON property `bytesDeletedFromSource` + # @return [String] + attr_accessor :bytes_deleted_from_source + + # Objects that are deleted from the data sink. + # Corresponds to the JSON property `objectsDeletedFromSink` + # @return [String] + attr_accessor :objects_deleted_from_sink + + # Bytes that are deleted from the data sink. + # Corresponds to the JSON property `bytesDeletedFromSink` + # @return [String] + attr_accessor :bytes_deleted_from_sink + + # Objects in the data source that failed during the transfer. + # Corresponds to the JSON property `objectsFromSourceFailed` + # @return [String] + attr_accessor :objects_from_source_failed + + # Bytes in the data source that failed during the transfer. + # Corresponds to the JSON property `bytesFromSourceFailed` + # @return [String] + attr_accessor :bytes_from_source_failed + + # Objects that failed to be deleted from the data sink. + # Corresponds to the JSON property `objectsFailedToDeleteFromSink` + # @return [String] + attr_accessor :objects_failed_to_delete_from_sink + + # Bytes that failed to be deleted from the data sink. + # Corresponds to the JSON property `bytesFailedToDeleteFromSink` + # @return [String] + attr_accessor :bytes_failed_to_delete_from_sink + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @objects_found_from_source = args[:objects_found_from_source] unless args[:objects_found_from_source].nil? + @bytes_found_from_source = args[:bytes_found_from_source] unless args[:bytes_found_from_source].nil? + @objects_found_only_from_sink = args[:objects_found_only_from_sink] unless args[:objects_found_only_from_sink].nil? + @bytes_found_only_from_sink = args[:bytes_found_only_from_sink] unless args[:bytes_found_only_from_sink].nil? + @objects_from_source_skipped_by_sync = args[:objects_from_source_skipped_by_sync] unless args[:objects_from_source_skipped_by_sync].nil? + @bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] unless args[:bytes_from_source_skipped_by_sync].nil? + @objects_copied_to_sink = args[:objects_copied_to_sink] unless args[:objects_copied_to_sink].nil? + @bytes_copied_to_sink = args[:bytes_copied_to_sink] unless args[:bytes_copied_to_sink].nil? + @objects_deleted_from_source = args[:objects_deleted_from_source] unless args[:objects_deleted_from_source].nil? + @bytes_deleted_from_source = args[:bytes_deleted_from_source] unless args[:bytes_deleted_from_source].nil? + @objects_deleted_from_sink = args[:objects_deleted_from_sink] unless args[:objects_deleted_from_sink].nil? + @bytes_deleted_from_sink = args[:bytes_deleted_from_sink] unless args[:bytes_deleted_from_sink].nil? + @objects_from_source_failed = args[:objects_from_source_failed] unless args[:objects_from_source_failed].nil? + @bytes_from_source_failed = args[:bytes_from_source_failed] unless args[:bytes_from_source_failed].nil? + @objects_failed_to_delete_from_sink = args[:objects_failed_to_delete_from_sink] unless args[:objects_failed_to_delete_from_sink].nil? + @bytes_failed_to_delete_from_sink = args[:bytes_failed_to_delete_from_sink] unless args[:bytes_failed_to_delete_from_sink].nil? + end + end + + # A summary of errors by error code, plus a count and sample error log entries. + class ErrorSummary + include Google::Apis::Core::Hashable + + # Required. + # Corresponds to the JSON property `errorCode` + # @return [String] + attr_accessor :error_code + + # Count of this type of error. Required. + # Corresponds to the JSON property `errorCount` + # @return [String] + attr_accessor :error_count + + # Error samples. + # Corresponds to the JSON property `errorLogEntries` + # @return [Array] + attr_accessor :error_log_entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_code = args[:error_code] unless args[:error_code].nil? + @error_count = args[:error_count] unless args[:error_count].nil? + @error_log_entries = args[:error_log_entries] unless args[:error_log_entries].nil? + end + end + + # An entry describing an error that has occurred. + class ErrorLogEntry + include Google::Apis::Core::Hashable + + # A URL that refers to the target (a data source, a data sink, or an object) + # with which the error is associated. Required. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # A list of messages that carry the error details. + # Corresponds to the JSON property `errorDetails` + # @return [Array] + attr_accessor :error_details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url = args[:url] unless args[:url].nil? + @error_details = args[:error_details] unless args[:error_details].nil? + end + end + end + end +end diff --git a/generated/google/apis/storagetransfer_v1/representations.rb b/generated/google/apis/storagetransfer_v1/representations.rb new file mode 100644 index 000000000..4eddc3500 --- /dev/null +++ b/generated/google/apis/storagetransfer_v1/representations.rb @@ -0,0 +1,370 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module StoragetransferV1 + + class GoogleServiceAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TransferJob + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TransferSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GcsData + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AwsS3Data + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AwsAccessKey + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class HttpData + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ObjectConditions + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TransferOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Schedule + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TimeOfDay + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class UpdateTransferJobRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListTransferJobsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PauseTransferOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ResumeTransferOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TransferOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TransferCounters + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ErrorSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ErrorLogEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GoogleServiceAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_email, as: 'accountEmail' + end + end + + class TransferJob + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :description, as: 'description' + property :project_id, as: 'projectId' + property :transfer_spec, as: 'transferSpec', class: Google::Apis::StoragetransferV1::TransferSpec, decorator: Google::Apis::StoragetransferV1::TransferSpec::Representation + + property :schedule, as: 'schedule', class: Google::Apis::StoragetransferV1::Schedule, decorator: Google::Apis::StoragetransferV1::Schedule::Representation + + property :status, as: 'status' + property :creation_time, as: 'creationTime' + property :last_modification_time, as: 'lastModificationTime' + property :deletion_time, as: 'deletionTime' + end + end + + class TransferSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_data_source, as: 'gcsDataSource', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation + + property :aws_s3_data_source, as: 'awsS3DataSource', class: Google::Apis::StoragetransferV1::AwsS3Data, decorator: Google::Apis::StoragetransferV1::AwsS3Data::Representation + + property :http_data_source, as: 'httpDataSource', class: Google::Apis::StoragetransferV1::HttpData, decorator: Google::Apis::StoragetransferV1::HttpData::Representation + + property :gcs_data_sink, as: 'gcsDataSink', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation + + property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation + + property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation + + end + end + + class GcsData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_name, as: 'bucketName' + end + end + + class AwsS3Data + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_name, as: 'bucketName' + property :aws_access_key, as: 'awsAccessKey', class: Google::Apis::StoragetransferV1::AwsAccessKey, decorator: Google::Apis::StoragetransferV1::AwsAccessKey::Representation + + end + end + + class AwsAccessKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :access_key_id, as: 'accessKeyId' + property :secret_access_key, as: 'secretAccessKey' + end + end + + class HttpData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :list_url, as: 'listUrl' + end + end + + class ObjectConditions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min_time_elapsed_since_last_modification, as: 'minTimeElapsedSinceLastModification' + property :max_time_elapsed_since_last_modification, as: 'maxTimeElapsedSinceLastModification' + collection :include_prefixes, as: 'includePrefixes' + collection :exclude_prefixes, as: 'excludePrefixes' + end + end + + class TransferOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :overwrite_objects_already_existing_in_sink, as: 'overwriteObjectsAlreadyExistingInSink' + property :delete_objects_unique_in_sink, as: 'deleteObjectsUniqueInSink' + property :delete_objects_from_source_after_transfer, as: 'deleteObjectsFromSourceAfterTransfer' + end + end + + class Schedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :schedule_start_date, as: 'scheduleStartDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation + + property :schedule_end_date, as: 'scheduleEndDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation + + property :start_time_of_day, as: 'startTimeOfDay', class: Google::Apis::StoragetransferV1::TimeOfDay, decorator: Google::Apis::StoragetransferV1::TimeOfDay::Representation + + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :year, as: 'year' + property :month, as: 'month' + property :day, as: 'day' + end + end + + class TimeOfDay + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hours, as: 'hours' + property :minutes, as: 'minutes' + property :seconds, as: 'seconds' + property :nanos, as: 'nanos' + end + end + + class UpdateTransferJobRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + property :transfer_job, as: 'transferJob', class: Google::Apis::StoragetransferV1::TransferJob, decorator: Google::Apis::StoragetransferV1::TransferJob::Representation + + property :update_transfer_job_field_mask, as: 'updateTransferJobFieldMask' + end + end + + class ListTransferJobsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :transfer_jobs, as: 'transferJobs', class: Google::Apis::StoragetransferV1::TransferJob, decorator: Google::Apis::StoragetransferV1::TransferJob::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class PauseTransferOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ResumeTransferOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + hash :metadata, as: 'metadata' + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::StoragetransferV1::Status, decorator: Google::Apis::StoragetransferV1::Status::Representation + + hash :response, as: 'response' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :message, as: 'message' + collection :details, as: 'details' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::StoragetransferV1::Operation, decorator: Google::Apis::StoragetransferV1::Operation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class TransferOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :project_id, as: 'projectId' + property :transfer_spec, as: 'transferSpec', class: Google::Apis::StoragetransferV1::TransferSpec, decorator: Google::Apis::StoragetransferV1::TransferSpec::Representation + + property :start_time, as: 'startTime' + property :end_time, as: 'endTime' + property :status, as: 'status' + property :counters, as: 'counters', class: Google::Apis::StoragetransferV1::TransferCounters, decorator: Google::Apis::StoragetransferV1::TransferCounters::Representation + + collection :error_breakdowns, as: 'errorBreakdowns', class: Google::Apis::StoragetransferV1::ErrorSummary, decorator: Google::Apis::StoragetransferV1::ErrorSummary::Representation + + property :transfer_job_name, as: 'transferJobName' + end + end + + class TransferCounters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :objects_found_from_source, as: 'objectsFoundFromSource' + property :bytes_found_from_source, as: 'bytesFoundFromSource' + property :objects_found_only_from_sink, as: 'objectsFoundOnlyFromSink' + property :bytes_found_only_from_sink, as: 'bytesFoundOnlyFromSink' + property :objects_from_source_skipped_by_sync, as: 'objectsFromSourceSkippedBySync' + property :bytes_from_source_skipped_by_sync, as: 'bytesFromSourceSkippedBySync' + property :objects_copied_to_sink, as: 'objectsCopiedToSink' + property :bytes_copied_to_sink, as: 'bytesCopiedToSink' + property :objects_deleted_from_source, as: 'objectsDeletedFromSource' + property :bytes_deleted_from_source, as: 'bytesDeletedFromSource' + property :objects_deleted_from_sink, as: 'objectsDeletedFromSink' + property :bytes_deleted_from_sink, as: 'bytesDeletedFromSink' + property :objects_from_source_failed, as: 'objectsFromSourceFailed' + property :bytes_from_source_failed, as: 'bytesFromSourceFailed' + property :objects_failed_to_delete_from_sink, as: 'objectsFailedToDeleteFromSink' + property :bytes_failed_to_delete_from_sink, as: 'bytesFailedToDeleteFromSink' + end + end + + class ErrorSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_code, as: 'errorCode' + property :error_count, as: 'errorCount' + collection :error_log_entries, as: 'errorLogEntries', class: Google::Apis::StoragetransferV1::ErrorLogEntry, decorator: Google::Apis::StoragetransferV1::ErrorLogEntry::Representation + + end + end + + class ErrorLogEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + collection :error_details, as: 'errorDetails' + end + end + end + end +end diff --git a/generated/google/apis/storagetransfer_v1/service.rb b/generated/google/apis/storagetransfer_v1/service.rb new file mode 100644 index 000000000..7d2de262d --- /dev/null +++ b/generated/google/apis/storagetransfer_v1/service.rb @@ -0,0 +1,473 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module StoragetransferV1 + # Google Storage Transfer API + # + # Transfers data from external data sources to a Google Cloud Storage bucket or + # between Google Cloud Storage buckets. + # + # @example + # require 'google/apis/storagetransfer_v1' + # + # Storagetransfer = Google::Apis::StoragetransferV1 # Alias the module + # service = Storagetransfer::StoragetransferService.new + # + # @see https://cloud.google.com/storage/transfer + class StoragetransferService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://storagetransfer.googleapis.com/', '') + end + + # Returns the Google service account that is used by Storage Transfer Service to + # access buckets in the project where transfers run or in other projects. Each + # Google service account is associated with one Google Developers Console + # project. Users should add this service account to the Google Cloud Storage + # bucket ACLs to grant access to Storage Transfer Service. This service account + # is created and owned by Storage Transfer Service and can only be used by + # Storage Transfer Service. + # @param [String] project_id + # The ID of the Google Developers Console project that the Google service + # account is associated with. Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::GoogleServiceAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::GoogleServiceAccount] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_google_service_account(project_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/googleServiceAccounts/{projectId}', options) + command.response_representation = Google::Apis::StoragetransferV1::GoogleServiceAccount::Representation + command.response_class = Google::Apis::StoragetransferV1::GoogleServiceAccount + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the Google service account that is used by Storage Transfer Service to + # access buckets in the project where transfers run or in other projects. Each + # Google service account is associated with one Google Developers Console + # project. Users should add this service account to the Google Cloud Storage + # bucket ACLs to grant access to Storage Transfer Service. This service account + # is created and owned by Storage Transfer Service and can only be used by + # Storage Transfer Service. + # @param [String] project_id + # The ID of the Google Developers Console project that the Google service + # account is associated with. Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::GoogleServiceAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::GoogleServiceAccount] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_google_service_account_v1(project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1:getGoogleServiceAccount', options) + command.response_representation = Google::Apis::StoragetransferV1::GoogleServiceAccount::Representation + command.response_class = Google::Apis::StoragetransferV1::GoogleServiceAccount + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a transfer job that runs periodically. + # @param [Google::Apis::StoragetransferV1::TransferJob] transfer_job_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::TransferJob] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_transfer_job(transfer_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/transferJobs', options) + command.request_representation = Google::Apis::StoragetransferV1::TransferJob::Representation + command.request_object = transfer_job_object + command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation + command.response_class = Google::Apis::StoragetransferV1::TransferJob + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a transfer job. Updating a job's transfer spec does not affect + # transfer operations that are running already. Updating the scheduling of a job + # is not allowed. + # @param [String] job_name + # The name of job to update. Required. + # @param [Google::Apis::StoragetransferV1::UpdateTransferJobRequest] update_transfer_job_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::TransferJob] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_transfer_job(job_name, update_transfer_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+jobName}', options) + command.request_representation = Google::Apis::StoragetransferV1::UpdateTransferJobRequest::Representation + command.request_object = update_transfer_job_request_object + command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation + command.response_class = Google::Apis::StoragetransferV1::TransferJob + command.params['jobName'] = job_name unless job_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a transfer job. + # @param [String] job_name + # The job to get. Required. + # @param [String] project_id + # The ID of the Google Developers Console project that owns the job. Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::TransferJob] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_transfer_job(job_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+jobName}', options) + command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation + command.response_class = Google::Apis::StoragetransferV1::TransferJob + command.params['jobName'] = job_name unless job_name.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists transfer jobs. + # @param [String] filter + # A list of query parameters specified as JSON text in the form of `"`project_id` + # ":"my_project_id", "`job_names`":["jobid1","jobid2",...], "`job_statuses`":[" + # status1","status2",...]`. Since `job_names` and `job_statuses` support + # multiple values, their values must be specified with array notation. ` + # project_id` is required. `job_names` and `job_statuses` are optional. The + # valid values for `job_statuses` are case-insensitive: `ENABLED`, `DISABLED`, + # and `DELETED`. + # @param [Fixnum] page_size + # The list page size. The max allowed value is 256. + # @param [String] page_token + # The list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::ListTransferJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::ListTransferJobsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_transfer_jobs(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/transferJobs', options) + command.response_representation = Google::Apis::StoragetransferV1::ListTransferJobsResponse::Representation + command.response_class = Google::Apis::StoragetransferV1::ListTransferJobsResponse + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Pauses a transfer operation. + # @param [String] name + # The name of the transfer operation. Required. + # @param [Google::Apis::StoragetransferV1::PauseTransferOperationRequest] pause_transfer_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def pause_transfer_operation(name, pause_transfer_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:pause', options) + command.request_representation = Google::Apis::StoragetransferV1::PauseTransferOperationRequest::Representation + command.request_object = pause_transfer_operation_request_object + command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation + command.response_class = Google::Apis::StoragetransferV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Resumes a transfer operation that is paused. + # @param [String] name + # The name of the transfer operation. Required. + # @param [Google::Apis::StoragetransferV1::ResumeTransferOperationRequest] resume_transfer_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def resume_transfer_operation(name, resume_transfer_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:resume', options) + command.request_representation = Google::Apis::StoragetransferV1::ResumeTransferOperationRequest::Representation + command.request_object = resume_transfer_operation_request_object + command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation + command.response_class = Google::Apis::StoragetransferV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::StoragetransferV1::Operation::Representation + command.response_class = Google::Apis::StoragetransferV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding below allows API services to override the binding to use different + # resource name schemes, such as `users/*/operations`. + # @param [String] name + # The value `transferOperations`. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_transfer_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::StoragetransferV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::StoragetransferV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Cancels a transfer. Use the get method to check whether the cancellation + # succeeded or whether the operation completed despite cancellation. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation + command.response_class = Google::Apis::StoragetransferV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # This method is not supported and the server returns `UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::StoragetransferV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation + command.response_class = Google::Apis::StoragetransferV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/tagmanager_v1.rb b/generated/google/apis/tagmanager_v1.rb index 41dcdbb84..f85d9e0a6 100644 --- a/generated/google/apis/tagmanager_v1.rb +++ b/generated/google/apis/tagmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/tag-manager/api/v1/ module TagmanagerV1 VERSION = 'V1' - REVISION = '20150526' + REVISION = '20151112' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v1/classes.rb b/generated/google/apis/tagmanager_v1/classes.rb index d6d30e5c1..061b5bae8 100644 --- a/generated/google/apis/tagmanager_v1/classes.rb +++ b/generated/google/apis/tagmanager_v1/classes.rb @@ -88,7 +88,7 @@ module Google # Notes: # - For binary operators, include parameters named arg0 and arg1 for specifying # the left and right operands, respectively. - # - At this time, the left operand (arg0) must be a reference to a macro. + # - At this time, the left operand (arg0) must be a reference to a variable. # - For case-insensitive Regex matching, include a boolean parameter named # ignore_case that is set to true. If not specified or set to any other value, # the matching will be case sensitive. @@ -262,6 +262,11 @@ module Google # @return [String] attr_accessor :fingerprint + # The folders in the container that this version was taken from. + # Corresponds to the JSON property `folder` + # @return [Array] + attr_accessor :folder + # The macros in the container that this version was taken from. # Corresponds to the JSON property `macro` # @return [Array] @@ -309,6 +314,7 @@ module Google @container_version_id = args[:container_version_id] unless args[:container_version_id].nil? @deleted = args[:deleted] unless args[:deleted].nil? @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @folder = args[:folder] unless args[:folder].nil? @macro = args[:macro] unless args[:macro].nil? @name = args[:name] unless args[:name].nil? @notes = args[:notes] unless args[:notes].nil? @@ -451,6 +457,81 @@ module Google end end + # Represents a Google Tag Manager Folder. + class Folder + include Google::Apis::Core::Hashable + + # GTM Account ID. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # GTM Container ID. + # Corresponds to the JSON property `containerId` + # @return [String] + attr_accessor :container_id + + # The fingerprint of the GTM Folder as computed at storage time. This value is + # recomputed whenever the folder is modified. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # The Folder ID uniquely identifies the GTM Folder. + # Corresponds to the JSON property `folderId` + # @return [String] + attr_accessor :folder_id + + # Folder display name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] unless args[:account_id].nil? + @container_id = args[:container_id] unless args[:container_id].nil? + @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @folder_id = args[:folder_id] unless args[:folder_id].nil? + @name = args[:name] unless args[:name].nil? + end + end + + # Represents a Google Tag Manager Folder's contents. + class FolderEntities + include Google::Apis::Core::Hashable + + # The list of tags inside the folder. + # Corresponds to the JSON property `tag` + # @return [Array] + attr_accessor :tag + + # The list of triggers inside the folder. + # Corresponds to the JSON property `trigger` + # @return [Array] + attr_accessor :trigger + + # The list of variables inside the folder. + # Corresponds to the JSON property `variable` + # @return [Array] + attr_accessor :variable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tag = args[:tag] unless args[:tag].nil? + @trigger = args[:trigger] unless args[:trigger].nil? + @variable = args[:variable] unless args[:variable].nil? + end + end + # List AccountUsers Response. class ListAccountUsersResponse include Google::Apis::Core::Hashable @@ -533,14 +614,14 @@ module Google end end - # List Macros Response. - class ListMacrosResponse + # List Folders Response. + class ListFoldersResponse include Google::Apis::Core::Hashable - # All GTM Macros of a GTM Container. - # Corresponds to the JSON property `macros` - # @return [Array] - attr_accessor :macros + # All GTM Folders of a GTM Container. + # Corresponds to the JSON property `folders` + # @return [Array] + attr_accessor :folders def initialize(**args) update!(**args) @@ -548,26 +629,7 @@ module Google # Update properties of this object def update!(**args) - @macros = args[:macros] unless args[:macros].nil? - end - end - - # List Rules Response. - class ListRulesResponse - include Google::Apis::Core::Hashable - - # All GTM Rules of a GTM Container. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rules = args[:rules] unless args[:rules].nil? + @folders = args[:folders] unless args[:folders].nil? end end @@ -682,6 +744,11 @@ module Google # @return [Array] attr_accessor :parameter + # Parent folder id. + # Corresponds to the JSON property `parentFolderId` + # @return [String] + attr_accessor :parent_folder_id + # The end timestamp in milliseconds to schedule a macro. # Corresponds to the JSON property `scheduleEndMs` # @return [String] @@ -712,6 +779,7 @@ module Google @name = args[:name] unless args[:name].nil? @notes = args[:notes] unless args[:notes].nil? @parameter = args[:parameter] unless args[:parameter].nil? + @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil? @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil? @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil? @type = args[:type] unless args[:type].nil? @@ -743,14 +811,14 @@ module Google # - integer: The value represents a 64-bit signed integer value, in base 10 # - list: A list of parameters should be specified # - map: A map of parameters should be specified - # - template: The value represents any text; this can include macro references ( - # even macro references that might return non-string types) + # - template: The value represents any text; this can include variable + # references (even variable references that might return non-string types) # Corresponds to the JSON property `type` # @return [String] attr_accessor :type - # A parameter's value (may contain macro references such as "``myMacro``") as - # appropriate to the specified type. + # A parameter's value (may contain variable references such as "``myVariable``") + # as appropriate to the specified type. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -851,6 +919,33 @@ module Google end end + # + class SetupTag + include Google::Apis::Core::Hashable + + # If true, fire the main tag if and only if the setup tag fires successfully. If + # false, fire the main tag regardless of setup tag firing status. + # Corresponds to the JSON property `stopOnSetupFailure` + # @return [Boolean] + attr_accessor :stop_on_setup_failure + alias_method :stop_on_setup_failure?, :stop_on_setup_failure + + # The name of the setup tag. + # Corresponds to the JSON property `tagName` + # @return [String] + attr_accessor :tag_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @stop_on_setup_failure = args[:stop_on_setup_failure] unless args[:stop_on_setup_failure].nil? + @tag_name = args[:tag_name] unless args[:tag_name].nil? + end + end + # Represents a Google Tag Manager Tag. class Tag include Google::Apis::Core::Hashable @@ -917,6 +1012,11 @@ module Google # @return [Array] attr_accessor :parameter + # Parent folder id. + # Corresponds to the JSON property `parentFolderId` + # @return [String] + attr_accessor :parent_folder_id + # Represents a Google Tag Manager Parameter. # Corresponds to the JSON property `priority` # @return [Google::Apis::TagmanagerV1::Parameter] @@ -932,11 +1032,26 @@ module Google # @return [String] attr_accessor :schedule_start_ms + # The list of setup tags. Currently we only allow one. + # Corresponds to the JSON property `setupTag` + # @return [Array] + attr_accessor :setup_tag + + # Option to fire this tag. + # Corresponds to the JSON property `tagFiringOption` + # @return [String] + attr_accessor :tag_firing_option + # The Tag ID uniquely identifies the GTM Tag. # Corresponds to the JSON property `tagId` # @return [String] attr_accessor :tag_id + # The list of teardown tags. Currently we only allow one. + # Corresponds to the JSON property `teardownTag` + # @return [Array] + attr_accessor :teardown_tag + # GTM Tag Type. # Corresponds to the JSON property `type` # @return [String] @@ -959,14 +1074,45 @@ module Google @name = args[:name] unless args[:name].nil? @notes = args[:notes] unless args[:notes].nil? @parameter = args[:parameter] unless args[:parameter].nil? + @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil? @priority = args[:priority] unless args[:priority].nil? @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil? @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil? + @setup_tag = args[:setup_tag] unless args[:setup_tag].nil? + @tag_firing_option = args[:tag_firing_option] unless args[:tag_firing_option].nil? @tag_id = args[:tag_id] unless args[:tag_id].nil? + @teardown_tag = args[:teardown_tag] unless args[:teardown_tag].nil? @type = args[:type] unless args[:type].nil? end end + # + class TeardownTag + include Google::Apis::Core::Hashable + + # If true, fire the teardown tag if and only if the main tag fires successfully. + # If false, fire the teardown tag regardless of main tag firing status. + # Corresponds to the JSON property `stopTeardownOnFailure` + # @return [Boolean] + attr_accessor :stop_teardown_on_failure + alias_method :stop_teardown_on_failure?, :stop_teardown_on_failure + + # The name of the teardown tag. + # Corresponds to the JSON property `tagName` + # @return [String] + attr_accessor :tag_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @stop_teardown_on_failure = args[:stop_teardown_on_failure] unless args[:stop_teardown_on_failure].nil? + @tag_name = args[:tag_name] unless args[:tag_name].nil? + end + end + # Represents a Google Tag Manager Trigger class Trigger include Google::Apis::Core::Hashable @@ -1032,6 +1178,11 @@ module Google # @return [String] attr_accessor :name + # Parent folder id. + # Corresponds to the JSON property `parentFolderId` + # @return [String] + attr_accessor :parent_folder_id + # The Trigger ID uniquely identifies the GTM Trigger. # Corresponds to the JSON property `triggerId` # @return [String] @@ -1080,6 +1231,7 @@ module Google @interval = args[:interval] unless args[:interval].nil? @limit = args[:limit] unless args[:limit].nil? @name = args[:name] unless args[:name].nil? + @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil? @trigger_id = args[:trigger_id] unless args[:trigger_id].nil? @type = args[:type] unless args[:type].nil? @unique_trigger_id = args[:unique_trigger_id] unless args[:unique_trigger_id].nil? @@ -1181,6 +1333,11 @@ module Google # @return [Array] attr_accessor :parameter + # Parent folder id. + # Corresponds to the JSON property `parentFolderId` + # @return [String] + attr_accessor :parent_folder_id + # The end timestamp in milliseconds to schedule a variable. # Corresponds to the JSON property `scheduleEndMs` # @return [String] @@ -1215,6 +1372,7 @@ module Google @name = args[:name] unless args[:name].nil? @notes = args[:notes] unless args[:notes].nil? @parameter = args[:parameter] unless args[:parameter].nil? + @parent_folder_id = args[:parent_folder_id] unless args[:parent_folder_id].nil? @schedule_end_ms = args[:schedule_end_ms] unless args[:schedule_end_ms].nil? @schedule_start_ms = args[:schedule_start_ms] unless args[:schedule_start_ms].nil? @type = args[:type] unless args[:type].nil? diff --git a/generated/google/apis/tagmanager_v1/representations.rb b/generated/google/apis/tagmanager_v1/representations.rb index 2bb9d87bd..1723ba612 100644 --- a/generated/google/apis/tagmanager_v1/representations.rb +++ b/generated/google/apis/tagmanager_v1/representations.rb @@ -58,6 +58,14 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Folder + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class FolderEntities + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class ListAccountUsersResponse class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -74,11 +82,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end - class ListMacrosResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - end - - class ListRulesResponse + class ListFoldersResponse class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -110,10 +114,18 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class SetupTag + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Tag class Representation < Google::Apis::Core::JsonRepresentation; end end + class TeardownTag + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Trigger class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -187,6 +199,8 @@ module Google property :container_version_id, as: 'containerVersionId' property :deleted, as: 'deleted' property :fingerprint, as: 'fingerprint' + collection :folder, as: 'folder', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation + collection :macro, as: 'macro', class: Google::Apis::TagmanagerV1::Macro, decorator: Google::Apis::TagmanagerV1::Macro::Representation property :name, as: 'name' @@ -236,6 +250,29 @@ module Google end end + class Folder + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :container_id, as: 'containerId' + property :fingerprint, as: 'fingerprint' + property :folder_id, as: 'folderId' + property :name, as: 'name' + end + end + + class FolderEntities + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :tag, as: 'tag', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation + + collection :trigger, as: 'trigger', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation + + collection :variable, as: 'variable', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation + + end + end + class ListAccountUsersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -270,18 +307,10 @@ module Google end end - class ListMacrosResponse + class ListFoldersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :macros, as: 'macros', class: Google::Apis::TagmanagerV1::Macro, decorator: Google::Apis::TagmanagerV1::Macro::Representation - - end - end - - class ListRulesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rules, as: 'rules', class: Google::Apis::TagmanagerV1::Rule, decorator: Google::Apis::TagmanagerV1::Rule::Representation + collection :folders, as: 'folders', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation end end @@ -323,6 +352,7 @@ module Google property :notes, as: 'notes' collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation + property :parent_folder_id, as: 'parentFolderId' property :schedule_end_ms, as: 'scheduleEndMs' property :schedule_start_ms, as: 'scheduleStartMs' property :type, as: 'type' @@ -365,6 +395,14 @@ module Google end end + class SetupTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :stop_on_setup_failure, as: 'stopOnSetupFailure' + property :tag_name, as: 'tagName' + end + end + class Tag # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -380,15 +418,29 @@ module Google property :notes, as: 'notes' collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation + property :parent_folder_id, as: 'parentFolderId' property :priority, as: 'priority', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation property :schedule_end_ms, as: 'scheduleEndMs' property :schedule_start_ms, as: 'scheduleStartMs' + collection :setup_tag, as: 'setupTag', class: Google::Apis::TagmanagerV1::SetupTag, decorator: Google::Apis::TagmanagerV1::SetupTag::Representation + + property :tag_firing_option, as: 'tagFiringOption' property :tag_id, as: 'tagId' + collection :teardown_tag, as: 'teardownTag', class: Google::Apis::TagmanagerV1::TeardownTag, decorator: Google::Apis::TagmanagerV1::TeardownTag::Representation + property :type, as: 'type' end end + class TeardownTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :stop_teardown_on_failure, as: 'stopTeardownOnFailure' + property :tag_name, as: 'tagName' + end + end + class Trigger # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -412,6 +464,7 @@ module Google property :limit, as: 'limit', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation property :name, as: 'name' + property :parent_folder_id, as: 'parentFolderId' property :trigger_id, as: 'triggerId' property :type, as: 'type' property :unique_trigger_id, as: 'uniqueTriggerId', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation @@ -450,6 +503,7 @@ module Google property :notes, as: 'notes' collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation + property :parent_folder_id, as: 'parentFolderId' property :schedule_end_ms, as: 'scheduleEndMs' property :schedule_start_ms, as: 'scheduleStartMs' property :type, as: 'type' diff --git a/generated/google/apis/tagmanager_v1/service.rb b/generated/google/apis/tagmanager_v1/service.rb index c95cd4436..618491f85 100644 --- a/generated/google/apis/tagmanager_v1/service.rb +++ b/generated/google/apis/tagmanager_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}', options) command.response_representation = Google::Apis::TagmanagerV1::Account::Representation command.response_class = Google::Apis::TagmanagerV1::Account command.params['accountId'] = account_id unless account_id.nil? @@ -111,8 +110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts', options) command.response_representation = Google::Apis::TagmanagerV1::ListAccountsResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListAccountsResponse command.query['fields'] = fields unless fields.nil? @@ -150,8 +148,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_account(account_id, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}', options) command.request_representation = Google::Apis::TagmanagerV1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::TagmanagerV1::Account::Representation @@ -190,8 +187,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_container(account_id, container_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers', options) command.request_representation = Google::Apis::TagmanagerV1::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV1::Container::Representation @@ -230,8 +226,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? @@ -267,8 +262,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}', options) command.response_representation = Google::Apis::TagmanagerV1::Container::Representation command.response_class = Google::Apis::TagmanagerV1::Container command.params['accountId'] = account_id unless account_id.nil? @@ -304,8 +298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_containers(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers', options) command.response_representation = Google::Apis::TagmanagerV1::ListContainersResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListContainersResponse command.params['accountId'] = account_id unless account_id.nil? @@ -346,8 +339,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_container(account_id, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}', options) command.request_representation = Google::Apis::TagmanagerV1::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV1::Container::Representation @@ -361,12 +353,12 @@ module Google execute_or_queue_command(command, &block) end - # Creates a GTM Macro. + # Creates a GTM Folder. # @param [String] account_id # The GTM Account ID. # @param [String] container_id # The GTM Container ID. - # @param [Google::Apis::TagmanagerV1::Macro] macro_object + # @param [Google::Apis::TagmanagerV1::Folder] folder_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -380,21 +372,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::Macro] parsed result object + # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::TagmanagerV1::Macro] + # @return [Google::Apis::TagmanagerV1::Folder] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_macro(account_id, container_id, macro_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/macros' - command = make_simple_command(:post, path, options) - command.request_representation = Google::Apis::TagmanagerV1::Macro::Representation - command.request_object = macro_object - command.response_representation = Google::Apis::TagmanagerV1::Macro::Representation - command.response_class = Google::Apis::TagmanagerV1::Macro + def create_account_container_folder(account_id, container_id, folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/folders', options) + command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation + command.request_object = folder_object + command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation + command.response_class = Google::Apis::TagmanagerV1::Folder command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? @@ -403,13 +394,13 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a GTM Macro. + # Deletes a GTM Folder. # @param [String] account_id # The GTM Account ID. # @param [String] container_id # The GTM Container ID. - # @param [String] macro_id - # The GTM Macro ID. + # @param [String] folder_id + # The GTM Folder ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -431,25 +422,24 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_macro(account_id, container_id, macro_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/macros/{macroId}' - command = make_simple_command(:delete, path, options) + def delete_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? - command.params['macroId'] = macro_id unless macro_id.nil? + command.params['folderId'] = folder_id unless folder_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Gets a GTM Macro. + # Gets a GTM Folder. # @param [String] account_id # The GTM Account ID. # @param [String] container_id # The GTM Container ID. - # @param [String] macro_id - # The GTM Macro ID. + # @param [String] folder_id + # The GTM Folder ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -463,29 +453,28 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::Macro] parsed result object + # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::TagmanagerV1::Macro] + # @return [Google::Apis::TagmanagerV1::Folder] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_macro(account_id, container_id, macro_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/macros/{macroId}' - command = make_simple_command(:get, path, options) - command.response_representation = Google::Apis::TagmanagerV1::Macro::Representation - command.response_class = Google::Apis::TagmanagerV1::Macro + def get_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) + command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation + command.response_class = Google::Apis::TagmanagerV1::Folder command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? - command.params['macroId'] = macro_id unless macro_id.nil? + command.params['folderId'] = folder_id unless folder_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Lists all GTM Macros of a Container. + # Lists all GTM Folders of a Container. # @param [String] account_id # The GTM Account ID. # @param [String] container_id @@ -503,19 +492,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::ListMacrosResponse] parsed result object + # @yieldparam result [Google::Apis::TagmanagerV1::ListFoldersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::TagmanagerV1::ListMacrosResponse] + # @return [Google::Apis::TagmanagerV1::ListFoldersResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_macros(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/macros' - command = make_simple_command(:get, path, options) - command.response_representation = Google::Apis::TagmanagerV1::ListMacrosResponse::Representation - command.response_class = Google::Apis::TagmanagerV1::ListMacrosResponse + def list_account_container_folders(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders', options) + command.response_representation = Google::Apis::TagmanagerV1::ListFoldersResponse::Representation + command.response_class = Google::Apis::TagmanagerV1::ListFoldersResponse command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? @@ -524,16 +512,16 @@ module Google execute_or_queue_command(command, &block) end - # Updates a GTM Macro. + # Updates a GTM Folder. # @param [String] account_id # The GTM Account ID. # @param [String] container_id # The GTM Container ID. - # @param [String] macro_id - # The GTM Macro ID. - # @param [Google::Apis::TagmanagerV1::Macro] macro_object + # @param [String] folder_id + # The GTM Folder ID. + # @param [Google::Apis::TagmanagerV1::Folder] folder_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the macro in + # When provided, this fingerprint must match the fingerprint of the folder in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -548,24 +536,23 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::Macro] parsed result object + # @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::TagmanagerV1::Macro] + # @return [Google::Apis::TagmanagerV1::Folder] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - 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) - path = 'accounts/{accountId}/containers/{containerId}/macros/{macroId}' - command = make_simple_command(:put, path, options) - command.request_representation = Google::Apis::TagmanagerV1::Macro::Representation - command.request_object = macro_object - command.response_representation = Google::Apis::TagmanagerV1::Macro::Representation - command.response_class = Google::Apis::TagmanagerV1::Macro + def update_account_container_folder(account_id, container_id, folder_id, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) + command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation + command.request_object = folder_object + command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation + command.response_class = Google::Apis::TagmanagerV1::Folder command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? - command.params['macroId'] = macro_id unless macro_id.nil? + command.params['folderId'] = folder_id unless folder_id.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -573,12 +560,13 @@ module Google execute_or_queue_command(command, &block) end - # Creates a GTM Rule. + # List all entities in a GTM Folder. # @param [String] account_id # The GTM Account ID. # @param [String] container_id # The GTM Container ID. - # @param [Google::Apis::TagmanagerV1::Rule] rule_object + # @param [String] folder_id + # The GTM Folder ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -592,36 +580,40 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::Rule] parsed result object + # @yieldparam result [Google::Apis::TagmanagerV1::FolderEntities] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::TagmanagerV1::Rule] + # @return [Google::Apis::TagmanagerV1::FolderEntities] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_rule(account_id, container_id, rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/rules' - command = make_simple_command(:post, path, options) - command.request_representation = Google::Apis::TagmanagerV1::Rule::Representation - command.request_object = rule_object - command.response_representation = Google::Apis::TagmanagerV1::Rule::Representation - command.response_class = Google::Apis::TagmanagerV1::Rule + def list_account_container_folder_entities(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', options) + command.response_representation = Google::Apis::TagmanagerV1::FolderEntities::Representation + command.response_class = Google::Apis::TagmanagerV1::FolderEntities command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? + command.params['folderId'] = folder_id unless folder_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Deletes a GTM Rule. + # Moves entities to a GTM Folder. # @param [String] account_id # The GTM Account ID. # @param [String] container_id # The GTM Container ID. - # @param [String] rule_id - # The GTM Rule ID. + # @param [String] folder_id + # The GTM Folder ID. + # @param [Array, String] tag_id + # The tags to be moved to the folder. + # @param [Array, String] trigger_id + # The triggers to be moved to the folder. + # @param [Array, String] variable_id + # The variables to be moved to the folder. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -643,142 +635,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_rule(account_id, container_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}' - command = make_simple_command(:delete, path, options) + def update_account_container_move_folder(account_id, container_id, folder_id, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? - command.params['ruleId'] = rule_id unless rule_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Gets a GTM Rule. - # @param [String] account_id - # The GTM Account ID. - # @param [String] container_id - # The GTM Container ID. - # @param [String] rule_id - # The GTM Rule ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # Overrides userIp if both are provided. - # @param [String] user_ip - # IP address of the site where the request originates. Use this if you want to - # enforce per-user limits. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::Rule] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::TagmanagerV1::Rule] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_rule(account_id, container_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}' - command = make_simple_command(:get, path, options) - command.response_representation = Google::Apis::TagmanagerV1::Rule::Representation - command.response_class = Google::Apis::TagmanagerV1::Rule - command.params['accountId'] = account_id unless account_id.nil? - command.params['containerId'] = container_id unless container_id.nil? - command.params['ruleId'] = rule_id unless rule_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists all GTM Rules of a Container. - # @param [String] account_id - # The GTM Account ID. - # @param [String] container_id - # The GTM Container ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # Overrides userIp if both are provided. - # @param [String] user_ip - # IP address of the site where the request originates. Use this if you want to - # enforce per-user limits. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::ListRulesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::TagmanagerV1::ListRulesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_rules(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/rules' - command = make_simple_command(:get, path, options) - command.response_representation = Google::Apis::TagmanagerV1::ListRulesResponse::Representation - command.response_class = Google::Apis::TagmanagerV1::ListRulesResponse - command.params['accountId'] = account_id unless account_id.nil? - command.params['containerId'] = container_id unless container_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates a GTM Rule. - # @param [String] account_id - # The GTM Account ID. - # @param [String] container_id - # The GTM Container ID. - # @param [String] rule_id - # The GTM Rule ID. - # @param [Google::Apis::TagmanagerV1::Rule] rule_object - # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the rule in - # storage. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # Overrides userIp if both are provided. - # @param [String] user_ip - # IP address of the site where the request originates. Use this if you want to - # enforce per-user limits. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::TagmanagerV1::Rule] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::TagmanagerV1::Rule] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - 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) - path = 'accounts/{accountId}/containers/{containerId}/rules/{ruleId}' - command = make_simple_command(:put, path, options) - command.request_representation = Google::Apis::TagmanagerV1::Rule::Representation - command.request_object = rule_object - command.response_representation = Google::Apis::TagmanagerV1::Rule::Representation - command.response_class = Google::Apis::TagmanagerV1::Rule - command.params['accountId'] = account_id unless account_id.nil? - command.params['containerId'] = container_id unless container_id.nil? - command.params['ruleId'] = rule_id unless rule_id.nil? - command.query['fingerprint'] = fingerprint unless fingerprint.nil? + command.params['folderId'] = folder_id unless folder_id.nil? + command.query['tagId'] = tag_id unless tag_id.nil? + command.query['triggerId'] = trigger_id unless trigger_id.nil? + command.query['variableId'] = variable_id unless variable_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -813,8 +677,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/tags' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/tags', options) command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation @@ -856,8 +719,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['tagId'] = tag_id unless tag_id.nil? @@ -896,8 +758,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation command.response_class = Google::Apis::TagmanagerV1::Tag command.params['accountId'] = account_id unless account_id.nil? @@ -936,8 +797,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tags(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/tags' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags', options) command.response_representation = Google::Apis::TagmanagerV1::ListTagsResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListTagsResponse command.params['accountId'] = account_id unless account_id.nil? @@ -981,8 +841,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required 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) - path = 'accounts/{accountId}/containers/{containerId}/tags/{tagId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation @@ -1025,8 +884,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/triggers' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/triggers', options) command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation @@ -1068,8 +926,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['triggerId'] = trigger_id unless trigger_id.nil? @@ -1108,8 +965,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation command.response_class = Google::Apis::TagmanagerV1::Trigger command.params['accountId'] = account_id unless account_id.nil? @@ -1148,8 +1004,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_triggers(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/triggers' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers', options) command.response_representation = Google::Apis::TagmanagerV1::ListTriggersResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListTriggersResponse command.params['accountId'] = account_id unless account_id.nil? @@ -1193,8 +1048,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required 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) - path = 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation @@ -1237,8 +1091,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/variables' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/variables', options) command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation @@ -1280,8 +1133,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['variableId'] = variable_id unless variable_id.nil? @@ -1320,8 +1172,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation command.response_class = Google::Apis::TagmanagerV1::Variable command.params['accountId'] = account_id unless account_id.nil? @@ -1360,8 +1211,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_variables(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/variables' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables', options) command.response_representation = Google::Apis::TagmanagerV1::ListVariablesResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListVariablesResponse command.params['accountId'] = account_id unless account_id.nil? @@ -1405,8 +1255,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required 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) - path = 'accounts/{accountId}/containers/{containerId}/variables/{variableId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation @@ -1449,8 +1298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required 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) - path = 'accounts/{accountId}/containers/{containerId}/versions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions', options) command.request_representation = Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions::Representation command.request_object = create_container_version_request_version_options_object command.response_representation = Google::Apis::TagmanagerV1::CreateContainerVersionResponse::Representation @@ -1492,8 +1340,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['containerVersionId'] = container_version_id unless container_version_id.nil? @@ -1533,8 +1380,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV1::ContainerVersion command.params['accountId'] = account_id unless account_id.nil? @@ -1553,6 +1399,8 @@ module Google # The GTM Container ID. # @param [Boolean] headers # Retrieve headers only when true. + # @param [Boolean] include_deleted + # Also retrieve deleted (archived) versions when true. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1574,14 +1422,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_versions(account_id, container_id, headers: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/versions' - command = make_simple_command(:get, path, options) + def list_versions(account_id, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions', options) command.response_representation = Google::Apis::TagmanagerV1::ListContainerVersionsResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListContainerVersionsResponse command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['headers'] = headers unless headers.nil? + command.query['includeDeleted'] = include_deleted unless include_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1620,8 +1468,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', options) command.response_representation = Google::Apis::TagmanagerV1::PublishContainerVersionResponse::Representation command.response_class = Google::Apis::TagmanagerV1::PublishContainerVersionResponse command.params['accountId'] = account_id unless account_id.nil? @@ -1635,8 +1482,8 @@ module Google end # Restores a Container Version. This will overwrite the container's current - # configuration (including its macros, rules and tags). The operation will not - # have any effect on the version that is being served (i.e. the published + # configuration (including its variables, triggers and tags). The operation will + # not have any effect on the version that is being served (i.e. the published # version). # @param [String] account_id # The GTM Account ID. @@ -1666,8 +1513,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', options) command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV1::ContainerVersion command.params['accountId'] = account_id unless account_id.nil? @@ -1708,8 +1554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', options) command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV1::ContainerVersion command.params['accountId'] = account_id unless account_id.nil? @@ -1754,8 +1599,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required 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) - path = 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) command.request_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.request_object = container_version_object command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation @@ -1796,8 +1640,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/permissions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'accounts/{accountId}/permissions', options) command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation command.request_object = user_access_object command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation @@ -1837,8 +1680,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/permissions/{permissionId}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'accounts/{accountId}/permissions/{permissionId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? command.query['fields'] = fields unless fields.nil? @@ -1874,8 +1716,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/permissions/{permissionId}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/permissions/{permissionId}', options) command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation command.response_class = Google::Apis::TagmanagerV1::UserAccess command.params['accountId'] = account_id unless account_id.nil? @@ -1912,8 +1753,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_permissions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/permissions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'accounts/{accountId}/permissions', options) command.response_representation = Google::Apis::TagmanagerV1::ListAccountUsersResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListAccountUsersResponse command.params['accountId'] = account_id unless account_id.nil? @@ -1951,8 +1791,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'accounts/{accountId}/permissions/{permissionId}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'accounts/{accountId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation command.request_object = user_access_object command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation diff --git a/generated/google/apis/taskqueue_v1beta2/service.rb b/generated/google/apis/taskqueue_v1beta2/service.rb index 295777db9..556f854e1 100644 --- a/generated/google/apis/taskqueue_v1beta2/service.rb +++ b/generated/google/apis/taskqueue_v1beta2/service.rb @@ -81,8 +81,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_taskqueue(project, taskqueue, get_stats: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}', options) command.response_representation = Google::Apis::TaskqueueV1beta2::TaskQueue::Representation command.response_class = Google::Apis::TaskqueueV1beta2::TaskQueue command.params['project'] = project unless project.nil? @@ -123,8 +122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_task(project, taskqueue, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}/tasks/{task}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, '{project}/taskqueues/{taskqueue}/tasks/{task}', options) command.params['project'] = project unless project.nil? command.params['taskqueue'] = taskqueue unless taskqueue.nil? command.params['task'] = task unless task.nil? @@ -163,8 +161,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_task(project, taskqueue, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}/tasks/{task}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}/tasks/{task}', options) command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation command.response_class = Google::Apis::TaskqueueV1beta2::Task command.params['project'] = project unless project.nil? @@ -204,8 +201,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_task(project, taskqueue, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}/tasks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/taskqueues/{taskqueue}/tasks', options) command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation command.request_object = task_object command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation @@ -255,8 +251,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def lease_task(project, taskqueue, num_tasks, lease_secs, group_by_tag: nil, tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}/tasks/lease' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/taskqueues/{taskqueue}/tasks/lease', options) command.response_representation = Google::Apis::TaskqueueV1beta2::Tasks::Representation command.response_class = Google::Apis::TaskqueueV1beta2::Tasks command.params['project'] = project unless project.nil? @@ -298,8 +293,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tasks(project, taskqueue, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}/tasks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}/tasks', options) command.response_representation = Google::Apis::TaskqueueV1beta2::Tasks2::Representation command.response_class = Google::Apis::TaskqueueV1beta2::Tasks2 command.params['project'] = project unless project.nil? @@ -341,8 +335,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_task(project, taskqueue, task, new_lease_seconds, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}/tasks/{task}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, '{project}/taskqueues/{taskqueue}/tasks/{task}', options) command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation command.request_object = task_object command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation @@ -387,8 +380,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_task(project, taskqueue, task, new_lease_seconds, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = '{project}/taskqueues/{taskqueue}/tasks/{task}' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, '{project}/taskqueues/{taskqueue}/tasks/{task}', options) command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation command.request_object = task_object command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation diff --git a/generated/google/apis/tasks_v1/service.rb b/generated/google/apis/tasks_v1/service.rb index 9d50cb604..4c9605299 100644 --- a/generated/google/apis/tasks_v1/service.rb +++ b/generated/google/apis/tasks_v1/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/@me/lists/{tasklist}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'users/@me/lists/{tasklist}', options) command.params['tasklist'] = tasklist unless tasklist.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -111,8 +110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/@me/lists/{tasklist}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/@me/lists/{tasklist}', options) command.response_representation = Google::Apis::TasksV1::TaskList::Representation command.response_class = Google::Apis::TasksV1::TaskList command.params['tasklist'] = tasklist unless tasklist.nil? @@ -146,8 +144,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_tasklist(task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/@me/lists' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'users/@me/lists', options) command.request_representation = Google::Apis::TasksV1::TaskList::Representation command.request_object = task_list_object command.response_representation = Google::Apis::TasksV1::TaskList::Representation @@ -186,8 +183,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tasklists(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/@me/lists' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'users/@me/lists', options) command.response_representation = Google::Apis::TasksV1::TaskLists::Representation command.response_class = Google::Apis::TasksV1::TaskLists command.query['maxResults'] = max_results unless max_results.nil? @@ -225,8 +221,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/@me/lists/{tasklist}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'users/@me/lists/{tasklist}', options) command.request_representation = Google::Apis::TasksV1::TaskList::Representation command.request_object = task_list_object command.response_representation = Google::Apis::TasksV1::TaskList::Representation @@ -264,8 +259,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'users/@me/lists/{tasklist}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'users/@me/lists/{tasklist}', options) command.request_representation = Google::Apis::TasksV1::TaskList::Representation command.request_object = task_list_object command.response_representation = Google::Apis::TasksV1::TaskList::Representation @@ -304,8 +298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def clear_task(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/clear' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'lists/{tasklist}/clear', options) command.params['tasklist'] = tasklist unless tasklist.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -340,8 +333,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/tasks/{task}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'lists/{tasklist}/tasks/{task}', options) command.params['tasklist'] = tasklist unless tasklist.nil? command.params['task'] = task unless task.nil? command.query['fields'] = fields unless fields.nil? @@ -377,8 +369,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/tasks/{task}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'lists/{tasklist}/tasks/{task}', options) command.response_representation = Google::Apis::TasksV1::Task::Representation command.response_class = Google::Apis::TasksV1::Task command.params['tasklist'] = tasklist unless tasklist.nil? @@ -421,8 +412,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_task(tasklist, task_object = nil, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/tasks' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'lists/{tasklist}/tasks', options) command.request_representation = Google::Apis::TasksV1::Task::Representation command.request_object = task_object command.response_representation = Google::Apis::TasksV1::Task::Representation @@ -490,8 +480,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_tasks(tasklist, completed_max: nil, completed_min: nil, due_max: nil, due_min: nil, max_results: nil, page_token: nil, show_completed: nil, show_deleted: nil, show_hidden: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/tasks' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'lists/{tasklist}/tasks', options) command.response_representation = Google::Apis::TasksV1::Tasks::Representation command.response_class = Google::Apis::TasksV1::Tasks command.params['tasklist'] = tasklist unless tasklist.nil? @@ -546,8 +535,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/tasks/{task}/move' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'lists/{tasklist}/tasks/{task}/move', options) command.response_representation = Google::Apis::TasksV1::Task::Representation command.response_class = Google::Apis::TasksV1::Task command.params['tasklist'] = tasklist unless tasklist.nil? @@ -588,8 +576,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/tasks/{task}' - command = make_simple_command(:patch, path, options) + command = make_simple_command(:patch, 'lists/{tasklist}/tasks/{task}', options) command.request_representation = Google::Apis::TasksV1::Task::Representation command.request_object = task_object command.response_representation = Google::Apis::TasksV1::Task::Representation @@ -630,8 +617,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'lists/{tasklist}/tasks/{task}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'lists/{tasklist}/tasks/{task}', options) command.request_representation = Google::Apis::TasksV1::Task::Representation command.request_object = task_object command.response_representation = Google::Apis::TasksV1::Task::Representation diff --git a/generated/google/apis/translate_v2/service.rb b/generated/google/apis/translate_v2/service.rb index 283a09213..4c427c9d7 100644 --- a/generated/google/apis/translate_v2/service.rb +++ b/generated/google/apis/translate_v2/service.rb @@ -77,8 +77,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_detections(q, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'v2/detect' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v2/detect', options) command.response_representation = Google::Apis::TranslateV2::ListDetectionsResponse::Representation command.response_class = Google::Apis::TranslateV2::ListDetectionsResponse command.query['q'] = q unless q.nil? @@ -113,8 +112,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_languages(target: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'v2/languages' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v2/languages', options) command.response_representation = Google::Apis::TranslateV2::ListLanguagesResponse::Representation command.response_class = Google::Apis::TranslateV2::ListLanguagesResponse command.query['target'] = target unless target.nil? @@ -157,8 +155,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_translations(q, target, cid: nil, format: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'v2' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'v2', options) command.response_representation = Google::Apis::TranslateV2::ListTranslationsResponse::Representation command.response_class = Google::Apis::TranslateV2::ListTranslationsResponse command.query['cid'] = cid unless cid.nil? diff --git a/generated/google/apis/urlshortener_v1/service.rb b/generated/google/apis/urlshortener_v1/service.rb index fe499a9d0..31735ffe7 100644 --- a/generated/google/apis/urlshortener_v1/service.rb +++ b/generated/google/apis/urlshortener_v1/service.rb @@ -79,8 +79,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_url(short_url, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'url' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'url', options) command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation command.response_class = Google::Apis::UrlshortenerV1::Url command.query['projection'] = projection unless projection.nil? @@ -115,8 +114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_url(url_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'url' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'url', options) command.request_representation = Google::Apis::UrlshortenerV1::Url::Representation command.request_object = url_object command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation @@ -154,8 +152,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_urls(projection: nil, start_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'url/history' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'url/history', options) command.response_representation = Google::Apis::UrlshortenerV1::UrlHistory::Representation command.response_class = Google::Apis::UrlshortenerV1::UrlHistory command.query['projection'] = projection unless projection.nil? diff --git a/generated/google/apis/webmasters_v3.rb b/generated/google/apis/webmasters_v3.rb index 19571bc9e..0142ae433 100644 --- a/generated/google/apis/webmasters_v3.rb +++ b/generated/google/apis/webmasters_v3.rb @@ -25,12 +25,12 @@ module Google # @see https://developers.google.com/webmaster-tools/ module WebmastersV3 VERSION = 'V3' - REVISION = '20150715' + REVISION = '20151102' - # View and modify Webmaster Tools data for your verified sites + # View and manage Search Console data for your verified sites AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters' - # View Webmaster Tools data for your verified sites + # View Search Console data for your verified sites AUTH_WEBMASTERS_READONLY = 'https://www.googleapis.com/auth/webmasters.readonly' end end diff --git a/generated/google/apis/webmasters_v3/classes.rb b/generated/google/apis/webmasters_v3/classes.rb index 3b0f8c8fa..f91566adb 100644 --- a/generated/google/apis/webmasters_v3/classes.rb +++ b/generated/google/apis/webmasters_v3/classes.rb @@ -247,8 +247,8 @@ module Google class ListSitesResponse include Google::Apis::Core::Hashable - # Contains permission level information about a Webmaster Tools site. For more - # information, see Permissions in Webmaster Tools. + # Contains permission level information about a Search Console site. For more + # information, see Permissions in Search Console. # Corresponds to the JSON property `siteEntry` # @return [Array] attr_accessor :site_entry @@ -429,8 +429,8 @@ module Google end end - # Contains permission level information about a Webmaster Tools site. For more - # information, see Permissions in Webmaster Tools. + # Contains permission level information about a Search Console site. For more + # information, see Permissions in Search Console. class WmxSite include Google::Apis::Core::Hashable diff --git a/generated/google/apis/webmasters_v3/service.rb b/generated/google/apis/webmasters_v3/service.rb index de89c8a7d..93f6c7c19 100644 --- a/generated/google/apis/webmasters_v3/service.rb +++ b/generated/google/apis/webmasters_v3/service.rb @@ -52,7 +52,6 @@ module Google super('https://www.googleapis.com/', 'webmasters/v3/') end - # [LIMITED ACCESS] # Query your data with filters and parameters that you define. Returns zero or # more rows grouped by the row keys that you define. You must define a date # range of one or more days. @@ -85,8 +84,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_search_analytics(site_url, search_analytics_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/searchAnalytics/query' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'sites/{siteUrl}/searchAnalytics/query', options) command.request_representation = Google::Apis::WebmastersV3::SearchAnalyticsQueryRequest::Representation command.request_object = search_analytics_query_request_object command.response_representation = Google::Apis::WebmastersV3::SearchAnalyticsQueryResponse::Representation @@ -125,8 +123,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_sitemap(site_url, feedpath, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/sitemaps/{feedpath}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'sites/{siteUrl}/sitemaps/{feedpath}', options) command.params['siteUrl'] = site_url unless site_url.nil? command.params['feedpath'] = feedpath unless feedpath.nil? command.query['fields'] = fields unless fields.nil? @@ -162,8 +159,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_sitemap(site_url, feedpath, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/sitemaps/{feedpath}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'sites/{siteUrl}/sitemaps/{feedpath}', options) command.response_representation = Google::Apis::WebmastersV3::WmxSitemap::Representation command.response_class = Google::Apis::WebmastersV3::WmxSitemap command.params['siteUrl'] = site_url unless site_url.nil? @@ -203,8 +199,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_sitemaps(site_url, sitemap_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/sitemaps' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'sites/{siteUrl}/sitemaps', options) command.response_representation = Google::Apis::WebmastersV3::ListSitemapsResponse::Representation command.response_class = Google::Apis::WebmastersV3::ListSitemapsResponse command.params['siteUrl'] = site_url unless site_url.nil? @@ -242,8 +237,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def submit_sitemap(site_url, feedpath, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/sitemaps/{feedpath}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'sites/{siteUrl}/sitemaps/{feedpath}', options) command.params['siteUrl'] = site_url unless site_url.nil? command.params['feedpath'] = feedpath unless feedpath.nil? command.query['fields'] = fields unless fields.nil? @@ -252,7 +246,7 @@ module Google execute_or_queue_command(command, &block) end - # Adds a site to the set of the user's sites in Webmaster Tools. + # Adds a site to the set of the user's sites in Search Console. # @param [String] site_url # The URL of the site to add. # @param [String] fields @@ -277,8 +271,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_site(site_url, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'sites/{siteUrl}', options) command.params['siteUrl'] = site_url unless site_url.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -286,7 +279,7 @@ module Google execute_or_queue_command(command, &block) end - # Removes a site from the set of the user's Webmaster Tools sites. + # Removes a site from the set of the user's Search Console sites. # @param [String] site_url # The URI of the property as defined in Search Console. Examples: http://www. # example.com/ or android-app://com.example/ @@ -312,8 +305,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_site(site_url, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'sites/{siteUrl}', options) command.params['siteUrl'] = site_url unless site_url.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -347,8 +339,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_site(site_url, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'sites/{siteUrl}', options) command.response_representation = Google::Apis::WebmastersV3::WmxSite::Representation command.response_class = Google::Apis::WebmastersV3::WmxSite command.params['siteUrl'] = site_url unless site_url.nil? @@ -358,7 +349,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists the user's Webmaster Tools sites. + # Lists the user's Search Console sites. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -381,8 +372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_sites(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'sites', options) command.response_representation = Google::Apis::WebmastersV3::ListSitesResponse::Representation command.response_class = Google::Apis::WebmastersV3::ListSitesResponse command.query['fields'] = fields unless fields.nil? @@ -425,8 +415,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_errors_count(site_url, category: nil, latest_counts_only: nil, platform: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/urlCrawlErrorsCounts/query' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'sites/{siteUrl}/urlCrawlErrorsCounts/query', options) command.response_representation = Google::Apis::WebmastersV3::QueryUrlCrawlErrorsCountsResponse::Representation command.response_class = Google::Apis::WebmastersV3::QueryUrlCrawlErrorsCountsResponse command.params['siteUrl'] = site_url unless site_url.nil? @@ -472,8 +461,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_errors_sample(site_url, url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', options) command.response_representation = Google::Apis::WebmastersV3::UrlCrawlErrorsSample::Representation command.response_class = Google::Apis::WebmastersV3::UrlCrawlErrorsSample command.params['siteUrl'] = site_url unless site_url.nil? @@ -515,8 +503,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_errors_samples(site_url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/urlCrawlErrorsSamples' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'sites/{siteUrl}/urlCrawlErrorsSamples', options) command.response_representation = Google::Apis::WebmastersV3::ListUrlCrawlErrorsSamplesResponse::Representation command.response_class = Google::Apis::WebmastersV3::ListUrlCrawlErrorsSamplesResponse command.params['siteUrl'] = site_url unless site_url.nil? @@ -562,8 +549,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def mark_as_fixed(site_url, url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', options) command.params['siteUrl'] = site_url unless site_url.nil? command.params['url'] = url unless url.nil? command.query['category'] = category unless category.nil? diff --git a/generated/google/apis/youtube_analytics_v1.rb b/generated/google/apis/youtube_analytics_v1.rb index 02acc5a01..e36c0534f 100644 --- a/generated/google/apis/youtube_analytics_v1.rb +++ b/generated/google/apis/youtube_analytics_v1.rb @@ -25,7 +25,7 @@ module Google # @see http://developers.google.com/youtube/analytics/ module YoutubeAnalyticsV1 VERSION = 'V1' - REVISION = '20150304' + REVISION = '20150921' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_analytics_v1/service.rb b/generated/google/apis/youtube_analytics_v1/service.rb index 8323513a6..efecc6bd9 100644 --- a/generated/google/apis/youtube_analytics_v1/service.rb +++ b/generated/google/apis/youtube_analytics_v1/service.rb @@ -78,8 +78,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_batch_report_definitions(on_behalf_of_content_owner, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'batchReportDefinitions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'batchReportDefinitions', options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::BatchReportDefinitionList::Representation command.response_class = Google::Apis::YoutubeAnalyticsV1::BatchReportDefinitionList command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? @@ -118,8 +117,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_batch_reports(batch_report_definition_id, on_behalf_of_content_owner, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'batchReports' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'batchReports', options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::BatchReportList::Representation command.response_class = Google::Apis::YoutubeAnalyticsV1::BatchReportList command.query['batchReportDefinitionId'] = batch_report_definition_id unless batch_report_definition_id.nil? @@ -166,8 +164,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_group_item(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groupItems' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'groupItems', options) command.query['id'] = id unless id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['fields'] = fields unless fields.nil? @@ -210,8 +207,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_group_item(group_item_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groupItems' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'groupItems', options) command.request_representation = Google::Apis::YoutubeAnalyticsV1::GroupItem::Representation command.request_object = group_item_object command.response_representation = Google::Apis::YoutubeAnalyticsV1::GroupItem::Representation @@ -259,8 +255,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_group_items(group_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groupItems' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'groupItems', options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::ListGroupItemResponse::Representation command.response_class = Google::Apis::YoutubeAnalyticsV1::ListGroupItemResponse command.query['groupId'] = group_id unless group_id.nil? @@ -307,8 +302,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_group(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'groups', options) command.query['id'] = id unless id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['fields'] = fields unless fields.nil? @@ -351,8 +345,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_group(group_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'groups', options) command.request_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation @@ -406,8 +399,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_groups(id: nil, mine: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'groups', options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse::Representation command.response_class = Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse command.query['id'] = id unless id.nil? @@ -453,8 +445,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_group(group_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'groups' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'groups', options) command.request_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation @@ -534,8 +525,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def query_report(ids, start_date, end_date, metrics, currency: nil, dimensions: nil, filters: nil, max_results: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'reports' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'reports', options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::ResultTable::Representation command.response_class = Google::Apis::YoutubeAnalyticsV1::ResultTable command.query['currency'] = currency unless currency.nil? diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 1bbef28ce..03c406d56 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '20150706' + REVISION = '20151201' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 30355de95..f95f338bf 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -2258,335 +2258,361 @@ module Google end # Ratings schemes. The country-specific ratings are mostly for movies and shows. - # NEXT_ID: 65 + # NEXT_ID: 66 class ContentRating include Google::Apis::Core::Hashable - # Rating system in Australia - Australian Classification Board + # The video's Australian Classification Board (ACB) or Australian Communications + # and Media Authority (ACMA) rating. ACMA ratings are used to classify children' + # s television programming. # Corresponds to the JSON property `acbRating` # @return [String] attr_accessor :acb_rating - # Rating system for Italy - Autorit� per le Garanzie nelle Comunicazioni + # The video's rating from Italy's Autorità per le Garanzie nelle Comunicazioni ( + # AGCOM). # Corresponds to the JSON property `agcomRating` # @return [String] attr_accessor :agcom_rating - # Rating system for Chile - Asociaci�n Nacional de Televisi�n + # The video's Anatel (Asociación Nacional de Televisión) rating for Chilean + # television. # Corresponds to the JSON property `anatelRating` # @return [String] attr_accessor :anatel_rating - # British Board of Film Classification + # The video's British Board of Film Classification (BBFC) rating. # Corresponds to the JSON property `bbfcRating` # @return [String] attr_accessor :bbfc_rating - # Rating system for Thailand - Board of Filmand Video Censors + # The video's rating from Thailand's Board of Film and Video Censors. # Corresponds to the JSON property `bfvcRating` # @return [String] attr_accessor :bfvc_rating - # Rating system for Austria - Bundesministerium f�r Unterricht, Kunst und Kultur + # The video's rating from the Austrian Board of Media Classification ( + # Bundesministerium für Unterricht, Kunst und Kultur). # Corresponds to the JSON property `bmukkRating` # @return [String] attr_accessor :bmukk_rating - # Rating system for Canadian TV - Canadian TV Classification System + # Rating system for Canadian TV - Canadian TV Classification System The video's + # rating from the Canadian Radio-Television and Telecommunications Commission ( + # CRTC) for Canadian English-language broadcasts. For more information, see the + # Canadian Broadcast Standards Council website. # Corresponds to the JSON property `catvRating` # @return [String] attr_accessor :catv_rating - # Rating system for French Canadian TV - Regie du cinema + # The video's rating from the Canadian Radio-Television and Telecommunications + # Commission (CRTC) for Canadian French-language broadcasts. For more + # information, see the Canadian Broadcast Standards Council website. # Corresponds to the JSON property `catvfrRating` # @return [String] attr_accessor :catvfr_rating - # Rating system in India - Central Board of Film Certification + # The video's Central Board of Film Certification (CBFC - India) rating. # Corresponds to the JSON property `cbfcRating` # @return [String] attr_accessor :cbfc_rating - # Rating system for Chile - Consejo de Calificaci�n Cinematogr�fica + # The video's Consejo de Calificación Cinematográfica (Chile) rating. # Corresponds to the JSON property `cccRating` # @return [String] attr_accessor :ccc_rating - # Rating system for Portugal - Comiss�o de Classifica��o de Espect�culos + # The video's rating from Portugal's Comissão de Classificação de Espect´culos. # Corresponds to the JSON property `cceRating` # @return [String] attr_accessor :cce_rating - # Rating system for Switzerland - Switzerland Rating System + # The video's rating in Switzerland. # Corresponds to the JSON property `chfilmRating` # @return [String] attr_accessor :chfilm_rating - # Canadian Home Video Rating System + # The video's Canadian Home Video Rating System (CHVRS) rating. # Corresponds to the JSON property `chvrsRating` # @return [String] attr_accessor :chvrs_rating - # Rating system for Belgium - Belgium Rating System + # The video's rating from the Commission de Contrôle des Films (Belgium). # Corresponds to the JSON property `cicfRating` # @return [String] attr_accessor :cicf_rating - # Rating system for Romania - CONSILIUL NATIONAL AL AUDIOVIZUALULUI - CNA + # The video's rating from Romania's CONSILIUL NATIONAL AL AUDIOVIZUALULUI (CNA). # Corresponds to the JSON property `cnaRating` # @return [String] attr_accessor :cna_rating - # Rating system for France - Conseil sup�rieur de l?audiovisuel + # Rating system in France - Commission de classification cinematographique + # Corresponds to the JSON property `cncRating` + # @return [String] + attr_accessor :cnc_rating + + # The video's rating from France's Conseil supérieur de l?audiovisuel, which + # rates broadcast content. # Corresponds to the JSON property `csaRating` # @return [String] attr_accessor :csa_rating - # Rating system for Luxembourg - Commission de surveillance de la classification - # des films + # The video's rating from Luxembourg's Commission de surveillance de la + # classification des films (CSCF). # Corresponds to the JSON property `cscfRating` # @return [String] attr_accessor :cscf_rating - # Rating system for Czech republic - Czech republic Rating System + # The video's rating in the Czech Republic. # Corresponds to the JSON property `czfilmRating` # @return [String] attr_accessor :czfilm_rating - # Rating system in Brazil - Department of Justice, Rating, Titles and - # Qualification + # The video's Departamento de Justiça, Classificação, Qualificação e Títulos ( + # DJCQT - Brazil) rating. # Corresponds to the JSON property `djctqRating` # @return [String] attr_accessor :djctq_rating - # + # Reasons that explain why the video received its DJCQT (Brazil) rating. # Corresponds to the JSON property `djctqRatingReasons` # @return [Array] attr_accessor :djctq_rating_reasons - # Rating system for Estonia - Estonia Rating System + # The video's rating in Estonia. # Corresponds to the JSON property `eefilmRating` # @return [String] attr_accessor :eefilm_rating - # Rating system for Egypt - Egypt Rating System + # The video's rating in Egypt. # Corresponds to the JSON property `egfilmRating` # @return [String] attr_accessor :egfilm_rating - # Rating system in Japan - Eiga Rinri Kanri Iinkai + # The video's Eirin (映倫) rating. Eirin is the Japanese rating system. # Corresponds to the JSON property `eirinRating` # @return [String] attr_accessor :eirin_rating - # Rating system for Malaysia - Film Censorship Board of Malaysia + # The video's rating from Malaysia's Film Censorship Board. # Corresponds to the JSON property `fcbmRating` # @return [String] attr_accessor :fcbm_rating - # Rating system for Hong kong - Office for Film, Newspaper and Article - # Administration + # The video's rating from Hong Kong's Office for Film, Newspaper and Article + # Administration. # Corresponds to the JSON property `fcoRating` # @return [String] attr_accessor :fco_rating - # Rating system in France - French Minister of Culture + # This property has been deprecated. Use the contentDetails.contentRating. + # cncRating instead. # Corresponds to the JSON property `fmocRating` # @return [String] attr_accessor :fmoc_rating - # Rating system for South africa - Film & Publication Board + # The video's rating from South Africa's Film and Publication Board. # Corresponds to the JSON property `fpbRating` # @return [String] attr_accessor :fpb_rating - # Rating system in Germany - Voluntary Self Regulation of the Movie Industry + # The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany) + # rating. # Corresponds to the JSON property `fskRating` # @return [String] attr_accessor :fsk_rating - # Rating system for Greece - Greece Rating System + # The video's rating in Greece. # Corresponds to the JSON property `grfilmRating` # @return [String] attr_accessor :grfilm_rating - # Rating system in Spain - Instituto de Cinematografia y de las Artes - # Audiovisuales + # The video's Instituto de la Cinematografía y de las Artes Audiovisuales (ICAA - + # Spain) rating. # Corresponds to the JSON property `icaaRating` # @return [String] attr_accessor :icaa_rating - # Rating system in Ireland - Irish Film Classification Office + # The video's Irish Film Classification Office (IFCO - Ireland) rating. See the + # IFCO website for more information. # Corresponds to the JSON property `ifcoRating` # @return [String] attr_accessor :ifco_rating - # Rating system for Israel - Israel Rating System + # The video's rating in Israel. # Corresponds to the JSON property `ilfilmRating` # @return [String] attr_accessor :ilfilm_rating - # Rating system for Argentina - Instituto Nacional de Cine y Artes Audiovisuales + # The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - + # Argentina) rating. # Corresponds to the JSON property `incaaRating` # @return [String] attr_accessor :incaa_rating - # Rating system for Kenya - Kenya Film Classification Board + # The video's rating from the Kenya Film Classification Board. # Corresponds to the JSON property `kfcbRating` # @return [String] attr_accessor :kfcb_rating - # Rating system for Netherlands - Nederlands Instituut voor de Classificatie van - # Audiovisuele Media + # voor de Classificatie van Audiovisuele Media (Netherlands). # Corresponds to the JSON property `kijkwijzerRating` # @return [String] attr_accessor :kijkwijzer_rating - # Rating system in South Korea - Korea Media Rating Board + # The video's Korea Media Rating Board (영상물등급위원회) rating. The KMRB rates videos + # in South Korea. # Corresponds to the JSON property `kmrbRating` # @return [String] attr_accessor :kmrb_rating - # Rating system for Indonesia - Lembaga Sensor Film + # The video's rating from Indonesia's Lembaga Sensor Film. # Corresponds to the JSON property `lsfRating` # @return [String] attr_accessor :lsf_rating - # Rating system for Malta - Film Age-Classification Board + # The video's rating from Malta's Film Age-Classification Board. # Corresponds to the JSON property `mccaaRating` # @return [String] attr_accessor :mccaa_rating - # Rating system for Denmark - The Media Council for Children and Young People + # The video's rating from the Danish Film Institute's (Det Danske Filminstitut) + # Media Council for Children and Young People. # Corresponds to the JSON property `mccypRating` # @return [String] attr_accessor :mccyp_rating - # Rating system for Singapore - Media Development Authority + # The video's rating from Singapore's Media Development Authority (MDA) and, + # specifically, it's Board of Film Censors (BFC). # Corresponds to the JSON property `mdaRating` # @return [String] attr_accessor :mda_rating - # Rating system for Norway - Medietilsynet + # The video's rating from Medietilsynet, the Norwegian Media Authority. # Corresponds to the JSON property `medietilsynetRating` # @return [String] attr_accessor :medietilsynet_rating - # Rating system for Finland - Finnish Centre for Media Education and Audiovisual - # Media + # The video's rating from Finland's Kansallinen Audiovisuaalinen Instituutti ( + # National Audiovisual Institute). # Corresponds to the JSON property `mekuRating` # @return [String] attr_accessor :meku_rating - # Rating system in Italy - Ministero dei Beni e delle Attivita Culturali e del - # Turismo + # The video's rating from the Ministero dei Beni e delle Attività Culturali e + # del Turismo (Italy). # Corresponds to the JSON property `mibacRating` # @return [String] attr_accessor :mibac_rating - # Rating system for Colombia - MoC + # The video's Ministerio de Cultura (Colombia) rating. # Corresponds to the JSON property `mocRating` # @return [String] attr_accessor :moc_rating - # Rating system for Taiwan - Ministry of Culture - Tawan + # The video's rating from Taiwan's Ministry of Culture (文化部). # Corresponds to the JSON property `moctwRating` # @return [String] attr_accessor :moctw_rating - # Motion Picture Association of America rating for the content. + # The video's Motion Picture Association of America (MPAA) rating. # Corresponds to the JSON property `mpaaRating` # @return [String] attr_accessor :mpaa_rating - # Rating system for Philippines - MOVIE AND TELEVISION REVIEW AND CLASSIFICATION - # BOARD + # The video's rating from the Movie and Television Review and Classification + # Board (Philippines). # Corresponds to the JSON property `mtrcbRating` # @return [String] attr_accessor :mtrcb_rating - # Rating system for Maldives - National Bureau of Classification + # The video's rating from the Maldives National Bureau of Classification. # Corresponds to the JSON property `nbcRating` # @return [String] attr_accessor :nbc_rating - # Rating system for Poland - National Broadcasting Council + # The video's rating in Poland. # Corresponds to the JSON property `nbcplRating` # @return [String] attr_accessor :nbcpl_rating - # Rating system for Bulgaria - National Film Centre + # The video's rating from the Bulgarian National Film Center. # Corresponds to the JSON property `nfrcRating` # @return [String] attr_accessor :nfrc_rating - # Rating system for Nigeria - National Film and Video Censors Board + # The video's rating from Nigeria's National Film and Video Censors Board. # Corresponds to the JSON property `nfvcbRating` # @return [String] attr_accessor :nfvcb_rating - # Rating system for Latvia - National Film Center of Latvia + # The video's rating from the Nacionãlais Kino centrs (National Film Centre of + # Latvia). # Corresponds to the JSON property `nkclvRating` # @return [String] attr_accessor :nkclv_rating - # Rating system in New Zealand - Office of Film and Literature Classification + # The video's Office of Film and Literature Classification (OFLC - New Zealand) + # rating. # Corresponds to the JSON property `oflcRating` # @return [String] attr_accessor :oflc_rating - # Rating system for Peru - Peru Rating System + # The video's rating in Peru. # Corresponds to the JSON property `pefilmRating` # @return [String] attr_accessor :pefilm_rating - # Rating system for Hungary - Rating Committee of the National Office of Film + # The video's rating from the Hungarian Nemzeti Filmiroda, the Rating Committee + # of the National Office of Film. # Corresponds to the JSON property `rcnofRating` # @return [String] attr_accessor :rcnof_rating - # Rating system for Venezuela - SiBCI + # The video's rating in Venezuela. # Corresponds to the JSON property `resorteviolenciaRating` # @return [String] attr_accessor :resorteviolencia_rating - # Rating system in Mexico - General Directorate of Radio, Television and - # Cinematography + # The video's General Directorate of Radio, Television and Cinematography ( + # Mexico) rating. # Corresponds to the JSON property `rtcRating` # @return [String] attr_accessor :rtc_rating - # Rating system for Ireland - Raidi� Teilif�s �ireann + # The video's rating from Ireland's Raidió Teilifís Éireann. # Corresponds to the JSON property `rteRating` # @return [String] attr_accessor :rte_rating - # Rating system in Russia + # The video's National Film Registry of the Russian Federation (MKRF - Russia) + # rating. # Corresponds to the JSON property `russiaRating` # @return [String] attr_accessor :russia_rating - # Rating system for Slovakia - Slovakia Rating System + # The video's rating in Slovakia. # Corresponds to the JSON property `skfilmRating` # @return [String] attr_accessor :skfilm_rating - # Rating system for Iceland - SMAIS + # The video's rating in Iceland. # Corresponds to the JSON property `smaisRating` # @return [String] attr_accessor :smais_rating - # Rating system for Sweden - Statens medier�d (National Media Council) + # The video's rating from Statens medieråd (Sweden's National Media Council). # Corresponds to the JSON property `smsaRating` # @return [String] attr_accessor :smsa_rating - # TV Parental Guidelines rating of the content. + # The video's TV Parental Guidelines (TVPG) rating. # Corresponds to the JSON property `tvpgRating` # @return [String] attr_accessor :tvpg_rating - # Internal YouTube rating. + # A rating that YouTube uses to identify age-restricted content. # Corresponds to the JSON property `ytRating` # @return [String] attr_accessor :yt_rating @@ -2612,6 +2638,7 @@ module Google @chvrs_rating = args[:chvrs_rating] unless args[:chvrs_rating].nil? @cicf_rating = args[:cicf_rating] unless args[:cicf_rating].nil? @cna_rating = args[:cna_rating] unless args[:cna_rating].nil? + @cnc_rating = args[:cnc_rating] unless args[:cnc_rating].nil? @csa_rating = args[:csa_rating] unless args[:csa_rating].nil? @cscf_rating = args[:cscf_rating] unless args[:cscf_rating].nil? @czfilm_rating = args[:czfilm_rating] unless args[:czfilm_rating].nil? @@ -3524,7 +3551,7 @@ module Google attr_accessor :enable_embed alias_method :enable_embed?, :enable_embed - # + # Indicates whether this broadcast has low latency enabled. # Corresponds to the JSON property `enableLowLatency` # @return [Boolean] attr_accessor :enable_low_latency @@ -3683,6 +3710,11 @@ module Google attr_accessor :is_default_broadcast alias_method :is_default_broadcast?, :is_default_broadcast + # The id of the live chat for this broadcast. + # Corresponds to the JSON property `liveChatId` + # @return [String] + attr_accessor :live_chat_id + # The date and time that the broadcast was added to YouTube's live broadcast # schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. # Corresponds to the JSON property `publishedAt` @@ -3724,6 +3756,7 @@ module Google @channel_id = args[:channel_id] unless args[:channel_id].nil? @description = args[:description] unless args[:description].nil? @is_default_broadcast = args[:is_default_broadcast] unless args[:is_default_broadcast].nil? + @live_chat_id = args[:live_chat_id] unless args[:live_chat_id].nil? @published_at = args[:published_at] unless args[:published_at].nil? @scheduled_end_time = args[:scheduled_end_time] unless args[:scheduled_end_time].nil? @scheduled_start_time = args[:scheduled_start_time] unless args[:scheduled_start_time].nil? @@ -5605,7 +5638,8 @@ module Google class Video include Google::Apis::Core::Hashable - # Age restriction details related to a video. + # Age restriction details related to a video. This data can only be retrieved by + # the video owner. # Corresponds to the JSON property `ageGating` # @return [Google::Apis::YoutubeV3::VideoAgeGating] attr_accessor :age_gating @@ -6108,7 +6142,7 @@ module Google attr_accessor :caption # Ratings schemes. The country-specific ratings are mostly for movies and shows. - # NEXT_ID: 65 + # NEXT_ID: 66 # Corresponds to the JSON property `contentRating` # @return [Google::Apis::YoutubeV3::ContentRating] attr_accessor :content_rating @@ -6923,7 +6957,6 @@ module Google attr_accessor :published_at # A list of keyword tags associated with the video. Tags may contain spaces. - # This field is only visible to the video's uploader. # Corresponds to the JSON property `tags` # @return [Array] attr_accessor :tags diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 4380c612a..a81f31a9a 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -1260,6 +1260,7 @@ module Google property :chvrs_rating, as: 'chvrsRating' property :cicf_rating, as: 'cicfRating' property :cna_rating, as: 'cnaRating' + property :cnc_rating, as: 'cncRating' property :csa_rating, as: 'csaRating' property :cscf_rating, as: 'cscfRating' property :czfilm_rating, as: 'czfilmRating' @@ -1575,6 +1576,7 @@ module Google property :channel_id, as: 'channelId' property :description, as: 'description' property :is_default_broadcast, as: 'isDefaultBroadcast' + property :live_chat_id, as: 'liveChatId' property :published_at, as: 'publishedAt', type: DateTime property :scheduled_end_time, as: 'scheduledEndTime', type: DateTime diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index 17c69339c..5c2050aa8 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -86,8 +86,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_activity(part, activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'activities', options) command.request_representation = Google::Apis::YoutubeV3::Activity::Representation command.request_object = activity_object command.response_representation = Google::Apis::YoutubeV3::Activity::Representation @@ -167,8 +166,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_activities(part, channel_id: nil, home: nil, max_results: nil, mine: nil, page_token: nil, published_after: nil, published_before: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'activities' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'activities', options) command.response_representation = Google::Apis::YoutubeV3::ListActivitiesResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListActivitiesResponse command.query['channelId'] = channel_id unless channel_id.nil? @@ -190,9 +188,6 @@ module Google # @param [String] id # The id parameter identifies the caption track that is being deleted. The value # is a caption track ID as identified by the id property in a caption resource. - # @param [String] debug_project_id_override - # The debugProjectIdOverride parameter should be used for mimicking a request - # for a certain project ID # @param [String] on_behalf_of # ID of the Google+ Page for the channel that the request is be on behalf of # @param [String] on_behalf_of_content_owner @@ -226,10 +221,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_caption(id, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'captions' - command = make_simple_command(:delete, path, options) - command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil? + def delete_caption(id, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'captions', options) command.query['id'] = id unless id.nil? command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? @@ -246,9 +239,6 @@ module Google # The id parameter identifies the caption track that is being retrieved. The # value is a caption track ID as identified by the id property in a caption # resource. - # @param [String] debug_project_id_override - # The debugProjectIdOverride parameter should be used for mimicking a request - # for a certain project ID # @param [String] on_behalf_of # ID of the Google+ Page for the channel that the request is be on behalf of # @param [String] on_behalf_of_content_owner @@ -294,16 +284,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_caption(id, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, tfmt: nil, tlang: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - path = 'captions/{id}' + def download_caption(id, on_behalf_of: nil, on_behalf_of_content_owner: nil, tfmt: nil, tlang: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'captions/{id}', options) else - command = make_download_command(:get, path, options) + command = make_download_command(:get, 'captions/{id}', options) command.download_dest = download_dest end command.params['id'] = id unless id.nil? - command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil? command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['tfmt'] = tfmt unless tfmt.nil? @@ -319,9 +307,6 @@ module Google # The part parameter specifies the caption resource parts that the API response # will include. Set the parameter value to snippet. # @param [Google::Apis::YoutubeV3::Caption] caption_object - # @param [String] debug_project_id_override - # The debugProjectIdOverride parameter should be used for mimicking a request - # for a certain project ID. # @param [String] on_behalf_of # ID of the Google+ Page for the channel that the request is be on behalf of # @param [String] on_behalf_of_content_owner @@ -367,12 +352,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_caption(part, caption_object = nil, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'captions' + def insert_caption(part, caption_object = nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'captions', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'captions', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -380,7 +364,6 @@ module Google command.request_object = caption_object command.response_representation = Google::Apis::YoutubeV3::Caption::Representation command.response_class = Google::Apis::YoutubeV3::Caption - command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil? command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['part'] = part unless part.nil? @@ -401,9 +384,6 @@ module Google # @param [String] video_id # The videoId parameter specifies the YouTube video ID of the video for which # the API should return caption tracks. - # @param [String] debug_project_id_override - # The debugProjectIdOverride parameter should be used for mimicking a request - # for a certain project ID. # @param [String] id # The id parameter specifies a comma-separated list of IDs that identify the # caption resources that should be retrieved. Each ID must identify a caption @@ -441,12 +421,10 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_captions(part, video_id, debug_project_id_override: nil, id: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'captions' - command = make_simple_command(:get, path, options) + def list_captions(part, video_id, id: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'captions', options) command.response_representation = Google::Apis::YoutubeV3::ListCaptionsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListCaptionsResponse - command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil? command.query['id'] = id unless id.nil? command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? @@ -466,9 +444,6 @@ module Google # the API response will include. Set the property value to snippet if you are # updating the track's draft status. Otherwise, set the property value to id. # @param [Google::Apis::YoutubeV3::Caption] caption_object - # @param [String] debug_project_id_override - # The debugProjectIdOverride parameter should be used for mimicking a request - # for a certain project ID. # @param [String] on_behalf_of # ID of the Google+ Page for the channel that the request is be on behalf of # @param [String] on_behalf_of_content_owner @@ -513,12 +488,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_caption(part, caption_object = nil, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'captions' + def update_caption(part, caption_object = nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'captions', options) else - command = make_upload_command(:put, path, options) + command = make_upload_command(:put, 'captions', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -526,7 +500,6 @@ module Google command.request_object = caption_object command.response_representation = Google::Apis::YoutubeV3::Caption::Representation command.response_class = Google::Apis::YoutubeV3::Caption - command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil? command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['part'] = part unless part.nil? @@ -584,11 +557,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_channel_banner(channel_banner_resource_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'channelBanners/insert' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'channelBanners/insert', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'channelBanners/insert', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -640,8 +612,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_channel_section(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channelSections' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'channelSections', options) command.query['id'] = id unless id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['fields'] = fields unless fields.nil? @@ -706,8 +677,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_channel_section(part, channel_section_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channelSections' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'channelSections', options) command.request_representation = Google::Apis::YoutubeV3::ChannelSection::Representation command.request_object = channel_section_object command.response_representation = Google::Apis::YoutubeV3::ChannelSection::Representation @@ -783,8 +753,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_channel_sections(part, channel_id: nil, hl: nil, id: nil, mine: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channelSections' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'channelSections', options) command.response_representation = Google::Apis::YoutubeV3::ListChannelSectionsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListChannelSectionsResponse command.query['channelId'] = channel_id unless channel_id.nil? @@ -839,8 +808,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_channel_section(part, channel_section_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channelSections' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'channelSections', options) command.request_representation = Google::Apis::YoutubeV3::ChannelSection::Representation command.request_object = channel_section_object command.response_representation = Google::Apis::YoutubeV3::ChannelSection::Representation @@ -927,8 +895,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_channels(part, category_id: nil, for_username: nil, hl: nil, id: nil, managed_by_me: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channels' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'channels', options) command.response_representation = Google::Apis::YoutubeV3::ListChannelsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListChannelsResponse command.query['categoryId'] = category_id unless category_id.nil? @@ -992,8 +959,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_channel(part, channel_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'channels' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'channels', options) command.request_representation = Google::Apis::YoutubeV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::YoutubeV3::Channel::Representation @@ -1013,10 +979,6 @@ module Google # include. Set the parameter value to snippet. The snippet part has a quota cost # of 2 units. # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object - # @param [Boolean] share_on_google_plus - # The shareOnGooglePlus parameter indicates whether the top-level comment and - # any replies that are made to that comment should also be posted to the author' - # s Google+ profile. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1038,15 +1000,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_comment_thread(part, comment_thread_object = nil, share_on_google_plus: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'commentThreads' - command = make_simple_command(:post, path, options) + def insert_comment_thread(part, comment_thread_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'commentThreads', options) command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation command.request_object = comment_thread_object command.response_representation = Google::Apis::YoutubeV3::CommentThread::Representation command.response_class = Google::Apis::YoutubeV3::CommentThread command.query['part'] = part unless part.nil? - command.query['shareOnGooglePlus'] = share_on_google_plus unless share_on_google_plus.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1123,8 +1083,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'commentThreads' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'commentThreads', options) command.response_representation = Google::Apis::YoutubeV3::ListCommentThreadsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListCommentThreadsResponse command.query['allThreadsRelatedToChannelId'] = all_threads_related_to_channel_id unless all_threads_related_to_channel_id.nil? @@ -1173,8 +1132,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_comment_thread(part, comment_thread_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'commentThreads' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'commentThreads', options) command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation command.request_object = comment_thread_object command.response_representation = Google::Apis::YoutubeV3::CommentThread::Representation @@ -1212,8 +1170,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_comment(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'comments', options) command.query['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1250,8 +1207,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_comment(part, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'comments', options) command.request_representation = Google::Apis::YoutubeV3::Comment::Representation command.request_object = comment_object command.response_representation = Google::Apis::YoutubeV3::Comment::Representation @@ -1312,8 +1268,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_comments(part, id: nil, max_results: nil, page_token: nil, parent_id: nil, text_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'comments', options) command.response_representation = Google::Apis::YoutubeV3::ListCommentsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListCommentsResponse command.query['id'] = id unless id.nil? @@ -1354,9 +1309,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def mark_as_spam_comment(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments/markAsSpam' - command = make_simple_command(:post, path, options) + def mark_comment_as_spam(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'comments/markAsSpam', options) command.query['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1399,8 +1353,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_comment_moderation_status(id, moderation_status, ban_author: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments/setModerationStatus' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'comments/setModerationStatus', options) command.query['banAuthor'] = ban_author unless ban_author.nil? command.query['id'] = id unless id.nil? command.query['moderationStatus'] = moderation_status unless moderation_status.nil? @@ -1438,8 +1391,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_comment(part, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'comments' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'comments', options) command.request_representation = Google::Apis::YoutubeV3::Comment::Representation command.request_object = comment_object command.response_representation = Google::Apis::YoutubeV3::Comment::Representation @@ -1489,8 +1441,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_guide_categories(part, hl: nil, id: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'guideCategories' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'guideCategories', options) command.response_representation = Google::Apis::YoutubeV3::ListGuideCategoriesResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListGuideCategoriesResponse command.query['hl'] = hl unless hl.nil? @@ -1532,8 +1483,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_i18n_languages(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'i18nLanguages' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'i18nLanguages', options) command.response_representation = Google::Apis::YoutubeV3::ListI18nLanguagesResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListI18nLanguagesResponse command.query['hl'] = hl unless hl.nil? @@ -1573,8 +1523,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_i18n_regions(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'i18nRegions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'i18nRegions', options) command.response_representation = Google::Apis::YoutubeV3::ListI18nRegionsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListI18nRegionsResponse command.query['hl'] = hl unless hl.nil? @@ -1648,86 +1597,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def bind_live_broadcast(id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts/bind' - command = make_simple_command(:post, path, options) - command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation - command.response_class = Google::Apis::YoutubeV3::LiveBroadcast - command.query['id'] = id unless id.nil? - command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? - command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil? - command.query['part'] = part unless part.nil? - command.query['streamId'] = stream_id unless stream_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Binds a YouTube broadcast to a stream or removes an existing binding between a - # broadcast and a stream. A broadcast can only be bound to one video stream, - # though a video stream may be bound to more than one broadcast. - # @param [String] id - # The id parameter specifies the unique ID of the broadcast that is being bound - # to a video stream. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # liveBroadcast resource properties that the API response will include. The part - # names that you can include in the parameter value are id, snippet, - # contentDetails, and status. - # @param [String] on_behalf_of_content_owner - # Note: This parameter is intended exclusively for YouTube content partners. - # The onBehalfOfContentOwner parameter indicates that the request's - # authorization credentials identify a YouTube CMS user who is acting on behalf - # of the content owner specified in the parameter value. This parameter is - # intended for YouTube content partners that own and manage many different - # YouTube channels. It allows content owners to authenticate once and get access - # to all their video and channel data, without having to provide authentication - # credentials for each individual channel. The CMS account that the user - # authenticates with must be linked to the specified YouTube content owner. - # @param [String] on_behalf_of_content_owner_channel - # This parameter can only be used in a properly authorized request. Note: This - # parameter is intended exclusively for YouTube content partners. - # The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID - # of the channel to which a video is being added. This parameter is required - # when a request specifies a value for the onBehalfOfContentOwner parameter, and - # it can only be used in conjunction with that parameter. In addition, the - # request must be authorized using a CMS account that is linked to the content - # owner that the onBehalfOfContentOwner parameter specifies. Finally, the - # channel that the onBehalfOfContentOwnerChannel parameter value specifies must - # be linked to the content owner that the onBehalfOfContentOwner parameter - # specifies. - # This parameter is intended for YouTube content partners that own and manage - # many different YouTube channels. It allows content owners to authenticate once - # and perform actions on behalf of the channel specified in the parameter value, - # without having to provide authentication credentials for each separate channel. - # @param [String] stream_id - # The streamId parameter specifies the unique ID of the video stream that is - # being bound to a broadcast. If this parameter is omitted, the API will remove - # any existing binding between the broadcast and a video stream. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # Overrides userIp if both are provided. - # @param [String] user_ip - # IP address of the site where the request originates. Use this if you want to - # enforce per-user limits. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::YoutubeV3::LiveBroadcast] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::YoutubeV3::LiveBroadcast] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def bind_direct_live_broadcast(id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts/bind/direct' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'liveBroadcasts/bind', options) command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation command.response_class = Google::Apis::YoutubeV3::LiveBroadcast command.query['id'] = id unless id.nil? @@ -1817,8 +1687,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def control_live_broadcast(id, part, display_slate: nil, offset_time_ms: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, walltime: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts/control' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'liveBroadcasts/control', options) command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation command.response_class = Google::Apis::YoutubeV3::LiveBroadcast command.query['displaySlate'] = display_slate unless display_slate.nil? @@ -1886,8 +1755,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_live_broadcast(id, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'liveBroadcasts', options) command.query['id'] = id unless id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil? @@ -1953,8 +1821,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_live_broadcast(part, live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'liveBroadcasts', options) command.request_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation command.request_object = live_broadcast_object command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -2040,8 +1907,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_live_broadcasts(part, broadcast_status: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'liveBroadcasts', options) command.response_representation = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse command.query['broadcastStatus'] = broadcast_status unless broadcast_status.nil? @@ -2125,8 +1991,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def transition_live_broadcast(broadcast_status, id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts/transition' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'liveBroadcasts/transition', options) command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation command.response_class = Google::Apis::YoutubeV3::LiveBroadcast command.query['broadcastStatus'] = broadcast_status unless broadcast_status.nil? @@ -2205,8 +2070,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_live_broadcast(part, live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveBroadcasts' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'liveBroadcasts', options) command.request_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation command.request_object = live_broadcast_object command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -2272,8 +2136,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_live_stream(id, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveStreams' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'liveStreams', options) command.query['id'] = id unless id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil? @@ -2340,8 +2203,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_live_stream(part, live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveStreams' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'liveStreams', options) command.request_representation = Google::Apis::YoutubeV3::LiveStream::Representation command.request_object = live_stream_object command.response_representation = Google::Apis::YoutubeV3::LiveStream::Representation @@ -2423,8 +2285,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_live_streams(part, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveStreams' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'liveStreams', options) command.response_representation = Google::Apis::YoutubeV3::ListLiveStreamsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListLiveStreamsResponse command.query['id'] = id unless id.nil? @@ -2501,8 +2362,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_live_stream(part, live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'liveStreams' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'liveStreams', options) command.request_representation = Google::Apis::YoutubeV3::LiveStream::Representation command.request_object = live_stream_object command.response_representation = Google::Apis::YoutubeV3::LiveStream::Representation @@ -2543,8 +2403,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_playlist_item(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlistItems' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'playlistItems', options) command.query['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2590,8 +2449,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_playlist_item(part, playlist_item_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlistItems' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'playlistItems', options) command.request_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation command.request_object = playlist_item_object command.response_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation @@ -2666,8 +2524,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_playlist_items(part, id: nil, max_results: nil, on_behalf_of_content_owner: nil, page_token: nil, playlist_id: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlistItems' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'playlistItems', options) command.response_representation = Google::Apis::YoutubeV3::ListPlaylistItemsResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListPlaylistItemsResponse command.query['id'] = id unless id.nil? @@ -2722,8 +2579,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_playlist_item(part, playlist_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlistItems' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'playlistItems', options) command.request_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation command.request_object = playlist_item_object command.response_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation @@ -2772,8 +2628,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_playlist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlists' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'playlists', options) command.query['id'] = id unless id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['fields'] = fields unless fields.nil? @@ -2836,8 +2691,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_playlist(part, playlist_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlists' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'playlists', options) command.request_representation = Google::Apis::YoutubeV3::Playlist::Representation command.request_object = playlist_object command.response_representation = Google::Apis::YoutubeV3::Playlist::Representation @@ -2930,8 +2784,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_playlists(part, channel_id: nil, hl: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlists' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'playlists', options) command.response_representation = Google::Apis::YoutubeV3::ListPlaylistResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListPlaylistResponse command.query['channelId'] = channel_id unless channel_id.nil? @@ -2994,8 +2847,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_playlist(part, playlist_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'playlists' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'playlists', options) command.request_representation = Google::Apis::YoutubeV3::Playlist::Representation command.request_object = playlist_object command.response_representation = Google::Apis::YoutubeV3::Playlist::Representation @@ -3187,8 +3039,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_searches(part, channel_id: nil, channel_type: nil, event_type: nil, for_content_owner: nil, for_developer: nil, for_mine: nil, location: nil, location_radius: nil, max_results: nil, on_behalf_of_content_owner: nil, order: nil, page_token: nil, published_after: nil, published_before: nil, q: nil, region_code: nil, related_to_video_id: nil, relevance_language: nil, safe_search: nil, topic_id: nil, type: nil, video_caption: nil, video_category_id: nil, video_definition: nil, video_dimension: nil, video_duration: nil, video_embeddable: nil, video_license: nil, video_syndicated: nil, video_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'search' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'search', options) command.response_representation = Google::Apis::YoutubeV3::SearchListsResponse::Representation command.response_class = Google::Apis::YoutubeV3::SearchListsResponse command.query['channelId'] = channel_id unless channel_id.nil? @@ -3255,8 +3106,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'subscriptions', options) command.query['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -3292,8 +3142,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_subscription(part, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'subscriptions', options) command.request_representation = Google::Apis::YoutubeV3::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::YoutubeV3::Subscription::Representation @@ -3388,8 +3237,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subscriptions(part, channel_id: nil, for_channel_id: nil, id: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, order: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'subscriptions' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'subscriptions', options) command.response_representation = Google::Apis::YoutubeV3::ListSubscriptionResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListSubscriptionResponse command.query['channelId'] = channel_id unless channel_id.nil? @@ -3449,11 +3297,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_thumbnail(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'thumbnails/set' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'thumbnails/set', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'thumbnails/set', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -3496,8 +3343,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_video_abuse_report_reasons(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videoAbuseReportReasons' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'videoAbuseReportReasons', options) command.response_representation = Google::Apis::YoutubeV3::ListVideoAbuseReportReasonResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListVideoAbuseReportReasonResponse command.query['hl'] = hl unless hl.nil? @@ -3544,8 +3390,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_video_categories(part, hl: nil, id: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videoCategories' - command = make_simple_command(:get, path, options) + command = make_simple_command(:get, 'videoCategories', options) command.response_representation = Google::Apis::YoutubeV3::ListVideoCategoryResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListVideoCategoryResponse command.query['hl'] = hl unless hl.nil? @@ -3594,8 +3439,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_video(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videos' - command = make_simple_command(:delete, path, options) + command = make_simple_command(:delete, 'videos', options) command.query['id'] = id unless id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['fields'] = fields unless fields.nil? @@ -3641,9 +3485,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_rating_video(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videos/getRating' - command = make_simple_command(:get, path, options) + def get_video_rating(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'videos/getRating', options) command.response_representation = Google::Apis::YoutubeV3::GetVideoRatingResponse::Representation command.response_class = Google::Apis::YoutubeV3::GetVideoRatingResponse command.query['id'] = id unless id.nil? @@ -3730,11 +3573,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_video(part, video_object = nil, auto_levels: nil, notify_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stabilize: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'videos' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'videos', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'videos', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -3765,9 +3607,6 @@ module Google # response will contain all of those properties. # @param [String] chart # The chart parameter identifies the chart that you want to retrieve. - # @param [String] debug_project_id_override - # The debugProjectIdOverride parameter should be used for mimicking a request - # for a certain project ID # @param [String] hl # The hl parameter instructs the API to retrieve localized resource metadata for # a specific application language that the YouTube website supports. The @@ -3839,13 +3678,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_videos(part, chart: nil, debug_project_id_override: nil, hl: nil, id: nil, locale: nil, max_results: nil, my_rating: nil, on_behalf_of_content_owner: nil, page_token: nil, region_code: nil, video_category_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videos' - command = make_simple_command(:get, path, options) + def list_videos(part, chart: nil, hl: nil, id: nil, locale: nil, max_results: nil, my_rating: nil, on_behalf_of_content_owner: nil, page_token: nil, region_code: nil, video_category_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'videos', options) command.response_representation = Google::Apis::YoutubeV3::ListVideosResponse::Representation command.response_class = Google::Apis::YoutubeV3::ListVideosResponse command.query['chart'] = chart unless chart.nil? - command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil? command.query['hl'] = hl unless hl.nil? command.query['id'] = id unless id.nil? command.query['locale'] = locale unless locale.nil? @@ -3890,8 +3727,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def rate_video(id, rating, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videos/rate' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'videos/rate', options) command.query['id'] = id unless id.nil? command.query['rating'] = rating unless rating.nil? command.query['fields'] = fields unless fields.nil? @@ -3933,9 +3769,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def report_abuse_video(video_abuse_report_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videos/reportAbuse' - command = make_simple_command(:post, path, options) + def report_video_abuse(video_abuse_report_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'videos/reportAbuse', options) command.request_representation = Google::Apis::YoutubeV3::VideoAbuseReport::Representation command.request_object = video_abuse_report_object command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? @@ -3997,8 +3832,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_video(part, video_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'videos' - command = make_simple_command(:put, path, options) + command = make_simple_command(:put, 'videos', options) command.request_representation = Google::Apis::YoutubeV3::Video::Representation command.request_object = video_object command.response_representation = Google::Apis::YoutubeV3::Video::Representation @@ -4052,11 +3886,10 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_watermark(channel_id, invideo_branding_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - path = 'watermarks/set' if upload_source.nil? - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'watermarks/set', options) else - command = make_upload_command(:post, path, options) + command = make_upload_command(:post, 'watermarks/set', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -4106,8 +3939,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def unset_watermark(channel_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - path = 'watermarks/unset' - command = make_simple_command(:post, path, options) + command = make_simple_command(:post, 'watermarks/unset', options) command.query['channelId'] = channel_id unless channel_id.nil? command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/youtubereporting_v1.rb b/generated/google/apis/youtubereporting_v1.rb new file mode 100644 index 000000000..ff84f988c --- /dev/null +++ b/generated/google/apis/youtubereporting_v1.rb @@ -0,0 +1,38 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/youtubereporting_v1/service.rb' +require 'google/apis/youtubereporting_v1/classes.rb' +require 'google/apis/youtubereporting_v1/representations.rb' + +module Google + module Apis + # YouTube Reporting API + # + # An API to schedule reporting jobs and download the resulting bulk data reports + # about YouTube channels, videos etc. in the form of CSV files. + # + # @see https://developers.google.com/youtube/reporting/v1/reports/ + module YoutubereportingV1 + VERSION = 'V1' + REVISION = '20151026' + + # View monetary and non-monetary YouTube Analytics reports for your YouTube content + AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly' + + # View YouTube Analytics reports for your YouTube content + AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly' + end + end +end diff --git a/generated/google/apis/youtubereporting_v1/classes.rb b/generated/google/apis/youtubereporting_v1/classes.rb new file mode 100644 index 000000000..fa845a194 --- /dev/null +++ b/generated/google/apis/youtubereporting_v1/classes.rb @@ -0,0 +1,258 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module YoutubereportingV1 + + # Media resource. + class Media + include Google::Apis::Core::Hashable + + # Name of the media resource. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_name = args[:resource_name] unless args[:resource_name].nil? + end + end + + # Response message for ReportingService.ListReportTypes. + class ListReportTypesResponse + include Google::Apis::Core::Hashable + + # The list of report types. + # Corresponds to the JSON property `reportTypes` + # @return [Array] + attr_accessor :report_types + + # A token to retrieve next page of results. Pass this value in the + # ListReportTypesRequest.page_token field in the subsequent call to ` + # ListReportTypes` method to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @report_types = args[:report_types] unless args[:report_types].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A report type. + class ReportType + include Google::Apis::Core::Hashable + + # The ID of the report type (max. 100 characters). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The name of the report type (max. 100 characters). + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @name = args[:name] unless args[:name].nil? + end + end + + # A job creating reports of a specific type. + class Job + include Google::Apis::Core::Hashable + + # The server-generated ID of the job (max. 40 characters). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The type of reports this job creates. Corresponds to the ID of a ReportType. + # Corresponds to the JSON property `reportTypeId` + # @return [String] + attr_accessor :report_type_id + + # The name of the job (max. 100 characters). TODO(lanthaler) Clarify what this + # will actually be used for + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The creation date/time of the job. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @report_type_id = args[:report_type_id] unless args[:report_type_id].nil? + @name = args[:name] unless args[:name].nil? + @create_time = args[:create_time] unless args[:create_time].nil? + end + end + + # Response message for ReportingService.ListJobs. + class ListJobsResponse + include Google::Apis::Core::Hashable + + # The list of jobs. + # Corresponds to the JSON property `jobs` + # @return [Array] + attr_accessor :jobs + + # A token to retrieve next page of results. Pass this value in the + # ListJobsRequest.page_token field in the subsequent call to `ListJobs` method + # to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @jobs = args[:jobs] unless args[:jobs].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response message for ReportingService.ListReports. + class ListReportsResponse + include Google::Apis::Core::Hashable + + # The list of report types. + # Corresponds to the JSON property `reports` + # @return [Array] + attr_accessor :reports + + # A token to retrieve next page of results. Pass this value in the + # ListReportsRequest.page_token field in the subsequent call to `ListReports` + # method to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reports = args[:reports] unless args[:reports].nil? + @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + end + end + + # A report's metadata including the URL from which the report itself can be + # downloaded. + class Report + include Google::Apis::Core::Hashable + + # The server-generated ID of the report. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The ID of the job that created this report. + # Corresponds to the JSON property `jobId` + # @return [String] + attr_accessor :job_id + + # The start of the time period that the report instance covers. The value is + # inclusive. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The end of the time period that the report instance covers. The value is + # exclusive. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The date/time when this report was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The URL from which the report can be downloaded (max. 1000 characters). + # Corresponds to the JSON property `downloadUrl` + # @return [String] + attr_accessor :download_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] unless args[:id].nil? + @job_id = args[:job_id] unless args[:job_id].nil? + @start_time = args[:start_time] unless args[:start_time].nil? + @end_time = args[:end_time] unless args[:end_time].nil? + @create_time = args[:create_time] unless args[:create_time].nil? + @download_url = args[:download_url] unless args[:download_url].nil? + end + end + end + end +end diff --git a/generated/google/apis/youtubereporting_v1/representations.rb b/generated/google/apis/youtubereporting_v1/representations.rb new file mode 100644 index 000000000..3e758ecfa --- /dev/null +++ b/generated/google/apis/youtubereporting_v1/representations.rb @@ -0,0 +1,128 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module YoutubereportingV1 + + class Media + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListReportTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ReportType + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Job + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListJobsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListReportsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Report + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Media + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource_name, as: 'resourceName' + end + end + + class ListReportTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ReportType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + end + end + + class Job + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :report_type_id, as: 'reportTypeId' + property :name, as: 'name' + property :create_time, as: 'createTime' + end + end + + class ListJobsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListReportsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Report + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :job_id, as: 'jobId' + property :start_time, as: 'startTime' + property :end_time, as: 'endTime' + property :create_time, as: 'createTime' + property :download_url, as: 'downloadUrl' + end + end + end + end +end diff --git a/generated/google/apis/youtubereporting_v1/service.rb b/generated/google/apis/youtubereporting_v1/service.rb new file mode 100644 index 000000000..0d7e38ef0 --- /dev/null +++ b/generated/google/apis/youtubereporting_v1/service.rb @@ -0,0 +1,364 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module YoutubereportingV1 + # YouTube Reporting API + # + # An API to schedule reporting jobs and download the resulting bulk data reports + # about YouTube channels, videos etc. in the form of CSV files. + # + # @example + # require 'google/apis/youtubereporting_v1' + # + # Youtubereporting = Google::Apis::YoutubereportingV1 # Alias the module + # service = Youtubereporting::YouTubeReportingService.new + # + # @see https://developers.google.com/youtube/reporting/v1/reports/ + class YouTubeReportingService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://youtubereporting.googleapis.com/', '') + end + + # Method for media download. Download is supported on the URI `/v1/media/`+name`? + # alt=media`. + # @param [String] resource_name + # Name of the media that is being downloaded. See [][ByteStream.ReadRequest. + # resource_name]. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [IO, String] download_dest + # IO stream or filename to receive content download + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::Media] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block) + if download_dest.nil? + command = make_simple_command(:get, 'v1/media/{+resourceName}', options) + else + command = make_download_command(:get, 'v1/media/{+resourceName}', options) + command.download_dest = download_dest + end + command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation + command.response_class = Google::Apis::YoutubereportingV1::Media + command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists report types. + # @param [String] on_behalf_of_content_owner + # The content owner's external ID on which behalf the user is acting on. If not + # set, the user is acting for himself (his own channel). + # @param [Fixnum] page_size + # Requested page size. Server may return fewer report types than requested. If + # unspecified, server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. Typically, + # this is the value of ListReportTypesResponse.next_page_token returned in + # response to the previous call to the `ListReportTypes` method. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_report_types(on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/reportTypes', options) + command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation + command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a job and returns it. + # @param [Google::Apis::YoutubereportingV1::Job] job_object + # @param [String] on_behalf_of_content_owner + # The content owner's external ID on which behalf the user is acting on. If not + # set, the user is acting for himself (his own channel). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_job(job_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/jobs', options) + command.request_representation = Google::Apis::YoutubereportingV1::Job::Representation + command.request_object = job_object + command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation + command.response_class = Google::Apis::YoutubereportingV1::Job + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists jobs. + # @param [String] on_behalf_of_content_owner + # The content owner's external ID on which behalf the user is acting on. If not + # set, the user is acting for himself (his own channel). + # @param [Fixnum] page_size + # Requested page size. Server may return fewer jobs than requested. If + # unspecified, server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. Typically, + # this is the value of ListReportTypesResponse.next_page_token returned in + # response to the previous call to the `ListJobs` method. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::ListJobsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_jobs(on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/jobs', options) + command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation + command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a job. + # @param [String] job_id + # The ID of the job to retrieve. + # @param [String] on_behalf_of_content_owner + # The content owner's external ID on which behalf the user is acting on. If not + # set, the user is acting for himself (his own channel). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::Job] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_job(job_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/jobs/{jobId}', options) + command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation + command.response_class = Google::Apis::YoutubereportingV1::Job + command.params['jobId'] = job_id unless job_id.nil? + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a job. + # @param [String] job_id + # The ID of the job to delete. + # @param [String] on_behalf_of_content_owner + # The content owner's external ID on which behalf the user is acting on. If not + # set, the user is acting for himself (his own channel). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_job(job_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/jobs/{jobId}', options) + command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation + command.response_class = Google::Apis::YoutubereportingV1::Empty + command.params['jobId'] = job_id unless job_id.nil? + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists reports created by a specific job. Returns NOT_FOUND if the job does not + # exist. + # @param [String] job_id + # The ID of the job. + # @param [String] on_behalf_of_content_owner + # The content owner's external ID on which behalf the user is acting on. If not + # set, the user is acting for himself (his own channel). + # @param [Fixnum] page_size + # Requested page size. Server may return fewer report types than requested. If + # unspecified, server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. Typically, + # this is the value of ListReportsResponse.next_page_token returned in response + # to the previous call to the `ListReports` method. + # @param [String] created_after + # If set, only reports created after the specified date/time are returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::ListReportsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_job_reports(job_id, on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, created_after: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/jobs/{jobId}/reports', options) + command.response_representation = Google::Apis::YoutubereportingV1::ListReportsResponse::Representation + command.response_class = Google::Apis::YoutubereportingV1::ListReportsResponse + command.params['jobId'] = job_id unless job_id.nil? + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['createdAfter'] = created_after unless created_after.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the metadata of a specific report. + # @param [String] job_id + # The ID of the job. + # @param [String] report_id + # The ID of the report to retrieve. + # @param [String] on_behalf_of_content_owner + # The content owner's external ID on which behalf the user is acting on. If not + # set, the user is acting for himself (his own channel). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubereportingV1::Report] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubereportingV1::Report] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options) + command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation + command.response_class = Google::Apis::YoutubereportingV1::Report + command.params['jobId'] = job_id unless job_id.nil? + command.params['reportId'] = report_id unless report_id.nil? + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/script/generate b/script/generate index bd30da20e..3369e3a62 100755 --- a/script/generate +++ b/script/generate @@ -7,12 +7,14 @@ DIR=$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )) APIS=(adexchangebuyer:v1.3 \ adexchangeseller:v2.0 \ admin:directory_v1 \ + admin:datatransfer_v1 \ admin:reports_v1 \ adsense:v1.4 \ adsensehost:v4.1 \ analytics:v3 \ androidenterprise:v1 \ androidpublisher:v2 \ + appengine:v1beta4 \ appsactivity:v1 \ appstate:v1 \ autoscaler:v1beta2 \ @@ -21,16 +23,20 @@ APIS=(adexchangebuyer:v1.3 \ books:v1 \ calendar:v3 \ civicinfo:v2 \ - classroom:v1beta1 \ + classroom:v1 \ + cloudbilling:v1 \ + clouddebugger:v2 \ cloudmonitoring:v2beta2 \ cloudresourcemanager:v1beta1 \ + cloudtrace:v1 \ + clouduseraccounts:beta \ compute:v1 \ container:v1 \ content:v2 \ coordinate:v1 \ customsearch:v1 \ datastore:v1beta2 \ - deploymentmanager:v2beta2 \ + deploymentmanager:v2 \ dfareporting:v2.1 \ discovery:v1 \ dns:v1 \ @@ -41,7 +47,7 @@ APIS=(adexchangebuyer:v1.3 \ fusiontables:v2 \ games:v1 \ gamesConfiguration:v1configuration \ - gamesConfiguration:v1management \ + gamesManagement:v1management \ gan:v1beta1 \ genomics:v1 \ gmail:v1 \ @@ -55,18 +61,22 @@ APIS=(adexchangebuyer:v1.3 \ mirror:v1 \ oauth2:v2 \ pagespeedonline:v2 \ + partners:v2 \ plus:v1 \ plusDomains:v1 \ prediction:v1.6 \ - pubsub:v1beta2 \ + proximitybeacon:v1beta1 \ + pubsub:v1 \ qpxExpress:v1 \ replicapool:v1beta2 \ replicapoolupdater:v1beta1 \ reseller:v1 \ resourceviews:v1beta2 \ + script:v1 \ siteVerification:v1 \ sqladmin:v1beta4 \ storage:v1 \ + storagetransfer:v1 \ tagmanager:v1 \ taskqueue:v1beta2 \ tasks:v1 \ @@ -75,6 +85,7 @@ APIS=(adexchangebuyer:v1.3 \ webmasters:v3 \ youtube:v3 \ youtubeAnalytics:v1 \ + youtubereporting:v1 \ ) echo 'a' | bundle exec bin/generate-api gen generated --names_out=$DIR/api_names_out.yaml --id=${APIS[*]}